]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/openpam/configure
This commit was generated by cvs2svn to compensate for changes in r173682,
[FreeBSD/FreeBSD.git] / contrib / openpam / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OpenPAM 20050201.
4 #
5 # Report bugs to <des@freebsd.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='OpenPAM'
425 PACKAGE_TARNAME='openpam'
426 PACKAGE_VERSION='20050201'
427 PACKAGE_STRING='OpenPAM 20050201'
428 PACKAGE_BUGREPORT='des@freebsd.org'
429
430 ac_unique_file="lib/pam_start.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIB_MAJ OPENPAM_MODULES_DIR WITH_PAM_SU_TRUE WITH_PAM_SU_FALSE WITH_PAM_UNIX_TRUE WITH_PAM_UNIX_FALSE DL_LIBS CRYPT_LIBS LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures OpenPAM 20050201 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018   --target=TARGET   configure for building compilers for TARGET [HOST]
1019 _ACEOF
1020 fi
1021
1022 if test -n "$ac_init_help"; then
1023   case $ac_init_help in
1024      short | recursive ) echo "Configuration of OpenPAM 20050201:";;
1025    esac
1026   cat <<\_ACEOF
1027
1028 Optional Features:
1029   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1030   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=no]
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-fast-install[=PKGS]
1036                           optimize for fast installation [default=yes]
1037   --disable-libtool-lock  avoid locking (might break parallel builds)
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-unversioned-modules
1041                           support loading of unversioned modules
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-modules-dir=DIR  OpenPAM modules directory
1052   --with-pam-su           compile example version of /bin/su
1053   --with-pam-unix         compile example version of pam_unix.so
1054
1055 Some influential environment variables:
1056   CC          C compiler command
1057   CFLAGS      C compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CPP         C preprocessor
1063   CXX         C++ compiler command
1064   CXXFLAGS    C++ compiler flags
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <des@freebsd.org>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 OpenPAM configure 20050201
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by OpenPAM $as_me 20050201, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519           ac_config_headers="$ac_config_headers config.h"
1520
1521
1522 ac_aux_dir=
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524   if test -f $ac_dir/install-sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install-sh -c"
1527     break
1528   elif test -f $ac_dir/install.sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install.sh -c"
1531     break
1532   elif test -f $ac_dir/shtool; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/shtool install -c"
1535     break
1536   fi
1537 done
1538 if test -z "$ac_aux_dir"; then
1539   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541    { (exit 1); exit 1; }; }
1542 fi
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547 # Make sure we can run config.sub.
1548 $ac_config_sub sun4 >/dev/null 2>&1 ||
1549   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1550 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1551    { (exit 1); exit 1; }; }
1552
1553 echo "$as_me:$LINENO: checking build system type" >&5
1554 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1555 if test "${ac_cv_build+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   ac_cv_build_alias=$build_alias
1559 test -z "$ac_cv_build_alias" &&
1560   ac_cv_build_alias=`$ac_config_guess`
1561 test -z "$ac_cv_build_alias" &&
1562   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1564    { (exit 1); exit 1; }; }
1565 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1566   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1567 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1568    { (exit 1); exit 1; }; }
1569
1570 fi
1571 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572 echo "${ECHO_T}$ac_cv_build" >&6
1573 build=$ac_cv_build
1574 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577
1578
1579 echo "$as_me:$LINENO: checking host system type" >&5
1580 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1581 if test "${ac_cv_host+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   ac_cv_host_alias=$host_alias
1585 test -z "$ac_cv_host_alias" &&
1586   ac_cv_host_alias=$ac_cv_build_alias
1587 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1594 echo "${ECHO_T}$ac_cv_host" >&6
1595 host=$ac_cv_host
1596 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking target system type" >&5
1602 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1603 if test "${ac_cv_target+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_target_alias=$target_alias
1607 test "x$ac_cv_target_alias" = "x" &&
1608   ac_cv_target_alias=$ac_cv_host_alias
1609 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1616 echo "${ECHO_T}$ac_cv_target" >&6
1617 target=$ac_cv_target
1618 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 # The aliases save the names the user supplied, while $host etc.
1624 # will get canonicalized.
1625 test -n "$target_alias" &&
1626   test "$program_prefix$program_suffix$program_transform_name" = \
1627     NONENONEs,x,x, &&
1628   program_prefix=${target_alias}-
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 fi
1671 if test -z "$ac_cv_prog_CC"; then
1672   ac_ct_CC=$CC
1673   # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$ac_ct_CC"; then
1681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   for ac_exec_ext in '' $ac_executable_extensions; do
1689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690     ac_cv_prog_ac_ct_CC="gcc"
1691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708   CC=$ac_ct_CC
1709 else
1710   CC="$ac_cv_prog_CC"
1711 fi
1712
1713 if test -z "$CC"; then
1714   if test -n "$ac_tool_prefix"; then
1715   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$CC"; then
1723   ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_CC="${ac_tool_prefix}cc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$ac_cv_prog_CC"; then
1752   ac_ct_CC=$CC
1753   # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_ac_ct_CC="cc"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   CC=$ac_ct_CC
1789 else
1790   CC="$ac_cv_prog_CC"
1791 fi
1792
1793 fi
1794 if test -z "$CC"; then
1795   # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805   ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814        ac_prog_rejected=yes
1815        continue
1816      fi
1817     ac_cv_prog_CC="cc"
1818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819     break 2
1820   fi
1821 done
1822 done
1823
1824 if test $ac_prog_rejected = yes; then
1825   # We found a bogon in the path, so make sure we never use it.
1826   set dummy $ac_cv_prog_CC
1827   shift
1828   if test $# != 0; then
1829     # We chose a different compiler from the bogus one.
1830     # However, it has the same basename, so the bogon will be chosen
1831     # first if we set CC to just the basename; use the full file name.
1832     shift
1833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1834   fi
1835 fi
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840   echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$CC"; then
1849   if test -n "$ac_tool_prefix"; then
1850   for ac_prog in cl
1851   do
1852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880   echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887     test -n "$CC" && break
1888   done
1889 fi
1890 if test -z "$CC"; then
1891   ac_ct_CC=$CC
1892   for ac_prog in cl
1893 do
1894   # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$ac_ct_CC"; then
1902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_ac_ct_CC="$ac_prog"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929   test -n "$ac_ct_CC" && break
1930 done
1931
1932   CC=$ac_ct_CC
1933 fi
1934
1935 fi
1936
1937
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946      "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949   (eval $ac_compiler --version </dev/null >&5) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954   (eval $ac_compiler -v </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959   (eval $ac_compiler -V </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 ac_clean_files_save=$ac_clean_files
1980 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1981 # Try to create an executable without -o first, disregard a.out.
1982 # It will help us diagnose broken compilers, and finding out an intuition
1983 # of exeext.
1984 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1985 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1986 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1988   (eval $ac_link_default) 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }; then
1992   # Find the output, starting from the most likely.  This scheme is
1993 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1994 # resort.
1995
1996 # Be careful to initialize this variable, since it used to be cached.
1997 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1998 ac_cv_exeext=
1999 # b.out is created by i960 compilers.
2000 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2001 do
2002   test -f "$ac_file" || continue
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2005         ;;
2006     conftest.$ac_ext )
2007         # This is the source file.
2008         ;;
2009     [ab].out )
2010         # We found the default executable, but exeext='' is most
2011         # certainly right.
2012         break;;
2013     *.* )
2014         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015         # FIXME: I believe we export ac_cv_exeext for Libtool,
2016         # but it would be cool to find out if it's true.  Does anybody
2017         # maintain Libtool? --akim.
2018         export ac_cv_exeext
2019         break;;
2020     * )
2021         break;;
2022   esac
2023 done
2024 else
2025   echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&2;}
2032    { (exit 77); exit 77; }; }
2033 fi
2034
2035 ac_exeext=$ac_cv_exeext
2036 echo "$as_me:$LINENO: result: $ac_file" >&5
2037 echo "${ECHO_T}$ac_file" >&6
2038
2039 # Check the compiler produces executables we can run.  If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2042 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2044 # If not cross compiling, check that we can run a simple program.
2045 if test "$cross_compiling" != yes; then
2046   if { ac_try='./$ac_file'
2047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048   (eval $ac_try) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; }; then
2052     cross_compiling=no
2053   else
2054     if test "$cross_compiling" = maybe; then
2055         cross_compiling=yes
2056     else
2057         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'.
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot run C compiled programs.
2061 If you meant to cross compile, use \`--host'.
2062 See \`config.log' for more details." >&2;}
2063    { (exit 1); exit 1; }; }
2064     fi
2065   fi
2066 fi
2067 echo "$as_me:$LINENO: result: yes" >&5
2068 echo "${ECHO_T}yes" >&6
2069
2070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2071 ac_clean_files=$ac_clean_files_save
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077 echo "${ECHO_T}$cross_compiling" >&6
2078
2079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082   (eval $ac_link) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; then
2086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2088 # work properly (i.e., refer to `conftest.exe'), while it won't with
2089 # `rm'.
2090 for ac_file in conftest.exe conftest conftest.*; do
2091   test -f "$ac_file" || continue
2092   case $ac_file in
2093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095           export ac_cv_exeext
2096           break;;
2097     * ) break;;
2098   esac
2099 done
2100 else
2101   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi
2107
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2111
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2114 ac_exeext=$EXEEXT
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.o conftest.obj
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }; then
2141   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2142   case $ac_file in
2143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145        break;;
2146   esac
2147 done
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2164 ac_objext=$OBJEXT
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176
2177 int
2178 main ()
2179 {
2180 #ifndef __GNUC__
2181        choke me
2182 #endif
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190   (eval $ac_compile) 2>conftest.er1
2191   ac_status=$?
2192   grep -v '^ *+' conftest.er1 >conftest.err
2193   rm -f conftest.er1
2194   cat conftest.err >&5
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -z "$ac_c_werror_flag"
2198                          || test ! -s conftest.err'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; } &&
2204          { ac_try='test -s conftest.$ac_objext'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210   ac_compiler_gnu=yes
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_compiler_gnu=no
2216 fi
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2219
2220 fi
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2226 CFLAGS="-g"
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h.  */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h.  */
2238
2239 int
2240 main ()
2241 {
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>conftest.er1
2250   ac_status=$?
2251   grep -v '^ *+' conftest.er1 >conftest.err
2252   rm -f conftest.er1
2253   cat conftest.err >&5
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); } &&
2256          { ac_try='test -z "$ac_c_werror_flag"
2257                          || test ! -s conftest.err'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   ac_cv_prog_cc_g=yes
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 ac_cv_prog_cc_g=no
2275 fi
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281   CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283   if test "$GCC" = yes; then
2284     CFLAGS="-g -O2"
2285   else
2286     CFLAGS="-g"
2287   fi
2288 else
2289   if test "$GCC" = yes; then
2290     CFLAGS="-O2"
2291   else
2292     CFLAGS=
2293   fi
2294 fi
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   ac_cv_prog_cc_stdc=no
2301 ac_save_CC=$CC
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308 #include <stdarg.h>
2309 #include <stdio.h>
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2316      char **p;
2317      int i;
2318 {
2319   return p[i];
2320 }
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2322 {
2323   char *s;
2324   va_list v;
2325   va_start (v,p);
2326   s = g (p, va_arg (v,int));
2327   va_end (v);
2328   return s;
2329 }
2330
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2332    function prototypes and stuff, but not '\xHH' hex character constants.
2333    These don't provoke an error unfortunately, instead are silently treated
2334    as 'x'.  The following induces an error, until -std1 is added to get
2335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2336    array size at least.  It's necessary to write '\x00'==0 to get something
2337    that's true only with -std1.  */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2339
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2344 int argc;
2345 char **argv;
2346 int
2347 main ()
2348 {
2349 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX                   -qlanglvl=ansi
2357 # Ultrix and OSF/1      -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2360 # SVR4                  -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2362 do
2363   CC="$ac_save_CC $ac_arg"
2364   rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>conftest.er1
2367   ac_status=$?
2368   grep -v '^ *+' conftest.er1 >conftest.err
2369   rm -f conftest.er1
2370   cat conftest.err >&5
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); } &&
2373          { ac_try='test -z "$ac_c_werror_flag"
2374                          || test ! -s conftest.err'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; } &&
2380          { ac_try='test -s conftest.$ac_objext'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; }; then
2386   ac_cv_prog_cc_stdc=$ac_arg
2387 break
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 fi
2393 rm -f conftest.err conftest.$ac_objext
2394 done
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2396 CC=$ac_save_CC
2397
2398 fi
2399
2400 case "x$ac_cv_prog_cc_stdc" in
2401   x|xno)
2402     echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2404   *)
2405     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407     CC="$CC $ac_cv_prog_cc_stdc" ;;
2408 esac
2409
2410 # Some people use a C++ compiler to compile C.  Since we use `exit',
2411 # in C++ we need to declare it.  In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #ifndef __cplusplus
2416   choke me
2417 #endif
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421   (eval $ac_compile) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag"
2429                          || test ! -s conftest.err'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   for ac_declaration in \
2442    '' \
2443    'extern "C" void std::exit (int) throw (); using std::exit;' \
2444    'extern "C" void std::exit (int); using std::exit;' \
2445    'extern "C" void exit (int) throw ();' \
2446    'extern "C" void exit (int);' \
2447    'void exit (int);'
2448 do
2449   cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455 $ac_declaration
2456 #include <stdlib.h>
2457 int
2458 main ()
2459 {
2460 exit (42);
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag"
2475                          || test ! -s conftest.err'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   :
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 continue
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501 $ac_declaration
2502 int
2503 main ()
2504 {
2505 exit (42);
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512   (eval $ac_compile) 2>conftest.er1
2513   ac_status=$?
2514   grep -v '^ *+' conftest.er1 >conftest.err
2515   rm -f conftest.er1
2516   cat conftest.err >&5
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -z "$ac_c_werror_flag"
2520                          || test ! -s conftest.err'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   break
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 rm -f conftest*
2541 if test -n "$ac_declaration"; then
2542   echo '#ifdef __cplusplus' >>confdefs.h
2543   echo $ac_declaration      >>confdefs.h
2544   echo '#endif'             >>confdefs.h
2545 fi
2546
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 fi
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560 echo "$as_me:$LINENO: checking for working volatile" >&5
2561 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
2562 if test "${ac_cv_c_volatile+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575
2576 volatile int x;
2577 int * volatile y;
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -z "$ac_c_werror_flag"
2592                          || test ! -s conftest.err'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_cv_c_volatile=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_cv_c_volatile=no
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
2614 echo "${ECHO_T}$ac_cv_c_volatile" >&6
2615 if test $ac_cv_c_volatile = no; then
2616
2617 cat >>confdefs.h <<\_ACEOF
2618 #define volatile
2619 _ACEOF
2620
2621 fi
2622
2623 # Check whether --enable-static or --disable-static was given.
2624 if test "${enable_static+set}" = set; then
2625   enableval="$enable_static"
2626   p=${PACKAGE-default}
2627     case $enableval in
2628     yes) enable_static=yes ;;
2629     no) enable_static=no ;;
2630     *)
2631      enable_static=no
2632       # Look at the argument we got.  We use all the common list separators.
2633       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2634       for pkg in $enableval; do
2635         IFS="$lt_save_ifs"
2636         if test "X$pkg" = "X$p"; then
2637           enable_static=yes
2638         fi
2639       done
2640       IFS="$lt_save_ifs"
2641       ;;
2642     esac
2643 else
2644   enable_static=no
2645 fi;
2646
2647
2648 # Check whether --enable-shared or --disable-shared was given.
2649 if test "${enable_shared+set}" = set; then
2650   enableval="$enable_shared"
2651   p=${PACKAGE-default}
2652     case $enableval in
2653     yes) enable_shared=yes ;;
2654     no) enable_shared=no ;;
2655     *)
2656       enable_shared=no
2657       # Look at the argument we got.  We use all the common list separators.
2658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2659       for pkg in $enableval; do
2660         IFS="$lt_save_ifs"
2661         if test "X$pkg" = "X$p"; then
2662           enable_shared=yes
2663         fi
2664       done
2665       IFS="$lt_save_ifs"
2666       ;;
2667     esac
2668 else
2669   enable_shared=yes
2670 fi;
2671
2672 # Check whether --enable-fast-install or --disable-fast-install was given.
2673 if test "${enable_fast_install+set}" = set; then
2674   enableval="$enable_fast_install"
2675   p=${PACKAGE-default}
2676     case $enableval in
2677     yes) enable_fast_install=yes ;;
2678     no) enable_fast_install=no ;;
2679     *)
2680       enable_fast_install=no
2681       # Look at the argument we got.  We use all the common list separators.
2682       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2683       for pkg in $enableval; do
2684         IFS="$lt_save_ifs"
2685         if test "X$pkg" = "X$p"; then
2686           enable_fast_install=yes
2687         fi
2688       done
2689       IFS="$lt_save_ifs"
2690       ;;
2691     esac
2692 else
2693   enable_fast_install=yes
2694 fi;
2695
2696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2698 if test "${lt_cv_path_SED+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   # Loop through the user's path and test for sed and gsed.
2702 # Then use that list of sed's as ones to test for truncation.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for lt_ac_prog in sed gsed; do
2709     for ac_exec_ext in '' $ac_executable_extensions; do
2710       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2711         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2712       fi
2713     done
2714   done
2715 done
2716 lt_ac_max=0
2717 lt_ac_count=0
2718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2719 # along with /bin/sed that truncates output.
2720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2721   test ! -f $lt_ac_sed && continue
2722   cat /dev/null > conftest.in
2723   lt_ac_count=0
2724   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2725   # Check for GNU sed and select it if it is found.
2726   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2727     lt_cv_path_SED=$lt_ac_sed
2728     break
2729   fi
2730   while true; do
2731     cat conftest.in conftest.in >conftest.tmp
2732     mv conftest.tmp conftest.in
2733     cp conftest.in conftest.nl
2734     echo >>conftest.nl
2735     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2736     cmp -s conftest.out conftest.nl || break
2737     # 10000 chars as input seems more than enough
2738     test $lt_ac_count -gt 10 && break
2739     lt_ac_count=`expr $lt_ac_count + 1`
2740     if test $lt_ac_count -gt $lt_ac_max; then
2741       lt_ac_max=$lt_ac_count
2742       lt_cv_path_SED=$lt_ac_sed
2743     fi
2744   done
2745 done
2746
2747 fi
2748
2749 SED=$lt_cv_path_SED
2750 echo "$as_me:$LINENO: result: $SED" >&5
2751 echo "${ECHO_T}$SED" >&6
2752
2753 echo "$as_me:$LINENO: checking for egrep" >&5
2754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2755 if test "${ac_cv_prog_egrep+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2759     then ac_cv_prog_egrep='grep -E'
2760     else ac_cv_prog_egrep='egrep'
2761     fi
2762 fi
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2765  EGREP=$ac_cv_prog_egrep
2766
2767
2768
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771   withval="$with_gnu_ld"
2772   test "$withval" = no || with_gnu_ld=yes
2773 else
2774   with_gnu_ld=no
2775 fi;
2776 ac_prog=ld
2777 if test "$GCC" = yes; then
2778   # Check if gcc -print-prog-name=ld gives a path.
2779   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2781   case $host in
2782   *-*-mingw*)
2783     # gcc leaves a trailing carriage return which upsets mingw
2784     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2785   *)
2786     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2787   esac
2788   case $ac_prog in
2789     # Accept absolute paths.
2790     [\\/]* | ?:[\\/]*)
2791       re_direlt='/[^/][^/]*/\.\./'
2792       # Canonicalize the pathname of ld
2793       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2794       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2796       done
2797       test -z "$LD" && LD="$ac_prog"
2798       ;;
2799   "")
2800     # If it fails, then pretend we aren't using GCC.
2801     ac_prog=ld
2802     ;;
2803   *)
2804     # If it is relative, then search for the first ld in PATH.
2805     with_gnu_ld=unknown
2806     ;;
2807   esac
2808 elif test "$with_gnu_ld" = yes; then
2809   echo "$as_me:$LINENO: checking for GNU ld" >&5
2810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2811 else
2812   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2814 fi
2815 if test "${lt_cv_path_LD+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -z "$LD"; then
2819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2820   for ac_dir in $PATH; do
2821     IFS="$lt_save_ifs"
2822     test -z "$ac_dir" && ac_dir=.
2823     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2824       lt_cv_path_LD="$ac_dir/$ac_prog"
2825       # Check to see if the program is GNU ld.  I'd rather use --version,
2826       # but apparently some GNU ld's only accept -v.
2827       # Break only if it was the GNU/non-GNU ld that we prefer.
2828       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2829       *GNU* | *'with BFD'*)
2830         test "$with_gnu_ld" != no && break
2831         ;;
2832       *)
2833         test "$with_gnu_ld" != yes && break
2834         ;;
2835       esac
2836     fi
2837   done
2838   IFS="$lt_save_ifs"
2839 else
2840   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2841 fi
2842 fi
2843
2844 LD="$lt_cv_path_LD"
2845 if test -n "$LD"; then
2846   echo "$as_me:$LINENO: result: $LD" >&5
2847 echo "${ECHO_T}$LD" >&6
2848 else
2849   echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2854    { (exit 1); exit 1; }; }
2855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2861 case `$LD -v 2>&1 </dev/null` in
2862 *GNU* | *'with BFD'*)
2863   lt_cv_prog_gnu_ld=yes
2864   ;;
2865 *)
2866   lt_cv_prog_gnu_ld=no
2867   ;;
2868 esac
2869 fi
2870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2872 with_gnu_ld=$lt_cv_prog_gnu_ld
2873
2874
2875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2877 if test "${lt_cv_ld_reload_flag+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   lt_cv_ld_reload_flag='-r'
2881 fi
2882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2884 reload_flag=$lt_cv_ld_reload_flag
2885 case $reload_flag in
2886 "" | " "*) ;;
2887 *) reload_flag=" $reload_flag" ;;
2888 esac
2889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2890 case $host_os in
2891   darwin*)
2892     if test "$GCC" = yes; then
2893       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2894     else
2895       reload_cmds='$LD$reload_flag -o $output$reload_objs'
2896     fi
2897     ;;
2898 esac
2899
2900 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2901 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2902 if test "${lt_cv_path_NM+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   if test -n "$NM"; then
2906   # Let the user override the test.
2907   lt_cv_path_NM="$NM"
2908 else
2909   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2910   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2911     IFS="$lt_save_ifs"
2912     test -z "$ac_dir" && ac_dir=.
2913     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2914     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2915       # Check to see if the nm accepts a BSD-compat flag.
2916       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2917       #   nm: unknown option "B" ignored
2918       # Tru64's nm complains that /dev/null is an invalid object file
2919       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2920       */dev/null* | *'Invalid file or object type'*)
2921         lt_cv_path_NM="$tmp_nm -B"
2922         break
2923         ;;
2924       *)
2925         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2926         */dev/null*)
2927           lt_cv_path_NM="$tmp_nm -p"
2928           break
2929           ;;
2930         *)
2931           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2932           continue # so that we can try to find one that supports BSD flags
2933           ;;
2934         esac
2935       esac
2936     fi
2937   done
2938   IFS="$lt_save_ifs"
2939   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2940 fi
2941 fi
2942 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2943 echo "${ECHO_T}$lt_cv_path_NM" >&6
2944 NM="$lt_cv_path_NM"
2945
2946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2948 LN_S=$as_ln_s
2949 if test "$LN_S" = "ln -s"; then
2950   echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6
2952 else
2953   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2954 echo "${ECHO_T}no, using $LN_S" >&6
2955 fi
2956
2957 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2958 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2959 if test "${lt_cv_deplibs_check_method+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   lt_cv_file_magic_cmd='$MAGIC_CMD'
2963 lt_cv_file_magic_test_file=
2964 lt_cv_deplibs_check_method='unknown'
2965 # Need to set the preceding variable on all platforms that support
2966 # interlibrary dependencies.
2967 # 'none' -- dependencies not supported.
2968 # `unknown' -- same as none, but documents that we really don't know.
2969 # 'pass_all' -- all dependencies passed with no checks.
2970 # 'test_compile' -- check by making test program.
2971 # 'file_magic [[regex]]' -- check by looking for files in library path
2972 # which responds to the $file_magic_cmd with a given extended regex.
2973 # If you have `file' or equivalent on your system and you're not sure
2974 # whether `pass_all' will *always* work, you probably want this one.
2975
2976 case $host_os in
2977 aix4* | aix5*)
2978   lt_cv_deplibs_check_method=pass_all
2979   ;;
2980
2981 beos*)
2982   lt_cv_deplibs_check_method=pass_all
2983   ;;
2984
2985 bsdi[45]*)
2986   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2987   lt_cv_file_magic_cmd='/usr/bin/file -L'
2988   lt_cv_file_magic_test_file=/shlib/libc.so
2989   ;;
2990
2991 cygwin*)
2992   # func_win32_libid is a shell function defined in ltmain.sh
2993   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2994   lt_cv_file_magic_cmd='func_win32_libid'
2995   ;;
2996
2997 mingw* | pw32*)
2998   # Base MSYS/MinGW do not provide the 'file' command needed by
2999   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3000   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3001   lt_cv_file_magic_cmd='$OBJDUMP -f'
3002   ;;
3003
3004 darwin* | rhapsody*)
3005   lt_cv_deplibs_check_method=pass_all
3006   ;;
3007
3008 freebsd* | kfreebsd*-gnu | dragonfly*)
3009   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3010     case $host_cpu in
3011     i*86 )
3012       # Not sure whether the presence of OpenBSD here was a mistake.
3013       # Let's accept both of them until this is cleared up.
3014       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3015       lt_cv_file_magic_cmd=/usr/bin/file
3016       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3017       ;;
3018     esac
3019   else
3020     lt_cv_deplibs_check_method=pass_all
3021   fi
3022   ;;
3023
3024 gnu*)
3025   lt_cv_deplibs_check_method=pass_all
3026   ;;
3027
3028 hpux10.20* | hpux11*)
3029   lt_cv_file_magic_cmd=/usr/bin/file
3030   case "$host_cpu" in
3031   ia64*)
3032     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3033     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3034     ;;
3035   hppa*64*)
3036     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]'
3037     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3038     ;;
3039   *)
3040     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3041     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3042     ;;
3043   esac
3044   ;;
3045
3046 irix5* | irix6* | nonstopux*)
3047   case $LD in
3048   *-32|*"-32 ") libmagic=32-bit;;
3049   *-n32|*"-n32 ") libmagic=N32;;
3050   *-64|*"-64 ") libmagic=64-bit;;
3051   *) libmagic=never-match;;
3052   esac
3053   lt_cv_deplibs_check_method=pass_all
3054   ;;
3055
3056 # This must be Linux ELF.
3057 linux*)
3058   lt_cv_deplibs_check_method=pass_all
3059   ;;
3060
3061 netbsd*)
3062   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3064   else
3065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3066   fi
3067   ;;
3068
3069 newos6*)
3070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3071   lt_cv_file_magic_cmd=/usr/bin/file
3072   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3073   ;;
3074
3075 nto-qnx*)
3076   lt_cv_deplibs_check_method=unknown
3077   ;;
3078
3079 openbsd*)
3080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3082   else
3083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3084   fi
3085   ;;
3086
3087 osf3* | osf4* | osf5*)
3088   lt_cv_deplibs_check_method=pass_all
3089   ;;
3090
3091 sco3.2v5*)
3092   lt_cv_deplibs_check_method=pass_all
3093   ;;
3094
3095 solaris*)
3096   lt_cv_deplibs_check_method=pass_all
3097   ;;
3098
3099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3100   case $host_vendor in
3101   motorola)
3102     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]'
3103     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3104     ;;
3105   ncr)
3106     lt_cv_deplibs_check_method=pass_all
3107     ;;
3108   sequent)
3109     lt_cv_file_magic_cmd='/bin/file'
3110     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3111     ;;
3112   sni)
3113     lt_cv_file_magic_cmd='/bin/file'
3114     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3115     lt_cv_file_magic_test_file=/lib/libc.so
3116     ;;
3117   siemens)
3118     lt_cv_deplibs_check_method=pass_all
3119     ;;
3120   esac
3121   ;;
3122
3123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3124   lt_cv_deplibs_check_method=pass_all
3125   ;;
3126 esac
3127
3128 fi
3129 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3131 file_magic_cmd=$lt_cv_file_magic_cmd
3132 deplibs_check_method=$lt_cv_deplibs_check_method
3133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3134
3135
3136
3137
3138 # If no C compiler was specified, use CC.
3139 LTCC=${LTCC-"$CC"}
3140
3141 # Allow CC to be a program name with arguments.
3142 compiler=$CC
3143
3144 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3145 if test "${enable_libtool_lock+set}" = set; then
3146   enableval="$enable_libtool_lock"
3147
3148 fi;
3149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3150
3151 # Some flags need to be propagated to the compiler or linker for good
3152 # libtool support.
3153 case $host in
3154 ia64-*-hpux*)
3155   # Find out which ABI we are using.
3156   echo 'int i;' > conftest.$ac_ext
3157   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158   (eval $ac_compile) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; then
3162     case `/usr/bin/file conftest.$ac_objext` in
3163     *ELF-32*)
3164       HPUX_IA64_MODE="32"
3165       ;;
3166     *ELF-64*)
3167       HPUX_IA64_MODE="64"
3168       ;;
3169     esac
3170   fi
3171   rm -rf conftest*
3172   ;;
3173 *-*-irix6*)
3174   # Find out which ABI we are using.
3175   echo '#line 3175 "configure"' > conftest.$ac_ext
3176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177   (eval $ac_compile) 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; then
3181    if test "$lt_cv_prog_gnu_ld" = yes; then
3182     case `/usr/bin/file conftest.$ac_objext` in
3183     *32-bit*)
3184       LD="${LD-ld} -melf32bsmip"
3185       ;;
3186     *N32*)
3187       LD="${LD-ld} -melf32bmipn32"
3188       ;;
3189     *64-bit*)
3190       LD="${LD-ld} -melf64bmip"
3191       ;;
3192     esac
3193    else
3194     case `/usr/bin/file conftest.$ac_objext` in
3195     *32-bit*)
3196       LD="${LD-ld} -32"
3197       ;;
3198     *N32*)
3199       LD="${LD-ld} -n32"
3200       ;;
3201     *64-bit*)
3202       LD="${LD-ld} -64"
3203       ;;
3204     esac
3205    fi
3206   fi
3207   rm -rf conftest*
3208   ;;
3209
3210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3211   # Find out which ABI we are using.
3212   echo 'int i;' > conftest.$ac_ext
3213   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214   (eval $ac_compile) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; then
3218     case "`/usr/bin/file conftest.o`" in
3219     *32-bit*)
3220       case $host in
3221         x86_64-*linux*)
3222           LD="${LD-ld} -m elf_i386"
3223           ;;
3224         ppc64-*linux*|powerpc64-*linux*)
3225           LD="${LD-ld} -m elf32ppclinux"
3226           ;;
3227         s390x-*linux*)
3228           LD="${LD-ld} -m elf_s390"
3229           ;;
3230         sparc64-*linux*)
3231           LD="${LD-ld} -m elf32_sparc"
3232           ;;
3233       esac
3234       ;;
3235     *64-bit*)
3236       case $host in
3237         x86_64-*linux*)
3238           LD="${LD-ld} -m elf_x86_64"
3239           ;;
3240         ppc*-*linux*|powerpc*-*linux*)
3241           LD="${LD-ld} -m elf64ppc"
3242           ;;
3243         s390*-*linux*)
3244           LD="${LD-ld} -m elf64_s390"
3245           ;;
3246         sparc*-*linux*)
3247           LD="${LD-ld} -m elf64_sparc"
3248           ;;
3249       esac
3250       ;;
3251     esac
3252   fi
3253   rm -rf conftest*
3254   ;;
3255
3256 *-*-sco3.2v5*)
3257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3258   SAVE_CFLAGS="$CFLAGS"
3259   CFLAGS="$CFLAGS -belf"
3260   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3261 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3262 if test "${lt_cv_cc_needs_belf+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271      cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.$ac_objext conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288   (eval $ac_link) 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -z "$ac_c_werror_flag"
3296                          || test ! -s conftest.err'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   lt_cv_cc_needs_belf=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 lt_cv_cc_needs_belf=no
3314 fi
3315 rm -f conftest.err conftest.$ac_objext \
3316       conftest$ac_exeext conftest.$ac_ext
3317      ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323 fi
3324 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3325 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3326   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3327     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3328     CFLAGS="$SAVE_CFLAGS"
3329   fi
3330   ;;
3331
3332 esac
3333
3334 need_locks="$enable_libtool_lock"
3335
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3346   CPP=
3347 fi
3348 if test -z "$CPP"; then
3349   if test "${ac_cv_prog_CPP+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352       # Double quotes because CPP needs to be expanded
3353     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3354     do
3355       ac_preproc_ok=false
3356 for ac_c_preproc_warn_flag in '' yes
3357 do
3358   # Use a header file that comes with gcc, so configuring glibc
3359   # with a fresh cross-compiler works.
3360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361   # <limits.h> exists even on freestanding compilers.
3362   # On the NeXT, cc -E runs the code through the compiler's parser,
3363   # not just through cpp. "Syntax error" is here to catch this case.
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 #ifdef __STDC__
3371 # include <limits.h>
3372 #else
3373 # include <assert.h>
3374 #endif
3375                      Syntax error
3376 _ACEOF
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } >/dev/null; then
3385   if test -s conftest.err; then
3386     ac_cpp_err=$ac_c_preproc_warn_flag
3387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388   else
3389     ac_cpp_err=
3390   fi
3391 else
3392   ac_cpp_err=yes
3393 fi
3394 if test -z "$ac_cpp_err"; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether non-existent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } >/dev/null; then
3423   if test -s conftest.err; then
3424     ac_cpp_err=$ac_c_preproc_warn_flag
3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   # Broken: success on invalid input.
3434 continue
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439   # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3442 fi
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   break
3450 fi
3451
3452     done
3453     ac_cv_prog_CPP=$CPP
3454
3455 fi
3456   CPP=$ac_cv_prog_CPP
3457 else
3458   ac_cv_prog_CPP=$CPP
3459 fi
3460 echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6
3462 ac_preproc_ok=false
3463 for ac_c_preproc_warn_flag in '' yes
3464 do
3465   # Use a header file that comes with gcc, so configuring glibc
3466   # with a fresh cross-compiler works.
3467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468   # <limits.h> exists even on freestanding compilers.
3469   # On the NeXT, cc -E runs the code through the compiler's parser,
3470   # not just through cpp. "Syntax error" is here to catch this case.
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482                      Syntax error
3483 _ACEOF
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } >/dev/null; then
3492   if test -s conftest.err; then
3493     ac_cpp_err=$ac_c_preproc_warn_flag
3494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495   else
3496     ac_cpp_err=
3497   fi
3498 else
3499   ac_cpp_err=yes
3500 fi
3501 if test -z "$ac_cpp_err"; then
3502   :
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507   # Broken: fails on valid input.
3508 continue
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511
3512   # OK, works on sane cases.  Now check whether non-existent headers
3513   # can be detected and how.
3514   cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } >/dev/null; then
3530   if test -s conftest.err; then
3531     ac_cpp_err=$ac_c_preproc_warn_flag
3532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533   else
3534     ac_cpp_err=
3535   fi
3536 else
3537   ac_cpp_err=yes
3538 fi
3539 if test -z "$ac_cpp_err"; then
3540   # Broken: success on invalid input.
3541 continue
3542 else
3543   echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546   # Passes both tests.
3547 ac_preproc_ok=:
3548 break
3549 fi
3550 rm -f conftest.err conftest.$ac_ext
3551
3552 done
3553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554 rm -f conftest.err conftest.$ac_ext
3555 if $ac_preproc_ok; then
3556   :
3557 else
3558   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&2;}
3562    { (exit 1); exit 1; }; }
3563 fi
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
3571
3572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3574 if test "${ac_cv_header_stdc+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583 #include <stdlib.h>
3584 #include <stdarg.h>
3585 #include <string.h>
3586 #include <float.h>
3587
3588 int
3589 main ()
3590 {
3591
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598   (eval $ac_compile) 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } &&
3605          { ac_try='test -z "$ac_c_werror_flag"
3606                          || test ! -s conftest.err'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; } &&
3612          { ac_try='test -s conftest.$ac_objext'
3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618   ac_cv_header_stdc=yes
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 ac_cv_header_stdc=no
3624 fi
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626
3627 if test $ac_cv_header_stdc = yes; then
3628   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #include <string.h>
3636
3637 _ACEOF
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639   $EGREP "memchr" >/dev/null 2>&1; then
3640   :
3641 else
3642   ac_cv_header_stdc=no
3643 fi
3644 rm -f conftest*
3645
3646 fi
3647
3648 if test $ac_cv_header_stdc = yes; then
3649   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdlib.h>
3657
3658 _ACEOF
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660   $EGREP "free" >/dev/null 2>&1; then
3661   :
3662 else
3663   ac_cv_header_stdc=no
3664 fi
3665 rm -f conftest*
3666
3667 fi
3668
3669 if test $ac_cv_header_stdc = yes; then
3670   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3671   if test "$cross_compiling" = yes; then
3672   :
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680 #include <ctype.h>
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3684 #else
3685 # define ISLOWER(c) \
3686                    (('a' <= (c) && (c) <= 'i') \
3687                      || ('j' <= (c) && (c) <= 'r') \
3688                      || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3690 #endif
3691
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3693 int
3694 main ()
3695 {
3696   int i;
3697   for (i = 0; i < 256; i++)
3698     if (XOR (islower (i), ISLOWER (i))
3699         || toupper (i) != TOUPPER (i))
3700       exit(2);
3701   exit (0);
3702 }
3703 _ACEOF
3704 rm -f conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706   (eval $ac_link) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711   (eval $ac_try) 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; }; then
3715   :
3716 else
3717   echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 ( exit $ac_status )
3722 ac_cv_header_stdc=no
3723 fi
3724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 fi
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3731
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3734 _ACEOF
3735
3736 fi
3737
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749                   inttypes.h stdint.h unistd.h
3750 do
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 $ac_includes_default
3764
3765 #include <$ac_header>
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769   (eval $ac_compile) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   eval "$as_ac_Header=yes"
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 eval "$as_ac_Header=no"
3795 fi
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3797 fi
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801   cat >>confdefs.h <<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 _ACEOF
3804
3805 fi
3806
3807 done
3808
3809
3810
3811 for ac_header in dlfcn.h
3812 do
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815   echo "$as_me:$LINENO: checking for $ac_header" >&5
3816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 fi
3820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3822 else
3823   # Is the header compilable?
3824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832 $ac_includes_default
3833 #include <$ac_header>
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837   (eval $ac_compile) 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -z "$ac_c_werror_flag"
3845                          || test ! -s conftest.err'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; } &&
3851          { ac_try='test -s conftest.$ac_objext'
3852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853   (eval $ac_try) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; }; then
3857   ac_header_compiler=yes
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 ac_header_compiler=no
3863 fi
3864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3866 echo "${ECHO_T}$ac_header_compiler" >&6
3867
3868 # Is the header present?
3869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877 #include <$ac_header>
3878 _ACEOF
3879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } >/dev/null; then
3887   if test -s conftest.err; then
3888     ac_cpp_err=$ac_c_preproc_warn_flag
3889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3890   else
3891     ac_cpp_err=
3892   fi
3893 else
3894   ac_cpp_err=yes
3895 fi
3896 if test -z "$ac_cpp_err"; then
3897   ac_header_preproc=yes
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902   ac_header_preproc=no
3903 fi
3904 rm -f conftest.err conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906 echo "${ECHO_T}$ac_header_preproc" >&6
3907
3908 # So?  What about this header?
3909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3910   yes:no: )
3911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3915     ac_header_preproc=yes
3916     ;;
3917   no:yes:* )
3918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3930     (
3931       cat <<\_ASBOX
3932 ## ------------------------------ ##
3933 ## Report this to des@freebsd.org ##
3934 ## ------------------------------ ##
3935 _ASBOX
3936     ) |
3937       sed "s/^/$as_me: WARNING:     /" >&2
3938     ;;
3939 esac
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   eval "$as_ac_Header=\$ac_header_preproc"
3946 fi
3947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3949
3950 fi
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952   cat >>confdefs.h <<_ACEOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3954 _ACEOF
3955
3956 fi
3957
3958 done
3959
3960 ac_ext=cc
3961 ac_cpp='$CXXCPP $CPPFLAGS'
3962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3965 if test -n "$ac_tool_prefix"; then
3966   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3967   do
3968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_CXX+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   if test -n "$CXX"; then
3976   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991
3992 fi
3993 fi
3994 CXX=$ac_cv_prog_CXX
3995 if test -n "$CXX"; then
3996   echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003     test -n "$CXX" && break
4004   done
4005 fi
4006 if test -z "$CXX"; then
4007   ac_ct_CXX=$CXX
4008   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4009 do
4010   # Extract the first word of "$ac_prog", so it can be a program name with args.
4011 set dummy $ac_prog; ac_word=$2
4012 echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   if test -n "$ac_ct_CXX"; then
4018   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025   for ac_exec_ext in '' $ac_executable_extensions; do
4026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027     ac_cv_prog_ac_ct_CXX="$ac_prog"
4028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029     break 2
4030   fi
4031 done
4032 done
4033
4034 fi
4035 fi
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6
4040 else
4041   echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4043 fi
4044
4045   test -n "$ac_ct_CXX" && break
4046 done
4047 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4048
4049   CXX=$ac_ct_CXX
4050 fi
4051
4052
4053 # Provide some information about the compiler.
4054 echo "$as_me:$LINENO:" \
4055      "checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4058   (eval $ac_compiler --version </dev/null >&5) 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }
4062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4063   (eval $ac_compiler -v </dev/null >&5) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4068   (eval $ac_compiler -V </dev/null >&5) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }
4072
4073 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4074 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4075 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088 #ifndef __GNUC__
4089        choke me
4090 #endif
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098   (eval $ac_compile) 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } &&
4105          { ac_try='test -z "$ac_cxx_werror_flag"
4106                          || test ! -s conftest.err'
4107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108   (eval $ac_try) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; } &&
4112          { ac_try='test -s conftest.$ac_objext'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; }; then
4118   ac_compiler_gnu=yes
4119 else
4120   echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 ac_compiler_gnu=no
4124 fi
4125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4127
4128 fi
4129 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4130 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4131 GXX=`test $ac_compiler_gnu = yes && echo yes`
4132 ac_test_CXXFLAGS=${CXXFLAGS+set}
4133 ac_save_CXXFLAGS=$CXXFLAGS
4134 CXXFLAGS="-g"
4135 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4136 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4137 if test "${ac_cv_prog_cxx_g+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_cxx_werror_flag"
4165                          || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_prog_cxx_g=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_prog_cxx_g=no
4183 fi
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4188 if test "$ac_test_CXXFLAGS" = set; then
4189   CXXFLAGS=$ac_save_CXXFLAGS
4190 elif test $ac_cv_prog_cxx_g = yes; then
4191   if test "$GXX" = yes; then
4192     CXXFLAGS="-g -O2"
4193   else
4194     CXXFLAGS="-g"
4195   fi
4196 else
4197   if test "$GXX" = yes; then
4198     CXXFLAGS="-O2"
4199   else
4200     CXXFLAGS=
4201   fi
4202 fi
4203 for ac_declaration in \
4204    '' \
4205    'extern "C" void std::exit (int) throw (); using std::exit;' \
4206    'extern "C" void std::exit (int); using std::exit;' \
4207    'extern "C" void exit (int) throw ();' \
4208    'extern "C" void exit (int);' \
4209    'void exit (int);'
4210 do
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 $ac_declaration
4218 #include <stdlib.h>
4219 int
4220 main ()
4221 {
4222 exit (42);
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229   (eval $ac_compile) 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -z "$ac_cxx_werror_flag"
4237                          || test ! -s conftest.err'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; } &&
4243          { ac_try='test -s conftest.$ac_objext'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   :
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 continue
4255 fi
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257   cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 $ac_declaration
4264 int
4265 main ()
4266 {
4267 exit (42);
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274   (eval $ac_compile) 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } &&
4281          { ac_try='test -z "$ac_cxx_werror_flag"
4282                          || test ! -s conftest.err'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; } &&
4288          { ac_try='test -s conftest.$ac_objext'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   break
4295 else
4296   echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 fi
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 done
4302 rm -f conftest*
4303 if test -n "$ac_declaration"; then
4304   echo '#ifdef __cplusplus' >>confdefs.h
4305   echo $ac_declaration      >>confdefs.h
4306   echo '#endif'             >>confdefs.h
4307 fi
4308
4309 ac_ext=cc
4310 ac_cpp='$CXXCPP $CPPFLAGS'
4311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4314
4315
4316
4317 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4318     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4319     (test "X$CXX" != "Xg++"))) ; then
4320   ac_ext=cc
4321 ac_cpp='$CXXCPP $CPPFLAGS'
4322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4325 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4326 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4327 if test -z "$CXXCPP"; then
4328   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331       # Double quotes because CXXCPP needs to be expanded
4332     for CXXCPP in "$CXX -E" "/lib/cpp"
4333     do
4334       ac_preproc_ok=false
4335 for ac_cxx_preproc_warn_flag in '' yes
4336 do
4337   # Use a header file that comes with gcc, so configuring glibc
4338   # with a fresh cross-compiler works.
4339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340   # <limits.h> exists even on freestanding compilers.
4341   # On the NeXT, cc -E runs the code through the compiler's parser,
4342   # not just through cpp. "Syntax error" is here to catch this case.
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 #ifdef __STDC__
4350 # include <limits.h>
4351 #else
4352 # include <assert.h>
4353 #endif
4354                      Syntax error
4355 _ACEOF
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } >/dev/null; then
4364   if test -s conftest.err; then
4365     ac_cpp_err=$ac_cxx_preproc_warn_flag
4366     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4367   else
4368     ac_cpp_err=
4369   fi
4370 else
4371   ac_cpp_err=yes
4372 fi
4373 if test -z "$ac_cpp_err"; then
4374   :
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379   # Broken: fails on valid input.
4380 continue
4381 fi
4382 rm -f conftest.err conftest.$ac_ext
4383
4384   # OK, works on sane cases.  Now check whether non-existent headers
4385   # can be detected and how.
4386   cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 #include <ac_nonexistent.h>
4393 _ACEOF
4394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } >/dev/null; then
4402   if test -s conftest.err; then
4403     ac_cpp_err=$ac_cxx_preproc_warn_flag
4404     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4405   else
4406     ac_cpp_err=
4407   fi
4408 else
4409   ac_cpp_err=yes
4410 fi
4411 if test -z "$ac_cpp_err"; then
4412   # Broken: success on invalid input.
4413 continue
4414 else
4415   echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418   # Passes both tests.
4419 ac_preproc_ok=:
4420 break
4421 fi
4422 rm -f conftest.err conftest.$ac_ext
4423
4424 done
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.err conftest.$ac_ext
4427 if $ac_preproc_ok; then
4428   break
4429 fi
4430
4431     done
4432     ac_cv_prog_CXXCPP=$CXXCPP
4433
4434 fi
4435   CXXCPP=$ac_cv_prog_CXXCPP
4436 else
4437   ac_cv_prog_CXXCPP=$CXXCPP
4438 fi
4439 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4440 echo "${ECHO_T}$CXXCPP" >&6
4441 ac_preproc_ok=false
4442 for ac_cxx_preproc_warn_flag in '' yes
4443 do
4444   # Use a header file that comes with gcc, so configuring glibc
4445   # with a fresh cross-compiler works.
4446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447   # <limits.h> exists even on freestanding compilers.
4448   # On the NeXT, cc -E runs the code through the compiler's parser,
4449   # not just through cpp. "Syntax error" is here to catch this case.
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #ifdef __STDC__
4457 # include <limits.h>
4458 #else
4459 # include <assert.h>
4460 #endif
4461                      Syntax error
4462 _ACEOF
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } >/dev/null; then
4471   if test -s conftest.err; then
4472     ac_cpp_err=$ac_cxx_preproc_warn_flag
4473     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4474   else
4475     ac_cpp_err=
4476   fi
4477 else
4478   ac_cpp_err=yes
4479 fi
4480 if test -z "$ac_cpp_err"; then
4481   :
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486   # Broken: fails on valid input.
4487 continue
4488 fi
4489 rm -f conftest.err conftest.$ac_ext
4490
4491   # OK, works on sane cases.  Now check whether non-existent headers
4492   # can be detected and how.
4493   cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499 #include <ac_nonexistent.h>
4500 _ACEOF
4501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4503   ac_status=$?
4504   grep -v '^ *+' conftest.er1 >conftest.err
4505   rm -f conftest.er1
4506   cat conftest.err >&5
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); } >/dev/null; then
4509   if test -s conftest.err; then
4510     ac_cpp_err=$ac_cxx_preproc_warn_flag
4511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4512   else
4513     ac_cpp_err=
4514   fi
4515 else
4516   ac_cpp_err=yes
4517 fi
4518 if test -z "$ac_cpp_err"; then
4519   # Broken: success on invalid input.
4520 continue
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525   # Passes both tests.
4526 ac_preproc_ok=:
4527 break
4528 fi
4529 rm -f conftest.err conftest.$ac_ext
4530
4531 done
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.err conftest.$ac_ext
4534 if $ac_preproc_ok; then
4535   :
4536 else
4537   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4540 See \`config.log' for more details." >&2;}
4541    { (exit 1); exit 1; }; }
4542 fi
4543
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549
4550 fi
4551
4552
4553 ac_ext=f
4554 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4555 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4559   do
4560     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_F77+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   if test -n "$F77"; then
4568   ac_cv_prog_F77="$F77" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_exec_ext in '' $ac_executable_extensions; do
4576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583
4584 fi
4585 fi
4586 F77=$ac_cv_prog_F77
4587 if test -n "$F77"; then
4588   echo "$as_me:$LINENO: result: $F77" >&5
4589 echo "${ECHO_T}$F77" >&6
4590 else
4591   echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 fi
4594
4595     test -n "$F77" && break
4596   done
4597 fi
4598 if test -z "$F77"; then
4599   ac_ct_F77=$F77
4600   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4601 do
4602   # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   if test -n "$ac_ct_F77"; then
4610   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_prog_ac_ct_F77="$ac_prog"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626 fi
4627 fi
4628 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4629 if test -n "$ac_ct_F77"; then
4630   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4631 echo "${ECHO_T}$ac_ct_F77" >&6
4632 else
4633   echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637   test -n "$ac_ct_F77" && break
4638 done
4639
4640   F77=$ac_ct_F77
4641 fi
4642
4643
4644 # Provide some information about the compiler.
4645 echo "$as_me:4645:" \
4646      "checking for Fortran 77 compiler version" >&5
4647 ac_compiler=`set X $ac_compile; echo $2`
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4649   (eval $ac_compiler --version </dev/null >&5) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }
4653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4654   (eval $ac_compiler -v </dev/null >&5) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }
4658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4659   (eval $ac_compiler -V </dev/null >&5) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }
4663 rm -f a.out
4664
4665 # If we don't use `.F' as extension, the preprocessor is not run on the
4666 # input file.  (Note that this only needs to work for GNU compilers.)
4667 ac_save_ext=$ac_ext
4668 ac_ext=F
4669 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4670 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4671 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   cat >conftest.$ac_ext <<_ACEOF
4675       program main
4676 #ifndef __GNUC__
4677        choke me
4678 #endif
4679
4680       end
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684   (eval $ac_compile) 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_f77_werror_flag"
4692                          || test ! -s conftest.err'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; } &&
4698          { ac_try='test -s conftest.$ac_objext'
4699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700   (eval $ac_try) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; }; then
4704   ac_compiler_gnu=yes
4705 else
4706   echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 ac_compiler_gnu=no
4710 fi
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4713
4714 fi
4715 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4716 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4717 ac_ext=$ac_save_ext
4718 ac_test_FFLAGS=${FFLAGS+set}
4719 ac_save_FFLAGS=$FFLAGS
4720 FFLAGS=
4721 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4722 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4723 if test "${ac_cv_prog_f77_g+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   FFLAGS=-g
4727 cat >conftest.$ac_ext <<_ACEOF
4728       program main
4729
4730       end
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734   (eval $ac_compile) 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -z "$ac_f77_werror_flag"
4742                          || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_prog_f77_g=yes
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ac_cv_prog_f77_g=no
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4765 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4766 if test "$ac_test_FFLAGS" = set; then
4767   FFLAGS=$ac_save_FFLAGS
4768 elif test $ac_cv_prog_f77_g = yes; then
4769   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4770     FFLAGS="-g -O2"
4771   else
4772     FFLAGS="-g"
4773   fi
4774 else
4775   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4776     FFLAGS="-O2"
4777   else
4778     FFLAGS=
4779   fi
4780 fi
4781
4782 G77=`test $ac_compiler_gnu = yes && echo yes`
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789
4790
4791 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4792
4793 # find the maximum length of command line arguments
4794 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4795 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4796 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799     i=0
4800   teststring="ABCD"
4801
4802   case $build_os in
4803   msdosdjgpp*)
4804     # On DJGPP, this test can blow up pretty badly due to problems in libc
4805     # (any single argument exceeding 2000 bytes causes a buffer overrun
4806     # during glob expansion).  Even if it were fixed, the result of this
4807     # check would be larger than it should be.
4808     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4809     ;;
4810
4811   gnu*)
4812     # Under GNU Hurd, this test is not required because there is
4813     # no limit to the length of command line arguments.
4814     # Libtool will interpret -1 as no limit whatsoever
4815     lt_cv_sys_max_cmd_len=-1;
4816     ;;
4817
4818   cygwin* | mingw*)
4819     # On Win9x/ME, this test blows up -- it succeeds, but takes
4820     # about 5 minutes as the teststring grows exponentially.
4821     # Worse, since 9x/ME are not pre-emptively multitasking,
4822     # you end up with a "frozen" computer, even though with patience
4823     # the test eventually succeeds (with a max line length of 256k).
4824     # Instead, let's just punt: use the minimum linelength reported by
4825     # all of the supported platforms: 8192 (on NT/2K/XP).
4826     lt_cv_sys_max_cmd_len=8192;
4827     ;;
4828
4829   amigaos*)
4830     # On AmigaOS with pdksh, this test takes hours, literally.
4831     # So we just punt and use a minimum line length of 8192.
4832     lt_cv_sys_max_cmd_len=8192;
4833     ;;
4834
4835   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4836     # This has been around since 386BSD, at least.  Likely further.
4837     if test -x /sbin/sysctl; then
4838       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839     elif test -x /usr/sbin/sysctl; then
4840       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4841     else
4842       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4843     fi
4844     # And add a safety zone
4845     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4846     ;;
4847   osf*)
4848     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4849     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4850     # nice to cause kernel panics so lets avoid the loop below.
4851     # First set a reasonable default.
4852     lt_cv_sys_max_cmd_len=16384
4853     #
4854     if test -x /sbin/sysconfig; then
4855       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4856         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4857       esac
4858     fi
4859     ;;
4860   *)
4861     # If test is not a shell built-in, we'll probably end up computing a
4862     # maximum length that is only half of the actual maximum length, but
4863     # we can't tell.
4864     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4865     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4866                = "XX$teststring") >/dev/null 2>&1 &&
4867             new_result=`expr "X$teststring" : ".*" 2>&1` &&
4868             lt_cv_sys_max_cmd_len=$new_result &&
4869             test $i != 17 # 1/2 MB should be enough
4870     do
4871       i=`expr $i + 1`
4872       teststring=$teststring$teststring
4873     done
4874     teststring=
4875     # Add a significant safety factor because C++ compilers can tack on massive
4876     # amounts of additional arguments before passing them to the linker.
4877     # It appears as though 1/2 is a usable value.
4878     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4879     ;;
4880   esac
4881
4882 fi
4883
4884 if test -n $lt_cv_sys_max_cmd_len ; then
4885   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4886 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4887 else
4888   echo "$as_me:$LINENO: result: none" >&5
4889 echo "${ECHO_T}none" >&6
4890 fi
4891
4892
4893
4894
4895 # Check for command to grab the raw symbol name followed by C symbol from nm.
4896 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4897 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4898 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901
4902 # These are sane defaults that work on at least a few old systems.
4903 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4904
4905 # Character class describing NM global symbol codes.
4906 symcode='[BCDEGRST]'
4907
4908 # Regexp to match symbols that can be accessed directly from C.
4909 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4910
4911 # Transform an extracted symbol line into a proper C declaration
4912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4913
4914 # Transform an extracted symbol line into symbol name and symbol address
4915 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'"
4916
4917 # Define system-specific variables.
4918 case $host_os in
4919 aix*)
4920   symcode='[BCDT]'
4921   ;;
4922 cygwin* | mingw* | pw32*)
4923   symcode='[ABCDGISTW]'
4924   ;;
4925 hpux*) # Its linker distinguishes data from code symbols
4926   if test "$host_cpu" = ia64; then
4927     symcode='[ABCDEGRST]'
4928   fi
4929   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4930   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'"
4931   ;;
4932 linux*)
4933   if test "$host_cpu" = ia64; then
4934     symcode='[ABCDGIRSTW]'
4935     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4936     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'"
4937   fi
4938   ;;
4939 irix* | nonstopux*)
4940   symcode='[BCDEGRST]'
4941   ;;
4942 osf*)
4943   symcode='[BCDEGQRST]'
4944   ;;
4945 solaris* | sysv5*)
4946   symcode='[BDRT]'
4947   ;;
4948 sysv4)
4949   symcode='[DFNSTU]'
4950   ;;
4951 esac
4952
4953 # Handle CRLF in mingw tool chain
4954 opt_cr=
4955 case $build_os in
4956 mingw*)
4957   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4958   ;;
4959 esac
4960
4961 # If we're using GNU nm, then use its standard symbol codes.
4962 case `$NM -V 2>&1` in
4963 *GNU* | *'with BFD'*)
4964   symcode='[ABCDGIRSTW]' ;;
4965 esac
4966
4967 # Try without a prefix undercore, then with it.
4968 for ac_symprfx in "" "_"; do
4969
4970   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4971   symxfrm="\\1 $ac_symprfx\\2 \\2"
4972
4973   # Write the raw and C identifiers.
4974   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4975
4976   # Check to see that the pipe works correctly.
4977   pipe_works=no
4978
4979   rm -f conftest*
4980   cat > conftest.$ac_ext <<EOF
4981 #ifdef __cplusplus
4982 extern "C" {
4983 #endif
4984 char nm_test_var;
4985 void nm_test_func(){}
4986 #ifdef __cplusplus
4987 }
4988 #endif
4989 int main(){nm_test_var='a';nm_test_func();return(0);}
4990 EOF
4991
4992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; then
4997     # Now try to grab the symbols.
4998     nlist=conftest.nm
4999     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5000   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } && test -s "$nlist"; then
5004       # Try sorting and uniquifying the output.
5005       if sort "$nlist" | uniq > "$nlist"T; then
5006         mv -f "$nlist"T "$nlist"
5007       else
5008         rm -f "$nlist"T
5009       fi
5010
5011       # Make sure that we snagged all the symbols we need.
5012       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5013         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5014           cat <<EOF > conftest.$ac_ext
5015 #ifdef __cplusplus
5016 extern "C" {
5017 #endif
5018
5019 EOF
5020           # Now generate the symbol file.
5021           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5022
5023           cat <<EOF >> conftest.$ac_ext
5024 #if defined (__STDC__) && __STDC__
5025 # define lt_ptr_t void *
5026 #else
5027 # define lt_ptr_t char *
5028 # define const
5029 #endif
5030
5031 /* The mapping between symbol names and symbols. */
5032 const struct {
5033   const char *name;
5034   lt_ptr_t address;
5035 }
5036 lt_preloaded_symbols[] =
5037 {
5038 EOF
5039           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5040           cat <<\EOF >> conftest.$ac_ext
5041   {0, (lt_ptr_t) 0}
5042 };
5043
5044 #ifdef __cplusplus
5045 }
5046 #endif
5047 EOF
5048           # Now try linking the two files.
5049           mv conftest.$ac_objext conftstm.$ac_objext
5050           lt_save_LIBS="$LIBS"
5051           lt_save_CFLAGS="$CFLAGS"
5052           LIBS="conftstm.$ac_objext"
5053           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5054           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5055   (eval $ac_link) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5059             pipe_works=yes
5060           fi
5061           LIBS="$lt_save_LIBS"
5062           CFLAGS="$lt_save_CFLAGS"
5063         else
5064           echo "cannot find nm_test_func in $nlist" >&5
5065         fi
5066       else
5067         echo "cannot find nm_test_var in $nlist" >&5
5068       fi
5069     else
5070       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5071     fi
5072   else
5073     echo "$progname: failed program was:" >&5
5074     cat conftest.$ac_ext >&5
5075   fi
5076   rm -f conftest* conftst*
5077
5078   # Do not use the global_symbol_pipe unless it works.
5079   if test "$pipe_works" = yes; then
5080     break
5081   else
5082     lt_cv_sys_global_symbol_pipe=
5083   fi
5084 done
5085
5086 fi
5087
5088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5089   lt_cv_sys_global_symbol_to_cdecl=
5090 fi
5091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5092   echo "$as_me:$LINENO: result: failed" >&5
5093 echo "${ECHO_T}failed" >&6
5094 else
5095   echo "$as_me:$LINENO: result: ok" >&5
5096 echo "${ECHO_T}ok" >&6
5097 fi
5098
5099 echo "$as_me:$LINENO: checking for objdir" >&5
5100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5101 if test "${lt_cv_objdir+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   rm -f .libs 2>/dev/null
5105 mkdir .libs 2>/dev/null
5106 if test -d .libs; then
5107   lt_cv_objdir=.libs
5108 else
5109   # MS-DOS does not allow filenames that begin with a dot.
5110   lt_cv_objdir=_libs
5111 fi
5112 rmdir .libs 2>/dev/null
5113 fi
5114 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5115 echo "${ECHO_T}$lt_cv_objdir" >&6
5116 objdir=$lt_cv_objdir
5117
5118
5119
5120
5121
5122 case $host_os in
5123 aix3*)
5124   # AIX sometimes has problems with the GCC collect2 program.  For some
5125   # reason, if we set the COLLECT_NAMES environment variable, the problems
5126   # vanish in a puff of smoke.
5127   if test "X${COLLECT_NAMES+set}" != Xset; then
5128     COLLECT_NAMES=
5129     export COLLECT_NAMES
5130   fi
5131   ;;
5132 esac
5133
5134 # Sed substitution that helps us do robust quoting.  It backslashifies
5135 # metacharacters that are still active within double-quoted strings.
5136 Xsed='sed -e s/^X//'
5137 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5138
5139 # Same as above, but do not quote variable references.
5140 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5141
5142 # Sed substitution to delay expansion of an escaped shell variable in a
5143 # double_quote_subst'ed string.
5144 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5145
5146 # Sed substitution to avoid accidental globbing in evaled expressions
5147 no_glob_subst='s/\*/\\\*/g'
5148
5149 # Constants:
5150 rm="rm -f"
5151
5152 # Global variables:
5153 default_ofile=libtool
5154 can_build_shared=yes
5155
5156 # All known linkers require a `.a' archive for static linking (except M$VC,
5157 # which needs '.lib').
5158 libext=a
5159 ltmain="$ac_aux_dir/ltmain.sh"
5160 ofile="$default_ofile"
5161 with_gnu_ld="$lt_cv_prog_gnu_ld"
5162
5163 if test -n "$ac_tool_prefix"; then
5164   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5165 set dummy ${ac_tool_prefix}ar; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_prog_AR+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   if test -n "$AR"; then
5172   ac_cv_prog_AR="$AR" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179   for ac_exec_ext in '' $ac_executable_extensions; do
5180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181     ac_cv_prog_AR="${ac_tool_prefix}ar"
5182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186 done
5187
5188 fi
5189 fi
5190 AR=$ac_cv_prog_AR
5191 if test -n "$AR"; then
5192   echo "$as_me:$LINENO: result: $AR" >&5
5193 echo "${ECHO_T}$AR" >&6
5194 else
5195   echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6
5197 fi
5198
5199 fi
5200 if test -z "$ac_cv_prog_AR"; then
5201   ac_ct_AR=$AR
5202   # Extract the first word of "ar", so it can be a program name with args.
5203 set dummy ar; ac_word=$2
5204 echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   if test -n "$ac_ct_AR"; then
5210   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217   for ac_exec_ext in '' $ac_executable_extensions; do
5218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219     ac_cv_prog_ac_ct_AR="ar"
5220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221     break 2
5222   fi
5223 done
5224 done
5225
5226   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5227 fi
5228 fi
5229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5230 if test -n "$ac_ct_AR"; then
5231   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5232 echo "${ECHO_T}$ac_ct_AR" >&6
5233 else
5234   echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5236 fi
5237
5238   AR=$ac_ct_AR
5239 else
5240   AR="$ac_cv_prog_AR"
5241 fi
5242
5243 if test -n "$ac_tool_prefix"; then
5244   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5246 echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248 if test "${ac_cv_prog_RANLIB+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   if test -n "$RANLIB"; then
5252   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257   IFS=$as_save_IFS
5258   test -z "$as_dir" && as_dir=.
5259   for ac_exec_ext in '' $ac_executable_extensions; do
5260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266 done
5267
5268 fi
5269 fi
5270 RANLIB=$ac_cv_prog_RANLIB
5271 if test -n "$RANLIB"; then
5272   echo "$as_me:$LINENO: result: $RANLIB" >&5
5273 echo "${ECHO_T}$RANLIB" >&6
5274 else
5275   echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278
5279 fi
5280 if test -z "$ac_cv_prog_RANLIB"; then
5281   ac_ct_RANLIB=$RANLIB
5282   # Extract the first word of "ranlib", so it can be a program name with args.
5283 set dummy ranlib; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   if test -n "$ac_ct_RANLIB"; then
5290   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295   IFS=$as_save_IFS
5296   test -z "$as_dir" && as_dir=.
5297   for ac_exec_ext in '' $ac_executable_extensions; do
5298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299     ac_cv_prog_ac_ct_RANLIB="ranlib"
5300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301     break 2
5302   fi
5303 done
5304 done
5305
5306   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5307 fi
5308 fi
5309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5310 if test -n "$ac_ct_RANLIB"; then
5311   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5312 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5313 else
5314   echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5316 fi
5317
5318   RANLIB=$ac_ct_RANLIB
5319 else
5320   RANLIB="$ac_cv_prog_RANLIB"
5321 fi
5322
5323 if test -n "$ac_tool_prefix"; then
5324   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5325 set dummy ${ac_tool_prefix}strip; ac_word=$2
5326 echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5328 if test "${ac_cv_prog_STRIP+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -n "$STRIP"; then
5332   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339   for ac_exec_ext in '' $ac_executable_extensions; do
5340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346 done
5347
5348 fi
5349 fi
5350 STRIP=$ac_cv_prog_STRIP
5351 if test -n "$STRIP"; then
5352   echo "$as_me:$LINENO: result: $STRIP" >&5
5353 echo "${ECHO_T}$STRIP" >&6
5354 else
5355   echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 fi
5358
5359 fi
5360 if test -z "$ac_cv_prog_STRIP"; then
5361   ac_ct_STRIP=$STRIP
5362   # Extract the first word of "strip", so it can be a program name with args.
5363 set dummy strip; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   if test -n "$ac_ct_STRIP"; then
5370   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377   for ac_exec_ext in '' $ac_executable_extensions; do
5378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379     ac_cv_prog_ac_ct_STRIP="strip"
5380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384 done
5385
5386   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5387 fi
5388 fi
5389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5390 if test -n "$ac_ct_STRIP"; then
5391   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5392 echo "${ECHO_T}$ac_ct_STRIP" >&6
5393 else
5394   echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5396 fi
5397
5398   STRIP=$ac_ct_STRIP
5399 else
5400   STRIP="$ac_cv_prog_STRIP"
5401 fi
5402
5403
5404 old_CC="$CC"
5405 old_CFLAGS="$CFLAGS"
5406
5407 # Set sane defaults for various variables
5408 test -z "$AR" && AR=ar
5409 test -z "$AR_FLAGS" && AR_FLAGS=cru
5410 test -z "$AS" && AS=as
5411 test -z "$CC" && CC=cc
5412 test -z "$LTCC" && LTCC=$CC
5413 test -z "$DLLTOOL" && DLLTOOL=dlltool
5414 test -z "$LD" && LD=ld
5415 test -z "$LN_S" && LN_S="ln -s"
5416 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5417 test -z "$NM" && NM=nm
5418 test -z "$SED" && SED=sed
5419 test -z "$OBJDUMP" && OBJDUMP=objdump
5420 test -z "$RANLIB" && RANLIB=:
5421 test -z "$STRIP" && STRIP=:
5422 test -z "$ac_objext" && ac_objext=o
5423
5424 # Determine commands to create old-style static archives.
5425 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5426 old_postinstall_cmds='chmod 644 $oldlib'
5427 old_postuninstall_cmds=
5428
5429 if test -n "$RANLIB"; then
5430   case $host_os in
5431   openbsd*)
5432     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5433     ;;
5434   *)
5435     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5436     ;;
5437   esac
5438   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5439 fi
5440
5441 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5442
5443 # Only perform the check for file, if the check method requires it
5444 case $deplibs_check_method in
5445 file_magic*)
5446   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5447     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5448 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   case $MAGIC_CMD in
5453 [\\/*] |  ?:[\\/]*)
5454   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5455   ;;
5456 *)
5457   lt_save_MAGIC_CMD="$MAGIC_CMD"
5458   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5459   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5460   for ac_dir in $ac_dummy; do
5461     IFS="$lt_save_ifs"
5462     test -z "$ac_dir" && ac_dir=.
5463     if test -f $ac_dir/${ac_tool_prefix}file; then
5464       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5465       if test -n "$file_magic_test_file"; then
5466         case $deplibs_check_method in
5467         "file_magic "*)
5468           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5469           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5470           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5471             $EGREP "$file_magic_regex" > /dev/null; then
5472             :
5473           else
5474             cat <<EOF 1>&2
5475
5476 *** Warning: the command libtool uses to detect shared libraries,
5477 *** $file_magic_cmd, produces output that libtool cannot recognize.
5478 *** The result is that libtool may fail to recognize shared libraries
5479 *** as such.  This will affect the creation of libtool libraries that
5480 *** depend on shared libraries, but programs linked with such libtool
5481 *** libraries will work regardless of this problem.  Nevertheless, you
5482 *** may want to report the problem to your system manager and/or to
5483 *** bug-libtool@gnu.org
5484
5485 EOF
5486           fi ;;
5487         esac
5488       fi
5489       break
5490     fi
5491   done
5492   IFS="$lt_save_ifs"
5493   MAGIC_CMD="$lt_save_MAGIC_CMD"
5494   ;;
5495 esac
5496 fi
5497
5498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5499 if test -n "$MAGIC_CMD"; then
5500   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5501 echo "${ECHO_T}$MAGIC_CMD" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507 if test -z "$lt_cv_path_MAGIC_CMD"; then
5508   if test -n "$ac_tool_prefix"; then
5509     echo "$as_me:$LINENO: checking for file" >&5
5510 echo $ECHO_N "checking for file... $ECHO_C" >&6
5511 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   case $MAGIC_CMD in
5515 [\\/*] |  ?:[\\/]*)
5516   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5517   ;;
5518 *)
5519   lt_save_MAGIC_CMD="$MAGIC_CMD"
5520   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5521   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5522   for ac_dir in $ac_dummy; do
5523     IFS="$lt_save_ifs"
5524     test -z "$ac_dir" && ac_dir=.
5525     if test -f $ac_dir/file; then
5526       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5527       if test -n "$file_magic_test_file"; then
5528         case $deplibs_check_method in
5529         "file_magic "*)
5530           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5531           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5532           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5533             $EGREP "$file_magic_regex" > /dev/null; then
5534             :
5535           else
5536             cat <<EOF 1>&2
5537
5538 *** Warning: the command libtool uses to detect shared libraries,
5539 *** $file_magic_cmd, produces output that libtool cannot recognize.
5540 *** The result is that libtool may fail to recognize shared libraries
5541 *** as such.  This will affect the creation of libtool libraries that
5542 *** depend on shared libraries, but programs linked with such libtool
5543 *** libraries will work regardless of this problem.  Nevertheless, you
5544 *** may want to report the problem to your system manager and/or to
5545 *** bug-libtool@gnu.org
5546
5547 EOF
5548           fi ;;
5549         esac
5550       fi
5551       break
5552     fi
5553   done
5554   IFS="$lt_save_ifs"
5555   MAGIC_CMD="$lt_save_MAGIC_CMD"
5556   ;;
5557 esac
5558 fi
5559
5560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5561 if test -n "$MAGIC_CMD"; then
5562   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5563 echo "${ECHO_T}$MAGIC_CMD" >&6
5564 else
5565   echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569   else
5570     MAGIC_CMD=:
5571   fi
5572 fi
5573
5574   fi
5575   ;;
5576 esac
5577
5578 enable_dlopen=no
5579 enable_win32_dll=no
5580
5581 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5582 if test "${enable_libtool_lock+set}" = set; then
5583   enableval="$enable_libtool_lock"
5584
5585 fi;
5586 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5587
5588
5589 # Check whether --with-pic or --without-pic was given.
5590 if test "${with_pic+set}" = set; then
5591   withval="$with_pic"
5592   pic_mode="$withval"
5593 else
5594   pic_mode=default
5595 fi;
5596 test -z "$pic_mode" && pic_mode=default
5597
5598 # Use C for the default configuration in the libtool script
5599 tagname=
5600 lt_save_CC="$CC"
5601 ac_ext=c
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606
5607
5608 # Source file extension for C test sources.
5609 ac_ext=c
5610
5611 # Object file extension for compiled C test sources.
5612 objext=o
5613 objext=$objext
5614
5615 # Code to be used in simple compile tests
5616 lt_simple_compile_test_code="int some_variable = 0;\n"
5617
5618 # Code to be used in simple link tests
5619 lt_simple_link_test_code='int main(){return(0);}\n'
5620
5621
5622 # If no C compiler was specified, use CC.
5623 LTCC=${LTCC-"$CC"}
5624
5625 # Allow CC to be a program name with arguments.
5626 compiler=$CC
5627
5628
5629 #
5630 # Check for any special shared library compilation flags.
5631 #
5632 lt_prog_cc_shlib=
5633 if test "$GCC" = no; then
5634   case $host_os in
5635   sco3.2v5*)
5636     lt_prog_cc_shlib='-belf'
5637     ;;
5638   esac
5639 fi
5640 if test -n "$lt_prog_cc_shlib"; then
5641   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5642 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5643   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5644   else
5645     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5646 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5647     lt_cv_prog_cc_can_build_shared=no
5648   fi
5649 fi
5650
5651
5652 #
5653 # Check to make sure the static flag actually works.
5654 #
5655 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5656 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5657 if test "${lt_prog_compiler_static_works+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   lt_prog_compiler_static_works=no
5661    save_LDFLAGS="$LDFLAGS"
5662    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5663    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5664    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5665      # The compiler can only warn and ignore the option if not recognized
5666      # So say no if there are warnings
5667      if test -s conftest.err; then
5668        # Append any errors to the config.log.
5669        cat conftest.err 1>&5
5670      else
5671        lt_prog_compiler_static_works=yes
5672      fi
5673    fi
5674    $rm conftest*
5675    LDFLAGS="$save_LDFLAGS"
5676
5677 fi
5678 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5679 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5680
5681 if test x"$lt_prog_compiler_static_works" = xyes; then
5682     :
5683 else
5684     lt_prog_compiler_static=
5685 fi
5686
5687
5688
5689
5690 lt_prog_compiler_no_builtin_flag=
5691
5692 if test "$GCC" = yes; then
5693   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5694
5695
5696 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5697 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   lt_cv_prog_compiler_rtti_exceptions=no
5702   ac_outfile=conftest.$ac_objext
5703    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5704    lt_compiler_flag="-fno-rtti -fno-exceptions"
5705    # Insert the option either (1) after the last *FLAGS variable, or
5706    # (2) before a word containing "conftest.", or (3) at the end.
5707    # Note that $ac_compile itself does not contain backslashes and begins
5708    # with a dollar sign (not a hyphen), so the echo should work correctly.
5709    # The option is referenced via a variable to avoid confusing sed.
5710    lt_compile=`echo "$ac_compile" | $SED \
5711    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5713    -e 's:$: $lt_compiler_flag:'`
5714    (eval echo "\"\$as_me:5714: $lt_compile\"" >&5)
5715    (eval "$lt_compile" 2>conftest.err)
5716    ac_status=$?
5717    cat conftest.err >&5
5718    echo "$as_me:5718: \$? = $ac_status" >&5
5719    if (exit $ac_status) && test -s "$ac_outfile"; then
5720      # The compiler can only warn and ignore the option if not recognized
5721      # So say no if there are warnings
5722      if test ! -s conftest.err; then
5723        lt_cv_prog_compiler_rtti_exceptions=yes
5724      fi
5725    fi
5726    $rm conftest*
5727
5728 fi
5729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5731
5732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5733     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5734 else
5735     :
5736 fi
5737
5738 fi
5739
5740 lt_prog_compiler_wl=
5741 lt_prog_compiler_pic=
5742 lt_prog_compiler_static=
5743
5744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5746
5747   if test "$GCC" = yes; then
5748     lt_prog_compiler_wl='-Wl,'
5749     lt_prog_compiler_static='-static'
5750
5751     case $host_os in
5752       aix*)
5753       # All AIX code is PIC.
5754       if test "$host_cpu" = ia64; then
5755         # AIX 5 now supports IA64 processor
5756         lt_prog_compiler_static='-Bstatic'
5757       fi
5758       ;;
5759
5760     amigaos*)
5761       # FIXME: we need at least 68020 code to build shared libraries, but
5762       # adding the `-m68020' flag to GCC prevents building anything better,
5763       # like `-m68040'.
5764       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5765       ;;
5766
5767     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5768       # PIC is the default for these OSes.
5769       ;;
5770
5771     mingw* | pw32* | os2*)
5772       # This hack is so that the source file can tell whether it is being
5773       # built for inclusion in a dll (and should export symbols for example).
5774       lt_prog_compiler_pic='-DDLL_EXPORT'
5775       ;;
5776
5777     darwin* | rhapsody*)
5778       # PIC is the default on this platform
5779       # Common symbols not allowed in MH_DYLIB files
5780       lt_prog_compiler_pic='-fno-common'
5781       ;;
5782
5783     msdosdjgpp*)
5784       # Just because we use GCC doesn't mean we suddenly get shared libraries
5785       # on systems that don't support them.
5786       lt_prog_compiler_can_build_shared=no
5787       enable_shared=no
5788       ;;
5789
5790     sysv4*MP*)
5791       if test -d /usr/nec; then
5792         lt_prog_compiler_pic=-Kconform_pic
5793       fi
5794       ;;
5795
5796     hpux*)
5797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5798       # not for PA HP-UX.
5799       case "$host_cpu" in
5800       hppa*64*|ia64*)
5801         # +Z the default
5802         ;;
5803       *)
5804         lt_prog_compiler_pic='-fPIC'
5805         ;;
5806       esac
5807       ;;
5808
5809     *)
5810       lt_prog_compiler_pic='-fPIC'
5811       ;;
5812     esac
5813   else
5814     # PORTME Check for flag to pass linker flags through the system compiler.
5815     case $host_os in
5816     aix*)
5817       lt_prog_compiler_wl='-Wl,'
5818       if test "$host_cpu" = ia64; then
5819         # AIX 5 now supports IA64 processor
5820         lt_prog_compiler_static='-Bstatic'
5821       else
5822         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5823       fi
5824       ;;
5825       darwin*)
5826         # PIC is the default on this platform
5827         # Common symbols not allowed in MH_DYLIB files
5828        case "$cc_basename" in
5829          xlc*)
5830          lt_prog_compiler_pic='-qnocommon'
5831          lt_prog_compiler_wl='-Wl,'
5832          ;;
5833        esac
5834        ;;
5835
5836     mingw* | pw32* | os2*)
5837       # This hack is so that the source file can tell whether it is being
5838       # built for inclusion in a dll (and should export symbols for example).
5839       lt_prog_compiler_pic='-DDLL_EXPORT'
5840       ;;
5841
5842     hpux9* | hpux10* | hpux11*)
5843       lt_prog_compiler_wl='-Wl,'
5844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5845       # not for PA HP-UX.
5846       case "$host_cpu" in
5847       hppa*64*|ia64*)
5848         # +Z the default
5849         ;;
5850       *)
5851         lt_prog_compiler_pic='+Z'
5852         ;;
5853       esac
5854       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5855       lt_prog_compiler_static='${wl}-a ${wl}archive'
5856       ;;
5857
5858     irix5* | irix6* | nonstopux*)
5859       lt_prog_compiler_wl='-Wl,'
5860       # PIC (with -KPIC) is the default.
5861       lt_prog_compiler_static='-non_shared'
5862       ;;
5863
5864     newsos6)
5865       lt_prog_compiler_pic='-KPIC'
5866       lt_prog_compiler_static='-Bstatic'
5867       ;;
5868
5869     linux*)
5870       case $cc_basename in
5871       icc* | ecc*)
5872         lt_prog_compiler_wl='-Wl,'
5873         lt_prog_compiler_pic='-KPIC'
5874         lt_prog_compiler_static='-static'
5875         ;;
5876       pgcc | pgf77 | pgf90)
5877         # Portland Group compilers (*not* the Pentium gcc compiler,
5878         # which looks to be a dead project)
5879         lt_prog_compiler_wl='-Wl,'
5880         lt_prog_compiler_pic='-fpic'
5881         lt_prog_compiler_static='-static'
5882         ;;
5883       ccc*)
5884         lt_prog_compiler_wl='-Wl,'
5885         # All Alpha code is PIC.
5886         lt_prog_compiler_static='-non_shared'
5887         ;;
5888       esac
5889       ;;
5890
5891     osf3* | osf4* | osf5*)
5892       lt_prog_compiler_wl='-Wl,'
5893       # All OSF/1 code is PIC.
5894       lt_prog_compiler_static='-non_shared'
5895       ;;
5896
5897     sco3.2v5*)
5898       lt_prog_compiler_pic='-Kpic'
5899       lt_prog_compiler_static='-dn'
5900       ;;
5901
5902     solaris*)
5903       lt_prog_compiler_wl='-Wl,'
5904       lt_prog_compiler_pic='-KPIC'
5905       lt_prog_compiler_static='-Bstatic'
5906       ;;
5907
5908     sunos4*)
5909       lt_prog_compiler_wl='-Qoption ld '
5910       lt_prog_compiler_pic='-PIC'
5911       lt_prog_compiler_static='-Bstatic'
5912       ;;
5913
5914     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5915       lt_prog_compiler_wl='-Wl,'
5916       lt_prog_compiler_pic='-KPIC'
5917       lt_prog_compiler_static='-Bstatic'
5918       ;;
5919
5920     sysv4*MP*)
5921       if test -d /usr/nec ;then
5922         lt_prog_compiler_pic='-Kconform_pic'
5923         lt_prog_compiler_static='-Bstatic'
5924       fi
5925       ;;
5926
5927     unicos*)
5928       lt_prog_compiler_wl='-Wl,'
5929       lt_prog_compiler_can_build_shared=no
5930       ;;
5931
5932     uts4*)
5933       lt_prog_compiler_pic='-pic'
5934       lt_prog_compiler_static='-Bstatic'
5935       ;;
5936
5937     *)
5938       lt_prog_compiler_can_build_shared=no
5939       ;;
5940     esac
5941   fi
5942
5943 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5944 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5945
5946 #
5947 # Check to make sure the PIC flag actually works.
5948 #
5949 if test -n "$lt_prog_compiler_pic"; then
5950
5951 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5952 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5953 if test "${lt_prog_compiler_pic_works+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   lt_prog_compiler_pic_works=no
5957   ac_outfile=conftest.$ac_objext
5958    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5959    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5960    # Insert the option either (1) after the last *FLAGS variable, or
5961    # (2) before a word containing "conftest.", or (3) at the end.
5962    # Note that $ac_compile itself does not contain backslashes and begins
5963    # with a dollar sign (not a hyphen), so the echo should work correctly.
5964    # The option is referenced via a variable to avoid confusing sed.
5965    lt_compile=`echo "$ac_compile" | $SED \
5966    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5968    -e 's:$: $lt_compiler_flag:'`
5969    (eval echo "\"\$as_me:5969: $lt_compile\"" >&5)
5970    (eval "$lt_compile" 2>conftest.err)
5971    ac_status=$?
5972    cat conftest.err >&5
5973    echo "$as_me:5973: \$? = $ac_status" >&5
5974    if (exit $ac_status) && test -s "$ac_outfile"; then
5975      # The compiler can only warn and ignore the option if not recognized
5976      # So say no if there are warnings
5977      if test ! -s conftest.err; then
5978        lt_prog_compiler_pic_works=yes
5979      fi
5980    fi
5981    $rm conftest*
5982
5983 fi
5984 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5985 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5986
5987 if test x"$lt_prog_compiler_pic_works" = xyes; then
5988     case $lt_prog_compiler_pic in
5989      "" | " "*) ;;
5990      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5991      esac
5992 else
5993     lt_prog_compiler_pic=
5994      lt_prog_compiler_can_build_shared=no
5995 fi
5996
5997 fi
5998 case "$host_os" in
5999   # For platforms which do not support PIC, -DPIC is meaningless:
6000   *djgpp*)
6001     lt_prog_compiler_pic=
6002     ;;
6003   *)
6004     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6005     ;;
6006 esac
6007
6008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   lt_cv_prog_compiler_c_o=no
6014    $rm -r conftest 2>/dev/null
6015    mkdir conftest
6016    cd conftest
6017    mkdir out
6018    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6019
6020    lt_compiler_flag="-o out/conftest2.$ac_objext"
6021    # Insert the option either (1) after the last *FLAGS variable, or
6022    # (2) before a word containing "conftest.", or (3) at the end.
6023    # Note that $ac_compile itself does not contain backslashes and begins
6024    # with a dollar sign (not a hyphen), so the echo should work correctly.
6025    lt_compile=`echo "$ac_compile" | $SED \
6026    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6028    -e 's:$: $lt_compiler_flag:'`
6029    (eval echo "\"\$as_me:6029: $lt_compile\"" >&5)
6030    (eval "$lt_compile" 2>out/conftest.err)
6031    ac_status=$?
6032    cat out/conftest.err >&5
6033    echo "$as_me:6033: \$? = $ac_status" >&5
6034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6035    then
6036      # The compiler can only warn and ignore the option if not recognized
6037      # So say no if there are warnings
6038      if test ! -s out/conftest.err; then
6039        lt_cv_prog_compiler_c_o=yes
6040      fi
6041    fi
6042    chmod u+w .
6043    $rm conftest*
6044    # SGI C++ compiler will create directory out/ii_files/ for
6045    # template instantiation
6046    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6047    $rm out/* && rmdir out
6048    cd ..
6049    rmdir conftest
6050    $rm conftest*
6051
6052 fi
6053 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6055
6056
6057 hard_links="nottested"
6058 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6059   # do not overwrite the value of need_locks provided by the user
6060   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6061 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6062   hard_links=yes
6063   $rm conftest*
6064   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6065   touch conftest.a
6066   ln conftest.a conftest.b 2>&5 || hard_links=no
6067   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6068   echo "$as_me:$LINENO: result: $hard_links" >&5
6069 echo "${ECHO_T}$hard_links" >&6
6070   if test "$hard_links" = no; then
6071     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6072 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6073     need_locks=warn
6074   fi
6075 else
6076   need_locks=no
6077 fi
6078
6079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6081
6082   runpath_var=
6083   allow_undefined_flag=
6084   enable_shared_with_static_runtimes=no
6085   archive_cmds=
6086   archive_expsym_cmds=
6087   old_archive_From_new_cmds=
6088   old_archive_from_expsyms_cmds=
6089   export_dynamic_flag_spec=
6090   whole_archive_flag_spec=
6091   thread_safe_flag_spec=
6092   hardcode_libdir_flag_spec=
6093   hardcode_libdir_flag_spec_ld=
6094   hardcode_libdir_separator=
6095   hardcode_direct=no
6096   hardcode_minus_L=no
6097   hardcode_shlibpath_var=unsupported
6098   link_all_deplibs=unknown
6099   hardcode_automatic=no
6100   module_cmds=
6101   module_expsym_cmds=
6102   always_export_symbols=no
6103   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6104   # include_expsyms should be a list of space-separated symbols to be *always*
6105   # included in the symbol list
6106   include_expsyms=
6107   # exclude_expsyms can be an extended regexp of symbols to exclude
6108   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6109   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6110   # as well as any symbol that contains `d'.
6111   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6112   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6113   # platforms (ab)use it in PIC code, but their linkers get confused if
6114   # the symbol is explicitly referenced.  Since portable code cannot
6115   # rely on this symbol name, it's probably fine to never include it in
6116   # preloaded symbol tables.
6117   extract_expsyms_cmds=
6118
6119   case $host_os in
6120   cygwin* | mingw* | pw32*)
6121     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6122     # When not using gcc, we currently assume that we are using
6123     # Microsoft Visual C++.
6124     if test "$GCC" != yes; then
6125       with_gnu_ld=no
6126     fi
6127     ;;
6128   openbsd*)
6129     with_gnu_ld=no
6130     ;;
6131   esac
6132
6133   ld_shlibs=yes
6134   if test "$with_gnu_ld" = yes; then
6135     # If archive_cmds runs LD, not CC, wlarc should be empty
6136     wlarc='${wl}'
6137
6138     # See if GNU ld supports shared libraries.
6139     case $host_os in
6140     aix3* | aix4* | aix5*)
6141       # On AIX/PPC, the GNU linker is very broken
6142       if test "$host_cpu" != ia64; then
6143         ld_shlibs=no
6144         cat <<EOF 1>&2
6145
6146 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6147 *** to be unable to reliably create shared libraries on AIX.
6148 *** Therefore, libtool is disabling shared libraries support.  If you
6149 *** really care for shared libraries, you may want to modify your PATH
6150 *** so that a non-GNU linker is found, and then restart.
6151
6152 EOF
6153       fi
6154       ;;
6155
6156     amigaos*)
6157       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)'
6158       hardcode_libdir_flag_spec='-L$libdir'
6159       hardcode_minus_L=yes
6160
6161       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6162       # that the semantics of dynamic libraries on AmigaOS, at least up
6163       # to version 4, is to share data among multiple programs linked
6164       # with the same dynamic library.  Since this doesn't match the
6165       # behavior of shared libraries on other platforms, we can't use
6166       # them.
6167       ld_shlibs=no
6168       ;;
6169
6170     beos*)
6171       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6172         allow_undefined_flag=unsupported
6173         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6174         # support --undefined.  This deserves some investigation.  FIXME
6175         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6176       else
6177         ld_shlibs=no
6178       fi
6179       ;;
6180
6181     cygwin* | mingw* | pw32*)
6182       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6183       # as there is no search path for DLLs.
6184       hardcode_libdir_flag_spec='-L$libdir'
6185       allow_undefined_flag=unsupported
6186       always_export_symbols=no
6187       enable_shared_with_static_runtimes=yes
6188       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6189
6190       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6192         # If the export-symbols file already is a .def file (1st line
6193         # is EXPORTS), use it as is; otherwise, prepend...
6194         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6195           cp $export_symbols $output_objdir/$soname.def;
6196         else
6197           echo EXPORTS > $output_objdir/$soname.def;
6198           cat $export_symbols >> $output_objdir/$soname.def;
6199         fi~
6200         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6201       else
6202         ld_shlibs=no
6203       fi
6204       ;;
6205
6206     netbsd*)
6207       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6208         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6209         wlarc=
6210       else
6211         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6212         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6213       fi
6214       ;;
6215
6216     solaris* | sysv5*)
6217       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6218         ld_shlibs=no
6219         cat <<EOF 1>&2
6220
6221 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6222 *** create shared libraries on Solaris systems.  Therefore, libtool
6223 *** is disabling shared libraries support.  We urge you to upgrade GNU
6224 *** binutils to release 2.9.1 or newer.  Another option is to modify
6225 *** your PATH or compiler configuration so that the native linker is
6226 *** used, and then restart.
6227
6228 EOF
6229       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6231         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6232       else
6233         ld_shlibs=no
6234       fi
6235       ;;
6236
6237     sunos4*)
6238       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6239       wlarc=
6240       hardcode_direct=yes
6241       hardcode_shlibpath_var=no
6242       ;;
6243
6244   linux*)
6245     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6246       tmp_addflag=
6247       case $CC,$host_cpu in
6248       pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
6249         tmp_addflag=' -fpic' ;;
6250       ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
6251         tmp_addflag=' -i_dynamic' ;;
6252       efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
6253         tmp_addflag=' -i_dynamic -nofor_main' ;;
6254       ifc* | ifort*)                    # Intel Fortran compiler
6255         tmp_addflag=' -nofor_main' ;;
6256       esac
6257       archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6258       supports_anon_versioning=no
6259       case `$LD -v 2>/dev/null` in
6260         *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6261         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6262         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6263         *\ 2.11.*) ;; # other 2.11 versions
6264         *) supports_anon_versioning=yes ;;
6265       esac
6266       if test $supports_anon_versioning = yes; then
6267         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6269 $echo "local: *; };" >> $output_objdir/$libname.ver~
6270         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6271       else
6272         archive_expsym_cmds=$archive_cmds
6273       fi
6274     else
6275       ld_shlibs=no
6276     fi
6277     ;;
6278
6279     *)
6280       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6282         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6283       else
6284         ld_shlibs=no
6285       fi
6286       ;;
6287     esac
6288
6289     if test "$ld_shlibs" = yes; then
6290       runpath_var=LD_RUN_PATH
6291       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6292       export_dynamic_flag_spec='${wl}--export-dynamic'
6293       # ancient GNU ld didn't support --whole-archive et. al.
6294       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6295         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6296       else
6297         whole_archive_flag_spec=
6298       fi
6299     fi
6300   else
6301     # PORTME fill in a description of your system's linker (not GNU ld)
6302     case $host_os in
6303     aix3*)
6304       allow_undefined_flag=unsupported
6305       always_export_symbols=yes
6306       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'
6307       # Note: this linker hardcodes the directories in LIBPATH if there
6308       # are no directories specified by -L.
6309       hardcode_minus_L=yes
6310       if test "$GCC" = yes && test -z "$link_static_flag"; then
6311         # Neither direct hardcoding nor static linking is supported with a
6312         # broken collect2.
6313         hardcode_direct=unsupported
6314       fi
6315       ;;
6316
6317     aix4* | aix5*)
6318       if test "$host_cpu" = ia64; then
6319         # On IA64, the linker does run time linking by default, so we don't
6320         # have to do anything special.
6321         aix_use_runtimelinking=no
6322         exp_sym_flag='-Bexport'
6323         no_entry_flag=""
6324       else
6325         # If we're using GNU nm, then we don't want the "-C" option.
6326         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6327         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6328           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'
6329         else
6330           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'
6331         fi
6332         aix_use_runtimelinking=no
6333
6334         # Test if we are trying to use run time linking or normal
6335         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6336         # need to do runtime linking.
6337         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6338           for ld_flag in $LDFLAGS; do
6339           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6340             aix_use_runtimelinking=yes
6341             break
6342           fi
6343           done
6344         esac
6345
6346         exp_sym_flag='-bexport'
6347         no_entry_flag='-bnoentry'
6348       fi
6349
6350       # When large executables or shared objects are built, AIX ld can
6351       # have problems creating the table of contents.  If linking a library
6352       # or program results in "error TOC overflow" add -mminimal-toc to
6353       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6354       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6355
6356       archive_cmds=''
6357       hardcode_direct=yes
6358       hardcode_libdir_separator=':'
6359       link_all_deplibs=yes
6360
6361       if test "$GCC" = yes; then
6362         case $host_os in aix4.[012]|aix4.[012].*)
6363         # We only want to do this on AIX 4.2 and lower, the check
6364         # below for broken collect2 doesn't work under 4.3+
6365           collect2name=`${CC} -print-prog-name=collect2`
6366           if test -f "$collect2name" && \
6367            strings "$collect2name" | grep resolve_lib_name >/dev/null
6368           then
6369           # We have reworked collect2
6370           hardcode_direct=yes
6371           else
6372           # We have old collect2
6373           hardcode_direct=unsupported
6374           # It fails to find uninstalled libraries when the uninstalled
6375           # path is not listed in the libpath.  Setting hardcode_minus_L
6376           # to unsupported forces relinking
6377           hardcode_minus_L=yes
6378           hardcode_libdir_flag_spec='-L$libdir'
6379           hardcode_libdir_separator=
6380           fi
6381         esac
6382         shared_flag='-shared'
6383         if test "$aix_use_runtimelinking" = yes; then
6384           shared_flag="$shared_flag "'${wl}-G'
6385         fi
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     bsdi[45]*)
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       case "$host_os" in
6573         rhapsody* | darwin1.[012])
6574          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6575          ;;
6576        *) # Darwin 1.3 on
6577          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6578            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6579          else
6580            case ${MACOSX_DEPLOYMENT_TARGET} in
6581              10.[012])
6582                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6583                ;;
6584              10.*)
6585                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6586                ;;
6587            esac
6588          fi
6589          ;;
6590       esac
6591       archive_cmds_need_lc=no
6592       hardcode_direct=no
6593       hardcode_automatic=yes
6594       hardcode_shlibpath_var=unsupported
6595       whole_archive_flag_spec=''
6596       link_all_deplibs=yes
6597     if test "$GCC" = yes ; then
6598         output_verbose_link_cmd='echo'
6599         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6600       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6601       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6602       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}'
6603       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}'
6604     else
6605       case "$cc_basename" in
6606         xlc*)
6607          output_verbose_link_cmd='echo'
6608          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6609          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6610           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6611          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6612           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}'
6613           ;;
6614        *)
6615          ld_shlibs=no
6616           ;;
6617       esac
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 | dragonfly*)
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         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6763         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6764         export_dynamic_flag_spec='${wl}-E'
6765       else
6766        case $host_os in
6767          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6768            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6769            hardcode_libdir_flag_spec='-R$libdir'
6770            ;;
6771          *)
6772            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6773            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6774            ;;
6775        esac
6776       fi
6777       ;;
6778
6779     os2*)
6780       hardcode_libdir_flag_spec='-L$libdir'
6781       hardcode_minus_L=yes
6782       allow_undefined_flag=unsupported
6783       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'
6784       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6785       ;;
6786
6787     osf3*)
6788       if test "$GCC" = yes; then
6789         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6790         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'
6791       else
6792         allow_undefined_flag=' -expect_unresolved \*'
6793         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'
6794       fi
6795       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6796       hardcode_libdir_separator=:
6797       ;;
6798
6799     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6800       if test "$GCC" = yes; then
6801         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6802         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'
6803         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6804       else
6805         allow_undefined_flag=' -expect_unresolved \*'
6806         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'
6807         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6808         $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'
6809
6810         # Both c and cxx compiler support -rpath directly
6811         hardcode_libdir_flag_spec='-rpath $libdir'
6812       fi
6813       hardcode_libdir_separator=:
6814       ;;
6815
6816     sco3.2v5*)
6817       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6818       hardcode_shlibpath_var=no
6819       export_dynamic_flag_spec='${wl}-Bexport'
6820       runpath_var=LD_RUN_PATH
6821       hardcode_runpath_var=yes
6822       ;;
6823
6824     solaris*)
6825       no_undefined_flag=' -z text'
6826       if test "$GCC" = yes; then
6827         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6828         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6829           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6830       else
6831         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6832         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6833         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6834       fi
6835       hardcode_libdir_flag_spec='-R$libdir'
6836       hardcode_shlibpath_var=no
6837       case $host_os in
6838       solaris2.[0-5] | solaris2.[0-5].*) ;;
6839       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6840         whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
6841       esac
6842       link_all_deplibs=yes
6843       ;;
6844
6845     sunos4*)
6846       if test "x$host_vendor" = xsequent; then
6847         # Use $CC to link under sequent, because it throws in some extra .o
6848         # files that make .init and .fini sections work.
6849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6850       else
6851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6852       fi
6853       hardcode_libdir_flag_spec='-L$libdir'
6854       hardcode_direct=yes
6855       hardcode_minus_L=yes
6856       hardcode_shlibpath_var=no
6857       ;;
6858
6859     sysv4)
6860       case $host_vendor in
6861         sni)
6862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6863           hardcode_direct=yes # is this really true???
6864         ;;
6865         siemens)
6866           ## LD is ld it makes a PLAMLIB
6867           ## CC just makes a GrossModule.
6868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6869           reload_cmds='$CC -r -o $output$reload_objs'
6870           hardcode_direct=no
6871         ;;
6872         motorola)
6873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6875         ;;
6876       esac
6877       runpath_var='LD_RUN_PATH'
6878       hardcode_shlibpath_var=no
6879       ;;
6880
6881     sysv4.3*)
6882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6883       hardcode_shlibpath_var=no
6884       export_dynamic_flag_spec='-Bexport'
6885       ;;
6886
6887     sysv4*MP*)
6888       if test -d /usr/nec; then
6889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6890         hardcode_shlibpath_var=no
6891         runpath_var=LD_RUN_PATH
6892         hardcode_runpath_var=yes
6893         ld_shlibs=yes
6894       fi
6895       ;;
6896
6897     sysv4.2uw2*)
6898       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6899       hardcode_direct=yes
6900       hardcode_minus_L=no
6901       hardcode_shlibpath_var=no
6902       hardcode_runpath_var=yes
6903       runpath_var=LD_RUN_PATH
6904       ;;
6905
6906    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6907       no_undefined_flag='${wl}-z ${wl}text'
6908       if test "$GCC" = yes; then
6909         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6910       else
6911         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6912       fi
6913       runpath_var='LD_RUN_PATH'
6914       hardcode_shlibpath_var=no
6915       ;;
6916
6917     sysv5*)
6918       no_undefined_flag=' -z text'
6919       # $CC -shared without GNU ld will not create a library from C++
6920       # object files and a static libstdc++, better avoid it by now
6921       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6924       hardcode_libdir_flag_spec=
6925       hardcode_shlibpath_var=no
6926       runpath_var='LD_RUN_PATH'
6927       ;;
6928
6929     uts4*)
6930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6931       hardcode_libdir_flag_spec='-L$libdir'
6932       hardcode_shlibpath_var=no
6933       ;;
6934
6935     *)
6936       ld_shlibs=no
6937       ;;
6938     esac
6939   fi
6940
6941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6942 echo "${ECHO_T}$ld_shlibs" >&6
6943 test "$ld_shlibs" = no && can_build_shared=no
6944
6945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6946 if test "$GCC" = yes; then
6947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6948 fi
6949
6950 #
6951 # Do we need to explicitly link libc?
6952 #
6953 case "x$archive_cmds_need_lc" in
6954 x|xyes)
6955   # Assume -lc should be added
6956   archive_cmds_need_lc=yes
6957
6958   if test "$enable_shared" = yes && test "$GCC" = yes; then
6959     case $archive_cmds in
6960     *'~'*)
6961       # FIXME: we may have to deal with multi-command sequences.
6962       ;;
6963     '$CC '*)
6964       # Test whether the compiler implicitly links with -lc since on some
6965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6966       # to ld, don't add -lc before -lgcc.
6967       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6969       $rm conftest*
6970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6971
6972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973   (eval $ac_compile) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } 2>conftest.err; then
6977         soname=conftest
6978         lib=conftest
6979         libobjs=conftest.$ac_objext
6980         deplibs=
6981         wl=$lt_prog_compiler_wl
6982         compiler_flags=-v
6983         linker_flags=-v
6984         verstring=
6985         output_objdir=.
6986         libname=conftest
6987         lt_save_allow_undefined_flag=$allow_undefined_flag
6988         allow_undefined_flag=
6989         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6990   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }
6994         then
6995           archive_cmds_need_lc=no
6996         else
6997           archive_cmds_need_lc=yes
6998         fi
6999         allow_undefined_flag=$lt_save_allow_undefined_flag
7000       else
7001         cat conftest.err 1>&5
7002       fi
7003       $rm conftest*
7004       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7006       ;;
7007     esac
7008   fi
7009   ;;
7010 esac
7011
7012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7014 library_names_spec=
7015 libname_spec='lib$name'
7016 soname_spec=
7017 shrext_cmds=".so"
7018 postinstall_cmds=
7019 postuninstall_cmds=
7020 finish_cmds=
7021 finish_eval=
7022 shlibpath_var=
7023 shlibpath_overrides_runpath=unknown
7024 version_type=none
7025 dynamic_linker="$host_os ld.so"
7026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7027 if test "$GCC" = yes; then
7028   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7029   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7030     # if the path contains ";" then we assume it to be the separator
7031     # otherwise default to the standard path separator (i.e. ":") - it is
7032     # assumed that no part of a normal pathname contains ";" but that should
7033     # okay in the real world where ";" in dirpaths is itself problematic.
7034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7035   else
7036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7037   fi
7038 else
7039   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7040 fi
7041 need_lib_prefix=unknown
7042 hardcode_into_libs=no
7043
7044 # when you set need_version to no, make sure it does not cause -set_version
7045 # flags to be left without arguments
7046 need_version=unknown
7047
7048 case $host_os in
7049 aix3*)
7050   version_type=linux
7051   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7052   shlibpath_var=LIBPATH
7053
7054   # AIX 3 has no versioning support, so we append a major version to the name.
7055   soname_spec='${libname}${release}${shared_ext}$major'
7056   ;;
7057
7058 aix4* | aix5*)
7059   version_type=linux
7060   need_lib_prefix=no
7061   need_version=no
7062   hardcode_into_libs=yes
7063   if test "$host_cpu" = ia64; then
7064     # AIX 5 supports IA64
7065     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7066     shlibpath_var=LD_LIBRARY_PATH
7067   else
7068     # With GCC up to 2.95.x, collect2 would create an import file
7069     # for dependence libraries.  The import file would start with
7070     # the line `#! .'.  This would cause the generated library to
7071     # depend on `.', always an invalid library.  This was fixed in
7072     # development snapshots of GCC prior to 3.0.
7073     case $host_os in
7074       aix4 | aix4.[01] | aix4.[01].*)
7075       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7076            echo ' yes '
7077            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7078         :
7079       else
7080         can_build_shared=no
7081       fi
7082       ;;
7083     esac
7084     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7085     # soname into executable. Probably we can add versioning support to
7086     # collect2, so additional links can be useful in future.
7087     if test "$aix_use_runtimelinking" = yes; then
7088       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7089       # instead of lib<name>.a to let people know that these are not
7090       # typical AIX shared libraries.
7091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7092     else
7093       # We preserve .a as extension for shared libraries through AIX4.2
7094       # and later when we are not doing run time linking.
7095       library_names_spec='${libname}${release}.a $libname.a'
7096       soname_spec='${libname}${release}${shared_ext}$major'
7097     fi
7098     shlibpath_var=LIBPATH
7099   fi
7100   ;;
7101
7102 amigaos*)
7103   library_names_spec='$libname.ixlibrary $libname.a'
7104   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7105   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'
7106   ;;
7107
7108 beos*)
7109   library_names_spec='${libname}${shared_ext}'
7110   dynamic_linker="$host_os ld.so"
7111   shlibpath_var=LIBRARY_PATH
7112   ;;
7113
7114 bsdi[45]*)
7115   version_type=linux
7116   need_version=no
7117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7118   soname_spec='${libname}${release}${shared_ext}$major'
7119   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7120   shlibpath_var=LD_LIBRARY_PATH
7121   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7122   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7123   # the default ld.so.conf also contains /usr/contrib/lib and
7124   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7125   # libtool to hard-code these into programs
7126   ;;
7127
7128 cygwin* | mingw* | pw32*)
7129   version_type=windows
7130   shrext_cmds=".dll"
7131   need_version=no
7132   need_lib_prefix=no
7133
7134   case $GCC,$host_os in
7135   yes,cygwin* | yes,mingw* | yes,pw32*)
7136     library_names_spec='$libname.dll.a'
7137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7138     postinstall_cmds='base_file=`basename \${file}`~
7139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7140       dldir=$destdir/`dirname \$dlpath`~
7141       test -d \$dldir || mkdir -p \$dldir~
7142       $install_prog $dir/$dlname \$dldir/$dlname'
7143     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7144       dlpath=$dir/\$dldll~
7145        $rm \$dlpath'
7146     shlibpath_overrides_runpath=yes
7147
7148     case $host_os in
7149     cygwin*)
7150       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7151       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7152       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7153       ;;
7154     mingw*)
7155       # MinGW DLLs use traditional 'lib' prefix
7156       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7157       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7158       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7159         # It is most probably a Windows format PATH printed by
7160         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7161         # path with ; separators, and with drive letters. We can handle the
7162         # drive letters (cygwin fileutils understands them), so leave them,
7163         # especially as we might pass files found there to a mingw objdump,
7164         # which wouldn't understand a cygwinified path. Ahh.
7165         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7166       else
7167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7168       fi
7169       ;;
7170     pw32*)
7171       # pw32 DLLs use 'pw' prefix rather than 'lib'
7172       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7173       ;;
7174     esac
7175     ;;
7176
7177   *)
7178     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7179     ;;
7180   esac
7181   dynamic_linker='Win32 ld.exe'
7182   # FIXME: first we should search . and the directory the executable is in
7183   shlibpath_var=PATH
7184   ;;
7185
7186 darwin* | rhapsody*)
7187   dynamic_linker="$host_os dyld"
7188   version_type=darwin
7189   need_lib_prefix=no
7190   need_version=no
7191   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7192   soname_spec='${libname}${release}${major}$shared_ext'
7193   shlibpath_overrides_runpath=yes
7194   shlibpath_var=DYLD_LIBRARY_PATH
7195   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7196   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7197   if test "$GCC" = yes; then
7198     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"`
7199   else
7200     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7201   fi
7202   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7203   ;;
7204
7205 dgux*)
7206   version_type=linux
7207   need_lib_prefix=no
7208   need_version=no
7209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7210   soname_spec='${libname}${release}${shared_ext}$major'
7211   shlibpath_var=LD_LIBRARY_PATH
7212   ;;
7213
7214 freebsd1*)
7215   dynamic_linker=no
7216   ;;
7217
7218 kfreebsd*-gnu)
7219   version_type=linux
7220   need_lib_prefix=no
7221   need_version=no
7222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7223   soname_spec='${libname}${release}${shared_ext}$major'
7224   shlibpath_var=LD_LIBRARY_PATH
7225   shlibpath_overrides_runpath=no
7226   hardcode_into_libs=yes
7227   dynamic_linker='GNU ld.so'
7228   ;;
7229
7230 freebsd* | dragonfly*)
7231   # DragonFly does not have aout.  When/if they implement a new
7232   # versioning mechanism, adjust this.
7233   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7234   version_type=freebsd-$objformat
7235   case $version_type in
7236     freebsd-elf*)
7237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7238       need_version=no
7239       need_lib_prefix=no
7240       ;;
7241     freebsd-*)
7242       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7243       need_version=yes
7244       ;;
7245   esac
7246   shlibpath_var=LD_LIBRARY_PATH
7247   case $host_os in
7248   freebsd2*)
7249     shlibpath_overrides_runpath=yes
7250     ;;
7251   freebsd3.[01]* | freebsdelf3.[01]*)
7252     shlibpath_overrides_runpath=yes
7253     hardcode_into_libs=yes
7254     ;;
7255   *) # from 3.2 on
7256     shlibpath_overrides_runpath=no
7257     hardcode_into_libs=yes
7258     ;;
7259   esac
7260   ;;
7261
7262 gnu*)
7263   version_type=linux
7264   need_lib_prefix=no
7265   need_version=no
7266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7267   soname_spec='${libname}${release}${shared_ext}$major'
7268   shlibpath_var=LD_LIBRARY_PATH
7269   hardcode_into_libs=yes
7270   ;;
7271
7272 hpux9* | hpux10* | hpux11*)
7273   # Give a soname corresponding to the major version so that dld.sl refuses to
7274   # link against other versions.
7275   version_type=sunos
7276   need_lib_prefix=no
7277   need_version=no
7278   case "$host_cpu" in
7279   ia64*)
7280     shrext_cmds='.so'
7281     hardcode_into_libs=yes
7282     dynamic_linker="$host_os dld.so"
7283     shlibpath_var=LD_LIBRARY_PATH
7284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286     soname_spec='${libname}${release}${shared_ext}$major'
7287     if test "X$HPUX_IA64_MODE" = X32; then
7288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7289     else
7290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7291     fi
7292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7293     ;;
7294    hppa*64*)
7295      shrext_cmds='.sl'
7296      hardcode_into_libs=yes
7297      dynamic_linker="$host_os dld.sl"
7298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7299      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7300      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7301      soname_spec='${libname}${release}${shared_ext}$major'
7302      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7304      ;;
7305    *)
7306     shrext_cmds='.sl'
7307     dynamic_linker="$host_os dld.sl"
7308     shlibpath_var=SHLIB_PATH
7309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7311     soname_spec='${libname}${release}${shared_ext}$major'
7312     ;;
7313   esac
7314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7315   postinstall_cmds='chmod 555 $lib'
7316   ;;
7317
7318 irix5* | irix6* | nonstopux*)
7319   case $host_os in
7320     nonstopux*) version_type=nonstopux ;;
7321     *)
7322         if test "$lt_cv_prog_gnu_ld" = yes; then
7323                 version_type=linux
7324         else
7325                 version_type=irix
7326         fi ;;
7327   esac
7328   need_lib_prefix=no
7329   need_version=no
7330   soname_spec='${libname}${release}${shared_ext}$major'
7331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7332   case $host_os in
7333   irix5* | nonstopux*)
7334     libsuff= shlibsuff=
7335     ;;
7336   *)
7337     case $LD in # libtool.m4 will add one of these switches to LD
7338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7339       libsuff= shlibsuff= libmagic=32-bit;;
7340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7341       libsuff=32 shlibsuff=N32 libmagic=N32;;
7342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7344     *) libsuff= shlibsuff= libmagic=never-match;;
7345     esac
7346     ;;
7347   esac
7348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7349   shlibpath_overrides_runpath=no
7350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7352   hardcode_into_libs=yes
7353   ;;
7354
7355 # No shared lib support for Linux oldld, aout, or coff.
7356 linux*oldld* | linux*aout* | linux*coff*)
7357   dynamic_linker=no
7358   ;;
7359
7360 # This must be Linux ELF.
7361 linux*)
7362   version_type=linux
7363   need_lib_prefix=no
7364   need_version=no
7365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7366   soname_spec='${libname}${release}${shared_ext}$major'
7367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7368   shlibpath_var=LD_LIBRARY_PATH
7369   shlibpath_overrides_runpath=no
7370   # This implies no fast_install, which is unacceptable.
7371   # Some rework will be needed to allow for fast_install
7372   # before this can be enabled.
7373   hardcode_into_libs=yes
7374
7375   # Append ld.so.conf contents to the search path
7376   if test -f /etc/ld.so.conf; then
7377     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7379   fi
7380
7381   # We used to test for /lib/ld.so.1 and disable shared libraries on
7382   # powerpc, because MkLinux only supported shared libraries with the
7383   # GNU dynamic linker.  Since this was broken with cross compilers,
7384   # most powerpc-linux boxes support dynamic linking these days and
7385   # people can always --disable-shared, the test was removed, and we
7386   # assume the GNU/Linux dynamic linker is in use.
7387   dynamic_linker='GNU/Linux ld.so'
7388   ;;
7389
7390 knetbsd*-gnu)
7391   version_type=linux
7392   need_lib_prefix=no
7393   need_version=no
7394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7395   soname_spec='${libname}${release}${shared_ext}$major'
7396   shlibpath_var=LD_LIBRARY_PATH
7397   shlibpath_overrides_runpath=no
7398   hardcode_into_libs=yes
7399   dynamic_linker='GNU ld.so'
7400   ;;
7401
7402 netbsd*)
7403   version_type=sunos
7404   need_lib_prefix=no
7405   need_version=no
7406   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7408     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7409     dynamic_linker='NetBSD (a.out) ld.so'
7410   else
7411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7412     soname_spec='${libname}${release}${shared_ext}$major'
7413     dynamic_linker='NetBSD ld.elf_so'
7414   fi
7415   shlibpath_var=LD_LIBRARY_PATH
7416   shlibpath_overrides_runpath=yes
7417   hardcode_into_libs=yes
7418   ;;
7419
7420 newsos6)
7421   version_type=linux
7422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7423   shlibpath_var=LD_LIBRARY_PATH
7424   shlibpath_overrides_runpath=yes
7425   ;;
7426
7427 nto-qnx*)
7428   version_type=linux
7429   need_lib_prefix=no
7430   need_version=no
7431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432   soname_spec='${libname}${release}${shared_ext}$major'
7433   shlibpath_var=LD_LIBRARY_PATH
7434   shlibpath_overrides_runpath=yes
7435   ;;
7436
7437 openbsd*)
7438   version_type=sunos
7439   need_lib_prefix=no
7440   need_version=no
7441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7443   shlibpath_var=LD_LIBRARY_PATH
7444   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7445     case $host_os in
7446       openbsd2.[89] | openbsd2.[89].*)
7447         shlibpath_overrides_runpath=no
7448         ;;
7449       *)
7450         shlibpath_overrides_runpath=yes
7451         ;;
7452       esac
7453   else
7454     shlibpath_overrides_runpath=yes
7455   fi
7456   ;;
7457
7458 os2*)
7459   libname_spec='$name'
7460   shrext_cmds=".dll"
7461   need_lib_prefix=no
7462   library_names_spec='$libname${shared_ext} $libname.a'
7463   dynamic_linker='OS/2 ld.exe'
7464   shlibpath_var=LIBPATH
7465   ;;
7466
7467 osf3* | osf4* | osf5*)
7468   version_type=osf
7469   need_lib_prefix=no
7470   need_version=no
7471   soname_spec='${libname}${release}${shared_ext}$major'
7472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7473   shlibpath_var=LD_LIBRARY_PATH
7474   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7475   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7476   ;;
7477
7478 sco3.2v5*)
7479   version_type=osf
7480   soname_spec='${libname}${release}${shared_ext}$major'
7481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482   shlibpath_var=LD_LIBRARY_PATH
7483   ;;
7484
7485 solaris*)
7486   version_type=linux
7487   need_lib_prefix=no
7488   need_version=no
7489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7490   soname_spec='${libname}${release}${shared_ext}$major'
7491   shlibpath_var=LD_LIBRARY_PATH
7492   shlibpath_overrides_runpath=yes
7493   hardcode_into_libs=yes
7494   # ldd complains unless libraries are executable
7495   postinstall_cmds='chmod +x $lib'
7496   ;;
7497
7498 sunos4*)
7499   version_type=sunos
7500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7501   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7502   shlibpath_var=LD_LIBRARY_PATH
7503   shlibpath_overrides_runpath=yes
7504   if test "$with_gnu_ld" = yes; then
7505     need_lib_prefix=no
7506   fi
7507   need_version=yes
7508   ;;
7509
7510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7511   version_type=linux
7512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7513   soname_spec='${libname}${release}${shared_ext}$major'
7514   shlibpath_var=LD_LIBRARY_PATH
7515   case $host_vendor in
7516     sni)
7517       shlibpath_overrides_runpath=no
7518       need_lib_prefix=no
7519       export_dynamic_flag_spec='${wl}-Blargedynsym'
7520       runpath_var=LD_RUN_PATH
7521       ;;
7522     siemens)
7523       need_lib_prefix=no
7524       ;;
7525     motorola)
7526       need_lib_prefix=no
7527       need_version=no
7528       shlibpath_overrides_runpath=no
7529       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7530       ;;
7531   esac
7532   ;;
7533
7534 sysv4*MP*)
7535   if test -d /usr/nec ;then
7536     version_type=linux
7537     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7538     soname_spec='$libname${shared_ext}.$major'
7539     shlibpath_var=LD_LIBRARY_PATH
7540   fi
7541   ;;
7542
7543 uts4*)
7544   version_type=linux
7545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7546   soname_spec='${libname}${release}${shared_ext}$major'
7547   shlibpath_var=LD_LIBRARY_PATH
7548   ;;
7549
7550 *)
7551   dynamic_linker=no
7552   ;;
7553 esac
7554 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7555 echo "${ECHO_T}$dynamic_linker" >&6
7556 test "$dynamic_linker" = no && can_build_shared=no
7557
7558 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7560 hardcode_action=
7561 if test -n "$hardcode_libdir_flag_spec" || \
7562    test -n "$runpath_var" || \
7563    test "X$hardcode_automatic" = "Xyes" ; then
7564
7565   # We can hardcode non-existant directories.
7566   if test "$hardcode_direct" != no &&
7567      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7568      # have to relink, otherwise we might link with an installed library
7569      # when we should be linking with a yet-to-be-installed one
7570      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7571      test "$hardcode_minus_L" != no; then
7572     # Linking always hardcodes the temporary library directory.
7573     hardcode_action=relink
7574   else
7575     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7576     hardcode_action=immediate
7577   fi
7578 else
7579   # We cannot hardcode anything, or else we can only hardcode existing
7580   # directories.
7581   hardcode_action=unsupported
7582 fi
7583 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7584 echo "${ECHO_T}$hardcode_action" >&6
7585
7586 if test "$hardcode_action" = relink; then
7587   # Fast installation is not supported
7588   enable_fast_install=no
7589 elif test "$shlibpath_overrides_runpath" = yes ||
7590      test "$enable_shared" = no; then
7591   # Fast installation is not necessary
7592   enable_fast_install=needless
7593 fi
7594
7595 striplib=
7596 old_striplib=
7597 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7600   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7601   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7602   echo "$as_me:$LINENO: result: yes" >&5
7603 echo "${ECHO_T}yes" >&6
7604 else
7605 # FIXME - insert some real tests, host_os isn't really good enough
7606   case $host_os in
7607    darwin*)
7608        if test -n "$STRIP" ; then
7609          striplib="$STRIP -x"
7610          echo "$as_me:$LINENO: result: yes" >&5
7611 echo "${ECHO_T}yes" >&6
7612        else
7613   echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615 fi
7616        ;;
7617    *)
7618   echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7620     ;;
7621   esac
7622 fi
7623
7624 if test "x$enable_dlopen" != xyes; then
7625   enable_dlopen=unknown
7626   enable_dlopen_self=unknown
7627   enable_dlopen_self_static=unknown
7628 else
7629   lt_cv_dlopen=no
7630   lt_cv_dlopen_libs=
7631
7632   case $host_os in
7633   beos*)
7634     lt_cv_dlopen="load_add_on"
7635     lt_cv_dlopen_libs=
7636     lt_cv_dlopen_self=yes
7637     ;;
7638
7639   mingw* | pw32*)
7640     lt_cv_dlopen="LoadLibrary"
7641     lt_cv_dlopen_libs=
7642    ;;
7643
7644   cygwin*)
7645     lt_cv_dlopen="dlopen"
7646     lt_cv_dlopen_libs=
7647    ;;
7648
7649   darwin*)
7650   # if libdl is installed we need to link against it
7651     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   ac_check_lib_save_LIBS=$LIBS
7657 LIBS="-ldl  $LIBS"
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h.  */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h.  */
7664
7665 /* Override any gcc2 internal prototype to avoid an error.  */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 /* We use char because int might match the return type of a gcc2
7670    builtin and then its argument prototype would still apply.  */
7671 char dlopen ();
7672 int
7673 main ()
7674 {
7675 dlopen ();
7676   ;
7677   return 0;
7678 }
7679 _ACEOF
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682   (eval $ac_link) 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } &&
7689          { ac_try='test -z "$ac_c_werror_flag"
7690                          || test ! -s conftest.err'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; } &&
7696          { ac_try='test -s conftest$ac_exeext'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   ac_cv_lib_dl_dlopen=yes
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 ac_cv_lib_dl_dlopen=no
7708 fi
7709 rm -f conftest.err conftest.$ac_objext \
7710       conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7712 fi
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7714 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7715 if test $ac_cv_lib_dl_dlopen = yes; then
7716   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7717 else
7718
7719     lt_cv_dlopen="dyld"
7720     lt_cv_dlopen_libs=
7721     lt_cv_dlopen_self=yes
7722
7723 fi
7724
7725    ;;
7726
7727   *)
7728     echo "$as_me:$LINENO: checking for shl_load" >&5
7729 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7730 if test "${ac_cv_func_shl_load+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7741 #define shl_load innocuous_shl_load
7742
7743 /* System header to define __stub macros and hopefully few prototypes,
7744     which can conflict with char shl_load (); below.
7745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746     <limits.h> exists even on freestanding compilers.  */
7747
7748 #ifdef __STDC__
7749 # include <limits.h>
7750 #else
7751 # include <assert.h>
7752 #endif
7753
7754 #undef shl_load
7755
7756 /* Override any gcc2 internal prototype to avoid an error.  */
7757 #ifdef __cplusplus
7758 extern "C"
7759 {
7760 #endif
7761 /* We use char because int might match the return type of a gcc2
7762    builtin and then its argument prototype would still apply.  */
7763 char shl_load ();
7764 /* The GNU C library defines this for functions which it implements
7765     to always fail with ENOSYS.  Some functions are actually named
7766     something starting with __ and the normal name is an alias.  */
7767 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7768 choke me
7769 #else
7770 char (*f) () = shl_load;
7771 #endif
7772 #ifdef __cplusplus
7773 }
7774 #endif
7775
7776 int
7777 main ()
7778 {
7779 return f != shl_load;
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786   (eval $ac_link) 2>conftest.er1
7787   ac_status=$?
7788   grep -v '^ *+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } &&
7793          { ac_try='test -z "$ac_c_werror_flag"
7794                          || test ! -s conftest.err'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; } &&
7800          { ac_try='test -s conftest$ac_exeext'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; }; then
7806   ac_cv_func_shl_load=yes
7807 else
7808   echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 ac_cv_func_shl_load=no
7812 fi
7813 rm -f conftest.err conftest.$ac_objext \
7814       conftest$ac_exeext conftest.$ac_ext
7815 fi
7816 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7817 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7818 if test $ac_cv_func_shl_load = yes; then
7819   lt_cv_dlopen="shl_load"
7820 else
7821   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7822 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7823 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   ac_check_lib_save_LIBS=$LIBS
7827 LIBS="-ldld  $LIBS"
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834
7835 /* Override any gcc2 internal prototype to avoid an error.  */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 /* We use char because int might match the return type of a gcc2
7840    builtin and then its argument prototype would still apply.  */
7841 char shl_load ();
7842 int
7843 main ()
7844 {
7845 shl_load ();
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852   (eval $ac_link) 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } &&
7859          { ac_try='test -z "$ac_c_werror_flag"
7860                          || test ! -s conftest.err'
7861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862   (eval $ac_try) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); }; } &&
7866          { ac_try='test -s conftest$ac_exeext'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; }; then
7872   ac_cv_lib_dld_shl_load=yes
7873 else
7874   echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 ac_cv_lib_dld_shl_load=no
7878 fi
7879 rm -f conftest.err conftest.$ac_objext \
7880       conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7882 fi
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7884 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7885 if test $ac_cv_lib_dld_shl_load = yes; then
7886   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7887 else
7888   echo "$as_me:$LINENO: checking for dlopen" >&5
7889 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7890 if test "${ac_cv_func_dlopen+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h.  */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h.  */
7899 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7901 #define dlopen innocuous_dlopen
7902
7903 /* System header to define __stub macros and hopefully few prototypes,
7904     which can conflict with char dlopen (); below.
7905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7906     <limits.h> exists even on freestanding compilers.  */
7907
7908 #ifdef __STDC__
7909 # include <limits.h>
7910 #else
7911 # include <assert.h>
7912 #endif
7913
7914 #undef dlopen
7915
7916 /* Override any gcc2 internal prototype to avoid an error.  */
7917 #ifdef __cplusplus
7918 extern "C"
7919 {
7920 #endif
7921 /* We use char because int might match the return type of a gcc2
7922    builtin and then its argument prototype would still apply.  */
7923 char dlopen ();
7924 /* The GNU C library defines this for functions which it implements
7925     to always fail with ENOSYS.  Some functions are actually named
7926     something starting with __ and the normal name is an alias.  */
7927 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7928 choke me
7929 #else
7930 char (*f) () = dlopen;
7931 #endif
7932 #ifdef __cplusplus
7933 }
7934 #endif
7935
7936 int
7937 main ()
7938 {
7939 return f != dlopen;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946   (eval $ac_link) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest$ac_exeext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   ac_cv_func_dlopen=yes
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ac_cv_func_dlopen=no
7972 fi
7973 rm -f conftest.err conftest.$ac_objext \
7974       conftest$ac_exeext conftest.$ac_ext
7975 fi
7976 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7977 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7978 if test $ac_cv_func_dlopen = yes; then
7979   lt_cv_dlopen="dlopen"
7980 else
7981   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7982 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7983 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   ac_check_lib_save_LIBS=$LIBS
7987 LIBS="-ldl  $LIBS"
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994
7995 /* Override any gcc2 internal prototype to avoid an error.  */
7996 #ifdef __cplusplus
7997 extern "C"
7998 #endif
7999 /* We use char because int might match the return type of a gcc2
8000    builtin and then its argument prototype would still apply.  */
8001 char dlopen ();
8002 int
8003 main ()
8004 {
8005 dlopen ();
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012   (eval $ac_link) 2>conftest.er1
8013   ac_status=$?
8014   grep -v '^ *+' conftest.er1 >conftest.err
8015   rm -f conftest.er1
8016   cat conftest.err >&5
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -z "$ac_c_werror_flag"
8020                          || test ! -s conftest.err'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; } &&
8026          { ac_try='test -s conftest$ac_exeext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   ac_cv_lib_dl_dlopen=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_lib_dl_dlopen=no
8038 fi
8039 rm -f conftest.err conftest.$ac_objext \
8040       conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8042 fi
8043 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8045 if test $ac_cv_lib_dl_dlopen = yes; then
8046   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8047 else
8048   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8049 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8050 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   ac_check_lib_save_LIBS=$LIBS
8054 LIBS="-lsvld  $LIBS"
8055 cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061
8062 /* Override any gcc2 internal prototype to avoid an error.  */
8063 #ifdef __cplusplus
8064 extern "C"
8065 #endif
8066 /* We use char because int might match the return type of a gcc2
8067    builtin and then its argument prototype would still apply.  */
8068 char dlopen ();
8069 int
8070 main ()
8071 {
8072 dlopen ();
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -z "$ac_c_werror_flag"
8087                          || test ! -s conftest.err'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; } &&
8093          { ac_try='test -s conftest$ac_exeext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   ac_cv_lib_svld_dlopen=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 ac_cv_lib_svld_dlopen=no
8105 fi
8106 rm -f conftest.err conftest.$ac_objext \
8107       conftest$ac_exeext conftest.$ac_ext
8108 LIBS=$ac_check_lib_save_LIBS
8109 fi
8110 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8111 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8112 if test $ac_cv_lib_svld_dlopen = yes; then
8113   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8114 else
8115   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8116 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8117 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   ac_check_lib_save_LIBS=$LIBS
8121 LIBS="-ldld  $LIBS"
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128
8129 /* Override any gcc2 internal prototype to avoid an error.  */
8130 #ifdef __cplusplus
8131 extern "C"
8132 #endif
8133 /* We use char because int might match the return type of a gcc2
8134    builtin and then its argument prototype would still apply.  */
8135 char dld_link ();
8136 int
8137 main ()
8138 {
8139 dld_link ();
8140   ;
8141   return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146   (eval $ac_link) 2>conftest.er1
8147   ac_status=$?
8148   grep -v '^ *+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } &&
8153          { ac_try='test -z "$ac_c_werror_flag"
8154                          || test ! -s conftest.err'
8155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156   (eval $ac_try) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); }; } &&
8160          { ac_try='test -s conftest$ac_exeext'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_cv_lib_dld_dld_link=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 ac_cv_lib_dld_dld_link=no
8172 fi
8173 rm -f conftest.err conftest.$ac_objext \
8174       conftest$ac_exeext conftest.$ac_ext
8175 LIBS=$ac_check_lib_save_LIBS
8176 fi
8177 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8179 if test $ac_cv_lib_dld_dld_link = yes; then
8180   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8181 fi
8182
8183
8184 fi
8185
8186
8187 fi
8188
8189
8190 fi
8191
8192
8193 fi
8194
8195
8196 fi
8197
8198     ;;
8199   esac
8200
8201   if test "x$lt_cv_dlopen" != xno; then
8202     enable_dlopen=yes
8203   else
8204     enable_dlopen=no
8205   fi
8206
8207   case $lt_cv_dlopen in
8208   dlopen)
8209     save_CPPFLAGS="$CPPFLAGS"
8210     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8211
8212     save_LDFLAGS="$LDFLAGS"
8213     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8214
8215     save_LIBS="$LIBS"
8216     LIBS="$lt_cv_dlopen_libs $LIBS"
8217
8218     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8219 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8220 if test "${lt_cv_dlopen_self+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223           if test "$cross_compiling" = yes; then :
8224   lt_cv_dlopen_self=cross
8225 else
8226   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8227   lt_status=$lt_dlunknown
8228   cat > conftest.$ac_ext <<EOF
8229 #line 8229 "configure"
8230 #include "confdefs.h"
8231
8232 #if HAVE_DLFCN_H
8233 #include <dlfcn.h>
8234 #endif
8235
8236 #include <stdio.h>
8237
8238 #ifdef RTLD_GLOBAL
8239 #  define LT_DLGLOBAL           RTLD_GLOBAL
8240 #else
8241 #  ifdef DL_GLOBAL
8242 #    define LT_DLGLOBAL         DL_GLOBAL
8243 #  else
8244 #    define LT_DLGLOBAL         0
8245 #  endif
8246 #endif
8247
8248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8249    find out it does not work in some platform. */
8250 #ifndef LT_DLLAZY_OR_NOW
8251 #  ifdef RTLD_LAZY
8252 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8253 #  else
8254 #    ifdef DL_LAZY
8255 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8256 #    else
8257 #      ifdef RTLD_NOW
8258 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8259 #      else
8260 #        ifdef DL_NOW
8261 #          define LT_DLLAZY_OR_NOW      DL_NOW
8262 #        else
8263 #          define LT_DLLAZY_OR_NOW      0
8264 #        endif
8265 #      endif
8266 #    endif
8267 #  endif
8268 #endif
8269
8270 #ifdef __cplusplus
8271 extern "C" void exit (int);
8272 #endif
8273
8274 void fnord() { int i=42;}
8275 int main ()
8276 {
8277   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8278   int status = $lt_dlunknown;
8279
8280   if (self)
8281     {
8282       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8283       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8284       /* dlclose (self); */
8285     }
8286
8287     exit (status);
8288 }
8289 EOF
8290   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8295     (./conftest; exit; ) 2>/dev/null
8296     lt_status=$?
8297     case x$lt_status in
8298       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8299       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8300       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8301     esac
8302   else :
8303     # compilation failed
8304     lt_cv_dlopen_self=no
8305   fi
8306 fi
8307 rm -fr conftest*
8308
8309
8310 fi
8311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8312 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8313
8314     if test "x$lt_cv_dlopen_self" = xyes; then
8315       LDFLAGS="$LDFLAGS $link_static_flag"
8316       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8317 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8318 if test "${lt_cv_dlopen_self_static+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321           if test "$cross_compiling" = yes; then :
8322   lt_cv_dlopen_self_static=cross
8323 else
8324   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8325   lt_status=$lt_dlunknown
8326   cat > conftest.$ac_ext <<EOF
8327 #line 8327 "configure"
8328 #include "confdefs.h"
8329
8330 #if HAVE_DLFCN_H
8331 #include <dlfcn.h>
8332 #endif
8333
8334 #include <stdio.h>
8335
8336 #ifdef RTLD_GLOBAL
8337 #  define LT_DLGLOBAL           RTLD_GLOBAL
8338 #else
8339 #  ifdef DL_GLOBAL
8340 #    define LT_DLGLOBAL         DL_GLOBAL
8341 #  else
8342 #    define LT_DLGLOBAL         0
8343 #  endif
8344 #endif
8345
8346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8347    find out it does not work in some platform. */
8348 #ifndef LT_DLLAZY_OR_NOW
8349 #  ifdef RTLD_LAZY
8350 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8351 #  else
8352 #    ifdef DL_LAZY
8353 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8354 #    else
8355 #      ifdef RTLD_NOW
8356 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8357 #      else
8358 #        ifdef DL_NOW
8359 #          define LT_DLLAZY_OR_NOW      DL_NOW
8360 #        else
8361 #          define LT_DLLAZY_OR_NOW      0
8362 #        endif
8363 #      endif
8364 #    endif
8365 #  endif
8366 #endif
8367
8368 #ifdef __cplusplus
8369 extern "C" void exit (int);
8370 #endif
8371
8372 void fnord() { int i=42;}
8373 int main ()
8374 {
8375   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8376   int status = $lt_dlunknown;
8377
8378   if (self)
8379     {
8380       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8381       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8382       /* dlclose (self); */
8383     }
8384
8385     exit (status);
8386 }
8387 EOF
8388   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8393     (./conftest; exit; ) 2>/dev/null
8394     lt_status=$?
8395     case x$lt_status in
8396       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8397       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8398       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8399     esac
8400   else :
8401     # compilation failed
8402     lt_cv_dlopen_self_static=no
8403   fi
8404 fi
8405 rm -fr conftest*
8406
8407
8408 fi
8409 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8410 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8411     fi
8412
8413     CPPFLAGS="$save_CPPFLAGS"
8414     LDFLAGS="$save_LDFLAGS"
8415     LIBS="$save_LIBS"
8416     ;;
8417   esac
8418
8419   case $lt_cv_dlopen_self in
8420   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8421   *) enable_dlopen_self=unknown ;;
8422   esac
8423
8424   case $lt_cv_dlopen_self_static in
8425   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8426   *) enable_dlopen_self_static=unknown ;;
8427   esac
8428 fi
8429
8430
8431 # Report which librarie types wil actually be built
8432 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8433 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8434 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8435 echo "${ECHO_T}$can_build_shared" >&6
8436
8437 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8438 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8439 test "$can_build_shared" = "no" && enable_shared=no
8440
8441 # On AIX, shared libraries and static libraries use the same namespace, and
8442 # are all built from PIC.
8443 case "$host_os" in
8444 aix3*)
8445   test "$enable_shared" = yes && enable_static=no
8446   if test -n "$RANLIB"; then
8447     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8448     postinstall_cmds='$RANLIB $lib'
8449   fi
8450   ;;
8451
8452 aix4* | aix5*)
8453   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8454     test "$enable_shared" = yes && enable_static=no
8455   fi
8456     ;;
8457 esac
8458 echo "$as_me:$LINENO: result: $enable_shared" >&5
8459 echo "${ECHO_T}$enable_shared" >&6
8460
8461 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8462 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8463 # Make sure either enable_shared or enable_static is yes.
8464 test "$enable_shared" = yes || enable_static=yes
8465 echo "$as_me:$LINENO: result: $enable_static" >&5
8466 echo "${ECHO_T}$enable_static" >&6
8467
8468 # The else clause should only fire when bootstrapping the
8469 # libtool distribution, otherwise you forgot to ship ltmain.sh
8470 # with your package, and you will get complaints that there are
8471 # no rules to generate ltmain.sh.
8472 if test -f "$ltmain"; then
8473   # See if we are running on zsh, and set the options which allow our commands through
8474   # without removal of \ escapes.
8475   if test -n "${ZSH_VERSION+set}" ; then
8476     setopt NO_GLOB_SUBST
8477   fi
8478   # Now quote all the things that may contain metacharacters while being
8479   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8480   # variables and quote the copies for generation of the libtool script.
8481   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8482     SED SHELL STRIP \
8483     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8484     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8485     deplibs_check_method reload_flag reload_cmds need_locks \
8486     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8487     lt_cv_sys_global_symbol_to_c_name_address \
8488     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8489     old_postinstall_cmds old_postuninstall_cmds \
8490     compiler \
8491     CC \
8492     LD \
8493     lt_prog_compiler_wl \
8494     lt_prog_compiler_pic \
8495     lt_prog_compiler_static \
8496     lt_prog_compiler_no_builtin_flag \
8497     export_dynamic_flag_spec \
8498     thread_safe_flag_spec \
8499     whole_archive_flag_spec \
8500     enable_shared_with_static_runtimes \
8501     old_archive_cmds \
8502     old_archive_from_new_cmds \
8503     predep_objects \
8504     postdep_objects \
8505     predeps \
8506     postdeps \
8507     compiler_lib_search_path \
8508     archive_cmds \
8509     archive_expsym_cmds \
8510     postinstall_cmds \
8511     postuninstall_cmds \
8512     old_archive_from_expsyms_cmds \
8513     allow_undefined_flag \
8514     no_undefined_flag \
8515     export_symbols_cmds \
8516     hardcode_libdir_flag_spec \
8517     hardcode_libdir_flag_spec_ld \
8518     hardcode_libdir_separator \
8519     hardcode_automatic \
8520     module_cmds \
8521     module_expsym_cmds \
8522     lt_cv_prog_compiler_c_o \
8523     exclude_expsyms \
8524     include_expsyms; do
8525
8526     case $var in
8527     old_archive_cmds | \
8528     old_archive_from_new_cmds | \
8529     archive_cmds | \
8530     archive_expsym_cmds | \
8531     module_cmds | \
8532     module_expsym_cmds | \
8533     old_archive_from_expsyms_cmds | \
8534     export_symbols_cmds | \
8535     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8536     postinstall_cmds | postuninstall_cmds | \
8537     old_postinstall_cmds | old_postuninstall_cmds | \
8538     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8539       # Double-quote double-evaled strings.
8540       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8541       ;;
8542     *)
8543       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8544       ;;
8545     esac
8546   done
8547
8548   case $lt_echo in
8549   *'\$0 --fallback-echo"')
8550     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8551     ;;
8552   esac
8553
8554 cfgfile="${ofile}T"
8555   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8556   $rm -f "$cfgfile"
8557   { echo "$as_me:$LINENO: creating $ofile" >&5
8558 echo "$as_me: creating $ofile" >&6;}
8559
8560   cat <<__EOF__ >> "$cfgfile"
8561 #! $SHELL
8562
8563 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8564 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8565 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8566 #
8567 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8568 # Free Software Foundation, Inc.
8569 #
8570 # This file is part of GNU Libtool:
8571 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8572 #
8573 # This program is free software; you can redistribute it and/or modify
8574 # it under the terms of the GNU General Public License as published by
8575 # the Free Software Foundation; either version 2 of the License, or
8576 # (at your option) any later version.
8577 #
8578 # This program is distributed in the hope that it will be useful, but
8579 # WITHOUT ANY WARRANTY; without even the implied warranty of
8580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8581 # General Public License for more details.
8582 #
8583 # You should have received a copy of the GNU General Public License
8584 # along with this program; if not, write to the Free Software
8585 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8586 #
8587 # As a special exception to the GNU General Public License, if you
8588 # distribute this file as part of a program that contains a
8589 # configuration script generated by Autoconf, you may include it under
8590 # the same distribution terms that you use for the rest of that program.
8591
8592 # A sed program that does not truncate output.
8593 SED=$lt_SED
8594
8595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8596 Xsed="$SED -e s/^X//"
8597
8598 # The HP-UX ksh and POSIX shell print the target directory to stdout
8599 # if CDPATH is set.
8600 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8601
8602 # The names of the tagged configurations supported by this script.
8603 available_tags=
8604
8605 # ### BEGIN LIBTOOL CONFIG
8606
8607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8608
8609 # Shell to use when invoking shell scripts.
8610 SHELL=$lt_SHELL
8611
8612 # Whether or not to build shared libraries.
8613 build_libtool_libs=$enable_shared
8614
8615 # Whether or not to build static libraries.
8616 build_old_libs=$enable_static
8617
8618 # Whether or not to add -lc for building shared libraries.
8619 build_libtool_need_lc=$archive_cmds_need_lc
8620
8621 # Whether or not to disallow shared libs when runtime libs are static
8622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8623
8624 # Whether or not to optimize for fast installation.
8625 fast_install=$enable_fast_install
8626
8627 # The host system.
8628 host_alias=$host_alias
8629 host=$host
8630 host_os=$host_os
8631
8632 # The build system.
8633 build_alias=$build_alias
8634 build=$build
8635 build_os=$build_os
8636
8637 # An echo program that does not interpret backslashes.
8638 echo=$lt_echo
8639
8640 # The archiver.
8641 AR=$lt_AR
8642 AR_FLAGS=$lt_AR_FLAGS
8643
8644 # A C compiler.
8645 LTCC=$lt_LTCC
8646
8647 # A language-specific compiler.
8648 CC=$lt_compiler
8649
8650 # Is the compiler the GNU C compiler?
8651 with_gcc=$GCC
8652
8653 # An ERE matcher.
8654 EGREP=$lt_EGREP
8655
8656 # The linker used to build libraries.
8657 LD=$lt_LD
8658
8659 # Whether we need hard or soft links.
8660 LN_S=$lt_LN_S
8661
8662 # A BSD-compatible nm program.
8663 NM=$lt_NM
8664
8665 # A symbol stripping program
8666 STRIP=$lt_STRIP
8667
8668 # Used to examine libraries when file_magic_cmd begins "file"
8669 MAGIC_CMD=$MAGIC_CMD
8670
8671 # Used on cygwin: DLL creation program.
8672 DLLTOOL="$DLLTOOL"
8673
8674 # Used on cygwin: object dumper.
8675 OBJDUMP="$OBJDUMP"
8676
8677 # Used on cygwin: assembler.
8678 AS="$AS"
8679
8680 # The name of the directory that contains temporary libtool files.
8681 objdir=$objdir
8682
8683 # How to create reloadable object files.
8684 reload_flag=$lt_reload_flag
8685 reload_cmds=$lt_reload_cmds
8686
8687 # How to pass a linker flag through the compiler.
8688 wl=$lt_lt_prog_compiler_wl
8689
8690 # Object file suffix (normally "o").
8691 objext="$ac_objext"
8692
8693 # Old archive suffix (normally "a").
8694 libext="$libext"
8695
8696 # Shared library suffix (normally ".so").
8697 shrext_cmds='$shrext_cmds'
8698
8699 # Executable file suffix (normally "").
8700 exeext="$exeext"
8701
8702 # Additional compiler flags for building library objects.
8703 pic_flag=$lt_lt_prog_compiler_pic
8704 pic_mode=$pic_mode
8705
8706 # What is the maximum length of a command?
8707 max_cmd_len=$lt_cv_sys_max_cmd_len
8708
8709 # Does compiler simultaneously support -c and -o options?
8710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8711
8712 # Must we lock files when doing compilation ?
8713 need_locks=$lt_need_locks
8714
8715 # Do we need the lib prefix for modules?
8716 need_lib_prefix=$need_lib_prefix
8717
8718 # Do we need a version for libraries?
8719 need_version=$need_version
8720
8721 # Whether dlopen is supported.
8722 dlopen_support=$enable_dlopen
8723
8724 # Whether dlopen of programs is supported.
8725 dlopen_self=$enable_dlopen_self
8726
8727 # Whether dlopen of statically linked programs is supported.
8728 dlopen_self_static=$enable_dlopen_self_static
8729
8730 # Compiler flag to prevent dynamic linking.
8731 link_static_flag=$lt_lt_prog_compiler_static
8732
8733 # Compiler flag to turn off builtin functions.
8734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8735
8736 # Compiler flag to allow reflexive dlopens.
8737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8738
8739 # Compiler flag to generate shared objects directly from archives.
8740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8741
8742 # Compiler flag to generate thread-safe objects.
8743 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8744
8745 # Library versioning type.
8746 version_type=$version_type
8747
8748 # Format of library name prefix.
8749 libname_spec=$lt_libname_spec
8750
8751 # List of archive names.  First name is the real one, the rest are links.
8752 # The last name is the one that the linker finds with -lNAME.
8753 library_names_spec=$lt_library_names_spec
8754
8755 # The coded name of the library, if different from the real name.
8756 soname_spec=$lt_soname_spec
8757
8758 # Commands used to build and install an old-style archive.
8759 RANLIB=$lt_RANLIB
8760 old_archive_cmds=$lt_old_archive_cmds
8761 old_postinstall_cmds=$lt_old_postinstall_cmds
8762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8763
8764 # Create an old-style archive from a shared archive.
8765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8766
8767 # Create a temporary old-style archive to link instead of a shared archive.
8768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8769
8770 # Commands used to build and install a shared archive.
8771 archive_cmds=$lt_archive_cmds
8772 archive_expsym_cmds=$lt_archive_expsym_cmds
8773 postinstall_cmds=$lt_postinstall_cmds
8774 postuninstall_cmds=$lt_postuninstall_cmds
8775
8776 # Commands used to build a loadable module (assumed same as above if empty)
8777 module_cmds=$lt_module_cmds
8778 module_expsym_cmds=$lt_module_expsym_cmds
8779
8780 # Commands to strip libraries.
8781 old_striplib=$lt_old_striplib
8782 striplib=$lt_striplib
8783
8784 # Dependencies to place before the objects being linked to create a
8785 # shared library.
8786 predep_objects=$lt_predep_objects
8787
8788 # Dependencies to place after the objects being linked to create a
8789 # shared library.
8790 postdep_objects=$lt_postdep_objects
8791
8792 # Dependencies to place before the objects being linked to create a
8793 # shared library.
8794 predeps=$lt_predeps
8795
8796 # Dependencies to place after the objects being linked to create a
8797 # shared library.
8798 postdeps=$lt_postdeps
8799
8800 # The library search path used internally by the compiler when linking
8801 # a shared library.
8802 compiler_lib_search_path=$lt_compiler_lib_search_path
8803
8804 # Method to check whether dependent libraries are shared objects.
8805 deplibs_check_method=$lt_deplibs_check_method
8806
8807 # Command to use when deplibs_check_method == file_magic.
8808 file_magic_cmd=$lt_file_magic_cmd
8809
8810 # Flag that allows shared libraries with undefined symbols to be built.
8811 allow_undefined_flag=$lt_allow_undefined_flag
8812
8813 # Flag that forces no undefined symbols.
8814 no_undefined_flag=$lt_no_undefined_flag
8815
8816 # Commands used to finish a libtool library installation in a directory.
8817 finish_cmds=$lt_finish_cmds
8818
8819 # Same as above, but a single script fragment to be evaled but not shown.
8820 finish_eval=$lt_finish_eval
8821
8822 # Take the output of nm and produce a listing of raw symbols and C names.
8823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8824
8825 # Transform the output of nm in a proper C declaration
8826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8827
8828 # Transform the output of nm in a C name address pair
8829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8830
8831 # This is the shared library runtime path variable.
8832 runpath_var=$runpath_var
8833
8834 # This is the shared library path variable.
8835 shlibpath_var=$shlibpath_var
8836
8837 # Is shlibpath searched before the hard-coded library search path?
8838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8839
8840 # How to hardcode a shared library path into an executable.
8841 hardcode_action=$hardcode_action
8842
8843 # Whether we should hardcode library paths into libraries.
8844 hardcode_into_libs=$hardcode_into_libs
8845
8846 # Flag to hardcode \$libdir into a binary during linking.
8847 # This must work even if \$libdir does not exist.
8848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8849
8850 # If ld is used when linking, flag to hardcode \$libdir into
8851 # a binary during linking. This must work even if \$libdir does
8852 # not exist.
8853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8854
8855 # Whether we need a single -rpath flag with a separated argument.
8856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8857
8858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8859 # resulting binary.
8860 hardcode_direct=$hardcode_direct
8861
8862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8863 # resulting binary.
8864 hardcode_minus_L=$hardcode_minus_L
8865
8866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8867 # the resulting binary.
8868 hardcode_shlibpath_var=$hardcode_shlibpath_var
8869
8870 # Set to yes if building a shared library automatically hardcodes DIR into the library
8871 # and all subsequent libraries and executables linked against it.
8872 hardcode_automatic=$hardcode_automatic
8873
8874 # Variables whose values should be saved in libtool wrapper scripts and
8875 # restored at relink time.
8876 variables_saved_for_relink="$variables_saved_for_relink"
8877
8878 # Whether libtool must link a program against all its dependency libraries.
8879 link_all_deplibs=$link_all_deplibs
8880
8881 # Compile-time system search path for libraries
8882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8883
8884 # Run-time system search path for libraries
8885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8886
8887 # Fix the shell variable \$srcfile for the compiler.
8888 fix_srcfile_path="$fix_srcfile_path"
8889
8890 # Set to yes if exported symbols are required.
8891 always_export_symbols=$always_export_symbols
8892
8893 # The commands to list exported symbols.
8894 export_symbols_cmds=$lt_export_symbols_cmds
8895
8896 # The commands to extract the exported symbol list from a shared archive.
8897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8898
8899 # Symbols that should not be listed in the preloaded symbols.
8900 exclude_expsyms=$lt_exclude_expsyms
8901
8902 # Symbols that must always be exported.
8903 include_expsyms=$lt_include_expsyms
8904
8905 # ### END LIBTOOL CONFIG
8906
8907 __EOF__
8908
8909
8910   case $host_os in
8911   aix3*)
8912     cat <<\EOF >> "$cfgfile"
8913
8914 # AIX sometimes has problems with the GCC collect2 program.  For some
8915 # reason, if we set the COLLECT_NAMES environment variable, the problems
8916 # vanish in a puff of smoke.
8917 if test "X${COLLECT_NAMES+set}" != Xset; then
8918   COLLECT_NAMES=
8919   export COLLECT_NAMES
8920 fi
8921 EOF
8922     ;;
8923   esac
8924
8925   # We use sed instead of cat because bash on DJGPP gets confused if
8926   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8927   # text mode, it properly converts lines to CR/LF.  This bash problem
8928   # is reportedly fixed, but why not run on old versions too?
8929   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8930
8931   mv -f "$cfgfile" "$ofile" || \
8932     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8933   chmod +x "$ofile"
8934
8935 else
8936   # If there is no Makefile yet, we rely on a make rule to execute
8937   # `config.status --recheck' to rerun these tests and create the
8938   # libtool script then.
8939   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8940   if test -f "$ltmain_in"; then
8941     test -f Makefile && make "$ltmain"
8942   fi
8943 fi
8944
8945
8946 ac_ext=c
8947 ac_cpp='$CPP $CPPFLAGS'
8948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951
8952 CC="$lt_save_CC"
8953
8954
8955 # Check whether --with-tags or --without-tags was given.
8956 if test "${with_tags+set}" = set; then
8957   withval="$with_tags"
8958   tagnames="$withval"
8959 fi;
8960
8961 if test -f "$ltmain" && test -n "$tagnames"; then
8962   if test ! -f "${ofile}"; then
8963     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8964 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8965   fi
8966
8967   if test -z "$LTCC"; then
8968     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8969     if test -z "$LTCC"; then
8970       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8971 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8972     else
8973       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8974 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8975     fi
8976   fi
8977
8978   # Extract list of available tagged configurations in $ofile.
8979   # Note that this assumes the entire list is on one line.
8980   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8981
8982   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8983   for tagname in $tagnames; do
8984     IFS="$lt_save_ifs"
8985     # Check whether tagname contains only valid characters
8986     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8987     "") ;;
8988     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8989 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8990    { (exit 1); exit 1; }; }
8991         ;;
8992     esac
8993
8994     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8995     then
8996       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8997 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8998    { (exit 1); exit 1; }; }
8999     fi
9000
9001     # Update the list of available tags.
9002     if test -n "$tagname"; then
9003       echo appending configuration tag \"$tagname\" to $ofile
9004
9005       case $tagname in
9006       CXX)
9007         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9008             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9009             (test "X$CXX" != "Xg++"))) ; then
9010           ac_ext=cc
9011 ac_cpp='$CXXCPP $CPPFLAGS'
9012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9015
9016
9017
9018
9019 archive_cmds_need_lc_CXX=no
9020 allow_undefined_flag_CXX=
9021 always_export_symbols_CXX=no
9022 archive_expsym_cmds_CXX=
9023 export_dynamic_flag_spec_CXX=
9024 hardcode_direct_CXX=no
9025 hardcode_libdir_flag_spec_CXX=
9026 hardcode_libdir_flag_spec_ld_CXX=
9027 hardcode_libdir_separator_CXX=
9028 hardcode_minus_L_CXX=no
9029 hardcode_automatic_CXX=no
9030 module_cmds_CXX=
9031 module_expsym_cmds_CXX=
9032 link_all_deplibs_CXX=unknown
9033 old_archive_cmds_CXX=$old_archive_cmds
9034 no_undefined_flag_CXX=
9035 whole_archive_flag_spec_CXX=
9036 enable_shared_with_static_runtimes_CXX=no
9037
9038 # Dependencies to place before and after the object being linked:
9039 predep_objects_CXX=
9040 postdep_objects_CXX=
9041 predeps_CXX=
9042 postdeps_CXX=
9043 compiler_lib_search_path_CXX=
9044
9045 # Source file extension for C++ test sources.
9046 ac_ext=cc
9047
9048 # Object file extension for compiled C++ test sources.
9049 objext=o
9050 objext_CXX=$objext
9051
9052 # Code to be used in simple compile tests
9053 lt_simple_compile_test_code="int some_variable = 0;\n"
9054
9055 # Code to be used in simple link tests
9056 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9057
9058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9059
9060 # If no C compiler was specified, use CC.
9061 LTCC=${LTCC-"$CC"}
9062
9063 # Allow CC to be a program name with arguments.
9064 compiler=$CC
9065
9066
9067 # Allow CC to be a program name with arguments.
9068 lt_save_CC=$CC
9069 lt_save_LD=$LD
9070 lt_save_GCC=$GCC
9071 GCC=$GXX
9072 lt_save_with_gnu_ld=$with_gnu_ld
9073 lt_save_path_LD=$lt_cv_path_LD
9074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9075   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9076 else
9077   unset lt_cv_prog_gnu_ld
9078 fi
9079 if test -n "${lt_cv_path_LDCXX+set}"; then
9080   lt_cv_path_LD=$lt_cv_path_LDCXX
9081 else
9082   unset lt_cv_path_LD
9083 fi
9084 test -z "${LDCXX+set}" || LD=$LDCXX
9085 CC=${CXX-"c++"}
9086 compiler=$CC
9087 compiler_CXX=$CC
9088 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9089
9090 # We don't want -fno-exception wen compiling C++ code, so set the
9091 # no_builtin_flag separately
9092 if test "$GXX" = yes; then
9093   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9094 else
9095   lt_prog_compiler_no_builtin_flag_CXX=
9096 fi
9097
9098 if test "$GXX" = yes; then
9099   # Set up default GNU C++ configuration
9100
9101
9102 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9103 if test "${with_gnu_ld+set}" = set; then
9104   withval="$with_gnu_ld"
9105   test "$withval" = no || with_gnu_ld=yes
9106 else
9107   with_gnu_ld=no
9108 fi;
9109 ac_prog=ld
9110 if test "$GCC" = yes; then
9111   # Check if gcc -print-prog-name=ld gives a path.
9112   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9113 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9114   case $host in
9115   *-*-mingw*)
9116     # gcc leaves a trailing carriage return which upsets mingw
9117     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9118   *)
9119     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9120   esac
9121   case $ac_prog in
9122     # Accept absolute paths.
9123     [\\/]* | ?:[\\/]*)
9124       re_direlt='/[^/][^/]*/\.\./'
9125       # Canonicalize the pathname of ld
9126       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9127       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9128         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9129       done
9130       test -z "$LD" && LD="$ac_prog"
9131       ;;
9132   "")
9133     # If it fails, then pretend we aren't using GCC.
9134     ac_prog=ld
9135     ;;
9136   *)
9137     # If it is relative, then search for the first ld in PATH.
9138     with_gnu_ld=unknown
9139     ;;
9140   esac
9141 elif test "$with_gnu_ld" = yes; then
9142   echo "$as_me:$LINENO: checking for GNU ld" >&5
9143 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9144 else
9145   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9146 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9147 fi
9148 if test "${lt_cv_path_LD+set}" = set; then
9149   echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151   if test -z "$LD"; then
9152   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9153   for ac_dir in $PATH; do
9154     IFS="$lt_save_ifs"
9155     test -z "$ac_dir" && ac_dir=.
9156     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9157       lt_cv_path_LD="$ac_dir/$ac_prog"
9158       # Check to see if the program is GNU ld.  I'd rather use --version,
9159       # but apparently some GNU ld's only accept -v.
9160       # Break only if it was the GNU/non-GNU ld that we prefer.
9161       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9162       *GNU* | *'with BFD'*)
9163         test "$with_gnu_ld" != no && break
9164         ;;
9165       *)
9166         test "$with_gnu_ld" != yes && break
9167         ;;
9168       esac
9169     fi
9170   done
9171   IFS="$lt_save_ifs"
9172 else
9173   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9174 fi
9175 fi
9176
9177 LD="$lt_cv_path_LD"
9178 if test -n "$LD"; then
9179   echo "$as_me:$LINENO: result: $LD" >&5
9180 echo "${ECHO_T}$LD" >&6
9181 else
9182   echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9184 fi
9185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9187    { (exit 1); exit 1; }; }
9188 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9190 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9194 case `$LD -v 2>&1 </dev/null` in
9195 *GNU* | *'with BFD'*)
9196   lt_cv_prog_gnu_ld=yes
9197   ;;
9198 *)
9199   lt_cv_prog_gnu_ld=no
9200   ;;
9201 esac
9202 fi
9203 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9204 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9205 with_gnu_ld=$lt_cv_prog_gnu_ld
9206
9207
9208
9209   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9210   # archiving commands below assume that GNU ld is being used.
9211   if test "$with_gnu_ld" = yes; then
9212     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213     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'
9214
9215     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9216     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9217
9218     # If archive_cmds runs LD, not CC, wlarc should be empty
9219     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9220     #     investigate it a little bit more. (MM)
9221     wlarc='${wl}'
9222
9223     # ancient GNU ld didn't support --whole-archive et. al.
9224     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9225         grep 'no-whole-archive' > /dev/null; then
9226       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9227     else
9228       whole_archive_flag_spec_CXX=
9229     fi
9230   else
9231     with_gnu_ld=no
9232     wlarc=
9233
9234     # A generic and very simple default shared library creation
9235     # command for GNU C++ for the case where it uses the native
9236     # linker, instead of GNU ld.  If possible, this setting should
9237     # overridden to take advantage of the native linker features on
9238     # the platform it is being used on.
9239     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9240   fi
9241
9242   # Commands to make compiler produce verbose output that lists
9243   # what "hidden" libraries, object files and flags are used when
9244   # linking a shared library.
9245   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9246
9247 else
9248   GXX=no
9249   with_gnu_ld=no
9250   wlarc=
9251 fi
9252
9253 # PORTME: fill in a description of your system's C++ link characteristics
9254 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9255 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9256 ld_shlibs_CXX=yes
9257 case $host_os in
9258   aix3*)
9259     # FIXME: insert proper C++ library support
9260     ld_shlibs_CXX=no
9261     ;;
9262   aix4* | aix5*)
9263     if test "$host_cpu" = ia64; then
9264       # On IA64, the linker does run time linking by default, so we don't
9265       # have to do anything special.
9266       aix_use_runtimelinking=no
9267       exp_sym_flag='-Bexport'
9268       no_entry_flag=""
9269     else
9270       aix_use_runtimelinking=no
9271
9272       # Test if we are trying to use run time linking or normal
9273       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9274       # need to do runtime linking.
9275       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9276         for ld_flag in $LDFLAGS; do
9277           case $ld_flag in
9278           *-brtl*)
9279             aix_use_runtimelinking=yes
9280             break
9281             ;;
9282           esac
9283         done
9284       esac
9285
9286       exp_sym_flag='-bexport'
9287       no_entry_flag='-bnoentry'
9288     fi
9289
9290     # When large executables or shared objects are built, AIX ld can
9291     # have problems creating the table of contents.  If linking a library
9292     # or program results in "error TOC overflow" add -mminimal-toc to
9293     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9294     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9295
9296     archive_cmds_CXX=''
9297     hardcode_direct_CXX=yes
9298     hardcode_libdir_separator_CXX=':'
9299     link_all_deplibs_CXX=yes
9300
9301     if test "$GXX" = yes; then
9302       case $host_os in aix4.[012]|aix4.[012].*)
9303       # We only want to do this on AIX 4.2 and lower, the check
9304       # below for broken collect2 doesn't work under 4.3+
9305         collect2name=`${CC} -print-prog-name=collect2`
9306         if test -f "$collect2name" && \
9307            strings "$collect2name" | grep resolve_lib_name >/dev/null
9308         then
9309           # We have reworked collect2
9310           hardcode_direct_CXX=yes
9311         else
9312           # We have old collect2
9313           hardcode_direct_CXX=unsupported
9314           # It fails to find uninstalled libraries when the uninstalled
9315           # path is not listed in the libpath.  Setting hardcode_minus_L
9316           # to unsupported forces relinking
9317           hardcode_minus_L_CXX=yes
9318           hardcode_libdir_flag_spec_CXX='-L$libdir'
9319           hardcode_libdir_separator_CXX=
9320         fi
9321       esac
9322       shared_flag='-shared'
9323       if test "$aix_use_runtimelinking" = yes; then
9324         shared_flag="$shared_flag "'${wl}-G'
9325       fi
9326     else
9327       # not using gcc
9328       if test "$host_cpu" = ia64; then
9329         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9330         # chokes on -Wl,-G. The following line is correct:
9331         shared_flag='-G'
9332       else
9333         if test "$aix_use_runtimelinking" = yes; then
9334           shared_flag='${wl}-G'
9335         else
9336           shared_flag='${wl}-bM:SRE'
9337         fi
9338       fi
9339     fi
9340
9341     # It seems that -bexpall does not export symbols beginning with
9342     # underscore (_), so it is better to generate a list of symbols to export.
9343     always_export_symbols_CXX=yes
9344     if test "$aix_use_runtimelinking" = yes; then
9345       # Warning - without using the other runtime loading flags (-brtl),
9346       # -berok will link without error, but may produce a broken library.
9347       allow_undefined_flag_CXX='-berok'
9348       # Determine the default libpath from the value encoded in an empty executable.
9349       cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355
9356 int
9357 main ()
9358 {
9359
9360   ;
9361   return 0;
9362 }
9363 _ACEOF
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366   (eval $ac_link) 2>conftest.er1
9367   ac_status=$?
9368   grep -v '^ *+' conftest.er1 >conftest.err
9369   rm -f conftest.er1
9370   cat conftest.err >&5
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -z "$ac_cxx_werror_flag"
9374                          || test ! -s conftest.err'
9375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376   (eval $ac_try) 2>&5
9377   ac_status=$?
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); }; } &&
9380          { ac_try='test -s conftest$ac_exeext'
9381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382   (eval $ac_try) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; }; then
9386
9387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9388 }'`
9389 # Check for a 64-bit object if we didn't find anything.
9390 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; }
9391 }'`; fi
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 fi
9397 rm -f conftest.err conftest.$ac_objext \
9398       conftest$ac_exeext conftest.$ac_ext
9399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9400
9401       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9402
9403       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"
9404      else
9405       if test "$host_cpu" = ia64; then
9406         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9407         allow_undefined_flag_CXX="-z nodefs"
9408         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"
9409       else
9410         # Determine the default libpath from the value encoded in an empty executable.
9411         cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h.  */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h.  */
9417
9418 int
9419 main ()
9420 {
9421
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428   (eval $ac_link) 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } &&
9435          { ac_try='test -z "$ac_cxx_werror_flag"
9436                          || test ! -s conftest.err'
9437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438   (eval $ac_try) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; } &&
9442          { ac_try='test -s conftest$ac_exeext'
9443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444   (eval $ac_try) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; }; then
9448
9449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9450 }'`
9451 # Check for a 64-bit object if we didn't find anything.
9452 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; }
9453 }'`; fi
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 fi
9459 rm -f conftest.err conftest.$ac_objext \
9460       conftest$ac_exeext conftest.$ac_ext
9461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9462
9463         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9464         # Warning - without using the other run time loading flags,
9465         # -berok will link without error, but may produce a broken library.
9466         no_undefined_flag_CXX=' ${wl}-bernotok'
9467         allow_undefined_flag_CXX=' ${wl}-berok'
9468         # -bexpall does not export symbols beginning with underscore (_)
9469         always_export_symbols_CXX=yes
9470         # Exported symbols can be pulled into shared objects from archives
9471         whole_archive_flag_spec_CXX=' '
9472         archive_cmds_need_lc_CXX=yes
9473         # This is similar to how AIX traditionally builds it's shared libraries.
9474         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'
9475       fi
9476     fi
9477     ;;
9478   chorus*)
9479     case $cc_basename in
9480       *)
9481         # FIXME: insert proper C++ library support
9482         ld_shlibs_CXX=no
9483         ;;
9484     esac
9485     ;;
9486
9487
9488   cygwin* | mingw* | pw32*)
9489     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9490     # as there is no search path for DLLs.
9491     hardcode_libdir_flag_spec_CXX='-L$libdir'
9492     allow_undefined_flag_CXX=unsupported
9493     always_export_symbols_CXX=no
9494     enable_shared_with_static_runtimes_CXX=yes
9495
9496     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9497       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'
9498       # If the export-symbols file already is a .def file (1st line
9499       # is EXPORTS), use it as is; otherwise, prepend...
9500       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9501         cp $export_symbols $output_objdir/$soname.def;
9502       else
9503         echo EXPORTS > $output_objdir/$soname.def;
9504         cat $export_symbols >> $output_objdir/$soname.def;
9505       fi~
9506       $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'
9507     else
9508       ld_shlibs_CXX=no
9509     fi
9510   ;;
9511       darwin* | rhapsody*)
9512         case "$host_os" in
9513         rhapsody* | darwin1.[012])
9514          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9515          ;;
9516        *) # Darwin 1.3 on
9517          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9518            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9519          else
9520            case ${MACOSX_DEPLOYMENT_TARGET} in
9521              10.[012])
9522                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9523                ;;
9524              10.*)
9525                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9526                ;;
9527            esac
9528          fi
9529          ;;
9530         esac
9531       archive_cmds_need_lc_CXX=no
9532       hardcode_direct_CXX=no
9533       hardcode_automatic_CXX=yes
9534       hardcode_shlibpath_var_CXX=unsupported
9535       whole_archive_flag_spec_CXX=''
9536       link_all_deplibs_CXX=yes
9537
9538     if test "$GXX" = yes ; then
9539       lt_int_apple_cc_single_mod=no
9540       output_verbose_link_cmd='echo'
9541       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9542        lt_int_apple_cc_single_mod=yes
9543       fi
9544       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9545        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9546       else
9547           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9548         fi
9549         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9550         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9551           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9552             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}'
9553           else
9554             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9555           fi
9556             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}'
9557       else
9558       case "$cc_basename" in
9559         xlc*)
9560          output_verbose_link_cmd='echo'
9561           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9562           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9563           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9564           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9565           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}'
9566           ;;
9567        *)
9568          ld_shlibs_CXX=no
9569           ;;
9570       esac
9571       fi
9572         ;;
9573
9574   dgux*)
9575     case $cc_basename in
9576       ec++)
9577         # FIXME: insert proper C++ library support
9578         ld_shlibs_CXX=no
9579         ;;
9580       ghcx)
9581         # Green Hills C++ Compiler
9582         # FIXME: insert proper C++ library support
9583         ld_shlibs_CXX=no
9584         ;;
9585       *)
9586         # FIXME: insert proper C++ library support
9587         ld_shlibs_CXX=no
9588         ;;
9589     esac
9590     ;;
9591   freebsd[12]*)
9592     # C++ shared libraries reported to be fairly broken before switch to ELF
9593     ld_shlibs_CXX=no
9594     ;;
9595   freebsd-elf*)
9596     archive_cmds_need_lc_CXX=no
9597     ;;
9598   freebsd* | kfreebsd*-gnu | dragonfly*)
9599     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9600     # conventions
9601     ld_shlibs_CXX=yes
9602     ;;
9603   gnu*)
9604     ;;
9605   hpux9*)
9606     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9607     hardcode_libdir_separator_CXX=:
9608     export_dynamic_flag_spec_CXX='${wl}-E'
9609     hardcode_direct_CXX=yes
9610     hardcode_minus_L_CXX=yes # Not in the search PATH,
9611                                 # but as the default
9612                                 # location of the library.
9613
9614     case $cc_basename in
9615     CC)
9616       # FIXME: insert proper C++ library support
9617       ld_shlibs_CXX=no
9618       ;;
9619     aCC)
9620       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'
9621       # Commands to make compiler produce verbose output that lists
9622       # what "hidden" libraries, object files and flags are used when
9623       # linking a shared library.
9624       #
9625       # There doesn't appear to be a way to prevent this compiler from
9626       # explicitly linking system object files so we need to strip them
9627       # from the output so that they don't get included in the library
9628       # dependencies.
9629       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'
9630       ;;
9631     *)
9632       if test "$GXX" = yes; then
9633         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'
9634       else
9635         # FIXME: insert proper C++ library support
9636         ld_shlibs_CXX=no
9637       fi
9638       ;;
9639     esac
9640     ;;
9641   hpux10*|hpux11*)
9642     if test $with_gnu_ld = no; then
9643       case "$host_cpu" in
9644       hppa*64*)
9645         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9646         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9647         hardcode_libdir_separator_CXX=:
9648         ;;
9649       ia64*)
9650         hardcode_libdir_flag_spec_CXX='-L$libdir'
9651         ;;
9652       *)
9653         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9654         hardcode_libdir_separator_CXX=:
9655         export_dynamic_flag_spec_CXX='${wl}-E'
9656         ;;
9657       esac
9658     fi
9659     case "$host_cpu" in
9660     hppa*64*)
9661       hardcode_direct_CXX=no
9662       hardcode_shlibpath_var_CXX=no
9663       ;;
9664     ia64*)
9665       hardcode_direct_CXX=no
9666       hardcode_shlibpath_var_CXX=no
9667       hardcode_minus_L_CXX=yes # Not in the search PATH,
9668                                               # but as the default
9669                                               # location of the library.
9670       ;;
9671     *)
9672       hardcode_direct_CXX=yes
9673       hardcode_minus_L_CXX=yes # Not in the search PATH,
9674                                               # but as the default
9675                                               # location of the library.
9676       ;;
9677     esac
9678
9679     case $cc_basename in
9680       CC)
9681         # FIXME: insert proper C++ library support
9682         ld_shlibs_CXX=no
9683         ;;
9684       aCC)
9685         case "$host_cpu" in
9686         hppa*64*|ia64*)
9687           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9688           ;;
9689         *)
9690           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9691           ;;
9692         esac
9693         # Commands to make compiler produce verbose output that lists
9694         # what "hidden" libraries, object files and flags are used when
9695         # linking a shared library.
9696         #
9697         # There doesn't appear to be a way to prevent this compiler from
9698         # explicitly linking system object files so we need to strip them
9699         # from the output so that they don't get included in the library
9700         # dependencies.
9701         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'
9702         ;;
9703       *)
9704         if test "$GXX" = yes; then
9705           if test $with_gnu_ld = no; then
9706             case "$host_cpu" in
9707             ia64*|hppa*64*)
9708               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9709               ;;
9710             *)
9711               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'
9712               ;;
9713             esac
9714           fi
9715         else
9716           # FIXME: insert proper C++ library support
9717           ld_shlibs_CXX=no
9718         fi
9719         ;;
9720     esac
9721     ;;
9722   irix5* | irix6*)
9723     case $cc_basename in
9724       CC)
9725         # SGI C++
9726         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'
9727
9728         # Archives containing C++ object files must be created using
9729         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9730         # necessary to make sure instantiated templates are included
9731         # in the archive.
9732         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9733         ;;
9734       *)
9735         if test "$GXX" = yes; then
9736           if test "$with_gnu_ld" = no; then
9737             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'
9738           else
9739             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'
9740           fi
9741         fi
9742         link_all_deplibs_CXX=yes
9743         ;;
9744     esac
9745     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9746     hardcode_libdir_separator_CXX=:
9747     ;;
9748   linux*)
9749     case $cc_basename in
9750       KCC)
9751         # Kuck and Associates, Inc. (KAI) C++ Compiler
9752
9753         # KCC will only create a shared library if the output file
9754         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9755         # to its proper name (with version) after linking.
9756         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'
9757         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'
9758         # Commands to make compiler produce verbose output that lists
9759         # what "hidden" libraries, object files and flags are used when
9760         # linking a shared library.
9761         #
9762         # There doesn't appear to be a way to prevent this compiler from
9763         # explicitly linking system object files so we need to strip them
9764         # from the output so that they don't get included in the library
9765         # dependencies.
9766         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'
9767
9768         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9769         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9770
9771         # Archives containing C++ object files must be created using
9772         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9773         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9774         ;;
9775       icpc)
9776         # Intel C++
9777         with_gnu_ld=yes
9778         # version 8.0 and above of icpc choke on multiply defined symbols
9779         # if we add $predep_objects and $postdep_objects, however 7.1 and
9780         # earlier do not add the objects themselves.
9781         case `$CC -V 2>&1` in
9782         *"Version 7."*)
9783           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784           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'
9785           ;;
9786         *)  # Version 8.0 or newer
9787           tmp_idyn=
9788           case $host_cpu in
9789             ia64*) tmp_idyn=' -i_dynamic';;
9790           esac
9791           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9792           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9793           ;;
9794         esac
9795         archive_cmds_need_lc_CXX=no
9796         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9797         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9798         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9799         ;;
9800       pgCC)
9801         # Portland Group C++ compiler
9802         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9803         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'
9804
9805         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9806         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9807         ;;
9808       cxx)
9809         # Compaq C++
9810         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811         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'
9812
9813         runpath_var=LD_RUN_PATH
9814         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9815         hardcode_libdir_separator_CXX=:
9816
9817         # Commands to make compiler produce verbose output that lists
9818         # what "hidden" libraries, object files and flags are used when
9819         # linking a shared library.
9820         #
9821         # There doesn't appear to be a way to prevent this compiler from
9822         # explicitly linking system object files so we need to strip them
9823         # from the output so that they don't get included in the library
9824         # dependencies.
9825         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'
9826         ;;
9827     esac
9828     ;;
9829   lynxos*)
9830     # FIXME: insert proper C++ library support
9831     ld_shlibs_CXX=no
9832     ;;
9833   m88k*)
9834     # FIXME: insert proper C++ library support
9835     ld_shlibs_CXX=no
9836     ;;
9837   mvs*)
9838     case $cc_basename in
9839       cxx)
9840         # FIXME: insert proper C++ library support
9841         ld_shlibs_CXX=no
9842         ;;
9843       *)
9844         # FIXME: insert proper C++ library support
9845         ld_shlibs_CXX=no
9846         ;;
9847     esac
9848     ;;
9849   netbsd*)
9850     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9851       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9852       wlarc=
9853       hardcode_libdir_flag_spec_CXX='-R$libdir'
9854       hardcode_direct_CXX=yes
9855       hardcode_shlibpath_var_CXX=no
9856     fi
9857     # Workaround some broken pre-1.5 toolchains
9858     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9859     ;;
9860   openbsd2*)
9861     # C++ shared libraries are fairly broken
9862     ld_shlibs_CXX=no
9863     ;;
9864   openbsd*)
9865     hardcode_direct_CXX=yes
9866     hardcode_shlibpath_var_CXX=no
9867     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9868     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9869     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9870       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9871       export_dynamic_flag_spec_CXX='${wl}-E'
9872       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9873     fi
9874     output_verbose_link_cmd='echo'
9875     ;;
9876   osf3*)
9877     case $cc_basename in
9878       KCC)
9879         # Kuck and Associates, Inc. (KAI) C++ Compiler
9880
9881         # KCC will only create a shared library if the output file
9882         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9883         # to its proper name (with version) after linking.
9884         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'
9885
9886         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9887         hardcode_libdir_separator_CXX=:
9888
9889         # Archives containing C++ object files must be created using
9890         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9891         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9892
9893         ;;
9894       RCC)
9895         # Rational C++ 2.4.1
9896         # FIXME: insert proper C++ library support
9897         ld_shlibs_CXX=no
9898         ;;
9899       cxx)
9900         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9901         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'
9902
9903         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9904         hardcode_libdir_separator_CXX=:
9905
9906         # Commands to make compiler produce verbose output that lists
9907         # what "hidden" libraries, object files and flags are used when
9908         # linking a shared library.
9909         #
9910         # There doesn't appear to be a way to prevent this compiler from
9911         # explicitly linking system object files so we need to strip them
9912         # from the output so that they don't get included in the library
9913         # dependencies.
9914         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'
9915         ;;
9916       *)
9917         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9918           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9919           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'
9920
9921           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9922           hardcode_libdir_separator_CXX=:
9923
9924           # Commands to make compiler produce verbose output that lists
9925           # what "hidden" libraries, object files and flags are used when
9926           # linking a shared library.
9927           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9928
9929         else
9930           # FIXME: insert proper C++ library support
9931           ld_shlibs_CXX=no
9932         fi
9933         ;;
9934     esac
9935     ;;
9936   osf4* | osf5*)
9937     case $cc_basename in
9938       KCC)
9939         # Kuck and Associates, Inc. (KAI) C++ Compiler
9940
9941         # KCC will only create a shared library if the output file
9942         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9943         # to its proper name (with version) after linking.
9944         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'
9945
9946         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9947         hardcode_libdir_separator_CXX=:
9948
9949         # Archives containing C++ object files must be created using
9950         # the KAI C++ compiler.
9951         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9952         ;;
9953       RCC)
9954         # Rational C++ 2.4.1
9955         # FIXME: insert proper C++ library support
9956         ld_shlibs_CXX=no
9957         ;;
9958       cxx)
9959         allow_undefined_flag_CXX=' -expect_unresolved \*'
9960         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'
9961         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9962           echo "-hidden">> $lib.exp~
9963           $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~
9964           $rm $lib.exp'
9965
9966         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9967         hardcode_libdir_separator_CXX=:
9968
9969         # Commands to make compiler produce verbose output that lists
9970         # what "hidden" libraries, object files and flags are used when
9971         # linking a shared library.
9972         #
9973         # There doesn't appear to be a way to prevent this compiler from
9974         # explicitly linking system object files so we need to strip them
9975         # from the output so that they don't get included in the library
9976         # dependencies.
9977         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'
9978         ;;
9979       *)
9980         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9981           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9982          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'
9983
9984           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9985           hardcode_libdir_separator_CXX=:
9986
9987           # Commands to make compiler produce verbose output that lists
9988           # what "hidden" libraries, object files and flags are used when
9989           # linking a shared library.
9990           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9991
9992         else
9993           # FIXME: insert proper C++ library support
9994           ld_shlibs_CXX=no
9995         fi
9996         ;;
9997     esac
9998     ;;
9999   psos*)
10000     # FIXME: insert proper C++ library support
10001     ld_shlibs_CXX=no
10002     ;;
10003   sco*)
10004     archive_cmds_need_lc_CXX=no
10005     case $cc_basename in
10006       CC)
10007         # FIXME: insert proper C++ library support
10008         ld_shlibs_CXX=no
10009         ;;
10010       *)
10011         # FIXME: insert proper C++ library support
10012         ld_shlibs_CXX=no
10013         ;;
10014     esac
10015     ;;
10016   sunos4*)
10017     case $cc_basename in
10018       CC)
10019         # Sun C++ 4.x
10020         # FIXME: insert proper C++ library support
10021         ld_shlibs_CXX=no
10022         ;;
10023       lcc)
10024         # Lucid
10025         # FIXME: insert proper C++ library support
10026         ld_shlibs_CXX=no
10027         ;;
10028       *)
10029         # FIXME: insert proper C++ library support
10030         ld_shlibs_CXX=no
10031         ;;
10032     esac
10033     ;;
10034   solaris*)
10035     case $cc_basename in
10036       CC)
10037         # Sun C++ 4.2, 5.x and Centerline C++
10038         no_undefined_flag_CXX=' -zdefs'
10039         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10040         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10041         $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'
10042
10043         hardcode_libdir_flag_spec_CXX='-R$libdir'
10044         hardcode_shlibpath_var_CXX=no
10045         case $host_os in
10046           solaris2.[0-5] | solaris2.[0-5].*) ;;
10047           *)
10048             # The C++ compiler is used as linker so we must use $wl
10049             # flag to pass the commands to the underlying system
10050             # linker.
10051             # Supported since Solaris 2.6 (maybe 2.5.1?)
10052             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10053             ;;
10054         esac
10055         link_all_deplibs_CXX=yes
10056
10057         # Commands to make compiler produce verbose output that lists
10058         # what "hidden" libraries, object files and flags are used when
10059         # linking a shared library.
10060         #
10061         # There doesn't appear to be a way to prevent this compiler from
10062         # explicitly linking system object files so we need to strip them
10063         # from the output so that they don't get included in the library
10064         # dependencies.
10065         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'
10066
10067         # Archives containing C++ object files must be created using
10068         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10069         # necessary to make sure instantiated templates are included
10070         # in the archive.
10071         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10072         ;;
10073       gcx)
10074         # Green Hills C++ Compiler
10075         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10076
10077         # The C++ compiler must be used to create the archive.
10078         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10079         ;;
10080       *)
10081         # GNU C++ compiler with Solaris linker
10082         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10083           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10084           if $CC --version | grep -v '^2\.7' > /dev/null; then
10085             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10086             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10087                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10088
10089             # Commands to make compiler produce verbose output that lists
10090             # what "hidden" libraries, object files and flags are used when
10091             # linking a shared library.
10092             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10093           else
10094             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10095             # platform.
10096             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10097             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10098                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10099
10100             # Commands to make compiler produce verbose output that lists
10101             # what "hidden" libraries, object files and flags are used when
10102             # linking a shared library.
10103             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10104           fi
10105
10106           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10107         fi
10108         ;;
10109     esac
10110     ;;
10111   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10112     archive_cmds_need_lc_CXX=no
10113     ;;
10114   tandem*)
10115     case $cc_basename in
10116       NCC)
10117         # NonStop-UX NCC 3.20
10118         # FIXME: insert proper C++ library support
10119         ld_shlibs_CXX=no
10120         ;;
10121       *)
10122         # FIXME: insert proper C++ library support
10123         ld_shlibs_CXX=no
10124         ;;
10125     esac
10126     ;;
10127   vxworks*)
10128     # FIXME: insert proper C++ library support
10129     ld_shlibs_CXX=no
10130     ;;
10131   *)
10132     # FIXME: insert proper C++ library support
10133     ld_shlibs_CXX=no
10134     ;;
10135 esac
10136 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10137 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10138 test "$ld_shlibs_CXX" = no && can_build_shared=no
10139
10140 GCC_CXX="$GXX"
10141 LD_CXX="$LD"
10142
10143
10144 cat > conftest.$ac_ext <<EOF
10145 class Foo
10146 {
10147 public:
10148   Foo (void) { a = 0; }
10149 private:
10150   int a;
10151 };
10152 EOF
10153
10154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155   (eval $ac_compile) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; then
10159   # Parse the compiler output and extract the necessary
10160   # objects, libraries and library flags.
10161
10162   # Sentinel used to keep track of whether or not we are before
10163   # the conftest object file.
10164   pre_test_object_deps_done=no
10165
10166   # The `*' in the case matches for architectures that use `case' in
10167   # $output_verbose_cmd can trigger glob expansion during the loop
10168   # eval without this substitution.
10169   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10170
10171   for p in `eval $output_verbose_link_cmd`; do
10172     case $p in
10173
10174     -L* | -R* | -l*)
10175        # Some compilers place space between "-{L,R}" and the path.
10176        # Remove the space.
10177        if test $p = "-L" \
10178           || test $p = "-R"; then
10179          prev=$p
10180          continue
10181        else
10182          prev=
10183        fi
10184
10185        if test "$pre_test_object_deps_done" = no; then
10186          case $p in
10187          -L* | -R*)
10188            # Internal compiler library paths should come after those
10189            # provided the user.  The postdeps already come after the
10190            # user supplied libs so there is no need to process them.
10191            if test -z "$compiler_lib_search_path_CXX"; then
10192              compiler_lib_search_path_CXX="${prev}${p}"
10193            else
10194              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10195            fi
10196            ;;
10197          # The "-l" case would never come before the object being
10198          # linked, so don't bother handling this case.
10199          esac
10200        else
10201          if test -z "$postdeps_CXX"; then
10202            postdeps_CXX="${prev}${p}"
10203          else
10204            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10205          fi
10206        fi
10207        ;;
10208
10209     *.$objext)
10210        # This assumes that the test object file only shows up
10211        # once in the compiler output.
10212        if test "$p" = "conftest.$objext"; then
10213          pre_test_object_deps_done=yes
10214          continue
10215        fi
10216
10217        if test "$pre_test_object_deps_done" = no; then
10218          if test -z "$predep_objects_CXX"; then
10219            predep_objects_CXX="$p"
10220          else
10221            predep_objects_CXX="$predep_objects_CXX $p"
10222          fi
10223        else
10224          if test -z "$postdep_objects_CXX"; then
10225            postdep_objects_CXX="$p"
10226          else
10227            postdep_objects_CXX="$postdep_objects_CXX $p"
10228          fi
10229        fi
10230        ;;
10231
10232     *) ;; # Ignore the rest.
10233
10234     esac
10235   done
10236
10237   # Clean up.
10238   rm -f a.out a.exe
10239 else
10240   echo "libtool.m4: error: problem compiling CXX test program"
10241 fi
10242
10243 $rm -f confest.$objext
10244
10245 case " $postdeps_CXX " in
10246 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10247 esac
10248
10249 lt_prog_compiler_wl_CXX=
10250 lt_prog_compiler_pic_CXX=
10251 lt_prog_compiler_static_CXX=
10252
10253 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10255
10256   # C++ specific cases for pic, static, wl, etc.
10257   if test "$GXX" = yes; then
10258     lt_prog_compiler_wl_CXX='-Wl,'
10259     lt_prog_compiler_static_CXX='-static'
10260
10261     case $host_os in
10262     aix*)
10263       # All AIX code is PIC.
10264       if test "$host_cpu" = ia64; then
10265         # AIX 5 now supports IA64 processor
10266         lt_prog_compiler_static_CXX='-Bstatic'
10267       fi
10268       ;;
10269     amigaos*)
10270       # FIXME: we need at least 68020 code to build shared libraries, but
10271       # adding the `-m68020' flag to GCC prevents building anything better,
10272       # like `-m68040'.
10273       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10274       ;;
10275     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10276       # PIC is the default for these OSes.
10277       ;;
10278     mingw* | os2* | pw32*)
10279       # This hack is so that the source file can tell whether it is being
10280       # built for inclusion in a dll (and should export symbols for example).
10281       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10282       ;;
10283     darwin* | rhapsody*)
10284       # PIC is the default on this platform
10285       # Common symbols not allowed in MH_DYLIB files
10286       lt_prog_compiler_pic_CXX='-fno-common'
10287       ;;
10288     *djgpp*)
10289       # DJGPP does not support shared libraries at all
10290       lt_prog_compiler_pic_CXX=
10291       ;;
10292     sysv4*MP*)
10293       if test -d /usr/nec; then
10294         lt_prog_compiler_pic_CXX=-Kconform_pic
10295       fi
10296       ;;
10297     hpux*)
10298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10299       # not for PA HP-UX.
10300       case "$host_cpu" in
10301       hppa*64*|ia64*)
10302         ;;
10303       *)
10304         lt_prog_compiler_pic_CXX='-fPIC'
10305         ;;
10306       esac
10307       ;;
10308     *)
10309       lt_prog_compiler_pic_CXX='-fPIC'
10310       ;;
10311     esac
10312   else
10313     case $host_os in
10314       aix4* | aix5*)
10315         # All AIX code is PIC.
10316         if test "$host_cpu" = ia64; then
10317           # AIX 5 now supports IA64 processor
10318           lt_prog_compiler_static_CXX='-Bstatic'
10319         else
10320           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10321         fi
10322         ;;
10323       chorus*)
10324         case $cc_basename in
10325         cxch68)
10326           # Green Hills C++ Compiler
10327           # _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"
10328           ;;
10329         esac
10330         ;;
10331        darwin*)
10332          # PIC is the default on this platform
10333          # Common symbols not allowed in MH_DYLIB files
10334          case "$cc_basename" in
10335            xlc*)
10336            lt_prog_compiler_pic_CXX='-qnocommon'
10337            lt_prog_compiler_wl_CXX='-Wl,'
10338            ;;
10339          esac
10340        ;;
10341       dgux*)
10342         case $cc_basename in
10343           ec++)
10344             lt_prog_compiler_pic_CXX='-KPIC'
10345             ;;
10346           ghcx)
10347             # Green Hills C++ Compiler
10348             lt_prog_compiler_pic_CXX='-pic'
10349             ;;
10350           *)
10351             ;;
10352         esac
10353         ;;
10354       freebsd* | kfreebsd*-gnu | dragonfly*)
10355         # FreeBSD uses GNU C++
10356         ;;
10357       hpux9* | hpux10* | hpux11*)
10358         case $cc_basename in
10359           CC)
10360             lt_prog_compiler_wl_CXX='-Wl,'
10361             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10362             if test "$host_cpu" != ia64; then
10363               lt_prog_compiler_pic_CXX='+Z'
10364             fi
10365             ;;
10366           aCC)
10367             lt_prog_compiler_wl_CXX='-Wl,'
10368             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10369             case "$host_cpu" in
10370             hppa*64*|ia64*)
10371               # +Z the default
10372               ;;
10373             *)
10374               lt_prog_compiler_pic_CXX='+Z'
10375               ;;
10376             esac
10377             ;;
10378           *)
10379             ;;
10380         esac
10381         ;;
10382       irix5* | irix6* | nonstopux*)
10383         case $cc_basename in
10384           CC)
10385             lt_prog_compiler_wl_CXX='-Wl,'
10386             lt_prog_compiler_static_CXX='-non_shared'
10387             # CC pic flag -KPIC is the default.
10388             ;;
10389           *)
10390             ;;
10391         esac
10392         ;;
10393       linux*)
10394         case $cc_basename in
10395           KCC)
10396             # KAI C++ Compiler
10397             lt_prog_compiler_wl_CXX='--backend -Wl,'
10398             lt_prog_compiler_pic_CXX='-fPIC'
10399             ;;
10400           icpc* | ecpc*)
10401             # Intel C++
10402             lt_prog_compiler_wl_CXX='-Wl,'
10403             lt_prog_compiler_pic_CXX='-KPIC'
10404             lt_prog_compiler_static_CXX='-static'
10405             ;;
10406           pgCC)
10407             # Portland Group C++ compiler.
10408             lt_prog_compiler_wl_CXX='-Wl,'
10409             lt_prog_compiler_pic_CXX='-fpic'
10410             lt_prog_compiler_static_CXX='-static'
10411             ;;
10412           cxx)
10413             # Compaq C++
10414             # Make sure the PIC flag is empty.  It appears that all Alpha
10415             # Linux and Compaq Tru64 Unix objects are PIC.
10416             lt_prog_compiler_pic_CXX=
10417             lt_prog_compiler_static_CXX='-non_shared'
10418             ;;
10419           *)
10420             ;;
10421         esac
10422         ;;
10423       lynxos*)
10424         ;;
10425       m88k*)
10426         ;;
10427       mvs*)
10428         case $cc_basename in
10429           cxx)
10430             lt_prog_compiler_pic_CXX='-W c,exportall'
10431             ;;
10432           *)
10433             ;;
10434         esac
10435         ;;
10436       netbsd*)
10437         ;;
10438       osf3* | osf4* | osf5*)
10439         case $cc_basename in
10440           KCC)
10441             lt_prog_compiler_wl_CXX='--backend -Wl,'
10442             ;;
10443           RCC)
10444             # Rational C++ 2.4.1
10445             lt_prog_compiler_pic_CXX='-pic'
10446             ;;
10447           cxx)
10448             # Digital/Compaq C++
10449             lt_prog_compiler_wl_CXX='-Wl,'
10450             # Make sure the PIC flag is empty.  It appears that all Alpha
10451             # Linux and Compaq Tru64 Unix objects are PIC.
10452             lt_prog_compiler_pic_CXX=
10453             lt_prog_compiler_static_CXX='-non_shared'
10454             ;;
10455           *)
10456             ;;
10457         esac
10458         ;;
10459       psos*)
10460         ;;
10461       sco*)
10462         case $cc_basename in
10463           CC)
10464             lt_prog_compiler_pic_CXX='-fPIC'
10465             ;;
10466           *)
10467             ;;
10468         esac
10469         ;;
10470       solaris*)
10471         case $cc_basename in
10472           CC)
10473             # Sun C++ 4.2, 5.x and Centerline C++
10474             lt_prog_compiler_pic_CXX='-KPIC'
10475             lt_prog_compiler_static_CXX='-Bstatic'
10476             lt_prog_compiler_wl_CXX='-Qoption ld '
10477             ;;
10478           gcx)
10479             # Green Hills C++ Compiler
10480             lt_prog_compiler_pic_CXX='-PIC'
10481             ;;
10482           *)
10483             ;;
10484         esac
10485         ;;
10486       sunos4*)
10487         case $cc_basename in
10488           CC)
10489             # Sun C++ 4.x
10490             lt_prog_compiler_pic_CXX='-pic'
10491             lt_prog_compiler_static_CXX='-Bstatic'
10492             ;;
10493           lcc)
10494             # Lucid
10495             lt_prog_compiler_pic_CXX='-pic'
10496             ;;
10497           *)
10498             ;;
10499         esac
10500         ;;
10501       tandem*)
10502         case $cc_basename in
10503           NCC)
10504             # NonStop-UX NCC 3.20
10505             lt_prog_compiler_pic_CXX='-KPIC'
10506             ;;
10507           *)
10508             ;;
10509         esac
10510         ;;
10511       unixware*)
10512         ;;
10513       vxworks*)
10514         ;;
10515       *)
10516         lt_prog_compiler_can_build_shared_CXX=no
10517         ;;
10518     esac
10519   fi
10520
10521 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10522 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10523
10524 #
10525 # Check to make sure the PIC flag actually works.
10526 #
10527 if test -n "$lt_prog_compiler_pic_CXX"; then
10528
10529 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10531 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534   lt_prog_compiler_pic_works_CXX=no
10535   ac_outfile=conftest.$ac_objext
10536    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10537    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10538    # Insert the option either (1) after the last *FLAGS variable, or
10539    # (2) before a word containing "conftest.", or (3) at the end.
10540    # Note that $ac_compile itself does not contain backslashes and begins
10541    # with a dollar sign (not a hyphen), so the echo should work correctly.
10542    # The option is referenced via a variable to avoid confusing sed.
10543    lt_compile=`echo "$ac_compile" | $SED \
10544    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10546    -e 's:$: $lt_compiler_flag:'`
10547    (eval echo "\"\$as_me:10547: $lt_compile\"" >&5)
10548    (eval "$lt_compile" 2>conftest.err)
10549    ac_status=$?
10550    cat conftest.err >&5
10551    echo "$as_me:10551: \$? = $ac_status" >&5
10552    if (exit $ac_status) && test -s "$ac_outfile"; then
10553      # The compiler can only warn and ignore the option if not recognized
10554      # So say no if there are warnings
10555      if test ! -s conftest.err; then
10556        lt_prog_compiler_pic_works_CXX=yes
10557      fi
10558    fi
10559    $rm conftest*
10560
10561 fi
10562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10563 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10564
10565 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10566     case $lt_prog_compiler_pic_CXX in
10567      "" | " "*) ;;
10568      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10569      esac
10570 else
10571     lt_prog_compiler_pic_CXX=
10572      lt_prog_compiler_can_build_shared_CXX=no
10573 fi
10574
10575 fi
10576 case "$host_os" in
10577   # For platforms which do not support PIC, -DPIC is meaningless:
10578   *djgpp*)
10579     lt_prog_compiler_pic_CXX=
10580     ;;
10581   *)
10582     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10583     ;;
10584 esac
10585
10586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10588 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   lt_cv_prog_compiler_c_o_CXX=no
10592    $rm -r conftest 2>/dev/null
10593    mkdir conftest
10594    cd conftest
10595    mkdir out
10596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10597
10598    lt_compiler_flag="-o out/conftest2.$ac_objext"
10599    # Insert the option either (1) after the last *FLAGS variable, or
10600    # (2) before a word containing "conftest.", or (3) at the end.
10601    # Note that $ac_compile itself does not contain backslashes and begins
10602    # with a dollar sign (not a hyphen), so the echo should work correctly.
10603    lt_compile=`echo "$ac_compile" | $SED \
10604    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10606    -e 's:$: $lt_compiler_flag:'`
10607    (eval echo "\"\$as_me:10607: $lt_compile\"" >&5)
10608    (eval "$lt_compile" 2>out/conftest.err)
10609    ac_status=$?
10610    cat out/conftest.err >&5
10611    echo "$as_me:10611: \$? = $ac_status" >&5
10612    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10613    then
10614      # The compiler can only warn and ignore the option if not recognized
10615      # So say no if there are warnings
10616      if test ! -s out/conftest.err; then
10617        lt_cv_prog_compiler_c_o_CXX=yes
10618      fi
10619    fi
10620    chmod u+w .
10621    $rm conftest*
10622    # SGI C++ compiler will create directory out/ii_files/ for
10623    # template instantiation
10624    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10625    $rm out/* && rmdir out
10626    cd ..
10627    rmdir conftest
10628    $rm conftest*
10629
10630 fi
10631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10633
10634
10635 hard_links="nottested"
10636 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10637   # do not overwrite the value of need_locks provided by the user
10638   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10640   hard_links=yes
10641   $rm conftest*
10642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10643   touch conftest.a
10644   ln conftest.a conftest.b 2>&5 || hard_links=no
10645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10646   echo "$as_me:$LINENO: result: $hard_links" >&5
10647 echo "${ECHO_T}$hard_links" >&6
10648   if test "$hard_links" = no; then
10649     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10651     need_locks=warn
10652   fi
10653 else
10654   need_locks=no
10655 fi
10656
10657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10659
10660   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10661   case $host_os in
10662   aix4* | aix5*)
10663     # If we're using GNU nm, then we don't want the "-C" option.
10664     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10665     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10666       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'
10667     else
10668       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'
10669     fi
10670     ;;
10671   pw32*)
10672     export_symbols_cmds_CXX="$ltdll_cmds"
10673   ;;
10674   cygwin* | mingw*)
10675     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10676   ;;
10677   *)
10678     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10679   ;;
10680   esac
10681
10682 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10683 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10684 test "$ld_shlibs_CXX" = no && can_build_shared=no
10685
10686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10687 if test "$GCC" = yes; then
10688   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10689 fi
10690
10691 #
10692 # Do we need to explicitly link libc?
10693 #
10694 case "x$archive_cmds_need_lc_CXX" in
10695 x|xyes)
10696   # Assume -lc should be added
10697   archive_cmds_need_lc_CXX=yes
10698
10699   if test "$enable_shared" = yes && test "$GCC" = yes; then
10700     case $archive_cmds_CXX in
10701     *'~'*)
10702       # FIXME: we may have to deal with multi-command sequences.
10703       ;;
10704     '$CC '*)
10705       # Test whether the compiler implicitly links with -lc since on some
10706       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10707       # to ld, don't add -lc before -lgcc.
10708       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10709 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10710       $rm conftest*
10711       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10712
10713       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10714   (eval $ac_compile) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } 2>conftest.err; then
10718         soname=conftest
10719         lib=conftest
10720         libobjs=conftest.$ac_objext
10721         deplibs=
10722         wl=$lt_prog_compiler_wl_CXX
10723         compiler_flags=-v
10724         linker_flags=-v
10725         verstring=
10726         output_objdir=.
10727         libname=conftest
10728         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10729         allow_undefined_flag_CXX=
10730         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10731   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10732   ac_status=$?
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); }
10735         then
10736           archive_cmds_need_lc_CXX=no
10737         else
10738           archive_cmds_need_lc_CXX=yes
10739         fi
10740         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10741       else
10742         cat conftest.err 1>&5
10743       fi
10744       $rm conftest*
10745       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10746 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10747       ;;
10748     esac
10749   fi
10750   ;;
10751 esac
10752
10753 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10754 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10755 library_names_spec=
10756 libname_spec='lib$name'
10757 soname_spec=
10758 shrext_cmds=".so"
10759 postinstall_cmds=
10760 postuninstall_cmds=
10761 finish_cmds=
10762 finish_eval=
10763 shlibpath_var=
10764 shlibpath_overrides_runpath=unknown
10765 version_type=none
10766 dynamic_linker="$host_os ld.so"
10767 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10768 if test "$GCC" = yes; then
10769   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10770   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10771     # if the path contains ";" then we assume it to be the separator
10772     # otherwise default to the standard path separator (i.e. ":") - it is
10773     # assumed that no part of a normal pathname contains ";" but that should
10774     # okay in the real world where ";" in dirpaths is itself problematic.
10775     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10776   else
10777     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10778   fi
10779 else
10780   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10781 fi
10782 need_lib_prefix=unknown
10783 hardcode_into_libs=no
10784
10785 # when you set need_version to no, make sure it does not cause -set_version
10786 # flags to be left without arguments
10787 need_version=unknown
10788
10789 case $host_os in
10790 aix3*)
10791   version_type=linux
10792   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10793   shlibpath_var=LIBPATH
10794
10795   # AIX 3 has no versioning support, so we append a major version to the name.
10796   soname_spec='${libname}${release}${shared_ext}$major'
10797   ;;
10798
10799 aix4* | aix5*)
10800   version_type=linux
10801   need_lib_prefix=no
10802   need_version=no
10803   hardcode_into_libs=yes
10804   if test "$host_cpu" = ia64; then
10805     # AIX 5 supports IA64
10806     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10807     shlibpath_var=LD_LIBRARY_PATH
10808   else
10809     # With GCC up to 2.95.x, collect2 would create an import file
10810     # for dependence libraries.  The import file would start with
10811     # the line `#! .'.  This would cause the generated library to
10812     # depend on `.', always an invalid library.  This was fixed in
10813     # development snapshots of GCC prior to 3.0.
10814     case $host_os in
10815       aix4 | aix4.[01] | aix4.[01].*)
10816       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10817            echo ' yes '
10818            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10819         :
10820       else
10821         can_build_shared=no
10822       fi
10823       ;;
10824     esac
10825     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10826     # soname into executable. Probably we can add versioning support to
10827     # collect2, so additional links can be useful in future.
10828     if test "$aix_use_runtimelinking" = yes; then
10829       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10830       # instead of lib<name>.a to let people know that these are not
10831       # typical AIX shared libraries.
10832       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833     else
10834       # We preserve .a as extension for shared libraries through AIX4.2
10835       # and later when we are not doing run time linking.
10836       library_names_spec='${libname}${release}.a $libname.a'
10837       soname_spec='${libname}${release}${shared_ext}$major'
10838     fi
10839     shlibpath_var=LIBPATH
10840   fi
10841   ;;
10842
10843 amigaos*)
10844   library_names_spec='$libname.ixlibrary $libname.a'
10845   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10846   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'
10847   ;;
10848
10849 beos*)
10850   library_names_spec='${libname}${shared_ext}'
10851   dynamic_linker="$host_os ld.so"
10852   shlibpath_var=LIBRARY_PATH
10853   ;;
10854
10855 bsdi[45]*)
10856   version_type=linux
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10863   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10864   # the default ld.so.conf also contains /usr/contrib/lib and
10865   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10866   # libtool to hard-code these into programs
10867   ;;
10868
10869 cygwin* | mingw* | pw32*)
10870   version_type=windows
10871   shrext_cmds=".dll"
10872   need_version=no
10873   need_lib_prefix=no
10874
10875   case $GCC,$host_os in
10876   yes,cygwin* | yes,mingw* | yes,pw32*)
10877     library_names_spec='$libname.dll.a'
10878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10879     postinstall_cmds='base_file=`basename \${file}`~
10880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10881       dldir=$destdir/`dirname \$dlpath`~
10882       test -d \$dldir || mkdir -p \$dldir~
10883       $install_prog $dir/$dlname \$dldir/$dlname'
10884     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10885       dlpath=$dir/\$dldll~
10886        $rm \$dlpath'
10887     shlibpath_overrides_runpath=yes
10888
10889     case $host_os in
10890     cygwin*)
10891       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10892       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10893       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10894       ;;
10895     mingw*)
10896       # MinGW DLLs use traditional 'lib' prefix
10897       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10898       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10899       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10900         # It is most probably a Windows format PATH printed by
10901         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10902         # path with ; separators, and with drive letters. We can handle the
10903         # drive letters (cygwin fileutils understands them), so leave them,
10904         # especially as we might pass files found there to a mingw objdump,
10905         # which wouldn't understand a cygwinified path. Ahh.
10906         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10907       else
10908         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10909       fi
10910       ;;
10911     pw32*)
10912       # pw32 DLLs use 'pw' prefix rather than 'lib'
10913       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10914       ;;
10915     esac
10916     ;;
10917
10918   *)
10919     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10920     ;;
10921   esac
10922   dynamic_linker='Win32 ld.exe'
10923   # FIXME: first we should search . and the directory the executable is in
10924   shlibpath_var=PATH
10925   ;;
10926
10927 darwin* | rhapsody*)
10928   dynamic_linker="$host_os dyld"
10929   version_type=darwin
10930   need_lib_prefix=no
10931   need_version=no
10932   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10933   soname_spec='${libname}${release}${major}$shared_ext'
10934   shlibpath_overrides_runpath=yes
10935   shlibpath_var=DYLD_LIBRARY_PATH
10936   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10937   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10938   if test "$GCC" = yes; then
10939     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"`
10940   else
10941     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10942   fi
10943   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10944   ;;
10945
10946 dgux*)
10947   version_type=linux
10948   need_lib_prefix=no
10949   need_version=no
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10951   soname_spec='${libname}${release}${shared_ext}$major'
10952   shlibpath_var=LD_LIBRARY_PATH
10953   ;;
10954
10955 freebsd1*)
10956   dynamic_linker=no
10957   ;;
10958
10959 kfreebsd*-gnu)
10960   version_type=linux
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   shlibpath_overrides_runpath=no
10967   hardcode_into_libs=yes
10968   dynamic_linker='GNU ld.so'
10969   ;;
10970
10971 freebsd* | dragonfly*)
10972   # DragonFly does not have aout.  When/if they implement a new
10973   # versioning mechanism, adjust this.
10974   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10975   version_type=freebsd-$objformat
10976   case $version_type in
10977     freebsd-elf*)
10978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10979       need_version=no
10980       need_lib_prefix=no
10981       ;;
10982     freebsd-*)
10983       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10984       need_version=yes
10985       ;;
10986   esac
10987   shlibpath_var=LD_LIBRARY_PATH
10988   case $host_os in
10989   freebsd2*)
10990     shlibpath_overrides_runpath=yes
10991     ;;
10992   freebsd3.[01]* | freebsdelf3.[01]*)
10993     shlibpath_overrides_runpath=yes
10994     hardcode_into_libs=yes
10995     ;;
10996   *) # from 3.2 on
10997     shlibpath_overrides_runpath=no
10998     hardcode_into_libs=yes
10999     ;;
11000   esac
11001   ;;
11002
11003 gnu*)
11004   version_type=linux
11005   need_lib_prefix=no
11006   need_version=no
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   hardcode_into_libs=yes
11011   ;;
11012
11013 hpux9* | hpux10* | hpux11*)
11014   # Give a soname corresponding to the major version so that dld.sl refuses to
11015   # link against other versions.
11016   version_type=sunos
11017   need_lib_prefix=no
11018   need_version=no
11019   case "$host_cpu" in
11020   ia64*)
11021     shrext_cmds='.so'
11022     hardcode_into_libs=yes
11023     dynamic_linker="$host_os dld.so"
11024     shlibpath_var=LD_LIBRARY_PATH
11025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
11029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11030     else
11031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11032     fi
11033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11034     ;;
11035    hppa*64*)
11036      shrext_cmds='.sl'
11037      hardcode_into_libs=yes
11038      dynamic_linker="$host_os dld.sl"
11039      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11040      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11041      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042      soname_spec='${libname}${release}${shared_ext}$major'
11043      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11044      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11045      ;;
11046    *)
11047     shrext_cmds='.sl'
11048     dynamic_linker="$host_os dld.sl"
11049     shlibpath_var=SHLIB_PATH
11050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052     soname_spec='${libname}${release}${shared_ext}$major'
11053     ;;
11054   esac
11055   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11056   postinstall_cmds='chmod 555 $lib'
11057   ;;
11058
11059 irix5* | irix6* | nonstopux*)
11060   case $host_os in
11061     nonstopux*) version_type=nonstopux ;;
11062     *)
11063         if test "$lt_cv_prog_gnu_ld" = yes; then
11064                 version_type=linux
11065         else
11066                 version_type=irix
11067         fi ;;
11068   esac
11069   need_lib_prefix=no
11070   need_version=no
11071   soname_spec='${libname}${release}${shared_ext}$major'
11072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11073   case $host_os in
11074   irix5* | nonstopux*)
11075     libsuff= shlibsuff=
11076     ;;
11077   *)
11078     case $LD in # libtool.m4 will add one of these switches to LD
11079     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11080       libsuff= shlibsuff= libmagic=32-bit;;
11081     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11082       libsuff=32 shlibsuff=N32 libmagic=N32;;
11083     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11084       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11085     *) libsuff= shlibsuff= libmagic=never-match;;
11086     esac
11087     ;;
11088   esac
11089   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11090   shlibpath_overrides_runpath=no
11091   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11092   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11093   hardcode_into_libs=yes
11094   ;;
11095
11096 # No shared lib support for Linux oldld, aout, or coff.
11097 linux*oldld* | linux*aout* | linux*coff*)
11098   dynamic_linker=no
11099   ;;
11100
11101 # This must be Linux ELF.
11102 linux*)
11103   version_type=linux
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11109   shlibpath_var=LD_LIBRARY_PATH
11110   shlibpath_overrides_runpath=no
11111   # This implies no fast_install, which is unacceptable.
11112   # Some rework will be needed to allow for fast_install
11113   # before this can be enabled.
11114   hardcode_into_libs=yes
11115
11116   # Append ld.so.conf contents to the search path
11117   if test -f /etc/ld.so.conf; then
11118     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11119     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11120   fi
11121
11122   # We used to test for /lib/ld.so.1 and disable shared libraries on
11123   # powerpc, because MkLinux only supported shared libraries with the
11124   # GNU dynamic linker.  Since this was broken with cross compilers,
11125   # most powerpc-linux boxes support dynamic linking these days and
11126   # people can always --disable-shared, the test was removed, and we
11127   # assume the GNU/Linux dynamic linker is in use.
11128   dynamic_linker='GNU/Linux ld.so'
11129   ;;
11130
11131 knetbsd*-gnu)
11132   version_type=linux
11133   need_lib_prefix=no
11134   need_version=no
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136   soname_spec='${libname}${release}${shared_ext}$major'
11137   shlibpath_var=LD_LIBRARY_PATH
11138   shlibpath_overrides_runpath=no
11139   hardcode_into_libs=yes
11140   dynamic_linker='GNU ld.so'
11141   ;;
11142
11143 netbsd*)
11144   version_type=sunos
11145   need_lib_prefix=no
11146   need_version=no
11147   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150     dynamic_linker='NetBSD (a.out) ld.so'
11151   else
11152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11153     soname_spec='${libname}${release}${shared_ext}$major'
11154     dynamic_linker='NetBSD ld.elf_so'
11155   fi
11156   shlibpath_var=LD_LIBRARY_PATH
11157   shlibpath_overrides_runpath=yes
11158   hardcode_into_libs=yes
11159   ;;
11160
11161 newsos6)
11162   version_type=linux
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   shlibpath_overrides_runpath=yes
11166   ;;
11167
11168 nto-qnx*)
11169   version_type=linux
11170   need_lib_prefix=no
11171   need_version=no
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173   soname_spec='${libname}${release}${shared_ext}$major'
11174   shlibpath_var=LD_LIBRARY_PATH
11175   shlibpath_overrides_runpath=yes
11176   ;;
11177
11178 openbsd*)
11179   version_type=sunos
11180   need_lib_prefix=no
11181   need_version=no
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11183   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11184   shlibpath_var=LD_LIBRARY_PATH
11185   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11186     case $host_os in
11187       openbsd2.[89] | openbsd2.[89].*)
11188         shlibpath_overrides_runpath=no
11189         ;;
11190       *)
11191         shlibpath_overrides_runpath=yes
11192         ;;
11193       esac
11194   else
11195     shlibpath_overrides_runpath=yes
11196   fi
11197   ;;
11198
11199 os2*)
11200   libname_spec='$name'
11201   shrext_cmds=".dll"
11202   need_lib_prefix=no
11203   library_names_spec='$libname${shared_ext} $libname.a'
11204   dynamic_linker='OS/2 ld.exe'
11205   shlibpath_var=LIBPATH
11206   ;;
11207
11208 osf3* | osf4* | osf5*)
11209   version_type=osf
11210   need_lib_prefix=no
11211   need_version=no
11212   soname_spec='${libname}${release}${shared_ext}$major'
11213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11216   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11217   ;;
11218
11219 sco3.2v5*)
11220   version_type=osf
11221   soname_spec='${libname}${release}${shared_ext}$major'
11222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   ;;
11225
11226 solaris*)
11227   version_type=linux
11228   need_lib_prefix=no
11229   need_version=no
11230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231   soname_spec='${libname}${release}${shared_ext}$major'
11232   shlibpath_var=LD_LIBRARY_PATH
11233   shlibpath_overrides_runpath=yes
11234   hardcode_into_libs=yes
11235   # ldd complains unless libraries are executable
11236   postinstall_cmds='chmod +x $lib'
11237   ;;
11238
11239 sunos4*)
11240   version_type=sunos
11241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11242   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11243   shlibpath_var=LD_LIBRARY_PATH
11244   shlibpath_overrides_runpath=yes
11245   if test "$with_gnu_ld" = yes; then
11246     need_lib_prefix=no
11247   fi
11248   need_version=yes
11249   ;;
11250
11251 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11252   version_type=linux
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254   soname_spec='${libname}${release}${shared_ext}$major'
11255   shlibpath_var=LD_LIBRARY_PATH
11256   case $host_vendor in
11257     sni)
11258       shlibpath_overrides_runpath=no
11259       need_lib_prefix=no
11260       export_dynamic_flag_spec='${wl}-Blargedynsym'
11261       runpath_var=LD_RUN_PATH
11262       ;;
11263     siemens)
11264       need_lib_prefix=no
11265       ;;
11266     motorola)
11267       need_lib_prefix=no
11268       need_version=no
11269       shlibpath_overrides_runpath=no
11270       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11271       ;;
11272   esac
11273   ;;
11274
11275 sysv4*MP*)
11276   if test -d /usr/nec ;then
11277     version_type=linux
11278     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11279     soname_spec='$libname${shared_ext}.$major'
11280     shlibpath_var=LD_LIBRARY_PATH
11281   fi
11282   ;;
11283
11284 uts4*)
11285   version_type=linux
11286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287   soname_spec='${libname}${release}${shared_ext}$major'
11288   shlibpath_var=LD_LIBRARY_PATH
11289   ;;
11290
11291 *)
11292   dynamic_linker=no
11293   ;;
11294 esac
11295 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11296 echo "${ECHO_T}$dynamic_linker" >&6
11297 test "$dynamic_linker" = no && can_build_shared=no
11298
11299 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11301 hardcode_action_CXX=
11302 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11303    test -n "$runpath_var_CXX" || \
11304    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11305
11306   # We can hardcode non-existant directories.
11307   if test "$hardcode_direct_CXX" != no &&
11308      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11309      # have to relink, otherwise we might link with an installed library
11310      # when we should be linking with a yet-to-be-installed one
11311      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11312      test "$hardcode_minus_L_CXX" != no; then
11313     # Linking always hardcodes the temporary library directory.
11314     hardcode_action_CXX=relink
11315   else
11316     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11317     hardcode_action_CXX=immediate
11318   fi
11319 else
11320   # We cannot hardcode anything, or else we can only hardcode existing
11321   # directories.
11322   hardcode_action_CXX=unsupported
11323 fi
11324 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11325 echo "${ECHO_T}$hardcode_action_CXX" >&6
11326
11327 if test "$hardcode_action_CXX" = relink; then
11328   # Fast installation is not supported
11329   enable_fast_install=no
11330 elif test "$shlibpath_overrides_runpath" = yes ||
11331      test "$enable_shared" = no; then
11332   # Fast installation is not necessary
11333   enable_fast_install=needless
11334 fi
11335
11336 striplib=
11337 old_striplib=
11338 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11339 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11340 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11341   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11342   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11343   echo "$as_me:$LINENO: result: yes" >&5
11344 echo "${ECHO_T}yes" >&6
11345 else
11346 # FIXME - insert some real tests, host_os isn't really good enough
11347   case $host_os in
11348    darwin*)
11349        if test -n "$STRIP" ; then
11350          striplib="$STRIP -x"
11351          echo "$as_me:$LINENO: result: yes" >&5
11352 echo "${ECHO_T}yes" >&6
11353        else
11354   echo "$as_me:$LINENO: result: no" >&5
11355 echo "${ECHO_T}no" >&6
11356 fi
11357        ;;
11358    *)
11359   echo "$as_me:$LINENO: result: no" >&5
11360 echo "${ECHO_T}no" >&6
11361     ;;
11362   esac
11363 fi
11364
11365 if test "x$enable_dlopen" != xyes; then
11366   enable_dlopen=unknown
11367   enable_dlopen_self=unknown
11368   enable_dlopen_self_static=unknown
11369 else
11370   lt_cv_dlopen=no
11371   lt_cv_dlopen_libs=
11372
11373   case $host_os in
11374   beos*)
11375     lt_cv_dlopen="load_add_on"
11376     lt_cv_dlopen_libs=
11377     lt_cv_dlopen_self=yes
11378     ;;
11379
11380   mingw* | pw32*)
11381     lt_cv_dlopen="LoadLibrary"
11382     lt_cv_dlopen_libs=
11383    ;;
11384
11385   cygwin*)
11386     lt_cv_dlopen="dlopen"
11387     lt_cv_dlopen_libs=
11388    ;;
11389
11390   darwin*)
11391   # if libdl is installed we need to link against it
11392     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldl  $LIBS"
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h.  */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h.  */
11405
11406 /* Override any gcc2 internal prototype to avoid an error.  */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 /* We use char because int might match the return type of a gcc2
11411    builtin and then its argument prototype would still apply.  */
11412 char dlopen ();
11413 int
11414 main ()
11415 {
11416 dlopen ();
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423   (eval $ac_link) 2>conftest.er1
11424   ac_status=$?
11425   grep -v '^ *+' conftest.er1 >conftest.err
11426   rm -f conftest.er1
11427   cat conftest.err >&5
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } &&
11430          { ac_try='test -z "$ac_cxx_werror_flag"
11431                          || test ! -s conftest.err'
11432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433   (eval $ac_try) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); }; } &&
11437          { ac_try='test -s conftest$ac_exeext'
11438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439   (eval $ac_try) 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   ac_cv_lib_dl_dlopen=yes
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 ac_cv_lib_dl_dlopen=no
11449 fi
11450 rm -f conftest.err conftest.$ac_objext \
11451       conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11455 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11456 if test $ac_cv_lib_dl_dlopen = yes; then
11457   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11458 else
11459
11460     lt_cv_dlopen="dyld"
11461     lt_cv_dlopen_libs=
11462     lt_cv_dlopen_self=yes
11463
11464 fi
11465
11466    ;;
11467
11468   *)
11469     echo "$as_me:$LINENO: checking for shl_load" >&5
11470 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11471 if test "${ac_cv_func_shl_load+set}" = set; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11482 #define shl_load innocuous_shl_load
11483
11484 /* System header to define __stub macros and hopefully few prototypes,
11485     which can conflict with char shl_load (); below.
11486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11487     <limits.h> exists even on freestanding compilers.  */
11488
11489 #ifdef __STDC__
11490 # include <limits.h>
11491 #else
11492 # include <assert.h>
11493 #endif
11494
11495 #undef shl_load
11496
11497 /* Override any gcc2 internal prototype to avoid an error.  */
11498 #ifdef __cplusplus
11499 extern "C"
11500 {
11501 #endif
11502 /* We use char because int might match the return type of a gcc2
11503    builtin and then its argument prototype would still apply.  */
11504 char shl_load ();
11505 /* The GNU C library defines this for functions which it implements
11506     to always fail with ENOSYS.  Some functions are actually named
11507     something starting with __ and the normal name is an alias.  */
11508 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11509 choke me
11510 #else
11511 char (*f) () = shl_load;
11512 #endif
11513 #ifdef __cplusplus
11514 }
11515 #endif
11516
11517 int
11518 main ()
11519 {
11520 return f != shl_load;
11521   ;
11522   return 0;
11523 }
11524 _ACEOF
11525 rm -f conftest.$ac_objext conftest$ac_exeext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11527   (eval $ac_link) 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } &&
11534          { ac_try='test -z "$ac_cxx_werror_flag"
11535                          || test ! -s conftest.err'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; } &&
11541          { ac_try='test -s conftest$ac_exeext'
11542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543   (eval $ac_try) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; }; then
11547   ac_cv_func_shl_load=yes
11548 else
11549   echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11551
11552 ac_cv_func_shl_load=no
11553 fi
11554 rm -f conftest.err conftest.$ac_objext \
11555       conftest$ac_exeext conftest.$ac_ext
11556 fi
11557 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11558 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11559 if test $ac_cv_func_shl_load = yes; then
11560   lt_cv_dlopen="shl_load"
11561 else
11562   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11563 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11564 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldld  $LIBS"
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575
11576 /* Override any gcc2 internal prototype to avoid an error.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581    builtin and then its argument prototype would still apply.  */
11582 char shl_load ();
11583 int
11584 main ()
11585 {
11586 shl_load ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593   (eval $ac_link) 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -z "$ac_cxx_werror_flag"
11601                          || test ! -s conftest.err'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest$ac_exeext'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; }; then
11613   ac_cv_lib_dld_shl_load=yes
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618 ac_cv_lib_dld_shl_load=no
11619 fi
11620 rm -f conftest.err conftest.$ac_objext \
11621       conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11625 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11626 if test $ac_cv_lib_dld_shl_load = yes; then
11627   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11628 else
11629   echo "$as_me:$LINENO: checking for dlopen" >&5
11630 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11631 if test "${ac_cv_func_dlopen+set}" = set; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11642 #define dlopen innocuous_dlopen
11643
11644 /* System header to define __stub macros and hopefully few prototypes,
11645     which can conflict with char dlopen (); below.
11646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647     <limits.h> exists even on freestanding compilers.  */
11648
11649 #ifdef __STDC__
11650 # include <limits.h>
11651 #else
11652 # include <assert.h>
11653 #endif
11654
11655 #undef dlopen
11656
11657 /* Override any gcc2 internal prototype to avoid an error.  */
11658 #ifdef __cplusplus
11659 extern "C"
11660 {
11661 #endif
11662 /* We use char because int might match the return type of a gcc2
11663    builtin and then its argument prototype would still apply.  */
11664 char dlopen ();
11665 /* The GNU C library defines this for functions which it implements
11666     to always fail with ENOSYS.  Some functions are actually named
11667     something starting with __ and the normal name is an alias.  */
11668 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11669 choke me
11670 #else
11671 char (*f) () = dlopen;
11672 #endif
11673 #ifdef __cplusplus
11674 }
11675 #endif
11676
11677 int
11678 main ()
11679 {
11680 return f != dlopen;
11681   ;
11682   return 0;
11683 }
11684 _ACEOF
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687   (eval $ac_link) 2>conftest.er1
11688   ac_status=$?
11689   grep -v '^ *+' conftest.er1 >conftest.err
11690   rm -f conftest.er1
11691   cat conftest.err >&5
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -z "$ac_cxx_werror_flag"
11695                          || test ! -s conftest.err'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest$ac_exeext'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   ac_cv_func_dlopen=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_func_dlopen=no
11713 fi
11714 rm -f conftest.err conftest.$ac_objext \
11715       conftest$ac_exeext conftest.$ac_ext
11716 fi
11717 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11718 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11719 if test $ac_cv_func_dlopen = yes; then
11720   lt_cv_dlopen="dlopen"
11721 else
11722   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   ac_check_lib_save_LIBS=$LIBS
11728 LIBS="-ldl  $LIBS"
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735
11736 /* Override any gcc2 internal prototype to avoid an error.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 /* We use char because int might match the return type of a gcc2
11741    builtin and then its argument prototype would still apply.  */
11742 char dlopen ();
11743 int
11744 main ()
11745 {
11746 dlopen ();
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 rm -f conftest.$ac_objext conftest$ac_exeext
11752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11753   (eval $ac_link) 2>conftest.er1
11754   ac_status=$?
11755   grep -v '^ *+' conftest.er1 >conftest.err
11756   rm -f conftest.er1
11757   cat conftest.err >&5
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -z "$ac_cxx_werror_flag"
11761                          || test ! -s conftest.err'
11762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763   (eval $ac_try) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }; } &&
11767          { ac_try='test -s conftest$ac_exeext'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; }; then
11773   ac_cv_lib_dl_dlopen=yes
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_cv_lib_dl_dlopen=no
11779 fi
11780 rm -f conftest.err conftest.$ac_objext \
11781       conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11783 fi
11784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11786 if test $ac_cv_lib_dl_dlopen = yes; then
11787   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11788 else
11789   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11790 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11792   echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794   ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lsvld  $LIBS"
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802
11803 /* Override any gcc2 internal prototype to avoid an error.  */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 /* We use char because int might match the return type of a gcc2
11808    builtin and then its argument prototype would still apply.  */
11809 char dlopen ();
11810 int
11811 main ()
11812 {
11813 dlopen ();
11814   ;
11815   return 0;
11816 }
11817 _ACEOF
11818 rm -f conftest.$ac_objext conftest$ac_exeext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820   (eval $ac_link) 2>conftest.er1
11821   ac_status=$?
11822   grep -v '^ *+' conftest.er1 >conftest.err
11823   rm -f conftest.er1
11824   cat conftest.err >&5
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } &&
11827          { ac_try='test -z "$ac_cxx_werror_flag"
11828                          || test ! -s conftest.err'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; } &&
11834          { ac_try='test -s conftest$ac_exeext'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   ac_cv_lib_svld_dlopen=yes
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 ac_cv_lib_svld_dlopen=no
11846 fi
11847 rm -f conftest.err conftest.$ac_objext \
11848       conftest$ac_exeext conftest.$ac_ext
11849 LIBS=$ac_check_lib_save_LIBS
11850 fi
11851 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11852 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11853 if test $ac_cv_lib_svld_dlopen = yes; then
11854   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11855 else
11856   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11857 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11858 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11859   echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861   ac_check_lib_save_LIBS=$LIBS
11862 LIBS="-ldld  $LIBS"
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869
11870 /* Override any gcc2 internal prototype to avoid an error.  */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 /* We use char because int might match the return type of a gcc2
11875    builtin and then its argument prototype would still apply.  */
11876 char dld_link ();
11877 int
11878 main ()
11879 {
11880 dld_link ();
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887   (eval $ac_link) 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } &&
11894          { ac_try='test -z "$ac_cxx_werror_flag"
11895                          || test ! -s conftest.err'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; } &&
11901          { ac_try='test -s conftest$ac_exeext'
11902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903   (eval $ac_try) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; }; then
11907   ac_cv_lib_dld_dld_link=yes
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912 ac_cv_lib_dld_dld_link=no
11913 fi
11914 rm -f conftest.err conftest.$ac_objext \
11915       conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11917 fi
11918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11919 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11920 if test $ac_cv_lib_dld_dld_link = yes; then
11921   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11922 fi
11923
11924
11925 fi
11926
11927
11928 fi
11929
11930
11931 fi
11932
11933
11934 fi
11935
11936
11937 fi
11938
11939     ;;
11940   esac
11941
11942   if test "x$lt_cv_dlopen" != xno; then
11943     enable_dlopen=yes
11944   else
11945     enable_dlopen=no
11946   fi
11947
11948   case $lt_cv_dlopen in
11949   dlopen)
11950     save_CPPFLAGS="$CPPFLAGS"
11951     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11952
11953     save_LDFLAGS="$LDFLAGS"
11954     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11955
11956     save_LIBS="$LIBS"
11957     LIBS="$lt_cv_dlopen_libs $LIBS"
11958
11959     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11960 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11961 if test "${lt_cv_dlopen_self+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964           if test "$cross_compiling" = yes; then :
11965   lt_cv_dlopen_self=cross
11966 else
11967   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11968   lt_status=$lt_dlunknown
11969   cat > conftest.$ac_ext <<EOF
11970 #line 11970 "configure"
11971 #include "confdefs.h"
11972
11973 #if HAVE_DLFCN_H
11974 #include <dlfcn.h>
11975 #endif
11976
11977 #include <stdio.h>
11978
11979 #ifdef RTLD_GLOBAL
11980 #  define LT_DLGLOBAL           RTLD_GLOBAL
11981 #else
11982 #  ifdef DL_GLOBAL
11983 #    define LT_DLGLOBAL         DL_GLOBAL
11984 #  else
11985 #    define LT_DLGLOBAL         0
11986 #  endif
11987 #endif
11988
11989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11990    find out it does not work in some platform. */
11991 #ifndef LT_DLLAZY_OR_NOW
11992 #  ifdef RTLD_LAZY
11993 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11994 #  else
11995 #    ifdef DL_LAZY
11996 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11997 #    else
11998 #      ifdef RTLD_NOW
11999 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12000 #      else
12001 #        ifdef DL_NOW
12002 #          define LT_DLLAZY_OR_NOW      DL_NOW
12003 #        else
12004 #          define LT_DLLAZY_OR_NOW      0
12005 #        endif
12006 #      endif
12007 #    endif
12008 #  endif
12009 #endif
12010
12011 #ifdef __cplusplus
12012 extern "C" void exit (int);
12013 #endif
12014
12015 void fnord() { int i=42;}
12016 int main ()
12017 {
12018   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12019   int status = $lt_dlunknown;
12020
12021   if (self)
12022     {
12023       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12024       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12025       /* dlclose (self); */
12026     }
12027
12028     exit (status);
12029 }
12030 EOF
12031   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032   (eval $ac_link) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12036     (./conftest; exit; ) 2>/dev/null
12037     lt_status=$?
12038     case x$lt_status in
12039       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12040       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12041       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12042     esac
12043   else :
12044     # compilation failed
12045     lt_cv_dlopen_self=no
12046   fi
12047 fi
12048 rm -fr conftest*
12049
12050
12051 fi
12052 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12053 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12054
12055     if test "x$lt_cv_dlopen_self" = xyes; then
12056       LDFLAGS="$LDFLAGS $link_static_flag"
12057       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12058 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12059 if test "${lt_cv_dlopen_self_static+set}" = set; then
12060   echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062           if test "$cross_compiling" = yes; then :
12063   lt_cv_dlopen_self_static=cross
12064 else
12065   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12066   lt_status=$lt_dlunknown
12067   cat > conftest.$ac_ext <<EOF
12068 #line 12068 "configure"
12069 #include "confdefs.h"
12070
12071 #if HAVE_DLFCN_H
12072 #include <dlfcn.h>
12073 #endif
12074
12075 #include <stdio.h>
12076
12077 #ifdef RTLD_GLOBAL
12078 #  define LT_DLGLOBAL           RTLD_GLOBAL
12079 #else
12080 #  ifdef DL_GLOBAL
12081 #    define LT_DLGLOBAL         DL_GLOBAL
12082 #  else
12083 #    define LT_DLGLOBAL         0
12084 #  endif
12085 #endif
12086
12087 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12088    find out it does not work in some platform. */
12089 #ifndef LT_DLLAZY_OR_NOW
12090 #  ifdef RTLD_LAZY
12091 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12092 #  else
12093 #    ifdef DL_LAZY
12094 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12095 #    else
12096 #      ifdef RTLD_NOW
12097 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12098 #      else
12099 #        ifdef DL_NOW
12100 #          define LT_DLLAZY_OR_NOW      DL_NOW
12101 #        else
12102 #          define LT_DLLAZY_OR_NOW      0
12103 #        endif
12104 #      endif
12105 #    endif
12106 #  endif
12107 #endif
12108
12109 #ifdef __cplusplus
12110 extern "C" void exit (int);
12111 #endif
12112
12113 void fnord() { int i=42;}
12114 int main ()
12115 {
12116   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12117   int status = $lt_dlunknown;
12118
12119   if (self)
12120     {
12121       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12122       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12123       /* dlclose (self); */
12124     }
12125
12126     exit (status);
12127 }
12128 EOF
12129   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130   (eval $ac_link) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12134     (./conftest; exit; ) 2>/dev/null
12135     lt_status=$?
12136     case x$lt_status in
12137       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12138       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12139       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12140     esac
12141   else :
12142     # compilation failed
12143     lt_cv_dlopen_self_static=no
12144   fi
12145 fi
12146 rm -fr conftest*
12147
12148
12149 fi
12150 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12151 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12152     fi
12153
12154     CPPFLAGS="$save_CPPFLAGS"
12155     LDFLAGS="$save_LDFLAGS"
12156     LIBS="$save_LIBS"
12157     ;;
12158   esac
12159
12160   case $lt_cv_dlopen_self in
12161   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12162   *) enable_dlopen_self=unknown ;;
12163   esac
12164
12165   case $lt_cv_dlopen_self_static in
12166   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12167   *) enable_dlopen_self_static=unknown ;;
12168   esac
12169 fi
12170
12171
12172 # The else clause should only fire when bootstrapping the
12173 # libtool distribution, otherwise you forgot to ship ltmain.sh
12174 # with your package, and you will get complaints that there are
12175 # no rules to generate ltmain.sh.
12176 if test -f "$ltmain"; then
12177   # See if we are running on zsh, and set the options which allow our commands through
12178   # without removal of \ escapes.
12179   if test -n "${ZSH_VERSION+set}" ; then
12180     setopt NO_GLOB_SUBST
12181   fi
12182   # Now quote all the things that may contain metacharacters while being
12183   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12184   # variables and quote the copies for generation of the libtool script.
12185   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12186     SED SHELL STRIP \
12187     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12188     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12189     deplibs_check_method reload_flag reload_cmds need_locks \
12190     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12191     lt_cv_sys_global_symbol_to_c_name_address \
12192     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12193     old_postinstall_cmds old_postuninstall_cmds \
12194     compiler_CXX \
12195     CC_CXX \
12196     LD_CXX \
12197     lt_prog_compiler_wl_CXX \
12198     lt_prog_compiler_pic_CXX \
12199     lt_prog_compiler_static_CXX \
12200     lt_prog_compiler_no_builtin_flag_CXX \
12201     export_dynamic_flag_spec_CXX \
12202     thread_safe_flag_spec_CXX \
12203     whole_archive_flag_spec_CXX \
12204     enable_shared_with_static_runtimes_CXX \
12205     old_archive_cmds_CXX \
12206     old_archive_from_new_cmds_CXX \
12207     predep_objects_CXX \
12208     postdep_objects_CXX \
12209     predeps_CXX \
12210     postdeps_CXX \
12211     compiler_lib_search_path_CXX \
12212     archive_cmds_CXX \
12213     archive_expsym_cmds_CXX \
12214     postinstall_cmds_CXX \
12215     postuninstall_cmds_CXX \
12216     old_archive_from_expsyms_cmds_CXX \
12217     allow_undefined_flag_CXX \
12218     no_undefined_flag_CXX \
12219     export_symbols_cmds_CXX \
12220     hardcode_libdir_flag_spec_CXX \
12221     hardcode_libdir_flag_spec_ld_CXX \
12222     hardcode_libdir_separator_CXX \
12223     hardcode_automatic_CXX \
12224     module_cmds_CXX \
12225     module_expsym_cmds_CXX \
12226     lt_cv_prog_compiler_c_o_CXX \
12227     exclude_expsyms_CXX \
12228     include_expsyms_CXX; do
12229
12230     case $var in
12231     old_archive_cmds_CXX | \
12232     old_archive_from_new_cmds_CXX | \
12233     archive_cmds_CXX | \
12234     archive_expsym_cmds_CXX | \
12235     module_cmds_CXX | \
12236     module_expsym_cmds_CXX | \
12237     old_archive_from_expsyms_cmds_CXX | \
12238     export_symbols_cmds_CXX | \
12239     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12240     postinstall_cmds | postuninstall_cmds | \
12241     old_postinstall_cmds | old_postuninstall_cmds | \
12242     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12243       # Double-quote double-evaled strings.
12244       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12245       ;;
12246     *)
12247       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12248       ;;
12249     esac
12250   done
12251
12252   case $lt_echo in
12253   *'\$0 --fallback-echo"')
12254     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12255     ;;
12256   esac
12257
12258 cfgfile="$ofile"
12259
12260   cat <<__EOF__ >> "$cfgfile"
12261 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12262
12263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12264
12265 # Shell to use when invoking shell scripts.
12266 SHELL=$lt_SHELL
12267
12268 # Whether or not to build shared libraries.
12269 build_libtool_libs=$enable_shared
12270
12271 # Whether or not to build static libraries.
12272 build_old_libs=$enable_static
12273
12274 # Whether or not to add -lc for building shared libraries.
12275 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12276
12277 # Whether or not to disallow shared libs when runtime libs are static
12278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12279
12280 # Whether or not to optimize for fast installation.
12281 fast_install=$enable_fast_install
12282
12283 # The host system.
12284 host_alias=$host_alias
12285 host=$host
12286 host_os=$host_os
12287
12288 # The build system.
12289 build_alias=$build_alias
12290 build=$build
12291 build_os=$build_os
12292
12293 # An echo program that does not interpret backslashes.
12294 echo=$lt_echo
12295
12296 # The archiver.
12297 AR=$lt_AR
12298 AR_FLAGS=$lt_AR_FLAGS
12299
12300 # A C compiler.
12301 LTCC=$lt_LTCC
12302
12303 # A language-specific compiler.
12304 CC=$lt_compiler_CXX
12305
12306 # Is the compiler the GNU C compiler?
12307 with_gcc=$GCC_CXX
12308
12309 # An ERE matcher.
12310 EGREP=$lt_EGREP
12311
12312 # The linker used to build libraries.
12313 LD=$lt_LD_CXX
12314
12315 # Whether we need hard or soft links.
12316 LN_S=$lt_LN_S
12317
12318 # A BSD-compatible nm program.
12319 NM=$lt_NM
12320
12321 # A symbol stripping program
12322 STRIP=$lt_STRIP
12323
12324 # Used to examine libraries when file_magic_cmd begins "file"
12325 MAGIC_CMD=$MAGIC_CMD
12326
12327 # Used on cygwin: DLL creation program.
12328 DLLTOOL="$DLLTOOL"
12329
12330 # Used on cygwin: object dumper.
12331 OBJDUMP="$OBJDUMP"
12332
12333 # Used on cygwin: assembler.
12334 AS="$AS"
12335
12336 # The name of the directory that contains temporary libtool files.
12337 objdir=$objdir
12338
12339 # How to create reloadable object files.
12340 reload_flag=$lt_reload_flag
12341 reload_cmds=$lt_reload_cmds
12342
12343 # How to pass a linker flag through the compiler.
12344 wl=$lt_lt_prog_compiler_wl_CXX
12345
12346 # Object file suffix (normally "o").
12347 objext="$ac_objext"
12348
12349 # Old archive suffix (normally "a").
12350 libext="$libext"
12351
12352 # Shared library suffix (normally ".so").
12353 shrext_cmds='$shrext_cmds'
12354
12355 # Executable file suffix (normally "").
12356 exeext="$exeext"
12357
12358 # Additional compiler flags for building library objects.
12359 pic_flag=$lt_lt_prog_compiler_pic_CXX
12360 pic_mode=$pic_mode
12361
12362 # What is the maximum length of a command?
12363 max_cmd_len=$lt_cv_sys_max_cmd_len
12364
12365 # Does compiler simultaneously support -c and -o options?
12366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12367
12368 # Must we lock files when doing compilation ?
12369 need_locks=$lt_need_locks
12370
12371 # Do we need the lib prefix for modules?
12372 need_lib_prefix=$need_lib_prefix
12373
12374 # Do we need a version for libraries?
12375 need_version=$need_version
12376
12377 # Whether dlopen is supported.
12378 dlopen_support=$enable_dlopen
12379
12380 # Whether dlopen of programs is supported.
12381 dlopen_self=$enable_dlopen_self
12382
12383 # Whether dlopen of statically linked programs is supported.
12384 dlopen_self_static=$enable_dlopen_self_static
12385
12386 # Compiler flag to prevent dynamic linking.
12387 link_static_flag=$lt_lt_prog_compiler_static_CXX
12388
12389 # Compiler flag to turn off builtin functions.
12390 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12391
12392 # Compiler flag to allow reflexive dlopens.
12393 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12394
12395 # Compiler flag to generate shared objects directly from archives.
12396 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12397
12398 # Compiler flag to generate thread-safe objects.
12399 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12400
12401 # Library versioning type.
12402 version_type=$version_type
12403
12404 # Format of library name prefix.
12405 libname_spec=$lt_libname_spec
12406
12407 # List of archive names.  First name is the real one, the rest are links.
12408 # The last name is the one that the linker finds with -lNAME.
12409 library_names_spec=$lt_library_names_spec
12410
12411 # The coded name of the library, if different from the real name.
12412 soname_spec=$lt_soname_spec
12413
12414 # Commands used to build and install an old-style archive.
12415 RANLIB=$lt_RANLIB
12416 old_archive_cmds=$lt_old_archive_cmds_CXX
12417 old_postinstall_cmds=$lt_old_postinstall_cmds
12418 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12419
12420 # Create an old-style archive from a shared archive.
12421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12422
12423 # Create a temporary old-style archive to link instead of a shared archive.
12424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12425
12426 # Commands used to build and install a shared archive.
12427 archive_cmds=$lt_archive_cmds_CXX
12428 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12429 postinstall_cmds=$lt_postinstall_cmds
12430 postuninstall_cmds=$lt_postuninstall_cmds
12431
12432 # Commands used to build a loadable module (assumed same as above if empty)
12433 module_cmds=$lt_module_cmds_CXX
12434 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12435
12436 # Commands to strip libraries.
12437 old_striplib=$lt_old_striplib
12438 striplib=$lt_striplib
12439
12440 # Dependencies to place before the objects being linked to create a
12441 # shared library.
12442 predep_objects=$lt_predep_objects_CXX
12443
12444 # Dependencies to place after the objects being linked to create a
12445 # shared library.
12446 postdep_objects=$lt_postdep_objects_CXX
12447
12448 # Dependencies to place before the objects being linked to create a
12449 # shared library.
12450 predeps=$lt_predeps_CXX
12451
12452 # Dependencies to place after the objects being linked to create a
12453 # shared library.
12454 postdeps=$lt_postdeps_CXX
12455
12456 # The library search path used internally by the compiler when linking
12457 # a shared library.
12458 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12459
12460 # Method to check whether dependent libraries are shared objects.
12461 deplibs_check_method=$lt_deplibs_check_method
12462
12463 # Command to use when deplibs_check_method == file_magic.
12464 file_magic_cmd=$lt_file_magic_cmd
12465
12466 # Flag that allows shared libraries with undefined symbols to be built.
12467 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12468
12469 # Flag that forces no undefined symbols.
12470 no_undefined_flag=$lt_no_undefined_flag_CXX
12471
12472 # Commands used to finish a libtool library installation in a directory.
12473 finish_cmds=$lt_finish_cmds
12474
12475 # Same as above, but a single script fragment to be evaled but not shown.
12476 finish_eval=$lt_finish_eval
12477
12478 # Take the output of nm and produce a listing of raw symbols and C names.
12479 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12480
12481 # Transform the output of nm in a proper C declaration
12482 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12483
12484 # Transform the output of nm in a C name address pair
12485 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12486
12487 # This is the shared library runtime path variable.
12488 runpath_var=$runpath_var
12489
12490 # This is the shared library path variable.
12491 shlibpath_var=$shlibpath_var
12492
12493 # Is shlibpath searched before the hard-coded library search path?
12494 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12495
12496 # How to hardcode a shared library path into an executable.
12497 hardcode_action=$hardcode_action_CXX
12498
12499 # Whether we should hardcode library paths into libraries.
12500 hardcode_into_libs=$hardcode_into_libs
12501
12502 # Flag to hardcode \$libdir into a binary during linking.
12503 # This must work even if \$libdir does not exist.
12504 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12505
12506 # If ld is used when linking, flag to hardcode \$libdir into
12507 # a binary during linking. This must work even if \$libdir does
12508 # not exist.
12509 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12510
12511 # Whether we need a single -rpath flag with a separated argument.
12512 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12513
12514 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12515 # resulting binary.
12516 hardcode_direct=$hardcode_direct_CXX
12517
12518 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12519 # resulting binary.
12520 hardcode_minus_L=$hardcode_minus_L_CXX
12521
12522 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12523 # the resulting binary.
12524 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12525
12526 # Set to yes if building a shared library automatically hardcodes DIR into the library
12527 # and all subsequent libraries and executables linked against it.
12528 hardcode_automatic=$hardcode_automatic_CXX
12529
12530 # Variables whose values should be saved in libtool wrapper scripts and
12531 # restored at relink time.
12532 variables_saved_for_relink="$variables_saved_for_relink"
12533
12534 # Whether libtool must link a program against all its dependency libraries.
12535 link_all_deplibs=$link_all_deplibs_CXX
12536
12537 # Compile-time system search path for libraries
12538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12539
12540 # Run-time system search path for libraries
12541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12542
12543 # Fix the shell variable \$srcfile for the compiler.
12544 fix_srcfile_path="$fix_srcfile_path_CXX"
12545
12546 # Set to yes if exported symbols are required.
12547 always_export_symbols=$always_export_symbols_CXX
12548
12549 # The commands to list exported symbols.
12550 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12551
12552 # The commands to extract the exported symbol list from a shared archive.
12553 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12554
12555 # Symbols that should not be listed in the preloaded symbols.
12556 exclude_expsyms=$lt_exclude_expsyms_CXX
12557
12558 # Symbols that must always be exported.
12559 include_expsyms=$lt_include_expsyms_CXX
12560
12561 # ### END LIBTOOL TAG CONFIG: $tagname
12562
12563 __EOF__
12564
12565
12566 else
12567   # If there is no Makefile yet, we rely on a make rule to execute
12568   # `config.status --recheck' to rerun these tests and create the
12569   # libtool script then.
12570   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12571   if test -f "$ltmain_in"; then
12572     test -f Makefile && make "$ltmain"
12573   fi
12574 fi
12575
12576
12577 ac_ext=c
12578 ac_cpp='$CPP $CPPFLAGS'
12579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582
12583 CC=$lt_save_CC
12584 LDCXX=$LD
12585 LD=$lt_save_LD
12586 GCC=$lt_save_GCC
12587 with_gnu_ldcxx=$with_gnu_ld
12588 with_gnu_ld=$lt_save_with_gnu_ld
12589 lt_cv_path_LDCXX=$lt_cv_path_LD
12590 lt_cv_path_LD=$lt_save_path_LD
12591 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12592 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12593
12594         else
12595           tagname=""
12596         fi
12597         ;;
12598
12599       F77)
12600         if test -n "$F77" && test "X$F77" != "Xno"; then
12601
12602 ac_ext=f
12603 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12604 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12606
12607
12608 archive_cmds_need_lc_F77=no
12609 allow_undefined_flag_F77=
12610 always_export_symbols_F77=no
12611 archive_expsym_cmds_F77=
12612 export_dynamic_flag_spec_F77=
12613 hardcode_direct_F77=no
12614 hardcode_libdir_flag_spec_F77=
12615 hardcode_libdir_flag_spec_ld_F77=
12616 hardcode_libdir_separator_F77=
12617 hardcode_minus_L_F77=no
12618 hardcode_automatic_F77=no
12619 module_cmds_F77=
12620 module_expsym_cmds_F77=
12621 link_all_deplibs_F77=unknown
12622 old_archive_cmds_F77=$old_archive_cmds
12623 no_undefined_flag_F77=
12624 whole_archive_flag_spec_F77=
12625 enable_shared_with_static_runtimes_F77=no
12626
12627 # Source file extension for f77 test sources.
12628 ac_ext=f
12629
12630 # Object file extension for compiled f77 test sources.
12631 objext=o
12632 objext_F77=$objext
12633
12634 # Code to be used in simple compile tests
12635 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12636
12637 # Code to be used in simple link tests
12638 lt_simple_link_test_code="      program t\n      end\n"
12639
12640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12641
12642 # If no C compiler was specified, use CC.
12643 LTCC=${LTCC-"$CC"}
12644
12645 # Allow CC to be a program name with arguments.
12646 compiler=$CC
12647
12648
12649 # Allow CC to be a program name with arguments.
12650 lt_save_CC="$CC"
12651 CC=${F77-"f77"}
12652 compiler=$CC
12653 compiler_F77=$CC
12654 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12655
12656 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12657 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12658 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12659 echo "${ECHO_T}$can_build_shared" >&6
12660
12661 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12662 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12663 test "$can_build_shared" = "no" && enable_shared=no
12664
12665 # On AIX, shared libraries and static libraries use the same namespace, and
12666 # are all built from PIC.
12667 case "$host_os" in
12668 aix3*)
12669   test "$enable_shared" = yes && enable_static=no
12670   if test -n "$RANLIB"; then
12671     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12672     postinstall_cmds='$RANLIB $lib'
12673   fi
12674   ;;
12675 aix4* | aix5*)
12676   test "$enable_shared" = yes && enable_static=no
12677   ;;
12678 esac
12679 echo "$as_me:$LINENO: result: $enable_shared" >&5
12680 echo "${ECHO_T}$enable_shared" >&6
12681
12682 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12683 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12684 # Make sure either enable_shared or enable_static is yes.
12685 test "$enable_shared" = yes || enable_static=yes
12686 echo "$as_me:$LINENO: result: $enable_static" >&5
12687 echo "${ECHO_T}$enable_static" >&6
12688
12689 test "$ld_shlibs_F77" = no && can_build_shared=no
12690
12691 GCC_F77="$G77"
12692 LD_F77="$LD"
12693
12694 lt_prog_compiler_wl_F77=
12695 lt_prog_compiler_pic_F77=
12696 lt_prog_compiler_static_F77=
12697
12698 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12699 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12700
12701   if test "$GCC" = yes; then
12702     lt_prog_compiler_wl_F77='-Wl,'
12703     lt_prog_compiler_static_F77='-static'
12704
12705     case $host_os in
12706       aix*)
12707       # All AIX code is PIC.
12708       if test "$host_cpu" = ia64; then
12709         # AIX 5 now supports IA64 processor
12710         lt_prog_compiler_static_F77='-Bstatic'
12711       fi
12712       ;;
12713
12714     amigaos*)
12715       # FIXME: we need at least 68020 code to build shared libraries, but
12716       # adding the `-m68020' flag to GCC prevents building anything better,
12717       # like `-m68040'.
12718       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12719       ;;
12720
12721     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12722       # PIC is the default for these OSes.
12723       ;;
12724
12725     mingw* | pw32* | os2*)
12726       # This hack is so that the source file can tell whether it is being
12727       # built for inclusion in a dll (and should export symbols for example).
12728       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12729       ;;
12730
12731     darwin* | rhapsody*)
12732       # PIC is the default on this platform
12733       # Common symbols not allowed in MH_DYLIB files
12734       lt_prog_compiler_pic_F77='-fno-common'
12735       ;;
12736
12737     msdosdjgpp*)
12738       # Just because we use GCC doesn't mean we suddenly get shared libraries
12739       # on systems that don't support them.
12740       lt_prog_compiler_can_build_shared_F77=no
12741       enable_shared=no
12742       ;;
12743
12744     sysv4*MP*)
12745       if test -d /usr/nec; then
12746         lt_prog_compiler_pic_F77=-Kconform_pic
12747       fi
12748       ;;
12749
12750     hpux*)
12751       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12752       # not for PA HP-UX.
12753       case "$host_cpu" in
12754       hppa*64*|ia64*)
12755         # +Z the default
12756         ;;
12757       *)
12758         lt_prog_compiler_pic_F77='-fPIC'
12759         ;;
12760       esac
12761       ;;
12762
12763     *)
12764       lt_prog_compiler_pic_F77='-fPIC'
12765       ;;
12766     esac
12767   else
12768     # PORTME Check for flag to pass linker flags through the system compiler.
12769     case $host_os in
12770     aix*)
12771       lt_prog_compiler_wl_F77='-Wl,'
12772       if test "$host_cpu" = ia64; then
12773         # AIX 5 now supports IA64 processor
12774         lt_prog_compiler_static_F77='-Bstatic'
12775       else
12776         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12777       fi
12778       ;;
12779       darwin*)
12780         # PIC is the default on this platform
12781         # Common symbols not allowed in MH_DYLIB files
12782        case "$cc_basename" in
12783          xlc*)
12784          lt_prog_compiler_pic_F77='-qnocommon'
12785          lt_prog_compiler_wl_F77='-Wl,'
12786          ;;
12787        esac
12788        ;;
12789
12790     mingw* | pw32* | os2*)
12791       # This hack is so that the source file can tell whether it is being
12792       # built for inclusion in a dll (and should export symbols for example).
12793       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12794       ;;
12795
12796     hpux9* | hpux10* | hpux11*)
12797       lt_prog_compiler_wl_F77='-Wl,'
12798       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12799       # not for PA HP-UX.
12800       case "$host_cpu" in
12801       hppa*64*|ia64*)
12802         # +Z the default
12803         ;;
12804       *)
12805         lt_prog_compiler_pic_F77='+Z'
12806         ;;
12807       esac
12808       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12809       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12810       ;;
12811
12812     irix5* | irix6* | nonstopux*)
12813       lt_prog_compiler_wl_F77='-Wl,'
12814       # PIC (with -KPIC) is the default.
12815       lt_prog_compiler_static_F77='-non_shared'
12816       ;;
12817
12818     newsos6)
12819       lt_prog_compiler_pic_F77='-KPIC'
12820       lt_prog_compiler_static_F77='-Bstatic'
12821       ;;
12822
12823     linux*)
12824       case $cc_basename in
12825       icc* | ecc*)
12826         lt_prog_compiler_wl_F77='-Wl,'
12827         lt_prog_compiler_pic_F77='-KPIC'
12828         lt_prog_compiler_static_F77='-static'
12829         ;;
12830       pgcc | pgf77 | pgf90)
12831         # Portland Group compilers (*not* the Pentium gcc compiler,
12832         # which looks to be a dead project)
12833         lt_prog_compiler_wl_F77='-Wl,'
12834         lt_prog_compiler_pic_F77='-fpic'
12835         lt_prog_compiler_static_F77='-static'
12836         ;;
12837       ccc*)
12838         lt_prog_compiler_wl_F77='-Wl,'
12839         # All Alpha code is PIC.
12840         lt_prog_compiler_static_F77='-non_shared'
12841         ;;
12842       esac
12843       ;;
12844
12845     osf3* | osf4* | osf5*)
12846       lt_prog_compiler_wl_F77='-Wl,'
12847       # All OSF/1 code is PIC.
12848       lt_prog_compiler_static_F77='-non_shared'
12849       ;;
12850
12851     sco3.2v5*)
12852       lt_prog_compiler_pic_F77='-Kpic'
12853       lt_prog_compiler_static_F77='-dn'
12854       ;;
12855
12856     solaris*)
12857       lt_prog_compiler_wl_F77='-Wl,'
12858       lt_prog_compiler_pic_F77='-KPIC'
12859       lt_prog_compiler_static_F77='-Bstatic'
12860       ;;
12861
12862     sunos4*)
12863       lt_prog_compiler_wl_F77='-Qoption ld '
12864       lt_prog_compiler_pic_F77='-PIC'
12865       lt_prog_compiler_static_F77='-Bstatic'
12866       ;;
12867
12868     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12869       lt_prog_compiler_wl_F77='-Wl,'
12870       lt_prog_compiler_pic_F77='-KPIC'
12871       lt_prog_compiler_static_F77='-Bstatic'
12872       ;;
12873
12874     sysv4*MP*)
12875       if test -d /usr/nec ;then
12876         lt_prog_compiler_pic_F77='-Kconform_pic'
12877         lt_prog_compiler_static_F77='-Bstatic'
12878       fi
12879       ;;
12880
12881     unicos*)
12882       lt_prog_compiler_wl_F77='-Wl,'
12883       lt_prog_compiler_can_build_shared_F77=no
12884       ;;
12885
12886     uts4*)
12887       lt_prog_compiler_pic_F77='-pic'
12888       lt_prog_compiler_static_F77='-Bstatic'
12889       ;;
12890
12891     *)
12892       lt_prog_compiler_can_build_shared_F77=no
12893       ;;
12894     esac
12895   fi
12896
12897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12898 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12899
12900 #
12901 # Check to make sure the PIC flag actually works.
12902 #
12903 if test -n "$lt_prog_compiler_pic_F77"; then
12904
12905 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12906 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12907 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12908   echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910   lt_prog_compiler_pic_works_F77=no
12911   ac_outfile=conftest.$ac_objext
12912    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12913    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12914    # Insert the option either (1) after the last *FLAGS variable, or
12915    # (2) before a word containing "conftest.", or (3) at the end.
12916    # Note that $ac_compile itself does not contain backslashes and begins
12917    # with a dollar sign (not a hyphen), so the echo should work correctly.
12918    # The option is referenced via a variable to avoid confusing sed.
12919    lt_compile=`echo "$ac_compile" | $SED \
12920    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12921    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12922    -e 's:$: $lt_compiler_flag:'`
12923    (eval echo "\"\$as_me:12923: $lt_compile\"" >&5)
12924    (eval "$lt_compile" 2>conftest.err)
12925    ac_status=$?
12926    cat conftest.err >&5
12927    echo "$as_me:12927: \$? = $ac_status" >&5
12928    if (exit $ac_status) && test -s "$ac_outfile"; then
12929      # The compiler can only warn and ignore the option if not recognized
12930      # So say no if there are warnings
12931      if test ! -s conftest.err; then
12932        lt_prog_compiler_pic_works_F77=yes
12933      fi
12934    fi
12935    $rm conftest*
12936
12937 fi
12938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12939 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12940
12941 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12942     case $lt_prog_compiler_pic_F77 in
12943      "" | " "*) ;;
12944      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12945      esac
12946 else
12947     lt_prog_compiler_pic_F77=
12948      lt_prog_compiler_can_build_shared_F77=no
12949 fi
12950
12951 fi
12952 case "$host_os" in
12953   # For platforms which do not support PIC, -DPIC is meaningless:
12954   *djgpp*)
12955     lt_prog_compiler_pic_F77=
12956     ;;
12957   *)
12958     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12959     ;;
12960 esac
12961
12962 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12963 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12964 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   lt_cv_prog_compiler_c_o_F77=no
12968    $rm -r conftest 2>/dev/null
12969    mkdir conftest
12970    cd conftest
12971    mkdir out
12972    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12973
12974    lt_compiler_flag="-o out/conftest2.$ac_objext"
12975    # Insert the option either (1) after the last *FLAGS variable, or
12976    # (2) before a word containing "conftest.", or (3) at the end.
12977    # Note that $ac_compile itself does not contain backslashes and begins
12978    # with a dollar sign (not a hyphen), so the echo should work correctly.
12979    lt_compile=`echo "$ac_compile" | $SED \
12980    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12982    -e 's:$: $lt_compiler_flag:'`
12983    (eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
12984    (eval "$lt_compile" 2>out/conftest.err)
12985    ac_status=$?
12986    cat out/conftest.err >&5
12987    echo "$as_me:12987: \$? = $ac_status" >&5
12988    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12989    then
12990      # The compiler can only warn and ignore the option if not recognized
12991      # So say no if there are warnings
12992      if test ! -s out/conftest.err; then
12993        lt_cv_prog_compiler_c_o_F77=yes
12994      fi
12995    fi
12996    chmod u+w .
12997    $rm conftest*
12998    # SGI C++ compiler will create directory out/ii_files/ for
12999    # template instantiation
13000    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13001    $rm out/* && rmdir out
13002    cd ..
13003    rmdir conftest
13004    $rm conftest*
13005
13006 fi
13007 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13008 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13009
13010
13011 hard_links="nottested"
13012 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13013   # do not overwrite the value of need_locks provided by the user
13014   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13015 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13016   hard_links=yes
13017   $rm conftest*
13018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13019   touch conftest.a
13020   ln conftest.a conftest.b 2>&5 || hard_links=no
13021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13022   echo "$as_me:$LINENO: result: $hard_links" >&5
13023 echo "${ECHO_T}$hard_links" >&6
13024   if test "$hard_links" = no; then
13025     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13026 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13027     need_locks=warn
13028   fi
13029 else
13030   need_locks=no
13031 fi
13032
13033 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13034 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13035
13036   runpath_var=
13037   allow_undefined_flag_F77=
13038   enable_shared_with_static_runtimes_F77=no
13039   archive_cmds_F77=
13040   archive_expsym_cmds_F77=
13041   old_archive_From_new_cmds_F77=
13042   old_archive_from_expsyms_cmds_F77=
13043   export_dynamic_flag_spec_F77=
13044   whole_archive_flag_spec_F77=
13045   thread_safe_flag_spec_F77=
13046   hardcode_libdir_flag_spec_F77=
13047   hardcode_libdir_flag_spec_ld_F77=
13048   hardcode_libdir_separator_F77=
13049   hardcode_direct_F77=no
13050   hardcode_minus_L_F77=no
13051   hardcode_shlibpath_var_F77=unsupported
13052   link_all_deplibs_F77=unknown
13053   hardcode_automatic_F77=no
13054   module_cmds_F77=
13055   module_expsym_cmds_F77=
13056   always_export_symbols_F77=no
13057   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13058   # include_expsyms should be a list of space-separated symbols to be *always*
13059   # included in the symbol list
13060   include_expsyms_F77=
13061   # exclude_expsyms can be an extended regexp of symbols to exclude
13062   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13063   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13064   # as well as any symbol that contains `d'.
13065   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13066   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13067   # platforms (ab)use it in PIC code, but their linkers get confused if
13068   # the symbol is explicitly referenced.  Since portable code cannot
13069   # rely on this symbol name, it's probably fine to never include it in
13070   # preloaded symbol tables.
13071   extract_expsyms_cmds=
13072
13073   case $host_os in
13074   cygwin* | mingw* | pw32*)
13075     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13076     # When not using gcc, we currently assume that we are using
13077     # Microsoft Visual C++.
13078     if test "$GCC" != yes; then
13079       with_gnu_ld=no
13080     fi
13081     ;;
13082   openbsd*)
13083     with_gnu_ld=no
13084     ;;
13085   esac
13086
13087   ld_shlibs_F77=yes
13088   if test "$with_gnu_ld" = yes; then
13089     # If archive_cmds runs LD, not CC, wlarc should be empty
13090     wlarc='${wl}'
13091
13092     # See if GNU ld supports shared libraries.
13093     case $host_os in
13094     aix3* | aix4* | aix5*)
13095       # On AIX/PPC, the GNU linker is very broken
13096       if test "$host_cpu" != ia64; then
13097         ld_shlibs_F77=no
13098         cat <<EOF 1>&2
13099
13100 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13101 *** to be unable to reliably create shared libraries on AIX.
13102 *** Therefore, libtool is disabling shared libraries support.  If you
13103 *** really care for shared libraries, you may want to modify your PATH
13104 *** so that a non-GNU linker is found, and then restart.
13105
13106 EOF
13107       fi
13108       ;;
13109
13110     amigaos*)
13111       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)'
13112       hardcode_libdir_flag_spec_F77='-L$libdir'
13113       hardcode_minus_L_F77=yes
13114
13115       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13116       # that the semantics of dynamic libraries on AmigaOS, at least up
13117       # to version 4, is to share data among multiple programs linked
13118       # with the same dynamic library.  Since this doesn't match the
13119       # behavior of shared libraries on other platforms, we can't use
13120       # them.
13121       ld_shlibs_F77=no
13122       ;;
13123
13124     beos*)
13125       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13126         allow_undefined_flag_F77=unsupported
13127         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13128         # support --undefined.  This deserves some investigation.  FIXME
13129         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13130       else
13131         ld_shlibs_F77=no
13132       fi
13133       ;;
13134
13135     cygwin* | mingw* | pw32*)
13136       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13137       # as there is no search path for DLLs.
13138       hardcode_libdir_flag_spec_F77='-L$libdir'
13139       allow_undefined_flag_F77=unsupported
13140       always_export_symbols_F77=no
13141       enable_shared_with_static_runtimes_F77=yes
13142       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13143
13144       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13145         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13146         # If the export-symbols file already is a .def file (1st line
13147         # is EXPORTS), use it as is; otherwise, prepend...
13148         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13149           cp $export_symbols $output_objdir/$soname.def;
13150         else
13151           echo EXPORTS > $output_objdir/$soname.def;
13152           cat $export_symbols >> $output_objdir/$soname.def;
13153         fi~
13154         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13155       else
13156         ld_shlibs_F77=no
13157       fi
13158       ;;
13159
13160     netbsd*)
13161       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13162         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13163         wlarc=
13164       else
13165         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13167       fi
13168       ;;
13169
13170     solaris* | sysv5*)
13171       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13172         ld_shlibs_F77=no
13173         cat <<EOF 1>&2
13174
13175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13176 *** create shared libraries on Solaris systems.  Therefore, libtool
13177 *** is disabling shared libraries support.  We urge you to upgrade GNU
13178 *** binutils to release 2.9.1 or newer.  Another option is to modify
13179 *** your PATH or compiler configuration so that the native linker is
13180 *** used, and then restart.
13181
13182 EOF
13183       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13184         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13186       else
13187         ld_shlibs_F77=no
13188       fi
13189       ;;
13190
13191     sunos4*)
13192       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193       wlarc=
13194       hardcode_direct_F77=yes
13195       hardcode_shlibpath_var_F77=no
13196       ;;
13197
13198   linux*)
13199     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13200       tmp_addflag=
13201       case $CC,$host_cpu in
13202       pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
13203         tmp_addflag=' -fpic' ;;
13204       ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
13205         tmp_addflag=' -i_dynamic' ;;
13206       efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
13207         tmp_addflag=' -i_dynamic -nofor_main' ;;
13208       ifc* | ifort*)                    # Intel Fortran compiler
13209         tmp_addflag=' -nofor_main' ;;
13210       esac
13211       archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13212       supports_anon_versioning=no
13213       case `$LD -v 2>/dev/null` in
13214         *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13215         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13216         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13217         *\ 2.11.*) ;; # other 2.11 versions
13218         *) supports_anon_versioning=yes ;;
13219       esac
13220       if test $supports_anon_versioning = yes; then
13221         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13223 $echo "local: *; };" >> $output_objdir/$libname.ver~
13224         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13225       else
13226         archive_expsym_cmds_F77=$archive_cmds_F77
13227       fi
13228     else
13229       ld_shlibs_F77=no
13230     fi
13231     ;;
13232
13233     *)
13234       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13235         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13236         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13237       else
13238         ld_shlibs_F77=no
13239       fi
13240       ;;
13241     esac
13242
13243     if test "$ld_shlibs_F77" = yes; then
13244       runpath_var=LD_RUN_PATH
13245       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13246       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13247       # ancient GNU ld didn't support --whole-archive et. al.
13248       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13249         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13250       else
13251         whole_archive_flag_spec_F77=
13252       fi
13253     fi
13254   else
13255     # PORTME fill in a description of your system's linker (not GNU ld)
13256     case $host_os in
13257     aix3*)
13258       allow_undefined_flag_F77=unsupported
13259       always_export_symbols_F77=yes
13260       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'
13261       # Note: this linker hardcodes the directories in LIBPATH if there
13262       # are no directories specified by -L.
13263       hardcode_minus_L_F77=yes
13264       if test "$GCC" = yes && test -z "$link_static_flag"; then
13265         # Neither direct hardcoding nor static linking is supported with a
13266         # broken collect2.
13267         hardcode_direct_F77=unsupported
13268       fi
13269       ;;
13270
13271     aix4* | aix5*)
13272       if test "$host_cpu" = ia64; then
13273         # On IA64, the linker does run time linking by default, so we don't
13274         # have to do anything special.
13275         aix_use_runtimelinking=no
13276         exp_sym_flag='-Bexport'
13277         no_entry_flag=""
13278       else
13279         # If we're using GNU nm, then we don't want the "-C" option.
13280         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13281         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13282           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'
13283         else
13284           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'
13285         fi
13286         aix_use_runtimelinking=no
13287
13288         # Test if we are trying to use run time linking or normal
13289         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13290         # need to do runtime linking.
13291         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13292           for ld_flag in $LDFLAGS; do
13293           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13294             aix_use_runtimelinking=yes
13295             break
13296           fi
13297           done
13298         esac
13299
13300         exp_sym_flag='-bexport'
13301         no_entry_flag='-bnoentry'
13302       fi
13303
13304       # When large executables or shared objects are built, AIX ld can
13305       # have problems creating the table of contents.  If linking a library
13306       # or program results in "error TOC overflow" add -mminimal-toc to
13307       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13308       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13309
13310       archive_cmds_F77=''
13311       hardcode_direct_F77=yes
13312       hardcode_libdir_separator_F77=':'
13313       link_all_deplibs_F77=yes
13314
13315       if test "$GCC" = yes; then
13316         case $host_os in aix4.[012]|aix4.[012].*)
13317         # We only want to do this on AIX 4.2 and lower, the check
13318         # below for broken collect2 doesn't work under 4.3+
13319           collect2name=`${CC} -print-prog-name=collect2`
13320           if test -f "$collect2name" && \
13321            strings "$collect2name" | grep resolve_lib_name >/dev/null
13322           then
13323           # We have reworked collect2
13324           hardcode_direct_F77=yes
13325           else
13326           # We have old collect2
13327           hardcode_direct_F77=unsupported
13328           # It fails to find uninstalled libraries when the uninstalled
13329           # path is not listed in the libpath.  Setting hardcode_minus_L
13330           # to unsupported forces relinking
13331           hardcode_minus_L_F77=yes
13332           hardcode_libdir_flag_spec_F77='-L$libdir'
13333           hardcode_libdir_separator_F77=
13334           fi
13335         esac
13336         shared_flag='-shared'
13337         if test "$aix_use_runtimelinking" = yes; then
13338           shared_flag="$shared_flag "'${wl}-G'
13339         fi
13340       else
13341         # not using gcc
13342         if test "$host_cpu" = ia64; then
13343         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13344         # chokes on -Wl,-G. The following line is correct:
13345           shared_flag='-G'
13346         else
13347         if test "$aix_use_runtimelinking" = yes; then
13348             shared_flag='${wl}-G'
13349           else
13350             shared_flag='${wl}-bM:SRE'
13351         fi
13352         fi
13353       fi
13354
13355       # It seems that -bexpall does not export symbols beginning with
13356       # underscore (_), so it is better to generate a list of symbols to export.
13357       always_export_symbols_F77=yes
13358       if test "$aix_use_runtimelinking" = yes; then
13359         # Warning - without using the other runtime loading flags (-brtl),
13360         # -berok will link without error, but may produce a broken library.
13361         allow_undefined_flag_F77='-berok'
13362        # Determine the default libpath from the value encoded in an empty executable.
13363        cat >conftest.$ac_ext <<_ACEOF
13364       program main
13365
13366       end
13367 _ACEOF
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370   (eval $ac_link) 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -z "$ac_f77_werror_flag"
13378                          || test ! -s conftest.err'
13379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); }; } &&
13384          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13390
13391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13392 }'`
13393 # Check for a 64-bit object if we didn't find anything.
13394 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; }
13395 }'`; fi
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400 fi
13401 rm -f conftest.err conftest.$ac_objext \
13402       conftest$ac_exeext conftest.$ac_ext
13403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13404
13405        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13406         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"
13407        else
13408         if test "$host_cpu" = ia64; then
13409           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13410           allow_undefined_flag_F77="-z nodefs"
13411           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"
13412         else
13413          # Determine the default libpath from the value encoded in an empty executable.
13414          cat >conftest.$ac_ext <<_ACEOF
13415       program main
13416
13417       end
13418 _ACEOF
13419 rm -f conftest.$ac_objext conftest$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421   (eval $ac_link) 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -z "$ac_f77_werror_flag"
13429                          || test ! -s conftest.err'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest$ac_exeext'
13436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437   (eval $ac_try) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; }; then
13441
13442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13443 }'`
13444 # Check for a 64-bit object if we didn't find anything.
13445 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; }
13446 }'`; fi
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 fi
13452 rm -f conftest.err conftest.$ac_objext \
13453       conftest$ac_exeext conftest.$ac_ext
13454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13455
13456          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13457           # Warning - without using the other run time loading flags,
13458           # -berok will link without error, but may produce a broken library.
13459           no_undefined_flag_F77=' ${wl}-bernotok'
13460           allow_undefined_flag_F77=' ${wl}-berok'
13461           # -bexpall does not export symbols beginning with underscore (_)
13462           always_export_symbols_F77=yes
13463           # Exported symbols can be pulled into shared objects from archives
13464           whole_archive_flag_spec_F77=' '
13465           archive_cmds_need_lc_F77=yes
13466           # This is similar to how AIX traditionally builds it's shared libraries.
13467           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'
13468         fi
13469       fi
13470       ;;
13471
13472     amigaos*)
13473       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)'
13474       hardcode_libdir_flag_spec_F77='-L$libdir'
13475       hardcode_minus_L_F77=yes
13476       # see comment about different semantics on the GNU ld section
13477       ld_shlibs_F77=no
13478       ;;
13479
13480     bsdi[45]*)
13481       export_dynamic_flag_spec_F77=-rdynamic
13482       ;;
13483
13484     cygwin* | mingw* | pw32*)
13485       # When not using gcc, we currently assume that we are using
13486       # Microsoft Visual C++.
13487       # hardcode_libdir_flag_spec is actually meaningless, as there is
13488       # no search path for DLLs.
13489       hardcode_libdir_flag_spec_F77=' '
13490       allow_undefined_flag_F77=unsupported
13491       # Tell ltmain to make .lib files, not .a files.
13492       libext=lib
13493       # Tell ltmain to make .dll files, not .so files.
13494       shrext_cmds=".dll"
13495       # FIXME: Setting linknames here is a bad hack.
13496       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13497       # The linker will automatically build a .lib file if we build a DLL.
13498       old_archive_From_new_cmds_F77='true'
13499       # FIXME: Should let the user specify the lib program.
13500       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13501       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13502       enable_shared_with_static_runtimes_F77=yes
13503       ;;
13504
13505     darwin* | rhapsody*)
13506       case "$host_os" in
13507         rhapsody* | darwin1.[012])
13508          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13509          ;;
13510        *) # Darwin 1.3 on
13511          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13512            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13513          else
13514            case ${MACOSX_DEPLOYMENT_TARGET} in
13515              10.[012])
13516                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13517                ;;
13518              10.*)
13519                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13520                ;;
13521            esac
13522          fi
13523          ;;
13524       esac
13525       archive_cmds_need_lc_F77=no
13526       hardcode_direct_F77=no
13527       hardcode_automatic_F77=yes
13528       hardcode_shlibpath_var_F77=unsupported
13529       whole_archive_flag_spec_F77=''
13530       link_all_deplibs_F77=yes
13531     if test "$GCC" = yes ; then
13532         output_verbose_link_cmd='echo'
13533         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13534       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13535       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13536       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13537       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}'
13538     else
13539       case "$cc_basename" in
13540         xlc*)
13541          output_verbose_link_cmd='echo'
13542          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13543          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13544           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13545          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13546           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}'
13547           ;;
13548        *)
13549          ld_shlibs_F77=no
13550           ;;
13551       esac
13552     fi
13553       ;;
13554
13555     dgux*)
13556       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557       hardcode_libdir_flag_spec_F77='-L$libdir'
13558       hardcode_shlibpath_var_F77=no
13559       ;;
13560
13561     freebsd1*)
13562       ld_shlibs_F77=no
13563       ;;
13564
13565     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13566     # support.  Future versions do this automatically, but an explicit c++rt0.o
13567     # does not break anything, and helps significantly (at the cost of a little
13568     # extra space).
13569     freebsd2.2*)
13570       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13571       hardcode_libdir_flag_spec_F77='-R$libdir'
13572       hardcode_direct_F77=yes
13573       hardcode_shlibpath_var_F77=no
13574       ;;
13575
13576     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13577     freebsd2*)
13578       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13579       hardcode_direct_F77=yes
13580       hardcode_minus_L_F77=yes
13581       hardcode_shlibpath_var_F77=no
13582       ;;
13583
13584     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13585     freebsd* | kfreebsd*-gnu | dragonfly*)
13586       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13587       hardcode_libdir_flag_spec_F77='-R$libdir'
13588       hardcode_direct_F77=yes
13589       hardcode_shlibpath_var_F77=no
13590       ;;
13591
13592     hpux9*)
13593       if test "$GCC" = yes; then
13594         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'
13595       else
13596         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'
13597       fi
13598       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13599       hardcode_libdir_separator_F77=:
13600       hardcode_direct_F77=yes
13601
13602       # hardcode_minus_L: Not really in the search PATH,
13603       # but as the default location of the library.
13604       hardcode_minus_L_F77=yes
13605       export_dynamic_flag_spec_F77='${wl}-E'
13606       ;;
13607
13608     hpux10* | hpux11*)
13609       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13610         case "$host_cpu" in
13611         hppa*64*|ia64*)
13612           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13613           ;;
13614         *)
13615           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13616           ;;
13617         esac
13618       else
13619         case "$host_cpu" in
13620         hppa*64*|ia64*)
13621           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13622           ;;
13623         *)
13624           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13625           ;;
13626         esac
13627       fi
13628       if test "$with_gnu_ld" = no; then
13629         case "$host_cpu" in
13630         hppa*64*)
13631           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13632           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13633           hardcode_libdir_separator_F77=:
13634           hardcode_direct_F77=no
13635           hardcode_shlibpath_var_F77=no
13636           ;;
13637         ia64*)
13638           hardcode_libdir_flag_spec_F77='-L$libdir'
13639           hardcode_direct_F77=no
13640           hardcode_shlibpath_var_F77=no
13641
13642           # hardcode_minus_L: Not really in the search PATH,
13643           # but as the default location of the library.
13644           hardcode_minus_L_F77=yes
13645           ;;
13646         *)
13647           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13648           hardcode_libdir_separator_F77=:
13649           hardcode_direct_F77=yes
13650           export_dynamic_flag_spec_F77='${wl}-E'
13651
13652           # hardcode_minus_L: Not really in the search PATH,
13653           # but as the default location of the library.
13654           hardcode_minus_L_F77=yes
13655           ;;
13656         esac
13657       fi
13658       ;;
13659
13660     irix5* | irix6* | nonstopux*)
13661       if test "$GCC" = yes; then
13662         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'
13663       else
13664         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'
13665         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13666       fi
13667       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13668       hardcode_libdir_separator_F77=:
13669       link_all_deplibs_F77=yes
13670       ;;
13671
13672     netbsd*)
13673       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13674         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13675       else
13676         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13677       fi
13678       hardcode_libdir_flag_spec_F77='-R$libdir'
13679       hardcode_direct_F77=yes
13680       hardcode_shlibpath_var_F77=no
13681       ;;
13682
13683     newsos6)
13684       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13685       hardcode_direct_F77=yes
13686       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13687       hardcode_libdir_separator_F77=:
13688       hardcode_shlibpath_var_F77=no
13689       ;;
13690
13691     openbsd*)
13692       hardcode_direct_F77=yes
13693       hardcode_shlibpath_var_F77=no
13694       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13695         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13696         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13697         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13698         export_dynamic_flag_spec_F77='${wl}-E'
13699       else
13700        case $host_os in
13701          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13702            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13703            hardcode_libdir_flag_spec_F77='-R$libdir'
13704            ;;
13705          *)
13706            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13707            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13708            ;;
13709        esac
13710       fi
13711       ;;
13712
13713     os2*)
13714       hardcode_libdir_flag_spec_F77='-L$libdir'
13715       hardcode_minus_L_F77=yes
13716       allow_undefined_flag_F77=unsupported
13717       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'
13718       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13719       ;;
13720
13721     osf3*)
13722       if test "$GCC" = yes; then
13723         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13724         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'
13725       else
13726         allow_undefined_flag_F77=' -expect_unresolved \*'
13727         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'
13728       fi
13729       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13730       hardcode_libdir_separator_F77=:
13731       ;;
13732
13733     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13734       if test "$GCC" = yes; then
13735         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13736         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'
13737         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13738       else
13739         allow_undefined_flag_F77=' -expect_unresolved \*'
13740         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'
13741         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~
13742         $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'
13743
13744         # Both c and cxx compiler support -rpath directly
13745         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13746       fi
13747       hardcode_libdir_separator_F77=:
13748       ;;
13749
13750     sco3.2v5*)
13751       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13752       hardcode_shlibpath_var_F77=no
13753       export_dynamic_flag_spec_F77='${wl}-Bexport'
13754       runpath_var=LD_RUN_PATH
13755       hardcode_runpath_var=yes
13756       ;;
13757
13758     solaris*)
13759       no_undefined_flag_F77=' -z text'
13760       if test "$GCC" = yes; then
13761         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13762         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13763           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13764       else
13765         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13766         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13767         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13768       fi
13769       hardcode_libdir_flag_spec_F77='-R$libdir'
13770       hardcode_shlibpath_var_F77=no
13771       case $host_os in
13772       solaris2.[0-5] | solaris2.[0-5].*) ;;
13773       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13774         whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
13775       esac
13776       link_all_deplibs_F77=yes
13777       ;;
13778
13779     sunos4*)
13780       if test "x$host_vendor" = xsequent; then
13781         # Use $CC to link under sequent, because it throws in some extra .o
13782         # files that make .init and .fini sections work.
13783         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13784       else
13785         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13786       fi
13787       hardcode_libdir_flag_spec_F77='-L$libdir'
13788       hardcode_direct_F77=yes
13789       hardcode_minus_L_F77=yes
13790       hardcode_shlibpath_var_F77=no
13791       ;;
13792
13793     sysv4)
13794       case $host_vendor in
13795         sni)
13796           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13797           hardcode_direct_F77=yes # is this really true???
13798         ;;
13799         siemens)
13800           ## LD is ld it makes a PLAMLIB
13801           ## CC just makes a GrossModule.
13802           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13803           reload_cmds_F77='$CC -r -o $output$reload_objs'
13804           hardcode_direct_F77=no
13805         ;;
13806         motorola)
13807           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13808           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13809         ;;
13810       esac
13811       runpath_var='LD_RUN_PATH'
13812       hardcode_shlibpath_var_F77=no
13813       ;;
13814
13815     sysv4.3*)
13816       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817       hardcode_shlibpath_var_F77=no
13818       export_dynamic_flag_spec_F77='-Bexport'
13819       ;;
13820
13821     sysv4*MP*)
13822       if test -d /usr/nec; then
13823         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824         hardcode_shlibpath_var_F77=no
13825         runpath_var=LD_RUN_PATH
13826         hardcode_runpath_var=yes
13827         ld_shlibs_F77=yes
13828       fi
13829       ;;
13830
13831     sysv4.2uw2*)
13832       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13833       hardcode_direct_F77=yes
13834       hardcode_minus_L_F77=no
13835       hardcode_shlibpath_var_F77=no
13836       hardcode_runpath_var=yes
13837       runpath_var=LD_RUN_PATH
13838       ;;
13839
13840    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13841       no_undefined_flag_F77='${wl}-z ${wl}text'
13842       if test "$GCC" = yes; then
13843         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13844       else
13845         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13846       fi
13847       runpath_var='LD_RUN_PATH'
13848       hardcode_shlibpath_var_F77=no
13849       ;;
13850
13851     sysv5*)
13852       no_undefined_flag_F77=' -z text'
13853       # $CC -shared without GNU ld will not create a library from C++
13854       # object files and a static libstdc++, better avoid it by now
13855       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13856       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13857                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13858       hardcode_libdir_flag_spec_F77=
13859       hardcode_shlibpath_var_F77=no
13860       runpath_var='LD_RUN_PATH'
13861       ;;
13862
13863     uts4*)
13864       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13865       hardcode_libdir_flag_spec_F77='-L$libdir'
13866       hardcode_shlibpath_var_F77=no
13867       ;;
13868
13869     *)
13870       ld_shlibs_F77=no
13871       ;;
13872     esac
13873   fi
13874
13875 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13876 echo "${ECHO_T}$ld_shlibs_F77" >&6
13877 test "$ld_shlibs_F77" = no && can_build_shared=no
13878
13879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13880 if test "$GCC" = yes; then
13881   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13882 fi
13883
13884 #
13885 # Do we need to explicitly link libc?
13886 #
13887 case "x$archive_cmds_need_lc_F77" in
13888 x|xyes)
13889   # Assume -lc should be added
13890   archive_cmds_need_lc_F77=yes
13891
13892   if test "$enable_shared" = yes && test "$GCC" = yes; then
13893     case $archive_cmds_F77 in
13894     *'~'*)
13895       # FIXME: we may have to deal with multi-command sequences.
13896       ;;
13897     '$CC '*)
13898       # Test whether the compiler implicitly links with -lc since on some
13899       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13900       # to ld, don't add -lc before -lgcc.
13901       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13902 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13903       $rm conftest*
13904       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13905
13906       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907   (eval $ac_compile) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } 2>conftest.err; then
13911         soname=conftest
13912         lib=conftest
13913         libobjs=conftest.$ac_objext
13914         deplibs=
13915         wl=$lt_prog_compiler_wl_F77
13916         compiler_flags=-v
13917         linker_flags=-v
13918         verstring=
13919         output_objdir=.
13920         libname=conftest
13921         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13922         allow_undefined_flag_F77=
13923         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13924   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }
13928         then
13929           archive_cmds_need_lc_F77=no
13930         else
13931           archive_cmds_need_lc_F77=yes
13932         fi
13933         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13934       else
13935         cat conftest.err 1>&5
13936       fi
13937       $rm conftest*
13938       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13939 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13940       ;;
13941     esac
13942   fi
13943   ;;
13944 esac
13945
13946 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13948 library_names_spec=
13949 libname_spec='lib$name'
13950 soname_spec=
13951 shrext_cmds=".so"
13952 postinstall_cmds=
13953 postuninstall_cmds=
13954 finish_cmds=
13955 finish_eval=
13956 shlibpath_var=
13957 shlibpath_overrides_runpath=unknown
13958 version_type=none
13959 dynamic_linker="$host_os ld.so"
13960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13961 if test "$GCC" = yes; then
13962   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13963   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13964     # if the path contains ";" then we assume it to be the separator
13965     # otherwise default to the standard path separator (i.e. ":") - it is
13966     # assumed that no part of a normal pathname contains ";" but that should
13967     # okay in the real world where ";" in dirpaths is itself problematic.
13968     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13969   else
13970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13971   fi
13972 else
13973   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13974 fi
13975 need_lib_prefix=unknown
13976 hardcode_into_libs=no
13977
13978 # when you set need_version to no, make sure it does not cause -set_version
13979 # flags to be left without arguments
13980 need_version=unknown
13981
13982 case $host_os in
13983 aix3*)
13984   version_type=linux
13985   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13986   shlibpath_var=LIBPATH
13987
13988   # AIX 3 has no versioning support, so we append a major version to the name.
13989   soname_spec='${libname}${release}${shared_ext}$major'
13990   ;;
13991
13992 aix4* | aix5*)
13993   version_type=linux
13994   need_lib_prefix=no
13995   need_version=no
13996   hardcode_into_libs=yes
13997   if test "$host_cpu" = ia64; then
13998     # AIX 5 supports IA64
13999     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14000     shlibpath_var=LD_LIBRARY_PATH
14001   else
14002     # With GCC up to 2.95.x, collect2 would create an import file
14003     # for dependence libraries.  The import file would start with
14004     # the line `#! .'.  This would cause the generated library to
14005     # depend on `.', always an invalid library.  This was fixed in
14006     # development snapshots of GCC prior to 3.0.
14007     case $host_os in
14008       aix4 | aix4.[01] | aix4.[01].*)
14009       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14010            echo ' yes '
14011            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14012         :
14013       else
14014         can_build_shared=no
14015       fi
14016       ;;
14017     esac
14018     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14019     # soname into executable. Probably we can add versioning support to
14020     # collect2, so additional links can be useful in future.
14021     if test "$aix_use_runtimelinking" = yes; then
14022       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14023       # instead of lib<name>.a to let people know that these are not
14024       # typical AIX shared libraries.
14025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026     else
14027       # We preserve .a as extension for shared libraries through AIX4.2
14028       # and later when we are not doing run time linking.
14029       library_names_spec='${libname}${release}.a $libname.a'
14030       soname_spec='${libname}${release}${shared_ext}$major'
14031     fi
14032     shlibpath_var=LIBPATH
14033   fi
14034   ;;
14035
14036 amigaos*)
14037   library_names_spec='$libname.ixlibrary $libname.a'
14038   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14039   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'
14040   ;;
14041
14042 beos*)
14043   library_names_spec='${libname}${shared_ext}'
14044   dynamic_linker="$host_os ld.so"
14045   shlibpath_var=LIBRARY_PATH
14046   ;;
14047
14048 bsdi[45]*)
14049   version_type=linux
14050   need_version=no
14051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14052   soname_spec='${libname}${release}${shared_ext}$major'
14053   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14054   shlibpath_var=LD_LIBRARY_PATH
14055   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14056   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14057   # the default ld.so.conf also contains /usr/contrib/lib and
14058   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14059   # libtool to hard-code these into programs
14060   ;;
14061
14062 cygwin* | mingw* | pw32*)
14063   version_type=windows
14064   shrext_cmds=".dll"
14065   need_version=no
14066   need_lib_prefix=no
14067
14068   case $GCC,$host_os in
14069   yes,cygwin* | yes,mingw* | yes,pw32*)
14070     library_names_spec='$libname.dll.a'
14071     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14072     postinstall_cmds='base_file=`basename \${file}`~
14073       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14074       dldir=$destdir/`dirname \$dlpath`~
14075       test -d \$dldir || mkdir -p \$dldir~
14076       $install_prog $dir/$dlname \$dldir/$dlname'
14077     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14078       dlpath=$dir/\$dldll~
14079        $rm \$dlpath'
14080     shlibpath_overrides_runpath=yes
14081
14082     case $host_os in
14083     cygwin*)
14084       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14085       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14086       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14087       ;;
14088     mingw*)
14089       # MinGW DLLs use traditional 'lib' prefix
14090       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14091       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14092       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14093         # It is most probably a Windows format PATH printed by
14094         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14095         # path with ; separators, and with drive letters. We can handle the
14096         # drive letters (cygwin fileutils understands them), so leave them,
14097         # especially as we might pass files found there to a mingw objdump,
14098         # which wouldn't understand a cygwinified path. Ahh.
14099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14100       else
14101         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14102       fi
14103       ;;
14104     pw32*)
14105       # pw32 DLLs use 'pw' prefix rather than 'lib'
14106       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14107       ;;
14108     esac
14109     ;;
14110
14111   *)
14112     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14113     ;;
14114   esac
14115   dynamic_linker='Win32 ld.exe'
14116   # FIXME: first we should search . and the directory the executable is in
14117   shlibpath_var=PATH
14118   ;;
14119
14120 darwin* | rhapsody*)
14121   dynamic_linker="$host_os dyld"
14122   version_type=darwin
14123   need_lib_prefix=no
14124   need_version=no
14125   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14126   soname_spec='${libname}${release}${major}$shared_ext'
14127   shlibpath_overrides_runpath=yes
14128   shlibpath_var=DYLD_LIBRARY_PATH
14129   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14130   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14131   if test "$GCC" = yes; then
14132     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"`
14133   else
14134     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14135   fi
14136   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14137   ;;
14138
14139 dgux*)
14140   version_type=linux
14141   need_lib_prefix=no
14142   need_version=no
14143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14144   soname_spec='${libname}${release}${shared_ext}$major'
14145   shlibpath_var=LD_LIBRARY_PATH
14146   ;;
14147
14148 freebsd1*)
14149   dynamic_linker=no
14150   ;;
14151
14152 kfreebsd*-gnu)
14153   version_type=linux
14154   need_lib_prefix=no
14155   need_version=no
14156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14157   soname_spec='${libname}${release}${shared_ext}$major'
14158   shlibpath_var=LD_LIBRARY_PATH
14159   shlibpath_overrides_runpath=no
14160   hardcode_into_libs=yes
14161   dynamic_linker='GNU ld.so'
14162   ;;
14163
14164 freebsd* | dragonfly*)
14165   # DragonFly does not have aout.  When/if they implement a new
14166   # versioning mechanism, adjust this.
14167   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14168   version_type=freebsd-$objformat
14169   case $version_type in
14170     freebsd-elf*)
14171       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14172       need_version=no
14173       need_lib_prefix=no
14174       ;;
14175     freebsd-*)
14176       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14177       need_version=yes
14178       ;;
14179   esac
14180   shlibpath_var=LD_LIBRARY_PATH
14181   case $host_os in
14182   freebsd2*)
14183     shlibpath_overrides_runpath=yes
14184     ;;
14185   freebsd3.[01]* | freebsdelf3.[01]*)
14186     shlibpath_overrides_runpath=yes
14187     hardcode_into_libs=yes
14188     ;;
14189   *) # from 3.2 on
14190     shlibpath_overrides_runpath=no
14191     hardcode_into_libs=yes
14192     ;;
14193   esac
14194   ;;
14195
14196 gnu*)
14197   version_type=linux
14198   need_lib_prefix=no
14199   need_version=no
14200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14201   soname_spec='${libname}${release}${shared_ext}$major'
14202   shlibpath_var=LD_LIBRARY_PATH
14203   hardcode_into_libs=yes
14204   ;;
14205
14206 hpux9* | hpux10* | hpux11*)
14207   # Give a soname corresponding to the major version so that dld.sl refuses to
14208   # link against other versions.
14209   version_type=sunos
14210   need_lib_prefix=no
14211   need_version=no
14212   case "$host_cpu" in
14213   ia64*)
14214     shrext_cmds='.so'
14215     hardcode_into_libs=yes
14216     dynamic_linker="$host_os dld.so"
14217     shlibpath_var=LD_LIBRARY_PATH
14218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220     soname_spec='${libname}${release}${shared_ext}$major'
14221     if test "X$HPUX_IA64_MODE" = X32; then
14222       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14223     else
14224       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14225     fi
14226     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14227     ;;
14228    hppa*64*)
14229      shrext_cmds='.sl'
14230      hardcode_into_libs=yes
14231      dynamic_linker="$host_os dld.sl"
14232      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14233      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14234      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235      soname_spec='${libname}${release}${shared_ext}$major'
14236      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14237      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14238      ;;
14239    *)
14240     shrext_cmds='.sl'
14241     dynamic_linker="$host_os dld.sl"
14242     shlibpath_var=SHLIB_PATH
14243     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245     soname_spec='${libname}${release}${shared_ext}$major'
14246     ;;
14247   esac
14248   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14249   postinstall_cmds='chmod 555 $lib'
14250   ;;
14251
14252 irix5* | irix6* | nonstopux*)
14253   case $host_os in
14254     nonstopux*) version_type=nonstopux ;;
14255     *)
14256         if test "$lt_cv_prog_gnu_ld" = yes; then
14257                 version_type=linux
14258         else
14259                 version_type=irix
14260         fi ;;
14261   esac
14262   need_lib_prefix=no
14263   need_version=no
14264   soname_spec='${libname}${release}${shared_ext}$major'
14265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14266   case $host_os in
14267   irix5* | nonstopux*)
14268     libsuff= shlibsuff=
14269     ;;
14270   *)
14271     case $LD in # libtool.m4 will add one of these switches to LD
14272     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14273       libsuff= shlibsuff= libmagic=32-bit;;
14274     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14275       libsuff=32 shlibsuff=N32 libmagic=N32;;
14276     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14277       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14278     *) libsuff= shlibsuff= libmagic=never-match;;
14279     esac
14280     ;;
14281   esac
14282   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14283   shlibpath_overrides_runpath=no
14284   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14285   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14286   hardcode_into_libs=yes
14287   ;;
14288
14289 # No shared lib support for Linux oldld, aout, or coff.
14290 linux*oldld* | linux*aout* | linux*coff*)
14291   dynamic_linker=no
14292   ;;
14293
14294 # This must be Linux ELF.
14295 linux*)
14296   version_type=linux
14297   need_lib_prefix=no
14298   need_version=no
14299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300   soname_spec='${libname}${release}${shared_ext}$major'
14301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14302   shlibpath_var=LD_LIBRARY_PATH
14303   shlibpath_overrides_runpath=no
14304   # This implies no fast_install, which is unacceptable.
14305   # Some rework will be needed to allow for fast_install
14306   # before this can be enabled.
14307   hardcode_into_libs=yes
14308
14309   # Append ld.so.conf contents to the search path
14310   if test -f /etc/ld.so.conf; then
14311     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14312     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14313   fi
14314
14315   # We used to test for /lib/ld.so.1 and disable shared libraries on
14316   # powerpc, because MkLinux only supported shared libraries with the
14317   # GNU dynamic linker.  Since this was broken with cross compilers,
14318   # most powerpc-linux boxes support dynamic linking these days and
14319   # people can always --disable-shared, the test was removed, and we
14320   # assume the GNU/Linux dynamic linker is in use.
14321   dynamic_linker='GNU/Linux ld.so'
14322   ;;
14323
14324 knetbsd*-gnu)
14325   version_type=linux
14326   need_lib_prefix=no
14327   need_version=no
14328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14329   soname_spec='${libname}${release}${shared_ext}$major'
14330   shlibpath_var=LD_LIBRARY_PATH
14331   shlibpath_overrides_runpath=no
14332   hardcode_into_libs=yes
14333   dynamic_linker='GNU ld.so'
14334   ;;
14335
14336 netbsd*)
14337   version_type=sunos
14338   need_lib_prefix=no
14339   need_version=no
14340   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14342     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14343     dynamic_linker='NetBSD (a.out) ld.so'
14344   else
14345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14346     soname_spec='${libname}${release}${shared_ext}$major'
14347     dynamic_linker='NetBSD ld.elf_so'
14348   fi
14349   shlibpath_var=LD_LIBRARY_PATH
14350   shlibpath_overrides_runpath=yes
14351   hardcode_into_libs=yes
14352   ;;
14353
14354 newsos6)
14355   version_type=linux
14356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357   shlibpath_var=LD_LIBRARY_PATH
14358   shlibpath_overrides_runpath=yes
14359   ;;
14360
14361 nto-qnx*)
14362   version_type=linux
14363   need_lib_prefix=no
14364   need_version=no
14365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366   soname_spec='${libname}${release}${shared_ext}$major'
14367   shlibpath_var=LD_LIBRARY_PATH
14368   shlibpath_overrides_runpath=yes
14369   ;;
14370
14371 openbsd*)
14372   version_type=sunos
14373   need_lib_prefix=no
14374   need_version=no
14375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14377   shlibpath_var=LD_LIBRARY_PATH
14378   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14379     case $host_os in
14380       openbsd2.[89] | openbsd2.[89].*)
14381         shlibpath_overrides_runpath=no
14382         ;;
14383       *)
14384         shlibpath_overrides_runpath=yes
14385         ;;
14386       esac
14387   else
14388     shlibpath_overrides_runpath=yes
14389   fi
14390   ;;
14391
14392 os2*)
14393   libname_spec='$name'
14394   shrext_cmds=".dll"
14395   need_lib_prefix=no
14396   library_names_spec='$libname${shared_ext} $libname.a'
14397   dynamic_linker='OS/2 ld.exe'
14398   shlibpath_var=LIBPATH
14399   ;;
14400
14401 osf3* | osf4* | osf5*)
14402   version_type=osf
14403   need_lib_prefix=no
14404   need_version=no
14405   soname_spec='${libname}${release}${shared_ext}$major'
14406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407   shlibpath_var=LD_LIBRARY_PATH
14408   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14409   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14410   ;;
14411
14412 sco3.2v5*)
14413   version_type=osf
14414   soname_spec='${libname}${release}${shared_ext}$major'
14415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416   shlibpath_var=LD_LIBRARY_PATH
14417   ;;
14418
14419 solaris*)
14420   version_type=linux
14421   need_lib_prefix=no
14422   need_version=no
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424   soname_spec='${libname}${release}${shared_ext}$major'
14425   shlibpath_var=LD_LIBRARY_PATH
14426   shlibpath_overrides_runpath=yes
14427   hardcode_into_libs=yes
14428   # ldd complains unless libraries are executable
14429   postinstall_cmds='chmod +x $lib'
14430   ;;
14431
14432 sunos4*)
14433   version_type=sunos
14434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14435   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14436   shlibpath_var=LD_LIBRARY_PATH
14437   shlibpath_overrides_runpath=yes
14438   if test "$with_gnu_ld" = yes; then
14439     need_lib_prefix=no
14440   fi
14441   need_version=yes
14442   ;;
14443
14444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14445   version_type=linux
14446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447   soname_spec='${libname}${release}${shared_ext}$major'
14448   shlibpath_var=LD_LIBRARY_PATH
14449   case $host_vendor in
14450     sni)
14451       shlibpath_overrides_runpath=no
14452       need_lib_prefix=no
14453       export_dynamic_flag_spec='${wl}-Blargedynsym'
14454       runpath_var=LD_RUN_PATH
14455       ;;
14456     siemens)
14457       need_lib_prefix=no
14458       ;;
14459     motorola)
14460       need_lib_prefix=no
14461       need_version=no
14462       shlibpath_overrides_runpath=no
14463       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14464       ;;
14465   esac
14466   ;;
14467
14468 sysv4*MP*)
14469   if test -d /usr/nec ;then
14470     version_type=linux
14471     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14472     soname_spec='$libname${shared_ext}.$major'
14473     shlibpath_var=LD_LIBRARY_PATH
14474   fi
14475   ;;
14476
14477 uts4*)
14478   version_type=linux
14479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480   soname_spec='${libname}${release}${shared_ext}$major'
14481   shlibpath_var=LD_LIBRARY_PATH
14482   ;;
14483
14484 *)
14485   dynamic_linker=no
14486   ;;
14487 esac
14488 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14489 echo "${ECHO_T}$dynamic_linker" >&6
14490 test "$dynamic_linker" = no && can_build_shared=no
14491
14492 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14494 hardcode_action_F77=
14495 if test -n "$hardcode_libdir_flag_spec_F77" || \
14496    test -n "$runpath_var_F77" || \
14497    test "X$hardcode_automatic_F77" = "Xyes" ; then
14498
14499   # We can hardcode non-existant directories.
14500   if test "$hardcode_direct_F77" != no &&
14501      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14502      # have to relink, otherwise we might link with an installed library
14503      # when we should be linking with a yet-to-be-installed one
14504      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14505      test "$hardcode_minus_L_F77" != no; then
14506     # Linking always hardcodes the temporary library directory.
14507     hardcode_action_F77=relink
14508   else
14509     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14510     hardcode_action_F77=immediate
14511   fi
14512 else
14513   # We cannot hardcode anything, or else we can only hardcode existing
14514   # directories.
14515   hardcode_action_F77=unsupported
14516 fi
14517 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14518 echo "${ECHO_T}$hardcode_action_F77" >&6
14519
14520 if test "$hardcode_action_F77" = relink; then
14521   # Fast installation is not supported
14522   enable_fast_install=no
14523 elif test "$shlibpath_overrides_runpath" = yes ||
14524      test "$enable_shared" = no; then
14525   # Fast installation is not necessary
14526   enable_fast_install=needless
14527 fi
14528
14529 striplib=
14530 old_striplib=
14531 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14532 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14533 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14534   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14535   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14536   echo "$as_me:$LINENO: result: yes" >&5
14537 echo "${ECHO_T}yes" >&6
14538 else
14539 # FIXME - insert some real tests, host_os isn't really good enough
14540   case $host_os in
14541    darwin*)
14542        if test -n "$STRIP" ; then
14543          striplib="$STRIP -x"
14544          echo "$as_me:$LINENO: result: yes" >&5
14545 echo "${ECHO_T}yes" >&6
14546        else
14547   echo "$as_me:$LINENO: result: no" >&5
14548 echo "${ECHO_T}no" >&6
14549 fi
14550        ;;
14551    *)
14552   echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14554     ;;
14555   esac
14556 fi
14557
14558
14559
14560 # The else clause should only fire when bootstrapping the
14561 # libtool distribution, otherwise you forgot to ship ltmain.sh
14562 # with your package, and you will get complaints that there are
14563 # no rules to generate ltmain.sh.
14564 if test -f "$ltmain"; then
14565   # See if we are running on zsh, and set the options which allow our commands through
14566   # without removal of \ escapes.
14567   if test -n "${ZSH_VERSION+set}" ; then
14568     setopt NO_GLOB_SUBST
14569   fi
14570   # Now quote all the things that may contain metacharacters while being
14571   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14572   # variables and quote the copies for generation of the libtool script.
14573   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14574     SED SHELL STRIP \
14575     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14576     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14577     deplibs_check_method reload_flag reload_cmds need_locks \
14578     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14579     lt_cv_sys_global_symbol_to_c_name_address \
14580     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14581     old_postinstall_cmds old_postuninstall_cmds \
14582     compiler_F77 \
14583     CC_F77 \
14584     LD_F77 \
14585     lt_prog_compiler_wl_F77 \
14586     lt_prog_compiler_pic_F77 \
14587     lt_prog_compiler_static_F77 \
14588     lt_prog_compiler_no_builtin_flag_F77 \
14589     export_dynamic_flag_spec_F77 \
14590     thread_safe_flag_spec_F77 \
14591     whole_archive_flag_spec_F77 \
14592     enable_shared_with_static_runtimes_F77 \
14593     old_archive_cmds_F77 \
14594     old_archive_from_new_cmds_F77 \
14595     predep_objects_F77 \
14596     postdep_objects_F77 \
14597     predeps_F77 \
14598     postdeps_F77 \
14599     compiler_lib_search_path_F77 \
14600     archive_cmds_F77 \
14601     archive_expsym_cmds_F77 \
14602     postinstall_cmds_F77 \
14603     postuninstall_cmds_F77 \
14604     old_archive_from_expsyms_cmds_F77 \
14605     allow_undefined_flag_F77 \
14606     no_undefined_flag_F77 \
14607     export_symbols_cmds_F77 \
14608     hardcode_libdir_flag_spec_F77 \
14609     hardcode_libdir_flag_spec_ld_F77 \
14610     hardcode_libdir_separator_F77 \
14611     hardcode_automatic_F77 \
14612     module_cmds_F77 \
14613     module_expsym_cmds_F77 \
14614     lt_cv_prog_compiler_c_o_F77 \
14615     exclude_expsyms_F77 \
14616     include_expsyms_F77; do
14617
14618     case $var in
14619     old_archive_cmds_F77 | \
14620     old_archive_from_new_cmds_F77 | \
14621     archive_cmds_F77 | \
14622     archive_expsym_cmds_F77 | \
14623     module_cmds_F77 | \
14624     module_expsym_cmds_F77 | \
14625     old_archive_from_expsyms_cmds_F77 | \
14626     export_symbols_cmds_F77 | \
14627     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14628     postinstall_cmds | postuninstall_cmds | \
14629     old_postinstall_cmds | old_postuninstall_cmds | \
14630     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14631       # Double-quote double-evaled strings.
14632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14633       ;;
14634     *)
14635       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14636       ;;
14637     esac
14638   done
14639
14640   case $lt_echo in
14641   *'\$0 --fallback-echo"')
14642     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14643     ;;
14644   esac
14645
14646 cfgfile="$ofile"
14647
14648   cat <<__EOF__ >> "$cfgfile"
14649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14650
14651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14652
14653 # Shell to use when invoking shell scripts.
14654 SHELL=$lt_SHELL
14655
14656 # Whether or not to build shared libraries.
14657 build_libtool_libs=$enable_shared
14658
14659 # Whether or not to build static libraries.
14660 build_old_libs=$enable_static
14661
14662 # Whether or not to add -lc for building shared libraries.
14663 build_libtool_need_lc=$archive_cmds_need_lc_F77
14664
14665 # Whether or not to disallow shared libs when runtime libs are static
14666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14667
14668 # Whether or not to optimize for fast installation.
14669 fast_install=$enable_fast_install
14670
14671 # The host system.
14672 host_alias=$host_alias
14673 host=$host
14674 host_os=$host_os
14675
14676 # The build system.
14677 build_alias=$build_alias
14678 build=$build
14679 build_os=$build_os
14680
14681 # An echo program that does not interpret backslashes.
14682 echo=$lt_echo
14683
14684 # The archiver.
14685 AR=$lt_AR
14686 AR_FLAGS=$lt_AR_FLAGS
14687
14688 # A C compiler.
14689 LTCC=$lt_LTCC
14690
14691 # A language-specific compiler.
14692 CC=$lt_compiler_F77
14693
14694 # Is the compiler the GNU C compiler?
14695 with_gcc=$GCC_F77
14696
14697 # An ERE matcher.
14698 EGREP=$lt_EGREP
14699
14700 # The linker used to build libraries.
14701 LD=$lt_LD_F77
14702
14703 # Whether we need hard or soft links.
14704 LN_S=$lt_LN_S
14705
14706 # A BSD-compatible nm program.
14707 NM=$lt_NM
14708
14709 # A symbol stripping program
14710 STRIP=$lt_STRIP
14711
14712 # Used to examine libraries when file_magic_cmd begins "file"
14713 MAGIC_CMD=$MAGIC_CMD
14714
14715 # Used on cygwin: DLL creation program.
14716 DLLTOOL="$DLLTOOL"
14717
14718 # Used on cygwin: object dumper.
14719 OBJDUMP="$OBJDUMP"
14720
14721 # Used on cygwin: assembler.
14722 AS="$AS"
14723
14724 # The name of the directory that contains temporary libtool files.
14725 objdir=$objdir
14726
14727 # How to create reloadable object files.
14728 reload_flag=$lt_reload_flag
14729 reload_cmds=$lt_reload_cmds
14730
14731 # How to pass a linker flag through the compiler.
14732 wl=$lt_lt_prog_compiler_wl_F77
14733
14734 # Object file suffix (normally "o").
14735 objext="$ac_objext"
14736
14737 # Old archive suffix (normally "a").
14738 libext="$libext"
14739
14740 # Shared library suffix (normally ".so").
14741 shrext_cmds='$shrext_cmds'
14742
14743 # Executable file suffix (normally "").
14744 exeext="$exeext"
14745
14746 # Additional compiler flags for building library objects.
14747 pic_flag=$lt_lt_prog_compiler_pic_F77
14748 pic_mode=$pic_mode
14749
14750 # What is the maximum length of a command?
14751 max_cmd_len=$lt_cv_sys_max_cmd_len
14752
14753 # Does compiler simultaneously support -c and -o options?
14754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14755
14756 # Must we lock files when doing compilation ?
14757 need_locks=$lt_need_locks
14758
14759 # Do we need the lib prefix for modules?
14760 need_lib_prefix=$need_lib_prefix
14761
14762 # Do we need a version for libraries?
14763 need_version=$need_version
14764
14765 # Whether dlopen is supported.
14766 dlopen_support=$enable_dlopen
14767
14768 # Whether dlopen of programs is supported.
14769 dlopen_self=$enable_dlopen_self
14770
14771 # Whether dlopen of statically linked programs is supported.
14772 dlopen_self_static=$enable_dlopen_self_static
14773
14774 # Compiler flag to prevent dynamic linking.
14775 link_static_flag=$lt_lt_prog_compiler_static_F77
14776
14777 # Compiler flag to turn off builtin functions.
14778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14779
14780 # Compiler flag to allow reflexive dlopens.
14781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14782
14783 # Compiler flag to generate shared objects directly from archives.
14784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14785
14786 # Compiler flag to generate thread-safe objects.
14787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14788
14789 # Library versioning type.
14790 version_type=$version_type
14791
14792 # Format of library name prefix.
14793 libname_spec=$lt_libname_spec
14794
14795 # List of archive names.  First name is the real one, the rest are links.
14796 # The last name is the one that the linker finds with -lNAME.
14797 library_names_spec=$lt_library_names_spec
14798
14799 # The coded name of the library, if different from the real name.
14800 soname_spec=$lt_soname_spec
14801
14802 # Commands used to build and install an old-style archive.
14803 RANLIB=$lt_RANLIB
14804 old_archive_cmds=$lt_old_archive_cmds_F77
14805 old_postinstall_cmds=$lt_old_postinstall_cmds
14806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14807
14808 # Create an old-style archive from a shared archive.
14809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14810
14811 # Create a temporary old-style archive to link instead of a shared archive.
14812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14813
14814 # Commands used to build and install a shared archive.
14815 archive_cmds=$lt_archive_cmds_F77
14816 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14817 postinstall_cmds=$lt_postinstall_cmds
14818 postuninstall_cmds=$lt_postuninstall_cmds
14819
14820 # Commands used to build a loadable module (assumed same as above if empty)
14821 module_cmds=$lt_module_cmds_F77
14822 module_expsym_cmds=$lt_module_expsym_cmds_F77
14823
14824 # Commands to strip libraries.
14825 old_striplib=$lt_old_striplib
14826 striplib=$lt_striplib
14827
14828 # Dependencies to place before the objects being linked to create a
14829 # shared library.
14830 predep_objects=$lt_predep_objects_F77
14831
14832 # Dependencies to place after the objects being linked to create a
14833 # shared library.
14834 postdep_objects=$lt_postdep_objects_F77
14835
14836 # Dependencies to place before the objects being linked to create a
14837 # shared library.
14838 predeps=$lt_predeps_F77
14839
14840 # Dependencies to place after the objects being linked to create a
14841 # shared library.
14842 postdeps=$lt_postdeps_F77
14843
14844 # The library search path used internally by the compiler when linking
14845 # a shared library.
14846 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14847
14848 # Method to check whether dependent libraries are shared objects.
14849 deplibs_check_method=$lt_deplibs_check_method
14850
14851 # Command to use when deplibs_check_method == file_magic.
14852 file_magic_cmd=$lt_file_magic_cmd
14853
14854 # Flag that allows shared libraries with undefined symbols to be built.
14855 allow_undefined_flag=$lt_allow_undefined_flag_F77
14856
14857 # Flag that forces no undefined symbols.
14858 no_undefined_flag=$lt_no_undefined_flag_F77
14859
14860 # Commands used to finish a libtool library installation in a directory.
14861 finish_cmds=$lt_finish_cmds
14862
14863 # Same as above, but a single script fragment to be evaled but not shown.
14864 finish_eval=$lt_finish_eval
14865
14866 # Take the output of nm and produce a listing of raw symbols and C names.
14867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14868
14869 # Transform the output of nm in a proper C declaration
14870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14871
14872 # Transform the output of nm in a C name address pair
14873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14874
14875 # This is the shared library runtime path variable.
14876 runpath_var=$runpath_var
14877
14878 # This is the shared library path variable.
14879 shlibpath_var=$shlibpath_var
14880
14881 # Is shlibpath searched before the hard-coded library search path?
14882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14883
14884 # How to hardcode a shared library path into an executable.
14885 hardcode_action=$hardcode_action_F77
14886
14887 # Whether we should hardcode library paths into libraries.
14888 hardcode_into_libs=$hardcode_into_libs
14889
14890 # Flag to hardcode \$libdir into a binary during linking.
14891 # This must work even if \$libdir does not exist.
14892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14893
14894 # If ld is used when linking, flag to hardcode \$libdir into
14895 # a binary during linking. This must work even if \$libdir does
14896 # not exist.
14897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14898
14899 # Whether we need a single -rpath flag with a separated argument.
14900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14901
14902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14903 # resulting binary.
14904 hardcode_direct=$hardcode_direct_F77
14905
14906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14907 # resulting binary.
14908 hardcode_minus_L=$hardcode_minus_L_F77
14909
14910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14911 # the resulting binary.
14912 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14913
14914 # Set to yes if building a shared library automatically hardcodes DIR into the library
14915 # and all subsequent libraries and executables linked against it.
14916 hardcode_automatic=$hardcode_automatic_F77
14917
14918 # Variables whose values should be saved in libtool wrapper scripts and
14919 # restored at relink time.
14920 variables_saved_for_relink="$variables_saved_for_relink"
14921
14922 # Whether libtool must link a program against all its dependency libraries.
14923 link_all_deplibs=$link_all_deplibs_F77
14924
14925 # Compile-time system search path for libraries
14926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14927
14928 # Run-time system search path for libraries
14929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14930
14931 # Fix the shell variable \$srcfile for the compiler.
14932 fix_srcfile_path="$fix_srcfile_path_F77"
14933
14934 # Set to yes if exported symbols are required.
14935 always_export_symbols=$always_export_symbols_F77
14936
14937 # The commands to list exported symbols.
14938 export_symbols_cmds=$lt_export_symbols_cmds_F77
14939
14940 # The commands to extract the exported symbol list from a shared archive.
14941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14942
14943 # Symbols that should not be listed in the preloaded symbols.
14944 exclude_expsyms=$lt_exclude_expsyms_F77
14945
14946 # Symbols that must always be exported.
14947 include_expsyms=$lt_include_expsyms_F77
14948
14949 # ### END LIBTOOL TAG CONFIG: $tagname
14950
14951 __EOF__
14952
14953
14954 else
14955   # If there is no Makefile yet, we rely on a make rule to execute
14956   # `config.status --recheck' to rerun these tests and create the
14957   # libtool script then.
14958   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14959   if test -f "$ltmain_in"; then
14960     test -f Makefile && make "$ltmain"
14961   fi
14962 fi
14963
14964
14965 ac_ext=c
14966 ac_cpp='$CPP $CPPFLAGS'
14967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14970
14971 CC="$lt_save_CC"
14972
14973         else
14974           tagname=""
14975         fi
14976         ;;
14977
14978       GCJ)
14979         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14980
14981
14982
14983 # Source file extension for Java test sources.
14984 ac_ext=java
14985
14986 # Object file extension for compiled Java test sources.
14987 objext=o
14988 objext_GCJ=$objext
14989
14990 # Code to be used in simple compile tests
14991 lt_simple_compile_test_code="class foo {}\n"
14992
14993 # Code to be used in simple link tests
14994 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
14995
14996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14997
14998 # If no C compiler was specified, use CC.
14999 LTCC=${LTCC-"$CC"}
15000
15001 # Allow CC to be a program name with arguments.
15002 compiler=$CC
15003
15004
15005 # Allow CC to be a program name with arguments.
15006 lt_save_CC="$CC"
15007 CC=${GCJ-"gcj"}
15008 compiler=$CC
15009 compiler_GCJ=$CC
15010
15011 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15012 archive_cmds_need_lc_GCJ=no
15013
15014
15015 lt_prog_compiler_no_builtin_flag_GCJ=
15016
15017 if test "$GCC" = yes; then
15018   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15019
15020
15021 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   lt_cv_prog_compiler_rtti_exceptions=no
15027   ac_outfile=conftest.$ac_objext
15028    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15029    lt_compiler_flag="-fno-rtti -fno-exceptions"
15030    # Insert the option either (1) after the last *FLAGS variable, or
15031    # (2) before a word containing "conftest.", or (3) at the end.
15032    # Note that $ac_compile itself does not contain backslashes and begins
15033    # with a dollar sign (not a hyphen), so the echo should work correctly.
15034    # The option is referenced via a variable to avoid confusing sed.
15035    lt_compile=`echo "$ac_compile" | $SED \
15036    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15038    -e 's:$: $lt_compiler_flag:'`
15039    (eval echo "\"\$as_me:15039: $lt_compile\"" >&5)
15040    (eval "$lt_compile" 2>conftest.err)
15041    ac_status=$?
15042    cat conftest.err >&5
15043    echo "$as_me:15043: \$? = $ac_status" >&5
15044    if (exit $ac_status) && test -s "$ac_outfile"; then
15045      # The compiler can only warn and ignore the option if not recognized
15046      # So say no if there are warnings
15047      if test ! -s conftest.err; then
15048        lt_cv_prog_compiler_rtti_exceptions=yes
15049      fi
15050    fi
15051    $rm conftest*
15052
15053 fi
15054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15055 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15056
15057 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15058     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15059 else
15060     :
15061 fi
15062
15063 fi
15064
15065 lt_prog_compiler_wl_GCJ=
15066 lt_prog_compiler_pic_GCJ=
15067 lt_prog_compiler_static_GCJ=
15068
15069 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15070 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15071
15072   if test "$GCC" = yes; then
15073     lt_prog_compiler_wl_GCJ='-Wl,'
15074     lt_prog_compiler_static_GCJ='-static'
15075
15076     case $host_os in
15077       aix*)
15078       # All AIX code is PIC.
15079       if test "$host_cpu" = ia64; then
15080         # AIX 5 now supports IA64 processor
15081         lt_prog_compiler_static_GCJ='-Bstatic'
15082       fi
15083       ;;
15084
15085     amigaos*)
15086       # FIXME: we need at least 68020 code to build shared libraries, but
15087       # adding the `-m68020' flag to GCC prevents building anything better,
15088       # like `-m68040'.
15089       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15090       ;;
15091
15092     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15093       # PIC is the default for these OSes.
15094       ;;
15095
15096     mingw* | pw32* | os2*)
15097       # This hack is so that the source file can tell whether it is being
15098       # built for inclusion in a dll (and should export symbols for example).
15099       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15100       ;;
15101
15102     darwin* | rhapsody*)
15103       # PIC is the default on this platform
15104       # Common symbols not allowed in MH_DYLIB files
15105       lt_prog_compiler_pic_GCJ='-fno-common'
15106       ;;
15107
15108     msdosdjgpp*)
15109       # Just because we use GCC doesn't mean we suddenly get shared libraries
15110       # on systems that don't support them.
15111       lt_prog_compiler_can_build_shared_GCJ=no
15112       enable_shared=no
15113       ;;
15114
15115     sysv4*MP*)
15116       if test -d /usr/nec; then
15117         lt_prog_compiler_pic_GCJ=-Kconform_pic
15118       fi
15119       ;;
15120
15121     hpux*)
15122       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15123       # not for PA HP-UX.
15124       case "$host_cpu" in
15125       hppa*64*|ia64*)
15126         # +Z the default
15127         ;;
15128       *)
15129         lt_prog_compiler_pic_GCJ='-fPIC'
15130         ;;
15131       esac
15132       ;;
15133
15134     *)
15135       lt_prog_compiler_pic_GCJ='-fPIC'
15136       ;;
15137     esac
15138   else
15139     # PORTME Check for flag to pass linker flags through the system compiler.
15140     case $host_os in
15141     aix*)
15142       lt_prog_compiler_wl_GCJ='-Wl,'
15143       if test "$host_cpu" = ia64; then
15144         # AIX 5 now supports IA64 processor
15145         lt_prog_compiler_static_GCJ='-Bstatic'
15146       else
15147         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15148       fi
15149       ;;
15150       darwin*)
15151         # PIC is the default on this platform
15152         # Common symbols not allowed in MH_DYLIB files
15153        case "$cc_basename" in
15154          xlc*)
15155          lt_prog_compiler_pic_GCJ='-qnocommon'
15156          lt_prog_compiler_wl_GCJ='-Wl,'
15157          ;;
15158        esac
15159        ;;
15160
15161     mingw* | pw32* | os2*)
15162       # This hack is so that the source file can tell whether it is being
15163       # built for inclusion in a dll (and should export symbols for example).
15164       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15165       ;;
15166
15167     hpux9* | hpux10* | hpux11*)
15168       lt_prog_compiler_wl_GCJ='-Wl,'
15169       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15170       # not for PA HP-UX.
15171       case "$host_cpu" in
15172       hppa*64*|ia64*)
15173         # +Z the default
15174         ;;
15175       *)
15176         lt_prog_compiler_pic_GCJ='+Z'
15177         ;;
15178       esac
15179       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15180       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15181       ;;
15182
15183     irix5* | irix6* | nonstopux*)
15184       lt_prog_compiler_wl_GCJ='-Wl,'
15185       # PIC (with -KPIC) is the default.
15186       lt_prog_compiler_static_GCJ='-non_shared'
15187       ;;
15188
15189     newsos6)
15190       lt_prog_compiler_pic_GCJ='-KPIC'
15191       lt_prog_compiler_static_GCJ='-Bstatic'
15192       ;;
15193
15194     linux*)
15195       case $cc_basename in
15196       icc* | ecc*)
15197         lt_prog_compiler_wl_GCJ='-Wl,'
15198         lt_prog_compiler_pic_GCJ='-KPIC'
15199         lt_prog_compiler_static_GCJ='-static'
15200         ;;
15201       pgcc | pgf77 | pgf90)
15202         # Portland Group compilers (*not* the Pentium gcc compiler,
15203         # which looks to be a dead project)
15204         lt_prog_compiler_wl_GCJ='-Wl,'
15205         lt_prog_compiler_pic_GCJ='-fpic'
15206         lt_prog_compiler_static_GCJ='-static'
15207         ;;
15208       ccc*)
15209         lt_prog_compiler_wl_GCJ='-Wl,'
15210         # All Alpha code is PIC.
15211         lt_prog_compiler_static_GCJ='-non_shared'
15212         ;;
15213       esac
15214       ;;
15215
15216     osf3* | osf4* | osf5*)
15217       lt_prog_compiler_wl_GCJ='-Wl,'
15218       # All OSF/1 code is PIC.
15219       lt_prog_compiler_static_GCJ='-non_shared'
15220       ;;
15221
15222     sco3.2v5*)
15223       lt_prog_compiler_pic_GCJ='-Kpic'
15224       lt_prog_compiler_static_GCJ='-dn'
15225       ;;
15226
15227     solaris*)
15228       lt_prog_compiler_wl_GCJ='-Wl,'
15229       lt_prog_compiler_pic_GCJ='-KPIC'
15230       lt_prog_compiler_static_GCJ='-Bstatic'
15231       ;;
15232
15233     sunos4*)
15234       lt_prog_compiler_wl_GCJ='-Qoption ld '
15235       lt_prog_compiler_pic_GCJ='-PIC'
15236       lt_prog_compiler_static_GCJ='-Bstatic'
15237       ;;
15238
15239     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15240       lt_prog_compiler_wl_GCJ='-Wl,'
15241       lt_prog_compiler_pic_GCJ='-KPIC'
15242       lt_prog_compiler_static_GCJ='-Bstatic'
15243       ;;
15244
15245     sysv4*MP*)
15246       if test -d /usr/nec ;then
15247         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15248         lt_prog_compiler_static_GCJ='-Bstatic'
15249       fi
15250       ;;
15251
15252     unicos*)
15253       lt_prog_compiler_wl_GCJ='-Wl,'
15254       lt_prog_compiler_can_build_shared_GCJ=no
15255       ;;
15256
15257     uts4*)
15258       lt_prog_compiler_pic_GCJ='-pic'
15259       lt_prog_compiler_static_GCJ='-Bstatic'
15260       ;;
15261
15262     *)
15263       lt_prog_compiler_can_build_shared_GCJ=no
15264       ;;
15265     esac
15266   fi
15267
15268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15270
15271 #
15272 # Check to make sure the PIC flag actually works.
15273 #
15274 if test -n "$lt_prog_compiler_pic_GCJ"; then
15275
15276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   lt_prog_compiler_pic_works_GCJ=no
15282   ac_outfile=conftest.$ac_objext
15283    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15284    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15285    # Insert the option either (1) after the last *FLAGS variable, or
15286    # (2) before a word containing "conftest.", or (3) at the end.
15287    # Note that $ac_compile itself does not contain backslashes and begins
15288    # with a dollar sign (not a hyphen), so the echo should work correctly.
15289    # The option is referenced via a variable to avoid confusing sed.
15290    lt_compile=`echo "$ac_compile" | $SED \
15291    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15293    -e 's:$: $lt_compiler_flag:'`
15294    (eval echo "\"\$as_me:15294: $lt_compile\"" >&5)
15295    (eval "$lt_compile" 2>conftest.err)
15296    ac_status=$?
15297    cat conftest.err >&5
15298    echo "$as_me:15298: \$? = $ac_status" >&5
15299    if (exit $ac_status) && test -s "$ac_outfile"; then
15300      # The compiler can only warn and ignore the option if not recognized
15301      # So say no if there are warnings
15302      if test ! -s conftest.err; then
15303        lt_prog_compiler_pic_works_GCJ=yes
15304      fi
15305    fi
15306    $rm conftest*
15307
15308 fi
15309 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15311
15312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15313     case $lt_prog_compiler_pic_GCJ in
15314      "" | " "*) ;;
15315      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15316      esac
15317 else
15318     lt_prog_compiler_pic_GCJ=
15319      lt_prog_compiler_can_build_shared_GCJ=no
15320 fi
15321
15322 fi
15323 case "$host_os" in
15324   # For platforms which do not support PIC, -DPIC is meaningless:
15325   *djgpp*)
15326     lt_prog_compiler_pic_GCJ=
15327     ;;
15328   *)
15329     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15330     ;;
15331 esac
15332
15333 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   lt_cv_prog_compiler_c_o_GCJ=no
15339    $rm -r conftest 2>/dev/null
15340    mkdir conftest
15341    cd conftest
15342    mkdir out
15343    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15344
15345    lt_compiler_flag="-o out/conftest2.$ac_objext"
15346    # Insert the option either (1) after the last *FLAGS variable, or
15347    # (2) before a word containing "conftest.", or (3) at the end.
15348    # Note that $ac_compile itself does not contain backslashes and begins
15349    # with a dollar sign (not a hyphen), so the echo should work correctly.
15350    lt_compile=`echo "$ac_compile" | $SED \
15351    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15353    -e 's:$: $lt_compiler_flag:'`
15354    (eval echo "\"\$as_me:15354: $lt_compile\"" >&5)
15355    (eval "$lt_compile" 2>out/conftest.err)
15356    ac_status=$?
15357    cat out/conftest.err >&5
15358    echo "$as_me:15358: \$? = $ac_status" >&5
15359    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15360    then
15361      # The compiler can only warn and ignore the option if not recognized
15362      # So say no if there are warnings
15363      if test ! -s out/conftest.err; then
15364        lt_cv_prog_compiler_c_o_GCJ=yes
15365      fi
15366    fi
15367    chmod u+w .
15368    $rm conftest*
15369    # SGI C++ compiler will create directory out/ii_files/ for
15370    # template instantiation
15371    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15372    $rm out/* && rmdir out
15373    cd ..
15374    rmdir conftest
15375    $rm conftest*
15376
15377 fi
15378 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15379 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15380
15381
15382 hard_links="nottested"
15383 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15384   # do not overwrite the value of need_locks provided by the user
15385   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15386 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15387   hard_links=yes
15388   $rm conftest*
15389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15390   touch conftest.a
15391   ln conftest.a conftest.b 2>&5 || hard_links=no
15392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393   echo "$as_me:$LINENO: result: $hard_links" >&5
15394 echo "${ECHO_T}$hard_links" >&6
15395   if test "$hard_links" = no; then
15396     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15397 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15398     need_locks=warn
15399   fi
15400 else
15401   need_locks=no
15402 fi
15403
15404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15406
15407   runpath_var=
15408   allow_undefined_flag_GCJ=
15409   enable_shared_with_static_runtimes_GCJ=no
15410   archive_cmds_GCJ=
15411   archive_expsym_cmds_GCJ=
15412   old_archive_From_new_cmds_GCJ=
15413   old_archive_from_expsyms_cmds_GCJ=
15414   export_dynamic_flag_spec_GCJ=
15415   whole_archive_flag_spec_GCJ=
15416   thread_safe_flag_spec_GCJ=
15417   hardcode_libdir_flag_spec_GCJ=
15418   hardcode_libdir_flag_spec_ld_GCJ=
15419   hardcode_libdir_separator_GCJ=
15420   hardcode_direct_GCJ=no
15421   hardcode_minus_L_GCJ=no
15422   hardcode_shlibpath_var_GCJ=unsupported
15423   link_all_deplibs_GCJ=unknown
15424   hardcode_automatic_GCJ=no
15425   module_cmds_GCJ=
15426   module_expsym_cmds_GCJ=
15427   always_export_symbols_GCJ=no
15428   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15429   # include_expsyms should be a list of space-separated symbols to be *always*
15430   # included in the symbol list
15431   include_expsyms_GCJ=
15432   # exclude_expsyms can be an extended regexp of symbols to exclude
15433   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15434   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15435   # as well as any symbol that contains `d'.
15436   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15437   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15438   # platforms (ab)use it in PIC code, but their linkers get confused if
15439   # the symbol is explicitly referenced.  Since portable code cannot
15440   # rely on this symbol name, it's probably fine to never include it in
15441   # preloaded symbol tables.
15442   extract_expsyms_cmds=
15443
15444   case $host_os in
15445   cygwin* | mingw* | pw32*)
15446     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15447     # When not using gcc, we currently assume that we are using
15448     # Microsoft Visual C++.
15449     if test "$GCC" != yes; then
15450       with_gnu_ld=no
15451     fi
15452     ;;
15453   openbsd*)
15454     with_gnu_ld=no
15455     ;;
15456   esac
15457
15458   ld_shlibs_GCJ=yes
15459   if test "$with_gnu_ld" = yes; then
15460     # If archive_cmds runs LD, not CC, wlarc should be empty
15461     wlarc='${wl}'
15462
15463     # See if GNU ld supports shared libraries.
15464     case $host_os in
15465     aix3* | aix4* | aix5*)
15466       # On AIX/PPC, the GNU linker is very broken
15467       if test "$host_cpu" != ia64; then
15468         ld_shlibs_GCJ=no
15469         cat <<EOF 1>&2
15470
15471 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15472 *** to be unable to reliably create shared libraries on AIX.
15473 *** Therefore, libtool is disabling shared libraries support.  If you
15474 *** really care for shared libraries, you may want to modify your PATH
15475 *** so that a non-GNU linker is found, and then restart.
15476
15477 EOF
15478       fi
15479       ;;
15480
15481     amigaos*)
15482       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)'
15483       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15484       hardcode_minus_L_GCJ=yes
15485
15486       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15487       # that the semantics of dynamic libraries on AmigaOS, at least up
15488       # to version 4, is to share data among multiple programs linked
15489       # with the same dynamic library.  Since this doesn't match the
15490       # behavior of shared libraries on other platforms, we can't use
15491       # them.
15492       ld_shlibs_GCJ=no
15493       ;;
15494
15495     beos*)
15496       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15497         allow_undefined_flag_GCJ=unsupported
15498         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15499         # support --undefined.  This deserves some investigation.  FIXME
15500         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501       else
15502         ld_shlibs_GCJ=no
15503       fi
15504       ;;
15505
15506     cygwin* | mingw* | pw32*)
15507       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15508       # as there is no search path for DLLs.
15509       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15510       allow_undefined_flag_GCJ=unsupported
15511       always_export_symbols_GCJ=no
15512       enable_shared_with_static_runtimes_GCJ=yes
15513       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15514
15515       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15516         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15517         # If the export-symbols file already is a .def file (1st line
15518         # is EXPORTS), use it as is; otherwise, prepend...
15519         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15520           cp $export_symbols $output_objdir/$soname.def;
15521         else
15522           echo EXPORTS > $output_objdir/$soname.def;
15523           cat $export_symbols >> $output_objdir/$soname.def;
15524         fi~
15525         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15526       else
15527         ld_shlibs_GCJ=no
15528       fi
15529       ;;
15530
15531     netbsd*)
15532       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15533         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15534         wlarc=
15535       else
15536         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15538       fi
15539       ;;
15540
15541     solaris* | sysv5*)
15542       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15543         ld_shlibs_GCJ=no
15544         cat <<EOF 1>&2
15545
15546 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15547 *** create shared libraries on Solaris systems.  Therefore, libtool
15548 *** is disabling shared libraries support.  We urge you to upgrade GNU
15549 *** binutils to release 2.9.1 or newer.  Another option is to modify
15550 *** your PATH or compiler configuration so that the native linker is
15551 *** used, and then restart.
15552
15553 EOF
15554       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15555         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15556         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15557       else
15558         ld_shlibs_GCJ=no
15559       fi
15560       ;;
15561
15562     sunos4*)
15563       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15564       wlarc=
15565       hardcode_direct_GCJ=yes
15566       hardcode_shlibpath_var_GCJ=no
15567       ;;
15568
15569   linux*)
15570     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15571       tmp_addflag=
15572       case $CC,$host_cpu in
15573       pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
15574         tmp_addflag=' -fpic' ;;
15575       ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
15576         tmp_addflag=' -i_dynamic' ;;
15577       efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
15578         tmp_addflag=' -i_dynamic -nofor_main' ;;
15579       ifc* | ifort*)                    # Intel Fortran compiler
15580         tmp_addflag=' -nofor_main' ;;
15581       esac
15582       archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15583       supports_anon_versioning=no
15584       case `$LD -v 2>/dev/null` in
15585         *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588         *\ 2.11.*) ;; # other 2.11 versions
15589         *) supports_anon_versioning=yes ;;
15590       esac
15591       if test $supports_anon_versioning = yes; then
15592         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15594 $echo "local: *; };" >> $output_objdir/$libname.ver~
15595         $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15596       else
15597         archive_expsym_cmds_GCJ=$archive_cmds_GCJ
15598       fi
15599     else
15600       ld_shlibs_GCJ=no
15601     fi
15602     ;;
15603
15604     *)
15605       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15606         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15607         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15608       else
15609         ld_shlibs_GCJ=no
15610       fi
15611       ;;
15612     esac
15613
15614     if test "$ld_shlibs_GCJ" = yes; then
15615       runpath_var=LD_RUN_PATH
15616       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15617       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15618       # ancient GNU ld didn't support --whole-archive et. al.
15619       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15620         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15621       else
15622         whole_archive_flag_spec_GCJ=
15623       fi
15624     fi
15625   else
15626     # PORTME fill in a description of your system's linker (not GNU ld)
15627     case $host_os in
15628     aix3*)
15629       allow_undefined_flag_GCJ=unsupported
15630       always_export_symbols_GCJ=yes
15631       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'
15632       # Note: this linker hardcodes the directories in LIBPATH if there
15633       # are no directories specified by -L.
15634       hardcode_minus_L_GCJ=yes
15635       if test "$GCC" = yes && test -z "$link_static_flag"; then
15636         # Neither direct hardcoding nor static linking is supported with a
15637         # broken collect2.
15638         hardcode_direct_GCJ=unsupported
15639       fi
15640       ;;
15641
15642     aix4* | aix5*)
15643       if test "$host_cpu" = ia64; then
15644         # On IA64, the linker does run time linking by default, so we don't
15645         # have to do anything special.
15646         aix_use_runtimelinking=no
15647         exp_sym_flag='-Bexport'
15648         no_entry_flag=""
15649       else
15650         # If we're using GNU nm, then we don't want the "-C" option.
15651         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15652         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15653           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'
15654         else
15655           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'
15656         fi
15657         aix_use_runtimelinking=no
15658
15659         # Test if we are trying to use run time linking or normal
15660         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15661         # need to do runtime linking.
15662         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15663           for ld_flag in $LDFLAGS; do
15664           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15665             aix_use_runtimelinking=yes
15666             break
15667           fi
15668           done
15669         esac
15670
15671         exp_sym_flag='-bexport'
15672         no_entry_flag='-bnoentry'
15673       fi
15674
15675       # When large executables or shared objects are built, AIX ld can
15676       # have problems creating the table of contents.  If linking a library
15677       # or program results in "error TOC overflow" add -mminimal-toc to
15678       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15679       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15680
15681       archive_cmds_GCJ=''
15682       hardcode_direct_GCJ=yes
15683       hardcode_libdir_separator_GCJ=':'
15684       link_all_deplibs_GCJ=yes
15685
15686       if test "$GCC" = yes; then
15687         case $host_os in aix4.[012]|aix4.[012].*)
15688         # We only want to do this on AIX 4.2 and lower, the check
15689         # below for broken collect2 doesn't work under 4.3+
15690           collect2name=`${CC} -print-prog-name=collect2`
15691           if test -f "$collect2name" && \
15692            strings "$collect2name" | grep resolve_lib_name >/dev/null
15693           then
15694           # We have reworked collect2
15695           hardcode_direct_GCJ=yes
15696           else
15697           # We have old collect2
15698           hardcode_direct_GCJ=unsupported
15699           # It fails to find uninstalled libraries when the uninstalled
15700           # path is not listed in the libpath.  Setting hardcode_minus_L
15701           # to unsupported forces relinking
15702           hardcode_minus_L_GCJ=yes
15703           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15704           hardcode_libdir_separator_GCJ=
15705           fi
15706         esac
15707         shared_flag='-shared'
15708         if test "$aix_use_runtimelinking" = yes; then
15709           shared_flag="$shared_flag "'${wl}-G'
15710         fi
15711       else
15712         # not using gcc
15713         if test "$host_cpu" = ia64; then
15714         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15715         # chokes on -Wl,-G. The following line is correct:
15716           shared_flag='-G'
15717         else
15718         if test "$aix_use_runtimelinking" = yes; then
15719             shared_flag='${wl}-G'
15720           else
15721             shared_flag='${wl}-bM:SRE'
15722         fi
15723         fi
15724       fi
15725
15726       # It seems that -bexpall does not export symbols beginning with
15727       # underscore (_), so it is better to generate a list of symbols to export.
15728       always_export_symbols_GCJ=yes
15729       if test "$aix_use_runtimelinking" = yes; then
15730         # Warning - without using the other runtime loading flags (-brtl),
15731         # -berok will link without error, but may produce a broken library.
15732         allow_undefined_flag_GCJ='-berok'
15733        # Determine the default libpath from the value encoded in an empty executable.
15734        cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740
15741 int
15742 main ()
15743 {
15744
15745   ;
15746   return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751   (eval $ac_link) 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -z "$ac_c_werror_flag"
15759                          || test ! -s conftest.err'
15760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761   (eval $ac_try) 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; } &&
15765          { ac_try='test -s conftest$ac_exeext'
15766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767   (eval $ac_try) 2>&5
15768   ac_status=$?
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); }; }; then
15771
15772 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15773 }'`
15774 # Check for a 64-bit object if we didn't find anything.
15775 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; }
15776 }'`; fi
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 fi
15782 rm -f conftest.err conftest.$ac_objext \
15783       conftest$ac_exeext conftest.$ac_ext
15784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15785
15786        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15787         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"
15788        else
15789         if test "$host_cpu" = ia64; then
15790           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15791           allow_undefined_flag_GCJ="-z nodefs"
15792           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"
15793         else
15794          # Determine the default libpath from the value encoded in an empty executable.
15795          cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801
15802 int
15803 main ()
15804 {
15805
15806   ;
15807   return 0;
15808 }
15809 _ACEOF
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812   (eval $ac_link) 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -z "$ac_c_werror_flag"
15820                          || test ! -s conftest.err'
15821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822   (eval $ac_try) 2>&5
15823   ac_status=$?
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); }; } &&
15826          { ac_try='test -s conftest$ac_exeext'
15827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828   (eval $ac_try) 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); }; }; then
15832
15833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15834 }'`
15835 # Check for a 64-bit object if we didn't find anything.
15836 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; }
15837 }'`; fi
15838 else
15839   echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 fi
15843 rm -f conftest.err conftest.$ac_objext \
15844       conftest$ac_exeext conftest.$ac_ext
15845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15846
15847          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15848           # Warning - without using the other run time loading flags,
15849           # -berok will link without error, but may produce a broken library.
15850           no_undefined_flag_GCJ=' ${wl}-bernotok'
15851           allow_undefined_flag_GCJ=' ${wl}-berok'
15852           # -bexpall does not export symbols beginning with underscore (_)
15853           always_export_symbols_GCJ=yes
15854           # Exported symbols can be pulled into shared objects from archives
15855           whole_archive_flag_spec_GCJ=' '
15856           archive_cmds_need_lc_GCJ=yes
15857           # This is similar to how AIX traditionally builds it's shared libraries.
15858           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'
15859         fi
15860       fi
15861       ;;
15862
15863     amigaos*)
15864       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)'
15865       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15866       hardcode_minus_L_GCJ=yes
15867       # see comment about different semantics on the GNU ld section
15868       ld_shlibs_GCJ=no
15869       ;;
15870
15871     bsdi[45]*)
15872       export_dynamic_flag_spec_GCJ=-rdynamic
15873       ;;
15874
15875     cygwin* | mingw* | pw32*)
15876       # When not using gcc, we currently assume that we are using
15877       # Microsoft Visual C++.
15878       # hardcode_libdir_flag_spec is actually meaningless, as there is
15879       # no search path for DLLs.
15880       hardcode_libdir_flag_spec_GCJ=' '
15881       allow_undefined_flag_GCJ=unsupported
15882       # Tell ltmain to make .lib files, not .a files.
15883       libext=lib
15884       # Tell ltmain to make .dll files, not .so files.
15885       shrext_cmds=".dll"
15886       # FIXME: Setting linknames here is a bad hack.
15887       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15888       # The linker will automatically build a .lib file if we build a DLL.
15889       old_archive_From_new_cmds_GCJ='true'
15890       # FIXME: Should let the user specify the lib program.
15891       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15892       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
15893       enable_shared_with_static_runtimes_GCJ=yes
15894       ;;
15895
15896     darwin* | rhapsody*)
15897       case "$host_os" in
15898         rhapsody* | darwin1.[012])
15899          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
15900          ;;
15901        *) # Darwin 1.3 on
15902          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15903            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15904          else
15905            case ${MACOSX_DEPLOYMENT_TARGET} in
15906              10.[012])
15907                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15908                ;;
15909              10.*)
15910                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
15911                ;;
15912            esac
15913          fi
15914          ;;
15915       esac
15916       archive_cmds_need_lc_GCJ=no
15917       hardcode_direct_GCJ=no
15918       hardcode_automatic_GCJ=yes
15919       hardcode_shlibpath_var_GCJ=unsupported
15920       whole_archive_flag_spec_GCJ=''
15921       link_all_deplibs_GCJ=yes
15922     if test "$GCC" = yes ; then
15923         output_verbose_link_cmd='echo'
15924         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15925       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15926       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15927       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15928       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}'
15929     else
15930       case "$cc_basename" in
15931         xlc*)
15932          output_verbose_link_cmd='echo'
15933          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15934          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15935           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15936          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15937           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}'
15938           ;;
15939        *)
15940          ld_shlibs_GCJ=no
15941           ;;
15942       esac
15943     fi
15944       ;;
15945
15946     dgux*)
15947       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15949       hardcode_shlibpath_var_GCJ=no
15950       ;;
15951
15952     freebsd1*)
15953       ld_shlibs_GCJ=no
15954       ;;
15955
15956     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15957     # support.  Future versions do this automatically, but an explicit c++rt0.o
15958     # does not break anything, and helps significantly (at the cost of a little
15959     # extra space).
15960     freebsd2.2*)
15961       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15962       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15963       hardcode_direct_GCJ=yes
15964       hardcode_shlibpath_var_GCJ=no
15965       ;;
15966
15967     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15968     freebsd2*)
15969       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15970       hardcode_direct_GCJ=yes
15971       hardcode_minus_L_GCJ=yes
15972       hardcode_shlibpath_var_GCJ=no
15973       ;;
15974
15975     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15976     freebsd* | kfreebsd*-gnu | dragonfly*)
15977       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15978       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15979       hardcode_direct_GCJ=yes
15980       hardcode_shlibpath_var_GCJ=no
15981       ;;
15982
15983     hpux9*)
15984       if test "$GCC" = yes; then
15985         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'
15986       else
15987         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'
15988       fi
15989       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15990       hardcode_libdir_separator_GCJ=:
15991       hardcode_direct_GCJ=yes
15992
15993       # hardcode_minus_L: Not really in the search PATH,
15994       # but as the default location of the library.
15995       hardcode_minus_L_GCJ=yes
15996       export_dynamic_flag_spec_GCJ='${wl}-E'
15997       ;;
15998
15999     hpux10* | hpux11*)
16000       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16001         case "$host_cpu" in
16002         hppa*64*|ia64*)
16003           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004           ;;
16005         *)
16006           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16007           ;;
16008         esac
16009       else
16010         case "$host_cpu" in
16011         hppa*64*|ia64*)
16012           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16013           ;;
16014         *)
16015           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16016           ;;
16017         esac
16018       fi
16019       if test "$with_gnu_ld" = no; then
16020         case "$host_cpu" in
16021         hppa*64*)
16022           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16023           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16024           hardcode_libdir_separator_GCJ=:
16025           hardcode_direct_GCJ=no
16026           hardcode_shlibpath_var_GCJ=no
16027           ;;
16028         ia64*)
16029           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16030           hardcode_direct_GCJ=no
16031           hardcode_shlibpath_var_GCJ=no
16032
16033           # hardcode_minus_L: Not really in the search PATH,
16034           # but as the default location of the library.
16035           hardcode_minus_L_GCJ=yes
16036           ;;
16037         *)
16038           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16039           hardcode_libdir_separator_GCJ=:
16040           hardcode_direct_GCJ=yes
16041           export_dynamic_flag_spec_GCJ='${wl}-E'
16042
16043           # hardcode_minus_L: Not really in the search PATH,
16044           # but as the default location of the library.
16045           hardcode_minus_L_GCJ=yes
16046           ;;
16047         esac
16048       fi
16049       ;;
16050
16051     irix5* | irix6* | nonstopux*)
16052       if test "$GCC" = yes; then
16053         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'
16054       else
16055         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'
16056         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16057       fi
16058       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16059       hardcode_libdir_separator_GCJ=:
16060       link_all_deplibs_GCJ=yes
16061       ;;
16062
16063     netbsd*)
16064       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16065         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16066       else
16067         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16068       fi
16069       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16070       hardcode_direct_GCJ=yes
16071       hardcode_shlibpath_var_GCJ=no
16072       ;;
16073
16074     newsos6)
16075       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076       hardcode_direct_GCJ=yes
16077       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16078       hardcode_libdir_separator_GCJ=:
16079       hardcode_shlibpath_var_GCJ=no
16080       ;;
16081
16082     openbsd*)
16083       hardcode_direct_GCJ=yes
16084       hardcode_shlibpath_var_GCJ=no
16085       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16086         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16087         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16088         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16089         export_dynamic_flag_spec_GCJ='${wl}-E'
16090       else
16091        case $host_os in
16092          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16093            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16094            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16095            ;;
16096          *)
16097            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16098            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16099            ;;
16100        esac
16101       fi
16102       ;;
16103
16104     os2*)
16105       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16106       hardcode_minus_L_GCJ=yes
16107       allow_undefined_flag_GCJ=unsupported
16108       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'
16109       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16110       ;;
16111
16112     osf3*)
16113       if test "$GCC" = yes; then
16114         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16115         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'
16116       else
16117         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16118         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'
16119       fi
16120       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16121       hardcode_libdir_separator_GCJ=:
16122       ;;
16123
16124     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16125       if test "$GCC" = yes; then
16126         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16127         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'
16128         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16129       else
16130         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16131         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'
16132         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~
16133         $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'
16134
16135         # Both c and cxx compiler support -rpath directly
16136         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16137       fi
16138       hardcode_libdir_separator_GCJ=:
16139       ;;
16140
16141     sco3.2v5*)
16142       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143       hardcode_shlibpath_var_GCJ=no
16144       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16145       runpath_var=LD_RUN_PATH
16146       hardcode_runpath_var=yes
16147       ;;
16148
16149     solaris*)
16150       no_undefined_flag_GCJ=' -z text'
16151       if test "$GCC" = yes; then
16152         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16153         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16154           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16155       else
16156         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16157         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16158         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16159       fi
16160       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16161       hardcode_shlibpath_var_GCJ=no
16162       case $host_os in
16163       solaris2.[0-5] | solaris2.[0-5].*) ;;
16164       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16165         whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16166       esac
16167       link_all_deplibs_GCJ=yes
16168       ;;
16169
16170     sunos4*)
16171       if test "x$host_vendor" = xsequent; then
16172         # Use $CC to link under sequent, because it throws in some extra .o
16173         # files that make .init and .fini sections work.
16174         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16175       else
16176         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16177       fi
16178       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16179       hardcode_direct_GCJ=yes
16180       hardcode_minus_L_GCJ=yes
16181       hardcode_shlibpath_var_GCJ=no
16182       ;;
16183
16184     sysv4)
16185       case $host_vendor in
16186         sni)
16187           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16188           hardcode_direct_GCJ=yes # is this really true???
16189         ;;
16190         siemens)
16191           ## LD is ld it makes a PLAMLIB
16192           ## CC just makes a GrossModule.
16193           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16194           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16195           hardcode_direct_GCJ=no
16196         ;;
16197         motorola)
16198           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16199           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16200         ;;
16201       esac
16202       runpath_var='LD_RUN_PATH'
16203       hardcode_shlibpath_var_GCJ=no
16204       ;;
16205
16206     sysv4.3*)
16207       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208       hardcode_shlibpath_var_GCJ=no
16209       export_dynamic_flag_spec_GCJ='-Bexport'
16210       ;;
16211
16212     sysv4*MP*)
16213       if test -d /usr/nec; then
16214         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215         hardcode_shlibpath_var_GCJ=no
16216         runpath_var=LD_RUN_PATH
16217         hardcode_runpath_var=yes
16218         ld_shlibs_GCJ=yes
16219       fi
16220       ;;
16221
16222     sysv4.2uw2*)
16223       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16224       hardcode_direct_GCJ=yes
16225       hardcode_minus_L_GCJ=no
16226       hardcode_shlibpath_var_GCJ=no
16227       hardcode_runpath_var=yes
16228       runpath_var=LD_RUN_PATH
16229       ;;
16230
16231    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16232       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16233       if test "$GCC" = yes; then
16234         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235       else
16236         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16237       fi
16238       runpath_var='LD_RUN_PATH'
16239       hardcode_shlibpath_var_GCJ=no
16240       ;;
16241
16242     sysv5*)
16243       no_undefined_flag_GCJ=' -z text'
16244       # $CC -shared without GNU ld will not create a library from C++
16245       # object files and a static libstdc++, better avoid it by now
16246       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16249       hardcode_libdir_flag_spec_GCJ=
16250       hardcode_shlibpath_var_GCJ=no
16251       runpath_var='LD_RUN_PATH'
16252       ;;
16253
16254     uts4*)
16255       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16257       hardcode_shlibpath_var_GCJ=no
16258       ;;
16259
16260     *)
16261       ld_shlibs_GCJ=no
16262       ;;
16263     esac
16264   fi
16265
16266 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16267 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16268 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16269
16270 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16271 if test "$GCC" = yes; then
16272   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16273 fi
16274
16275 #
16276 # Do we need to explicitly link libc?
16277 #
16278 case "x$archive_cmds_need_lc_GCJ" in
16279 x|xyes)
16280   # Assume -lc should be added
16281   archive_cmds_need_lc_GCJ=yes
16282
16283   if test "$enable_shared" = yes && test "$GCC" = yes; then
16284     case $archive_cmds_GCJ in
16285     *'~'*)
16286       # FIXME: we may have to deal with multi-command sequences.
16287       ;;
16288     '$CC '*)
16289       # Test whether the compiler implicitly links with -lc since on some
16290       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16291       # to ld, don't add -lc before -lgcc.
16292       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16293 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16294       $rm conftest*
16295       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16296
16297       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298   (eval $ac_compile) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); } 2>conftest.err; then
16302         soname=conftest
16303         lib=conftest
16304         libobjs=conftest.$ac_objext
16305         deplibs=
16306         wl=$lt_prog_compiler_wl_GCJ
16307         compiler_flags=-v
16308         linker_flags=-v
16309         verstring=
16310         output_objdir=.
16311         libname=conftest
16312         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16313         allow_undefined_flag_GCJ=
16314         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16315   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }
16319         then
16320           archive_cmds_need_lc_GCJ=no
16321         else
16322           archive_cmds_need_lc_GCJ=yes
16323         fi
16324         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16325       else
16326         cat conftest.err 1>&5
16327       fi
16328       $rm conftest*
16329       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16330 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16331       ;;
16332     esac
16333   fi
16334   ;;
16335 esac
16336
16337 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16338 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16339 library_names_spec=
16340 libname_spec='lib$name'
16341 soname_spec=
16342 shrext_cmds=".so"
16343 postinstall_cmds=
16344 postuninstall_cmds=
16345 finish_cmds=
16346 finish_eval=
16347 shlibpath_var=
16348 shlibpath_overrides_runpath=unknown
16349 version_type=none
16350 dynamic_linker="$host_os ld.so"
16351 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16352 if test "$GCC" = yes; then
16353   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16354   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16355     # if the path contains ";" then we assume it to be the separator
16356     # otherwise default to the standard path separator (i.e. ":") - it is
16357     # assumed that no part of a normal pathname contains ";" but that should
16358     # okay in the real world where ";" in dirpaths is itself problematic.
16359     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16360   else
16361     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16362   fi
16363 else
16364   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16365 fi
16366 need_lib_prefix=unknown
16367 hardcode_into_libs=no
16368
16369 # when you set need_version to no, make sure it does not cause -set_version
16370 # flags to be left without arguments
16371 need_version=unknown
16372
16373 case $host_os in
16374 aix3*)
16375   version_type=linux
16376   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16377   shlibpath_var=LIBPATH
16378
16379   # AIX 3 has no versioning support, so we append a major version to the name.
16380   soname_spec='${libname}${release}${shared_ext}$major'
16381   ;;
16382
16383 aix4* | aix5*)
16384   version_type=linux
16385   need_lib_prefix=no
16386   need_version=no
16387   hardcode_into_libs=yes
16388   if test "$host_cpu" = ia64; then
16389     # AIX 5 supports IA64
16390     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16391     shlibpath_var=LD_LIBRARY_PATH
16392   else
16393     # With GCC up to 2.95.x, collect2 would create an import file
16394     # for dependence libraries.  The import file would start with
16395     # the line `#! .'.  This would cause the generated library to
16396     # depend on `.', always an invalid library.  This was fixed in
16397     # development snapshots of GCC prior to 3.0.
16398     case $host_os in
16399       aix4 | aix4.[01] | aix4.[01].*)
16400       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16401            echo ' yes '
16402            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16403         :
16404       else
16405         can_build_shared=no
16406       fi
16407       ;;
16408     esac
16409     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16410     # soname into executable. Probably we can add versioning support to
16411     # collect2, so additional links can be useful in future.
16412     if test "$aix_use_runtimelinking" = yes; then
16413       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16414       # instead of lib<name>.a to let people know that these are not
16415       # typical AIX shared libraries.
16416       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417     else
16418       # We preserve .a as extension for shared libraries through AIX4.2
16419       # and later when we are not doing run time linking.
16420       library_names_spec='${libname}${release}.a $libname.a'
16421       soname_spec='${libname}${release}${shared_ext}$major'
16422     fi
16423     shlibpath_var=LIBPATH
16424   fi
16425   ;;
16426
16427 amigaos*)
16428   library_names_spec='$libname.ixlibrary $libname.a'
16429   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16430   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'
16431   ;;
16432
16433 beos*)
16434   library_names_spec='${libname}${shared_ext}'
16435   dynamic_linker="$host_os ld.so"
16436   shlibpath_var=LIBRARY_PATH
16437   ;;
16438
16439 bsdi[45]*)
16440   version_type=linux
16441   need_version=no
16442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443   soname_spec='${libname}${release}${shared_ext}$major'
16444   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16447   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16448   # the default ld.so.conf also contains /usr/contrib/lib and
16449   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16450   # libtool to hard-code these into programs
16451   ;;
16452
16453 cygwin* | mingw* | pw32*)
16454   version_type=windows
16455   shrext_cmds=".dll"
16456   need_version=no
16457   need_lib_prefix=no
16458
16459   case $GCC,$host_os in
16460   yes,cygwin* | yes,mingw* | yes,pw32*)
16461     library_names_spec='$libname.dll.a'
16462     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16463     postinstall_cmds='base_file=`basename \${file}`~
16464       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16465       dldir=$destdir/`dirname \$dlpath`~
16466       test -d \$dldir || mkdir -p \$dldir~
16467       $install_prog $dir/$dlname \$dldir/$dlname'
16468     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469       dlpath=$dir/\$dldll~
16470        $rm \$dlpath'
16471     shlibpath_overrides_runpath=yes
16472
16473     case $host_os in
16474     cygwin*)
16475       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16478       ;;
16479     mingw*)
16480       # MinGW DLLs use traditional 'lib' prefix
16481       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484         # It is most probably a Windows format PATH printed by
16485         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486         # path with ; separators, and with drive letters. We can handle the
16487         # drive letters (cygwin fileutils understands them), so leave them,
16488         # especially as we might pass files found there to a mingw objdump,
16489         # which wouldn't understand a cygwinified path. Ahh.
16490         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16491       else
16492         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16493       fi
16494       ;;
16495     pw32*)
16496       # pw32 DLLs use 'pw' prefix rather than 'lib'
16497       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16498       ;;
16499     esac
16500     ;;
16501
16502   *)
16503     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16504     ;;
16505   esac
16506   dynamic_linker='Win32 ld.exe'
16507   # FIXME: first we should search . and the directory the executable is in
16508   shlibpath_var=PATH
16509   ;;
16510
16511 darwin* | rhapsody*)
16512   dynamic_linker="$host_os dyld"
16513   version_type=darwin
16514   need_lib_prefix=no
16515   need_version=no
16516   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16517   soname_spec='${libname}${release}${major}$shared_ext'
16518   shlibpath_overrides_runpath=yes
16519   shlibpath_var=DYLD_LIBRARY_PATH
16520   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16521   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16522   if test "$GCC" = yes; then
16523     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"`
16524   else
16525     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16526   fi
16527   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528   ;;
16529
16530 dgux*)
16531   version_type=linux
16532   need_lib_prefix=no
16533   need_version=no
16534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535   soname_spec='${libname}${release}${shared_ext}$major'
16536   shlibpath_var=LD_LIBRARY_PATH
16537   ;;
16538
16539 freebsd1*)
16540   dynamic_linker=no
16541   ;;
16542
16543 kfreebsd*-gnu)
16544   version_type=linux
16545   need_lib_prefix=no
16546   need_version=no
16547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548   soname_spec='${libname}${release}${shared_ext}$major'
16549   shlibpath_var=LD_LIBRARY_PATH
16550   shlibpath_overrides_runpath=no
16551   hardcode_into_libs=yes
16552   dynamic_linker='GNU ld.so'
16553   ;;
16554
16555 freebsd* | dragonfly*)
16556   # DragonFly does not have aout.  When/if they implement a new
16557   # versioning mechanism, adjust this.
16558   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16559   version_type=freebsd-$objformat
16560   case $version_type in
16561     freebsd-elf*)
16562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16563       need_version=no
16564       need_lib_prefix=no
16565       ;;
16566     freebsd-*)
16567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16568       need_version=yes
16569       ;;
16570   esac
16571   shlibpath_var=LD_LIBRARY_PATH
16572   case $host_os in
16573   freebsd2*)
16574     shlibpath_overrides_runpath=yes
16575     ;;
16576   freebsd3.[01]* | freebsdelf3.[01]*)
16577     shlibpath_overrides_runpath=yes
16578     hardcode_into_libs=yes
16579     ;;
16580   *) # from 3.2 on
16581     shlibpath_overrides_runpath=no
16582     hardcode_into_libs=yes
16583     ;;
16584   esac
16585   ;;
16586
16587 gnu*)
16588   version_type=linux
16589   need_lib_prefix=no
16590   need_version=no
16591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16592   soname_spec='${libname}${release}${shared_ext}$major'
16593   shlibpath_var=LD_LIBRARY_PATH
16594   hardcode_into_libs=yes
16595   ;;
16596
16597 hpux9* | hpux10* | hpux11*)
16598   # Give a soname corresponding to the major version so that dld.sl refuses to
16599   # link against other versions.
16600   version_type=sunos
16601   need_lib_prefix=no
16602   need_version=no
16603   case "$host_cpu" in
16604   ia64*)
16605     shrext_cmds='.so'
16606     hardcode_into_libs=yes
16607     dynamic_linker="$host_os dld.so"
16608     shlibpath_var=LD_LIBRARY_PATH
16609     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16611     soname_spec='${libname}${release}${shared_ext}$major'
16612     if test "X$HPUX_IA64_MODE" = X32; then
16613       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16614     else
16615       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16616     fi
16617     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16618     ;;
16619    hppa*64*)
16620      shrext_cmds='.sl'
16621      hardcode_into_libs=yes
16622      dynamic_linker="$host_os dld.sl"
16623      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16624      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16625      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16626      soname_spec='${libname}${release}${shared_ext}$major'
16627      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16628      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16629      ;;
16630    *)
16631     shrext_cmds='.sl'
16632     dynamic_linker="$host_os dld.sl"
16633     shlibpath_var=SHLIB_PATH
16634     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16636     soname_spec='${libname}${release}${shared_ext}$major'
16637     ;;
16638   esac
16639   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16640   postinstall_cmds='chmod 555 $lib'
16641   ;;
16642
16643 irix5* | irix6* | nonstopux*)
16644   case $host_os in
16645     nonstopux*) version_type=nonstopux ;;
16646     *)
16647         if test "$lt_cv_prog_gnu_ld" = yes; then
16648                 version_type=linux
16649         else
16650                 version_type=irix
16651         fi ;;
16652   esac
16653   need_lib_prefix=no
16654   need_version=no
16655   soname_spec='${libname}${release}${shared_ext}$major'
16656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16657   case $host_os in
16658   irix5* | nonstopux*)
16659     libsuff= shlibsuff=
16660     ;;
16661   *)
16662     case $LD in # libtool.m4 will add one of these switches to LD
16663     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16664       libsuff= shlibsuff= libmagic=32-bit;;
16665     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16666       libsuff=32 shlibsuff=N32 libmagic=N32;;
16667     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16668       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16669     *) libsuff= shlibsuff= libmagic=never-match;;
16670     esac
16671     ;;
16672   esac
16673   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16674   shlibpath_overrides_runpath=no
16675   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16676   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16677   hardcode_into_libs=yes
16678   ;;
16679
16680 # No shared lib support for Linux oldld, aout, or coff.
16681 linux*oldld* | linux*aout* | linux*coff*)
16682   dynamic_linker=no
16683   ;;
16684
16685 # This must be Linux ELF.
16686 linux*)
16687   version_type=linux
16688   need_lib_prefix=no
16689   need_version=no
16690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691   soname_spec='${libname}${release}${shared_ext}$major'
16692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   shlibpath_overrides_runpath=no
16695   # This implies no fast_install, which is unacceptable.
16696   # Some rework will be needed to allow for fast_install
16697   # before this can be enabled.
16698   hardcode_into_libs=yes
16699
16700   # Append ld.so.conf contents to the search path
16701   if test -f /etc/ld.so.conf; then
16702     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16703     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16704   fi
16705
16706   # We used to test for /lib/ld.so.1 and disable shared libraries on
16707   # powerpc, because MkLinux only supported shared libraries with the
16708   # GNU dynamic linker.  Since this was broken with cross compilers,
16709   # most powerpc-linux boxes support dynamic linking these days and
16710   # people can always --disable-shared, the test was removed, and we
16711   # assume the GNU/Linux dynamic linker is in use.
16712   dynamic_linker='GNU/Linux ld.so'
16713   ;;
16714
16715 knetbsd*-gnu)
16716   version_type=linux
16717   need_lib_prefix=no
16718   need_version=no
16719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16720   soname_spec='${libname}${release}${shared_ext}$major'
16721   shlibpath_var=LD_LIBRARY_PATH
16722   shlibpath_overrides_runpath=no
16723   hardcode_into_libs=yes
16724   dynamic_linker='GNU ld.so'
16725   ;;
16726
16727 netbsd*)
16728   version_type=sunos
16729   need_lib_prefix=no
16730   need_version=no
16731   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16734     dynamic_linker='NetBSD (a.out) ld.so'
16735   else
16736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16737     soname_spec='${libname}${release}${shared_ext}$major'
16738     dynamic_linker='NetBSD ld.elf_so'
16739   fi
16740   shlibpath_var=LD_LIBRARY_PATH
16741   shlibpath_overrides_runpath=yes
16742   hardcode_into_libs=yes
16743   ;;
16744
16745 newsos6)
16746   version_type=linux
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748   shlibpath_var=LD_LIBRARY_PATH
16749   shlibpath_overrides_runpath=yes
16750   ;;
16751
16752 nto-qnx*)
16753   version_type=linux
16754   need_lib_prefix=no
16755   need_version=no
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757   soname_spec='${libname}${release}${shared_ext}$major'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   shlibpath_overrides_runpath=yes
16760   ;;
16761
16762 openbsd*)
16763   version_type=sunos
16764   need_lib_prefix=no
16765   need_version=no
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16767   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16770     case $host_os in
16771       openbsd2.[89] | openbsd2.[89].*)
16772         shlibpath_overrides_runpath=no
16773         ;;
16774       *)
16775         shlibpath_overrides_runpath=yes
16776         ;;
16777       esac
16778   else
16779     shlibpath_overrides_runpath=yes
16780   fi
16781   ;;
16782
16783 os2*)
16784   libname_spec='$name'
16785   shrext_cmds=".dll"
16786   need_lib_prefix=no
16787   library_names_spec='$libname${shared_ext} $libname.a'
16788   dynamic_linker='OS/2 ld.exe'
16789   shlibpath_var=LIBPATH
16790   ;;
16791
16792 osf3* | osf4* | osf5*)
16793   version_type=osf
16794   need_lib_prefix=no
16795   need_version=no
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16800   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16801   ;;
16802
16803 sco3.2v5*)
16804   version_type=osf
16805   soname_spec='${libname}${release}${shared_ext}$major'
16806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807   shlibpath_var=LD_LIBRARY_PATH
16808   ;;
16809
16810 solaris*)
16811   version_type=linux
16812   need_lib_prefix=no
16813   need_version=no
16814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815   soname_spec='${libname}${release}${shared_ext}$major'
16816   shlibpath_var=LD_LIBRARY_PATH
16817   shlibpath_overrides_runpath=yes
16818   hardcode_into_libs=yes
16819   # ldd complains unless libraries are executable
16820   postinstall_cmds='chmod +x $lib'
16821   ;;
16822
16823 sunos4*)
16824   version_type=sunos
16825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   shlibpath_overrides_runpath=yes
16829   if test "$with_gnu_ld" = yes; then
16830     need_lib_prefix=no
16831   fi
16832   need_version=yes
16833   ;;
16834
16835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16836   version_type=linux
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838   soname_spec='${libname}${release}${shared_ext}$major'
16839   shlibpath_var=LD_LIBRARY_PATH
16840   case $host_vendor in
16841     sni)
16842       shlibpath_overrides_runpath=no
16843       need_lib_prefix=no
16844       export_dynamic_flag_spec='${wl}-Blargedynsym'
16845       runpath_var=LD_RUN_PATH
16846       ;;
16847     siemens)
16848       need_lib_prefix=no
16849       ;;
16850     motorola)
16851       need_lib_prefix=no
16852       need_version=no
16853       shlibpath_overrides_runpath=no
16854       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16855       ;;
16856   esac
16857   ;;
16858
16859 sysv4*MP*)
16860   if test -d /usr/nec ;then
16861     version_type=linux
16862     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16863     soname_spec='$libname${shared_ext}.$major'
16864     shlibpath_var=LD_LIBRARY_PATH
16865   fi
16866   ;;
16867
16868 uts4*)
16869   version_type=linux
16870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871   soname_spec='${libname}${release}${shared_ext}$major'
16872   shlibpath_var=LD_LIBRARY_PATH
16873   ;;
16874
16875 *)
16876   dynamic_linker=no
16877   ;;
16878 esac
16879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16880 echo "${ECHO_T}$dynamic_linker" >&6
16881 test "$dynamic_linker" = no && can_build_shared=no
16882
16883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16885 hardcode_action_GCJ=
16886 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16887    test -n "$runpath_var_GCJ" || \
16888    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16889
16890   # We can hardcode non-existant directories.
16891   if test "$hardcode_direct_GCJ" != no &&
16892      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16893      # have to relink, otherwise we might link with an installed library
16894      # when we should be linking with a yet-to-be-installed one
16895      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16896      test "$hardcode_minus_L_GCJ" != no; then
16897     # Linking always hardcodes the temporary library directory.
16898     hardcode_action_GCJ=relink
16899   else
16900     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16901     hardcode_action_GCJ=immediate
16902   fi
16903 else
16904   # We cannot hardcode anything, or else we can only hardcode existing
16905   # directories.
16906   hardcode_action_GCJ=unsupported
16907 fi
16908 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16909 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16910
16911 if test "$hardcode_action_GCJ" = relink; then
16912   # Fast installation is not supported
16913   enable_fast_install=no
16914 elif test "$shlibpath_overrides_runpath" = yes ||
16915      test "$enable_shared" = no; then
16916   # Fast installation is not necessary
16917   enable_fast_install=needless
16918 fi
16919
16920 striplib=
16921 old_striplib=
16922 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16923 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16924 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16925   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16926   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16927   echo "$as_me:$LINENO: result: yes" >&5
16928 echo "${ECHO_T}yes" >&6
16929 else
16930 # FIXME - insert some real tests, host_os isn't really good enough
16931   case $host_os in
16932    darwin*)
16933        if test -n "$STRIP" ; then
16934          striplib="$STRIP -x"
16935          echo "$as_me:$LINENO: result: yes" >&5
16936 echo "${ECHO_T}yes" >&6
16937        else
16938   echo "$as_me:$LINENO: result: no" >&5
16939 echo "${ECHO_T}no" >&6
16940 fi
16941        ;;
16942    *)
16943   echo "$as_me:$LINENO: result: no" >&5
16944 echo "${ECHO_T}no" >&6
16945     ;;
16946   esac
16947 fi
16948
16949 if test "x$enable_dlopen" != xyes; then
16950   enable_dlopen=unknown
16951   enable_dlopen_self=unknown
16952   enable_dlopen_self_static=unknown
16953 else
16954   lt_cv_dlopen=no
16955   lt_cv_dlopen_libs=
16956
16957   case $host_os in
16958   beos*)
16959     lt_cv_dlopen="load_add_on"
16960     lt_cv_dlopen_libs=
16961     lt_cv_dlopen_self=yes
16962     ;;
16963
16964   mingw* | pw32*)
16965     lt_cv_dlopen="LoadLibrary"
16966     lt_cv_dlopen_libs=
16967    ;;
16968
16969   cygwin*)
16970     lt_cv_dlopen="dlopen"
16971     lt_cv_dlopen_libs=
16972    ;;
16973
16974   darwin*)
16975   # if libdl is installed we need to link against it
16976     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-ldl  $LIBS"
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989
16990 /* Override any gcc2 internal prototype to avoid an error.  */
16991 #ifdef __cplusplus
16992 extern "C"
16993 #endif
16994 /* We use char because int might match the return type of a gcc2
16995    builtin and then its argument prototype would still apply.  */
16996 char dlopen ();
16997 int
16998 main ()
16999 {
17000 dlopen ();
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007   (eval $ac_link) 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } &&
17014          { ac_try='test -z "$ac_c_werror_flag"
17015                          || test ! -s conftest.err'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; } &&
17021          { ac_try='test -s conftest$ac_exeext'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   ac_cv_lib_dl_dlopen=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 ac_cv_lib_dl_dlopen=no
17033 fi
17034 rm -f conftest.err conftest.$ac_objext \
17035       conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17037 fi
17038 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17039 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17040 if test $ac_cv_lib_dl_dlopen = yes; then
17041   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17042 else
17043
17044     lt_cv_dlopen="dyld"
17045     lt_cv_dlopen_libs=
17046     lt_cv_dlopen_self=yes
17047
17048 fi
17049
17050    ;;
17051
17052   *)
17053     echo "$as_me:$LINENO: checking for shl_load" >&5
17054 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17055 if test "${ac_cv_func_shl_load+set}" = set; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058   cat >conftest.$ac_ext <<_ACEOF
17059 /* confdefs.h.  */
17060 _ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h.  */
17064 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17066 #define shl_load innocuous_shl_load
17067
17068 /* System header to define __stub macros and hopefully few prototypes,
17069     which can conflict with char shl_load (); below.
17070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071     <limits.h> exists even on freestanding compilers.  */
17072
17073 #ifdef __STDC__
17074 # include <limits.h>
17075 #else
17076 # include <assert.h>
17077 #endif
17078
17079 #undef shl_load
17080
17081 /* Override any gcc2 internal prototype to avoid an error.  */
17082 #ifdef __cplusplus
17083 extern "C"
17084 {
17085 #endif
17086 /* We use char because int might match the return type of a gcc2
17087    builtin and then its argument prototype would still apply.  */
17088 char shl_load ();
17089 /* The GNU C library defines this for functions which it implements
17090     to always fail with ENOSYS.  Some functions are actually named
17091     something starting with __ and the normal name is an alias.  */
17092 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17093 choke me
17094 #else
17095 char (*f) () = shl_load;
17096 #endif
17097 #ifdef __cplusplus
17098 }
17099 #endif
17100
17101 int
17102 main ()
17103 {
17104 return f != shl_load;
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111   (eval $ac_link) 2>conftest.er1
17112   ac_status=$?
17113   grep -v '^ *+' conftest.er1 >conftest.err
17114   rm -f conftest.er1
17115   cat conftest.err >&5
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); } &&
17118          { ac_try='test -z "$ac_c_werror_flag"
17119                          || test ! -s conftest.err'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; } &&
17125          { ac_try='test -s conftest$ac_exeext'
17126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127   (eval $ac_try) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; }; then
17131   ac_cv_func_shl_load=yes
17132 else
17133   echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136 ac_cv_func_shl_load=no
17137 fi
17138 rm -f conftest.err conftest.$ac_objext \
17139       conftest$ac_exeext conftest.$ac_ext
17140 fi
17141 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17142 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17143 if test $ac_cv_func_shl_load = yes; then
17144   lt_cv_dlopen="shl_load"
17145 else
17146   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17147 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17148 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-ldld  $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159
17160 /* Override any gcc2 internal prototype to avoid an error.  */
17161 #ifdef __cplusplus
17162 extern "C"
17163 #endif
17164 /* We use char because int might match the return type of a gcc2
17165    builtin and then its argument prototype would still apply.  */
17166 char shl_load ();
17167 int
17168 main ()
17169 {
17170 shl_load ();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177   (eval $ac_link) 2>conftest.er1
17178   ac_status=$?
17179   grep -v '^ *+' conftest.er1 >conftest.err
17180   rm -f conftest.er1
17181   cat conftest.err >&5
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -z "$ac_c_werror_flag"
17185                          || test ! -s conftest.err'
17186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187   (eval $ac_try) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; } &&
17191          { ac_try='test -s conftest$ac_exeext'
17192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193   (eval $ac_try) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; }; then
17197   ac_cv_lib_dld_shl_load=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ac_cv_lib_dld_shl_load=no
17203 fi
17204 rm -f conftest.err conftest.$ac_objext \
17205       conftest$ac_exeext conftest.$ac_ext
17206 LIBS=$ac_check_lib_save_LIBS
17207 fi
17208 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17209 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17210 if test $ac_cv_lib_dld_shl_load = yes; then
17211   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17212 else
17213   echo "$as_me:$LINENO: checking for dlopen" >&5
17214 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17215 if test "${ac_cv_func_dlopen+set}" = set; then
17216   echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17218   cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17226 #define dlopen innocuous_dlopen
17227
17228 /* System header to define __stub macros and hopefully few prototypes,
17229     which can conflict with char dlopen (); below.
17230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231     <limits.h> exists even on freestanding compilers.  */
17232
17233 #ifdef __STDC__
17234 # include <limits.h>
17235 #else
17236 # include <assert.h>
17237 #endif
17238
17239 #undef dlopen
17240
17241 /* Override any gcc2 internal prototype to avoid an error.  */
17242 #ifdef __cplusplus
17243 extern "C"
17244 {
17245 #endif
17246 /* We use char because int might match the return type of a gcc2
17247    builtin and then its argument prototype would still apply.  */
17248 char dlopen ();
17249 /* The GNU C library defines this for functions which it implements
17250     to always fail with ENOSYS.  Some functions are actually named
17251     something starting with __ and the normal name is an alias.  */
17252 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17253 choke me
17254 #else
17255 char (*f) () = dlopen;
17256 #endif
17257 #ifdef __cplusplus
17258 }
17259 #endif
17260
17261 int
17262 main ()
17263 {
17264 return f != dlopen;
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271   (eval $ac_link) 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } &&
17278          { ac_try='test -z "$ac_c_werror_flag"
17279                          || test ! -s conftest.err'
17280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281   (eval $ac_try) 2>&5
17282   ac_status=$?
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); }; } &&
17285          { ac_try='test -s conftest$ac_exeext'
17286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287   (eval $ac_try) 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }; }; then
17291   ac_cv_func_dlopen=yes
17292 else
17293   echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17295
17296 ac_cv_func_dlopen=no
17297 fi
17298 rm -f conftest.err conftest.$ac_objext \
17299       conftest$ac_exeext conftest.$ac_ext
17300 fi
17301 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17302 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17303 if test $ac_cv_func_dlopen = yes; then
17304   lt_cv_dlopen="dlopen"
17305 else
17306   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17307 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   ac_check_lib_save_LIBS=$LIBS
17312 LIBS="-ldl  $LIBS"
17313 cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319
17320 /* Override any gcc2 internal prototype to avoid an error.  */
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 /* We use char because int might match the return type of a gcc2
17325    builtin and then its argument prototype would still apply.  */
17326 char dlopen ();
17327 int
17328 main ()
17329 {
17330 dlopen ();
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337   (eval $ac_link) 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag"
17345                          || test ! -s conftest.err'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest$ac_exeext'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }; then
17357   ac_cv_lib_dl_dlopen=yes
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362 ac_cv_lib_dl_dlopen=no
17363 fi
17364 rm -f conftest.err conftest.$ac_objext \
17365       conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17367 fi
17368 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17369 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17370 if test $ac_cv_lib_dl_dlopen = yes; then
17371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17372 else
17373   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17374 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17375 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   ac_check_lib_save_LIBS=$LIBS
17379 LIBS="-lsvld  $LIBS"
17380 cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386
17387 /* Override any gcc2 internal prototype to avoid an error.  */
17388 #ifdef __cplusplus
17389 extern "C"
17390 #endif
17391 /* We use char because int might match the return type of a gcc2
17392    builtin and then its argument prototype would still apply.  */
17393 char dlopen ();
17394 int
17395 main ()
17396 {
17397 dlopen ();
17398   ;
17399   return 0;
17400 }
17401 _ACEOF
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17404   (eval $ac_link) 2>conftest.er1
17405   ac_status=$?
17406   grep -v '^ *+' conftest.er1 >conftest.err
17407   rm -f conftest.er1
17408   cat conftest.err >&5
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); } &&
17411          { ac_try='test -z "$ac_c_werror_flag"
17412                          || test ! -s conftest.err'
17413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414   (eval $ac_try) 2>&5
17415   ac_status=$?
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); }; } &&
17418          { ac_try='test -s conftest$ac_exeext'
17419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420   (eval $ac_try) 2>&5
17421   ac_status=$?
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); }; }; then
17424   ac_cv_lib_svld_dlopen=yes
17425 else
17426   echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429 ac_cv_lib_svld_dlopen=no
17430 fi
17431 rm -f conftest.err conftest.$ac_objext \
17432       conftest$ac_exeext conftest.$ac_ext
17433 LIBS=$ac_check_lib_save_LIBS
17434 fi
17435 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17436 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17437 if test $ac_cv_lib_svld_dlopen = yes; then
17438   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17439 else
17440   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17441 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17442 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   ac_check_lib_save_LIBS=$LIBS
17446 LIBS="-ldld  $LIBS"
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h.  */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h.  */
17453
17454 /* Override any gcc2 internal prototype to avoid an error.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 /* We use char because int might match the return type of a gcc2
17459    builtin and then its argument prototype would still apply.  */
17460 char dld_link ();
17461 int
17462 main ()
17463 {
17464 dld_link ();
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471   (eval $ac_link) 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -z "$ac_c_werror_flag"
17479                          || test ! -s conftest.err'
17480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481   (eval $ac_try) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; } &&
17485          { ac_try='test -s conftest$ac_exeext'
17486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487   (eval $ac_try) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   ac_cv_lib_dld_dld_link=yes
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 ac_cv_lib_dld_dld_link=no
17497 fi
17498 rm -f conftest.err conftest.$ac_objext \
17499       conftest$ac_exeext conftest.$ac_ext
17500 LIBS=$ac_check_lib_save_LIBS
17501 fi
17502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17503 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17504 if test $ac_cv_lib_dld_dld_link = yes; then
17505   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17506 fi
17507
17508
17509 fi
17510
17511
17512 fi
17513
17514
17515 fi
17516
17517
17518 fi
17519
17520
17521 fi
17522
17523     ;;
17524   esac
17525
17526   if test "x$lt_cv_dlopen" != xno; then
17527     enable_dlopen=yes
17528   else
17529     enable_dlopen=no
17530   fi
17531
17532   case $lt_cv_dlopen in
17533   dlopen)
17534     save_CPPFLAGS="$CPPFLAGS"
17535     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17536
17537     save_LDFLAGS="$LDFLAGS"
17538     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17539
17540     save_LIBS="$LIBS"
17541     LIBS="$lt_cv_dlopen_libs $LIBS"
17542
17543     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17544 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17545 if test "${lt_cv_dlopen_self+set}" = set; then
17546   echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548           if test "$cross_compiling" = yes; then :
17549   lt_cv_dlopen_self=cross
17550 else
17551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17552   lt_status=$lt_dlunknown
17553   cat > conftest.$ac_ext <<EOF
17554 #line 17554 "configure"
17555 #include "confdefs.h"
17556
17557 #if HAVE_DLFCN_H
17558 #include <dlfcn.h>
17559 #endif
17560
17561 #include <stdio.h>
17562
17563 #ifdef RTLD_GLOBAL
17564 #  define LT_DLGLOBAL           RTLD_GLOBAL
17565 #else
17566 #  ifdef DL_GLOBAL
17567 #    define LT_DLGLOBAL         DL_GLOBAL
17568 #  else
17569 #    define LT_DLGLOBAL         0
17570 #  endif
17571 #endif
17572
17573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17574    find out it does not work in some platform. */
17575 #ifndef LT_DLLAZY_OR_NOW
17576 #  ifdef RTLD_LAZY
17577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17578 #  else
17579 #    ifdef DL_LAZY
17580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17581 #    else
17582 #      ifdef RTLD_NOW
17583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17584 #      else
17585 #        ifdef DL_NOW
17586 #          define LT_DLLAZY_OR_NOW      DL_NOW
17587 #        else
17588 #          define LT_DLLAZY_OR_NOW      0
17589 #        endif
17590 #      endif
17591 #    endif
17592 #  endif
17593 #endif
17594
17595 #ifdef __cplusplus
17596 extern "C" void exit (int);
17597 #endif
17598
17599 void fnord() { int i=42;}
17600 int main ()
17601 {
17602   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17603   int status = $lt_dlunknown;
17604
17605   if (self)
17606     {
17607       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17608       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17609       /* dlclose (self); */
17610     }
17611
17612     exit (status);
17613 }
17614 EOF
17615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616   (eval $ac_link) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17620     (./conftest; exit; ) 2>/dev/null
17621     lt_status=$?
17622     case x$lt_status in
17623       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17624       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17625       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17626     esac
17627   else :
17628     # compilation failed
17629     lt_cv_dlopen_self=no
17630   fi
17631 fi
17632 rm -fr conftest*
17633
17634
17635 fi
17636 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17637 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17638
17639     if test "x$lt_cv_dlopen_self" = xyes; then
17640       LDFLAGS="$LDFLAGS $link_static_flag"
17641       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17642 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17643 if test "${lt_cv_dlopen_self_static+set}" = set; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646           if test "$cross_compiling" = yes; then :
17647   lt_cv_dlopen_self_static=cross
17648 else
17649   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17650   lt_status=$lt_dlunknown
17651   cat > conftest.$ac_ext <<EOF
17652 #line 17652 "configure"
17653 #include "confdefs.h"
17654
17655 #if HAVE_DLFCN_H
17656 #include <dlfcn.h>
17657 #endif
17658
17659 #include <stdio.h>
17660
17661 #ifdef RTLD_GLOBAL
17662 #  define LT_DLGLOBAL           RTLD_GLOBAL
17663 #else
17664 #  ifdef DL_GLOBAL
17665 #    define LT_DLGLOBAL         DL_GLOBAL
17666 #  else
17667 #    define LT_DLGLOBAL         0
17668 #  endif
17669 #endif
17670
17671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17672    find out it does not work in some platform. */
17673 #ifndef LT_DLLAZY_OR_NOW
17674 #  ifdef RTLD_LAZY
17675 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17676 #  else
17677 #    ifdef DL_LAZY
17678 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17679 #    else
17680 #      ifdef RTLD_NOW
17681 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17682 #      else
17683 #        ifdef DL_NOW
17684 #          define LT_DLLAZY_OR_NOW      DL_NOW
17685 #        else
17686 #          define LT_DLLAZY_OR_NOW      0
17687 #        endif
17688 #      endif
17689 #    endif
17690 #  endif
17691 #endif
17692
17693 #ifdef __cplusplus
17694 extern "C" void exit (int);
17695 #endif
17696
17697 void fnord() { int i=42;}
17698 int main ()
17699 {
17700   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17701   int status = $lt_dlunknown;
17702
17703   if (self)
17704     {
17705       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17706       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17707       /* dlclose (self); */
17708     }
17709
17710     exit (status);
17711 }
17712 EOF
17713   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714   (eval $ac_link) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17718     (./conftest; exit; ) 2>/dev/null
17719     lt_status=$?
17720     case x$lt_status in
17721       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17722       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17723       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17724     esac
17725   else :
17726     # compilation failed
17727     lt_cv_dlopen_self_static=no
17728   fi
17729 fi
17730 rm -fr conftest*
17731
17732
17733 fi
17734 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17735 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17736     fi
17737
17738     CPPFLAGS="$save_CPPFLAGS"
17739     LDFLAGS="$save_LDFLAGS"
17740     LIBS="$save_LIBS"
17741     ;;
17742   esac
17743
17744   case $lt_cv_dlopen_self in
17745   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17746   *) enable_dlopen_self=unknown ;;
17747   esac
17748
17749   case $lt_cv_dlopen_self_static in
17750   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17751   *) enable_dlopen_self_static=unknown ;;
17752   esac
17753 fi
17754
17755
17756 # The else clause should only fire when bootstrapping the
17757 # libtool distribution, otherwise you forgot to ship ltmain.sh
17758 # with your package, and you will get complaints that there are
17759 # no rules to generate ltmain.sh.
17760 if test -f "$ltmain"; then
17761   # See if we are running on zsh, and set the options which allow our commands through
17762   # without removal of \ escapes.
17763   if test -n "${ZSH_VERSION+set}" ; then
17764     setopt NO_GLOB_SUBST
17765   fi
17766   # Now quote all the things that may contain metacharacters while being
17767   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17768   # variables and quote the copies for generation of the libtool script.
17769   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17770     SED SHELL STRIP \
17771     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17772     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17773     deplibs_check_method reload_flag reload_cmds need_locks \
17774     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17775     lt_cv_sys_global_symbol_to_c_name_address \
17776     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17777     old_postinstall_cmds old_postuninstall_cmds \
17778     compiler_GCJ \
17779     CC_GCJ \
17780     LD_GCJ \
17781     lt_prog_compiler_wl_GCJ \
17782     lt_prog_compiler_pic_GCJ \
17783     lt_prog_compiler_static_GCJ \
17784     lt_prog_compiler_no_builtin_flag_GCJ \
17785     export_dynamic_flag_spec_GCJ \
17786     thread_safe_flag_spec_GCJ \
17787     whole_archive_flag_spec_GCJ \
17788     enable_shared_with_static_runtimes_GCJ \
17789     old_archive_cmds_GCJ \
17790     old_archive_from_new_cmds_GCJ \
17791     predep_objects_GCJ \
17792     postdep_objects_GCJ \
17793     predeps_GCJ \
17794     postdeps_GCJ \
17795     compiler_lib_search_path_GCJ \
17796     archive_cmds_GCJ \
17797     archive_expsym_cmds_GCJ \
17798     postinstall_cmds_GCJ \
17799     postuninstall_cmds_GCJ \
17800     old_archive_from_expsyms_cmds_GCJ \
17801     allow_undefined_flag_GCJ \
17802     no_undefined_flag_GCJ \
17803     export_symbols_cmds_GCJ \
17804     hardcode_libdir_flag_spec_GCJ \
17805     hardcode_libdir_flag_spec_ld_GCJ \
17806     hardcode_libdir_separator_GCJ \
17807     hardcode_automatic_GCJ \
17808     module_cmds_GCJ \
17809     module_expsym_cmds_GCJ \
17810     lt_cv_prog_compiler_c_o_GCJ \
17811     exclude_expsyms_GCJ \
17812     include_expsyms_GCJ; do
17813
17814     case $var in
17815     old_archive_cmds_GCJ | \
17816     old_archive_from_new_cmds_GCJ | \
17817     archive_cmds_GCJ | \
17818     archive_expsym_cmds_GCJ | \
17819     module_cmds_GCJ | \
17820     module_expsym_cmds_GCJ | \
17821     old_archive_from_expsyms_cmds_GCJ | \
17822     export_symbols_cmds_GCJ | \
17823     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17824     postinstall_cmds | postuninstall_cmds | \
17825     old_postinstall_cmds | old_postuninstall_cmds | \
17826     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17827       # Double-quote double-evaled strings.
17828       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17829       ;;
17830     *)
17831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17832       ;;
17833     esac
17834   done
17835
17836   case $lt_echo in
17837   *'\$0 --fallback-echo"')
17838     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17839     ;;
17840   esac
17841
17842 cfgfile="$ofile"
17843
17844   cat <<__EOF__ >> "$cfgfile"
17845 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17846
17847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17848
17849 # Shell to use when invoking shell scripts.
17850 SHELL=$lt_SHELL
17851
17852 # Whether or not to build shared libraries.
17853 build_libtool_libs=$enable_shared
17854
17855 # Whether or not to build static libraries.
17856 build_old_libs=$enable_static
17857
17858 # Whether or not to add -lc for building shared libraries.
17859 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17860
17861 # Whether or not to disallow shared libs when runtime libs are static
17862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17863
17864 # Whether or not to optimize for fast installation.
17865 fast_install=$enable_fast_install
17866
17867 # The host system.
17868 host_alias=$host_alias
17869 host=$host
17870 host_os=$host_os
17871
17872 # The build system.
17873 build_alias=$build_alias
17874 build=$build
17875 build_os=$build_os
17876
17877 # An echo program that does not interpret backslashes.
17878 echo=$lt_echo
17879
17880 # The archiver.
17881 AR=$lt_AR
17882 AR_FLAGS=$lt_AR_FLAGS
17883
17884 # A C compiler.
17885 LTCC=$lt_LTCC
17886
17887 # A language-specific compiler.
17888 CC=$lt_compiler_GCJ
17889
17890 # Is the compiler the GNU C compiler?
17891 with_gcc=$GCC_GCJ
17892
17893 # An ERE matcher.
17894 EGREP=$lt_EGREP
17895
17896 # The linker used to build libraries.
17897 LD=$lt_LD_GCJ
17898
17899 # Whether we need hard or soft links.
17900 LN_S=$lt_LN_S
17901
17902 # A BSD-compatible nm program.
17903 NM=$lt_NM
17904
17905 # A symbol stripping program
17906 STRIP=$lt_STRIP
17907
17908 # Used to examine libraries when file_magic_cmd begins "file"
17909 MAGIC_CMD=$MAGIC_CMD
17910
17911 # Used on cygwin: DLL creation program.
17912 DLLTOOL="$DLLTOOL"
17913
17914 # Used on cygwin: object dumper.
17915 OBJDUMP="$OBJDUMP"
17916
17917 # Used on cygwin: assembler.
17918 AS="$AS"
17919
17920 # The name of the directory that contains temporary libtool files.
17921 objdir=$objdir
17922
17923 # How to create reloadable object files.
17924 reload_flag=$lt_reload_flag
17925 reload_cmds=$lt_reload_cmds
17926
17927 # How to pass a linker flag through the compiler.
17928 wl=$lt_lt_prog_compiler_wl_GCJ
17929
17930 # Object file suffix (normally "o").
17931 objext="$ac_objext"
17932
17933 # Old archive suffix (normally "a").
17934 libext="$libext"
17935
17936 # Shared library suffix (normally ".so").
17937 shrext_cmds='$shrext_cmds'
17938
17939 # Executable file suffix (normally "").
17940 exeext="$exeext"
17941
17942 # Additional compiler flags for building library objects.
17943 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17944 pic_mode=$pic_mode
17945
17946 # What is the maximum length of a command?
17947 max_cmd_len=$lt_cv_sys_max_cmd_len
17948
17949 # Does compiler simultaneously support -c and -o options?
17950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17951
17952 # Must we lock files when doing compilation ?
17953 need_locks=$lt_need_locks
17954
17955 # Do we need the lib prefix for modules?
17956 need_lib_prefix=$need_lib_prefix
17957
17958 # Do we need a version for libraries?
17959 need_version=$need_version
17960
17961 # Whether dlopen is supported.
17962 dlopen_support=$enable_dlopen
17963
17964 # Whether dlopen of programs is supported.
17965 dlopen_self=$enable_dlopen_self
17966
17967 # Whether dlopen of statically linked programs is supported.
17968 dlopen_self_static=$enable_dlopen_self_static
17969
17970 # Compiler flag to prevent dynamic linking.
17971 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17972
17973 # Compiler flag to turn off builtin functions.
17974 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17975
17976 # Compiler flag to allow reflexive dlopens.
17977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17978
17979 # Compiler flag to generate shared objects directly from archives.
17980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17981
17982 # Compiler flag to generate thread-safe objects.
17983 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17984
17985 # Library versioning type.
17986 version_type=$version_type
17987
17988 # Format of library name prefix.
17989 libname_spec=$lt_libname_spec
17990
17991 # List of archive names.  First name is the real one, the rest are links.
17992 # The last name is the one that the linker finds with -lNAME.
17993 library_names_spec=$lt_library_names_spec
17994
17995 # The coded name of the library, if different from the real name.
17996 soname_spec=$lt_soname_spec
17997
17998 # Commands used to build and install an old-style archive.
17999 RANLIB=$lt_RANLIB
18000 old_archive_cmds=$lt_old_archive_cmds_GCJ
18001 old_postinstall_cmds=$lt_old_postinstall_cmds
18002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18003
18004 # Create an old-style archive from a shared archive.
18005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18006
18007 # Create a temporary old-style archive to link instead of a shared archive.
18008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18009
18010 # Commands used to build and install a shared archive.
18011 archive_cmds=$lt_archive_cmds_GCJ
18012 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18013 postinstall_cmds=$lt_postinstall_cmds
18014 postuninstall_cmds=$lt_postuninstall_cmds
18015
18016 # Commands used to build a loadable module (assumed same as above if empty)
18017 module_cmds=$lt_module_cmds_GCJ
18018 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18019
18020 # Commands to strip libraries.
18021 old_striplib=$lt_old_striplib
18022 striplib=$lt_striplib
18023
18024 # Dependencies to place before the objects being linked to create a
18025 # shared library.
18026 predep_objects=$lt_predep_objects_GCJ
18027
18028 # Dependencies to place after the objects being linked to create a
18029 # shared library.
18030 postdep_objects=$lt_postdep_objects_GCJ
18031
18032 # Dependencies to place before the objects being linked to create a
18033 # shared library.
18034 predeps=$lt_predeps_GCJ
18035
18036 # Dependencies to place after the objects being linked to create a
18037 # shared library.
18038 postdeps=$lt_postdeps_GCJ
18039
18040 # The library search path used internally by the compiler when linking
18041 # a shared library.
18042 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18043
18044 # Method to check whether dependent libraries are shared objects.
18045 deplibs_check_method=$lt_deplibs_check_method
18046
18047 # Command to use when deplibs_check_method == file_magic.
18048 file_magic_cmd=$lt_file_magic_cmd
18049
18050 # Flag that allows shared libraries with undefined symbols to be built.
18051 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18052
18053 # Flag that forces no undefined symbols.
18054 no_undefined_flag=$lt_no_undefined_flag_GCJ
18055
18056 # Commands used to finish a libtool library installation in a directory.
18057 finish_cmds=$lt_finish_cmds
18058
18059 # Same as above, but a single script fragment to be evaled but not shown.
18060 finish_eval=$lt_finish_eval
18061
18062 # Take the output of nm and produce a listing of raw symbols and C names.
18063 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18064
18065 # Transform the output of nm in a proper C declaration
18066 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18067
18068 # Transform the output of nm in a C name address pair
18069 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18070
18071 # This is the shared library runtime path variable.
18072 runpath_var=$runpath_var
18073
18074 # This is the shared library path variable.
18075 shlibpath_var=$shlibpath_var
18076
18077 # Is shlibpath searched before the hard-coded library search path?
18078 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18079
18080 # How to hardcode a shared library path into an executable.
18081 hardcode_action=$hardcode_action_GCJ
18082
18083 # Whether we should hardcode library paths into libraries.
18084 hardcode_into_libs=$hardcode_into_libs
18085
18086 # Flag to hardcode \$libdir into a binary during linking.
18087 # This must work even if \$libdir does not exist.
18088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18089
18090 # If ld is used when linking, flag to hardcode \$libdir into
18091 # a binary during linking. This must work even if \$libdir does
18092 # not exist.
18093 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18094
18095 # Whether we need a single -rpath flag with a separated argument.
18096 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18097
18098 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18099 # resulting binary.
18100 hardcode_direct=$hardcode_direct_GCJ
18101
18102 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18103 # resulting binary.
18104 hardcode_minus_L=$hardcode_minus_L_GCJ
18105
18106 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18107 # the resulting binary.
18108 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18109
18110 # Set to yes if building a shared library automatically hardcodes DIR into the library
18111 # and all subsequent libraries and executables linked against it.
18112 hardcode_automatic=$hardcode_automatic_GCJ
18113
18114 # Variables whose values should be saved in libtool wrapper scripts and
18115 # restored at relink time.
18116 variables_saved_for_relink="$variables_saved_for_relink"
18117
18118 # Whether libtool must link a program against all its dependency libraries.
18119 link_all_deplibs=$link_all_deplibs_GCJ
18120
18121 # Compile-time system search path for libraries
18122 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18123
18124 # Run-time system search path for libraries
18125 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18126
18127 # Fix the shell variable \$srcfile for the compiler.
18128 fix_srcfile_path="$fix_srcfile_path_GCJ"
18129
18130 # Set to yes if exported symbols are required.
18131 always_export_symbols=$always_export_symbols_GCJ
18132
18133 # The commands to list exported symbols.
18134 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18135
18136 # The commands to extract the exported symbol list from a shared archive.
18137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18138
18139 # Symbols that should not be listed in the preloaded symbols.
18140 exclude_expsyms=$lt_exclude_expsyms_GCJ
18141
18142 # Symbols that must always be exported.
18143 include_expsyms=$lt_include_expsyms_GCJ
18144
18145 # ### END LIBTOOL TAG CONFIG: $tagname
18146
18147 __EOF__
18148
18149
18150 else
18151   # If there is no Makefile yet, we rely on a make rule to execute
18152   # `config.status --recheck' to rerun these tests and create the
18153   # libtool script then.
18154   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18155   if test -f "$ltmain_in"; then
18156     test -f Makefile && make "$ltmain"
18157   fi
18158 fi
18159
18160
18161 ac_ext=c
18162 ac_cpp='$CPP $CPPFLAGS'
18163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18166
18167 CC="$lt_save_CC"
18168
18169         else
18170           tagname=""
18171         fi
18172         ;;
18173
18174       RC)
18175
18176
18177
18178 # Source file extension for RC test sources.
18179 ac_ext=rc
18180
18181 # Object file extension for compiled RC test sources.
18182 objext=o
18183 objext_RC=$objext
18184
18185 # Code to be used in simple compile tests
18186 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18187
18188 # Code to be used in simple link tests
18189 lt_simple_link_test_code="$lt_simple_compile_test_code"
18190
18191 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18192
18193 # If no C compiler was specified, use CC.
18194 LTCC=${LTCC-"$CC"}
18195
18196 # Allow CC to be a program name with arguments.
18197 compiler=$CC
18198
18199
18200 # Allow CC to be a program name with arguments.
18201 lt_save_CC="$CC"
18202 CC=${RC-"windres"}
18203 compiler=$CC
18204 compiler_RC=$CC
18205 lt_cv_prog_compiler_c_o_RC=yes
18206
18207 # The else clause should only fire when bootstrapping the
18208 # libtool distribution, otherwise you forgot to ship ltmain.sh
18209 # with your package, and you will get complaints that there are
18210 # no rules to generate ltmain.sh.
18211 if test -f "$ltmain"; then
18212   # See if we are running on zsh, and set the options which allow our commands through
18213   # without removal of \ escapes.
18214   if test -n "${ZSH_VERSION+set}" ; then
18215     setopt NO_GLOB_SUBST
18216   fi
18217   # Now quote all the things that may contain metacharacters while being
18218   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18219   # variables and quote the copies for generation of the libtool script.
18220   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18221     SED SHELL STRIP \
18222     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18223     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18224     deplibs_check_method reload_flag reload_cmds need_locks \
18225     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18226     lt_cv_sys_global_symbol_to_c_name_address \
18227     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18228     old_postinstall_cmds old_postuninstall_cmds \
18229     compiler_RC \
18230     CC_RC \
18231     LD_RC \
18232     lt_prog_compiler_wl_RC \
18233     lt_prog_compiler_pic_RC \
18234     lt_prog_compiler_static_RC \
18235     lt_prog_compiler_no_builtin_flag_RC \
18236     export_dynamic_flag_spec_RC \
18237     thread_safe_flag_spec_RC \
18238     whole_archive_flag_spec_RC \
18239     enable_shared_with_static_runtimes_RC \
18240     old_archive_cmds_RC \
18241     old_archive_from_new_cmds_RC \
18242     predep_objects_RC \
18243     postdep_objects_RC \
18244     predeps_RC \
18245     postdeps_RC \
18246     compiler_lib_search_path_RC \
18247     archive_cmds_RC \
18248     archive_expsym_cmds_RC \
18249     postinstall_cmds_RC \
18250     postuninstall_cmds_RC \
18251     old_archive_from_expsyms_cmds_RC \
18252     allow_undefined_flag_RC \
18253     no_undefined_flag_RC \
18254     export_symbols_cmds_RC \
18255     hardcode_libdir_flag_spec_RC \
18256     hardcode_libdir_flag_spec_ld_RC \
18257     hardcode_libdir_separator_RC \
18258     hardcode_automatic_RC \
18259     module_cmds_RC \
18260     module_expsym_cmds_RC \
18261     lt_cv_prog_compiler_c_o_RC \
18262     exclude_expsyms_RC \
18263     include_expsyms_RC; do
18264
18265     case $var in
18266     old_archive_cmds_RC | \
18267     old_archive_from_new_cmds_RC | \
18268     archive_cmds_RC | \
18269     archive_expsym_cmds_RC | \
18270     module_cmds_RC | \
18271     module_expsym_cmds_RC | \
18272     old_archive_from_expsyms_cmds_RC | \
18273     export_symbols_cmds_RC | \
18274     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18275     postinstall_cmds | postuninstall_cmds | \
18276     old_postinstall_cmds | old_postuninstall_cmds | \
18277     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18278       # Double-quote double-evaled strings.
18279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18280       ;;
18281     *)
18282       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18283       ;;
18284     esac
18285   done
18286
18287   case $lt_echo in
18288   *'\$0 --fallback-echo"')
18289     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18290     ;;
18291   esac
18292
18293 cfgfile="$ofile"
18294
18295   cat <<__EOF__ >> "$cfgfile"
18296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18297
18298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18299
18300 # Shell to use when invoking shell scripts.
18301 SHELL=$lt_SHELL
18302
18303 # Whether or not to build shared libraries.
18304 build_libtool_libs=$enable_shared
18305
18306 # Whether or not to build static libraries.
18307 build_old_libs=$enable_static
18308
18309 # Whether or not to add -lc for building shared libraries.
18310 build_libtool_need_lc=$archive_cmds_need_lc_RC
18311
18312 # Whether or not to disallow shared libs when runtime libs are static
18313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18314
18315 # Whether or not to optimize for fast installation.
18316 fast_install=$enable_fast_install
18317
18318 # The host system.
18319 host_alias=$host_alias
18320 host=$host
18321 host_os=$host_os
18322
18323 # The build system.
18324 build_alias=$build_alias
18325 build=$build
18326 build_os=$build_os
18327
18328 # An echo program that does not interpret backslashes.
18329 echo=$lt_echo
18330
18331 # The archiver.
18332 AR=$lt_AR
18333 AR_FLAGS=$lt_AR_FLAGS
18334
18335 # A C compiler.
18336 LTCC=$lt_LTCC
18337
18338 # A language-specific compiler.
18339 CC=$lt_compiler_RC
18340
18341 # Is the compiler the GNU C compiler?
18342 with_gcc=$GCC_RC
18343
18344 # An ERE matcher.
18345 EGREP=$lt_EGREP
18346
18347 # The linker used to build libraries.
18348 LD=$lt_LD_RC
18349
18350 # Whether we need hard or soft links.
18351 LN_S=$lt_LN_S
18352
18353 # A BSD-compatible nm program.
18354 NM=$lt_NM
18355
18356 # A symbol stripping program
18357 STRIP=$lt_STRIP
18358
18359 # Used to examine libraries when file_magic_cmd begins "file"
18360 MAGIC_CMD=$MAGIC_CMD
18361
18362 # Used on cygwin: DLL creation program.
18363 DLLTOOL="$DLLTOOL"
18364
18365 # Used on cygwin: object dumper.
18366 OBJDUMP="$OBJDUMP"
18367
18368 # Used on cygwin: assembler.
18369 AS="$AS"
18370
18371 # The name of the directory that contains temporary libtool files.
18372 objdir=$objdir
18373
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18377
18378 # How to pass a linker flag through the compiler.
18379 wl=$lt_lt_prog_compiler_wl_RC
18380
18381 # Object file suffix (normally "o").
18382 objext="$ac_objext"
18383
18384 # Old archive suffix (normally "a").
18385 libext="$libext"
18386
18387 # Shared library suffix (normally ".so").
18388 shrext_cmds='$shrext_cmds'
18389
18390 # Executable file suffix (normally "").
18391 exeext="$exeext"
18392
18393 # Additional compiler flags for building library objects.
18394 pic_flag=$lt_lt_prog_compiler_pic_RC
18395 pic_mode=$pic_mode
18396
18397 # What is the maximum length of a command?
18398 max_cmd_len=$lt_cv_sys_max_cmd_len
18399
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18402
18403 # Must we lock files when doing compilation ?
18404 need_locks=$lt_need_locks
18405
18406 # Do we need the lib prefix for modules?
18407 need_lib_prefix=$need_lib_prefix
18408
18409 # Do we need a version for libraries?
18410 need_version=$need_version
18411
18412 # Whether dlopen is supported.
18413 dlopen_support=$enable_dlopen
18414
18415 # Whether dlopen of programs is supported.
18416 dlopen_self=$enable_dlopen_self
18417
18418 # Whether dlopen of statically linked programs is supported.
18419 dlopen_self_static=$enable_dlopen_self_static
18420
18421 # Compiler flag to prevent dynamic linking.
18422 link_static_flag=$lt_lt_prog_compiler_static_RC
18423
18424 # Compiler flag to turn off builtin functions.
18425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18426
18427 # Compiler flag to allow reflexive dlopens.
18428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18429
18430 # Compiler flag to generate shared objects directly from archives.
18431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18432
18433 # Compiler flag to generate thread-safe objects.
18434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18435
18436 # Library versioning type.
18437 version_type=$version_type
18438
18439 # Format of library name prefix.
18440 libname_spec=$lt_libname_spec
18441
18442 # List of archive names.  First name is the real one, the rest are links.
18443 # The last name is the one that the linker finds with -lNAME.
18444 library_names_spec=$lt_library_names_spec
18445
18446 # The coded name of the library, if different from the real name.
18447 soname_spec=$lt_soname_spec
18448
18449 # Commands used to build and install an old-style archive.
18450 RANLIB=$lt_RANLIB
18451 old_archive_cmds=$lt_old_archive_cmds_RC
18452 old_postinstall_cmds=$lt_old_postinstall_cmds
18453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18454
18455 # Create an old-style archive from a shared archive.
18456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18457
18458 # Create a temporary old-style archive to link instead of a shared archive.
18459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18460
18461 # Commands used to build and install a shared archive.
18462 archive_cmds=$lt_archive_cmds_RC
18463 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18464 postinstall_cmds=$lt_postinstall_cmds
18465 postuninstall_cmds=$lt_postuninstall_cmds
18466
18467 # Commands used to build a loadable module (assumed same as above if empty)
18468 module_cmds=$lt_module_cmds_RC
18469 module_expsym_cmds=$lt_module_expsym_cmds_RC
18470
18471 # Commands to strip libraries.
18472 old_striplib=$lt_old_striplib
18473 striplib=$lt_striplib
18474
18475 # Dependencies to place before the objects being linked to create a
18476 # shared library.
18477 predep_objects=$lt_predep_objects_RC
18478
18479 # Dependencies to place after the objects being linked to create a
18480 # shared library.
18481 postdep_objects=$lt_postdep_objects_RC
18482
18483 # Dependencies to place before the objects being linked to create a
18484 # shared library.
18485 predeps=$lt_predeps_RC
18486
18487 # Dependencies to place after the objects being linked to create a
18488 # shared library.
18489 postdeps=$lt_postdeps_RC
18490
18491 # The library search path used internally by the compiler when linking
18492 # a shared library.
18493 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18494
18495 # Method to check whether dependent libraries are shared objects.
18496 deplibs_check_method=$lt_deplibs_check_method
18497
18498 # Command to use when deplibs_check_method == file_magic.
18499 file_magic_cmd=$lt_file_magic_cmd
18500
18501 # Flag that allows shared libraries with undefined symbols to be built.
18502 allow_undefined_flag=$lt_allow_undefined_flag_RC
18503
18504 # Flag that forces no undefined symbols.
18505 no_undefined_flag=$lt_no_undefined_flag_RC
18506
18507 # Commands used to finish a libtool library installation in a directory.
18508 finish_cmds=$lt_finish_cmds
18509
18510 # Same as above, but a single script fragment to be evaled but not shown.
18511 finish_eval=$lt_finish_eval
18512
18513 # Take the output of nm and produce a listing of raw symbols and C names.
18514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18515
18516 # Transform the output of nm in a proper C declaration
18517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18518
18519 # Transform the output of nm in a C name address pair
18520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18521
18522 # This is the shared library runtime path variable.
18523 runpath_var=$runpath_var
18524
18525 # This is the shared library path variable.
18526 shlibpath_var=$shlibpath_var
18527
18528 # Is shlibpath searched before the hard-coded library search path?
18529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18530
18531 # How to hardcode a shared library path into an executable.
18532 hardcode_action=$hardcode_action_RC
18533
18534 # Whether we should hardcode library paths into libraries.
18535 hardcode_into_libs=$hardcode_into_libs
18536
18537 # Flag to hardcode \$libdir into a binary during linking.
18538 # This must work even if \$libdir does not exist.
18539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18540
18541 # If ld is used when linking, flag to hardcode \$libdir into
18542 # a binary during linking. This must work even if \$libdir does
18543 # not exist.
18544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18545
18546 # Whether we need a single -rpath flag with a separated argument.
18547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18548
18549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18550 # resulting binary.
18551 hardcode_direct=$hardcode_direct_RC
18552
18553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_minus_L=$hardcode_minus_L_RC
18556
18557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18558 # the resulting binary.
18559 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18560
18561 # Set to yes if building a shared library automatically hardcodes DIR into the library
18562 # and all subsequent libraries and executables linked against it.
18563 hardcode_automatic=$hardcode_automatic_RC
18564
18565 # Variables whose values should be saved in libtool wrapper scripts and
18566 # restored at relink time.
18567 variables_saved_for_relink="$variables_saved_for_relink"
18568
18569 # Whether libtool must link a program against all its dependency libraries.
18570 link_all_deplibs=$link_all_deplibs_RC
18571
18572 # Compile-time system search path for libraries
18573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18574
18575 # Run-time system search path for libraries
18576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18577
18578 # Fix the shell variable \$srcfile for the compiler.
18579 fix_srcfile_path="$fix_srcfile_path_RC"
18580
18581 # Set to yes if exported symbols are required.
18582 always_export_symbols=$always_export_symbols_RC
18583
18584 # The commands to list exported symbols.
18585 export_symbols_cmds=$lt_export_symbols_cmds_RC
18586
18587 # The commands to extract the exported symbol list from a shared archive.
18588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18589
18590 # Symbols that should not be listed in the preloaded symbols.
18591 exclude_expsyms=$lt_exclude_expsyms_RC
18592
18593 # Symbols that must always be exported.
18594 include_expsyms=$lt_include_expsyms_RC
18595
18596 # ### END LIBTOOL TAG CONFIG: $tagname
18597
18598 __EOF__
18599
18600
18601 else
18602   # If there is no Makefile yet, we rely on a make rule to execute
18603   # `config.status --recheck' to rerun these tests and create the
18604   # libtool script then.
18605   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18606   if test -f "$ltmain_in"; then
18607     test -f Makefile && make "$ltmain"
18608   fi
18609 fi
18610
18611
18612 ac_ext=c
18613 ac_cpp='$CPP $CPPFLAGS'
18614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18617
18618 CC="$lt_save_CC"
18619
18620         ;;
18621
18622       *)
18623         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18624 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18625    { (exit 1); exit 1; }; }
18626         ;;
18627       esac
18628
18629       # Append the new tag name to the list of available tags.
18630       if test -n "$tagname" ; then
18631       available_tags="$available_tags $tagname"
18632     fi
18633     fi
18634   done
18635   IFS="$lt_save_ifs"
18636
18637   # Now substitute the updated list of available tags.
18638   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18639     mv "${ofile}T" "$ofile"
18640     chmod +x "$ofile"
18641   else
18642     rm -f "${ofile}T"
18643     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18644 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18645    { (exit 1); exit 1; }; }
18646   fi
18647 fi
18648
18649
18650
18651 # This can be used to rebuild libtool when needed
18652 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18653
18654 # Always use our own libtool.
18655 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18656
18657 # Prevent multiple expansion
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678 am__api_version="1.8"
18679 # Find a good install program.  We prefer a C program (faster),
18680 # so one script is as good as another.  But avoid the broken or
18681 # incompatible versions:
18682 # SysV /etc/install, /usr/sbin/install
18683 # SunOS /usr/etc/install
18684 # IRIX /sbin/install
18685 # AIX /bin/install
18686 # AmigaOS /C/install, which installs bootblocks on floppy discs
18687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18690 # OS/2's system install, which has a completely different semantic
18691 # ./install, which can be erroneously created by make from ./install.sh.
18692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18694 if test -z "$INSTALL"; then
18695 if test "${ac_cv_path_install+set}" = set; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18699 for as_dir in $PATH
18700 do
18701   IFS=$as_save_IFS
18702   test -z "$as_dir" && as_dir=.
18703   # Account for people who put trailing slashes in PATH elements.
18704 case $as_dir/ in
18705   ./ | .// | /cC/* | \
18706   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18707   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18708   /usr/ucb/* ) ;;
18709   *)
18710     # OSF1 and SCO ODT 3.0 have their own names for install.
18711     # Don't use installbsd from OSF since it installs stuff as root
18712     # by default.
18713     for ac_prog in ginstall scoinst install; do
18714       for ac_exec_ext in '' $ac_executable_extensions; do
18715         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18716           if test $ac_prog = install &&
18717             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18718             # AIX install.  It has an incompatible calling convention.
18719             :
18720           elif test $ac_prog = install &&
18721             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18722             # program-specific install script used by HP pwplus--don't use.
18723             :
18724           else
18725             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18726             break 3
18727           fi
18728         fi
18729       done
18730     done
18731     ;;
18732 esac
18733 done
18734
18735
18736 fi
18737   if test "${ac_cv_path_install+set}" = set; then
18738     INSTALL=$ac_cv_path_install
18739   else
18740     # As a last resort, use the slow shell script.  We don't cache a
18741     # path for INSTALL within a source directory, because that will
18742     # break other packages using the cache if that directory is
18743     # removed, or if the path is relative.
18744     INSTALL=$ac_install_sh
18745   fi
18746 fi
18747 echo "$as_me:$LINENO: result: $INSTALL" >&5
18748 echo "${ECHO_T}$INSTALL" >&6
18749
18750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18751 # It thinks the first close brace ends the variable substitution.
18752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18753
18754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18755
18756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18757
18758 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18759 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
18760 # Just in case
18761 sleep 1
18762 echo timestamp > conftest.file
18763 # Do `set' in a subshell so we don't clobber the current shell's
18764 # arguments.  Must try -L first in case configure is actually a
18765 # symlink; some systems play weird games with the mod time of symlinks
18766 # (eg FreeBSD returns the mod time of the symlink's containing
18767 # directory).
18768 if (
18769    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18770    if test "$*" = "X"; then
18771       # -L didn't work.
18772       set X `ls -t $srcdir/configure conftest.file`
18773    fi
18774    rm -f conftest.file
18775    if test "$*" != "X $srcdir/configure conftest.file" \
18776       && test "$*" != "X conftest.file $srcdir/configure"; then
18777
18778       # If neither matched, then we have a broken ls.  This can happen
18779       # if, for instance, CONFIG_SHELL is bash and it inherits a
18780       # broken ls alias from the environment.  This has actually
18781       # happened.  Such a system could not be considered "sane".
18782       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18783 alias in your environment" >&5
18784 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18785 alias in your environment" >&2;}
18786    { (exit 1); exit 1; }; }
18787    fi
18788
18789    test "$2" = conftest.file
18790    )
18791 then
18792    # Ok.
18793    :
18794 else
18795    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18796 Check your system clock" >&5
18797 echo "$as_me: error: newly created file is older than distributed files!
18798 Check your system clock" >&2;}
18799    { (exit 1); exit 1; }; }
18800 fi
18801 echo "$as_me:$LINENO: result: yes" >&5
18802 echo "${ECHO_T}yes" >&6
18803 test "$program_prefix" != NONE &&
18804   program_transform_name="s,^,$program_prefix,;$program_transform_name"
18805 # Use a double $ so make ignores it.
18806 test "$program_suffix" != NONE &&
18807   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
18808 # Double any \ or $.  echo might interpret backslashes.
18809 # By default was `s,x,x', remove it if useless.
18810 cat <<\_ACEOF >conftest.sed
18811 s/[\\$]/&&/g;s/;s,x,x,$//
18812 _ACEOF
18813 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18814 rm conftest.sed
18815
18816 # expand $ac_aux_dir to an absolute path
18817 am_aux_dir=`cd $ac_aux_dir && pwd`
18818
18819 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18820 # Use eval to expand $SHELL
18821 if eval "$MISSING --run true"; then
18822   am_missing_run="$MISSING --run "
18823 else
18824   am_missing_run=
18825   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18826 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18827 fi
18828
18829 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
18830   # Keeping the `.' argument allows $(mkdir_p) to be used without
18831   # argument.  Indeed, we sometimes output rules like
18832   #   $(mkdir_p) $(somedir)
18833   # where $(somedir) is conditionally defined.
18834   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
18835   # expensive solution, as it forces Make to start a sub-shell.)
18836   mkdir_p='mkdir -p -- .'
18837 else
18838   # On NextStep and OpenStep, the `mkdir' command does not
18839   # recognize any option.  It will interpret all options as
18840   # directories to create, and then abort because `.' already
18841   # exists.
18842   for d in ./-p ./--version;
18843   do
18844     test -d $d && rmdir $d
18845   done
18846   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
18847   if test -f "$ac_aux_dir/mkinstalldirs"; then
18848     mkdir_p='$(mkinstalldirs)'
18849   else
18850     mkdir_p='$(install_sh) -d'
18851   fi
18852 fi
18853
18854 for ac_prog in gawk mawk nawk awk
18855 do
18856   # Extract the first word of "$ac_prog", so it can be a program name with args.
18857 set dummy $ac_prog; ac_word=$2
18858 echo "$as_me:$LINENO: checking for $ac_word" >&5
18859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18860 if test "${ac_cv_prog_AWK+set}" = set; then
18861   echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863   if test -n "$AWK"; then
18864   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18865 else
18866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18867 for as_dir in $PATH
18868 do
18869   IFS=$as_save_IFS
18870   test -z "$as_dir" && as_dir=.
18871   for ac_exec_ext in '' $ac_executable_extensions; do
18872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18873     ac_cv_prog_AWK="$ac_prog"
18874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18875     break 2
18876   fi
18877 done
18878 done
18879
18880 fi
18881 fi
18882 AWK=$ac_cv_prog_AWK
18883 if test -n "$AWK"; then
18884   echo "$as_me:$LINENO: result: $AWK" >&5
18885 echo "${ECHO_T}$AWK" >&6
18886 else
18887   echo "$as_me:$LINENO: result: no" >&5
18888 echo "${ECHO_T}no" >&6
18889 fi
18890
18891   test -n "$AWK" && break
18892 done
18893
18894 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18895 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18896 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18897 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   cat >conftest.make <<\_ACEOF
18901 all:
18902         @echo 'ac_maketemp="$(MAKE)"'
18903 _ACEOF
18904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18905 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18906 if test -n "$ac_maketemp"; then
18907   eval ac_cv_prog_make_${ac_make}_set=yes
18908 else
18909   eval ac_cv_prog_make_${ac_make}_set=no
18910 fi
18911 rm -f conftest.make
18912 fi
18913 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18914   echo "$as_me:$LINENO: result: yes" >&5
18915 echo "${ECHO_T}yes" >&6
18916   SET_MAKE=
18917 else
18918   echo "$as_me:$LINENO: result: no" >&5
18919 echo "${ECHO_T}no" >&6
18920   SET_MAKE="MAKE=${MAKE-make}"
18921 fi
18922
18923 rm -rf .tst 2>/dev/null
18924 mkdir .tst 2>/dev/null
18925 if test -d .tst; then
18926   am__leading_dot=.
18927 else
18928   am__leading_dot=_
18929 fi
18930 rmdir .tst 2>/dev/null
18931
18932 DEPDIR="${am__leading_dot}deps"
18933
18934           ac_config_commands="$ac_config_commands depfiles"
18935
18936
18937 am_make=${MAKE-make}
18938 cat > confinc << 'END'
18939 am__doit:
18940         @echo done
18941 .PHONY: am__doit
18942 END
18943 # If we don't find an include directive, just comment out the code.
18944 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18945 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
18946 am__include="#"
18947 am__quote=
18948 _am_result=none
18949 # First try GNU make style include.
18950 echo "include confinc" > confmf
18951 # We grep out `Entering directory' and `Leaving directory'
18952 # messages which can occur if `w' ends up in MAKEFLAGS.
18953 # In particular we don't look at `^make:' because GNU make might
18954 # be invoked under some other name (usually "gmake"), in which
18955 # case it prints its new name instead of `make'.
18956 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18957    am__include=include
18958    am__quote=
18959    _am_result=GNU
18960 fi
18961 # Now try BSD make style include.
18962 if test "$am__include" = "#"; then
18963    echo '.include "confinc"' > confmf
18964    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18965       am__include=.include
18966       am__quote="\""
18967       _am_result=BSD
18968    fi
18969 fi
18970
18971
18972 echo "$as_me:$LINENO: result: $_am_result" >&5
18973 echo "${ECHO_T}$_am_result" >&6
18974 rm -f confinc confmf
18975
18976 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
18977 if test "${enable_dependency_tracking+set}" = set; then
18978   enableval="$enable_dependency_tracking"
18979
18980 fi;
18981 if test "x$enable_dependency_tracking" != xno; then
18982   am_depcomp="$ac_aux_dir/depcomp"
18983   AMDEPBACKSLASH='\'
18984 fi
18985
18986
18987 if test "x$enable_dependency_tracking" != xno; then
18988   AMDEP_TRUE=
18989   AMDEP_FALSE='#'
18990 else
18991   AMDEP_TRUE='#'
18992   AMDEP_FALSE=
18993 fi
18994
18995
18996
18997 # test to see if srcdir already configured
18998 if test "`cd $srcdir && pwd`" != "`pwd`" &&
18999    test -f $srcdir/config.status; then
19000   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19001 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19002    { (exit 1); exit 1; }; }
19003 fi
19004
19005 # test whether we have cygpath
19006 if test -z "$CYGPATH_W"; then
19007   if (cygpath --version) >/dev/null 2>/dev/null; then
19008     CYGPATH_W='cygpath -w'
19009   else
19010     CYGPATH_W=echo
19011   fi
19012 fi
19013
19014
19015 # Define the identity of the package.
19016  PACKAGE=OpenPAM
19017  VERSION=20050201
19018
19019
19020 cat >>confdefs.h <<_ACEOF
19021 #define PACKAGE "$PACKAGE"
19022 _ACEOF
19023
19024
19025 cat >>confdefs.h <<_ACEOF
19026 #define VERSION "$VERSION"
19027 _ACEOF
19028
19029 # Some tools Automake needs.
19030
19031 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19032
19033
19034 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19035
19036
19037 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19038
19039
19040 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19041
19042
19043 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19044
19045
19046 AMTAR=${AMTAR-"${am_missing_run}tar"}
19047
19048 install_sh=${install_sh-"$am_aux_dir/install-sh"}
19049
19050 # Installed binaries are usually stripped using `strip' when the user
19051 # run `make install-strip'.  However `strip' might not be the right
19052 # tool to use in cross-compilation environments, therefore Automake
19053 # will honor the `STRIP' environment variable to overrule this program.
19054 if test "$cross_compiling" != no; then
19055   if test -n "$ac_tool_prefix"; then
19056   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19057 set dummy ${ac_tool_prefix}strip; ac_word=$2
19058 echo "$as_me:$LINENO: checking for $ac_word" >&5
19059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19060 if test "${ac_cv_prog_STRIP+set}" = set; then
19061   echo $ECHO_N "(cached) $ECHO_C" >&6
19062 else
19063   if test -n "$STRIP"; then
19064   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19065 else
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19068 do
19069   IFS=$as_save_IFS
19070   test -z "$as_dir" && as_dir=.
19071   for ac_exec_ext in '' $ac_executable_extensions; do
19072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19075     break 2
19076   fi
19077 done
19078 done
19079
19080 fi
19081 fi
19082 STRIP=$ac_cv_prog_STRIP
19083 if test -n "$STRIP"; then
19084   echo "$as_me:$LINENO: result: $STRIP" >&5
19085 echo "${ECHO_T}$STRIP" >&6
19086 else
19087   echo "$as_me:$LINENO: result: no" >&5
19088 echo "${ECHO_T}no" >&6
19089 fi
19090
19091 fi
19092 if test -z "$ac_cv_prog_STRIP"; then
19093   ac_ct_STRIP=$STRIP
19094   # Extract the first word of "strip", so it can be a program name with args.
19095 set dummy strip; ac_word=$2
19096 echo "$as_me:$LINENO: checking for $ac_word" >&5
19097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101   if test -n "$ac_ct_STRIP"; then
19102   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19103 else
19104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19105 for as_dir in $PATH
19106 do
19107   IFS=$as_save_IFS
19108   test -z "$as_dir" && as_dir=.
19109   for ac_exec_ext in '' $ac_executable_extensions; do
19110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19111     ac_cv_prog_ac_ct_STRIP="strip"
19112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19113     break 2
19114   fi
19115 done
19116 done
19117
19118   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
19119 fi
19120 fi
19121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19122 if test -n "$ac_ct_STRIP"; then
19123   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19124 echo "${ECHO_T}$ac_ct_STRIP" >&6
19125 else
19126   echo "$as_me:$LINENO: result: no" >&5
19127 echo "${ECHO_T}no" >&6
19128 fi
19129
19130   STRIP=$ac_ct_STRIP
19131 else
19132   STRIP="$ac_cv_prog_STRIP"
19133 fi
19134
19135 fi
19136 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19137
19138 # We need awk for the "check" target.  The system "awk" is bad on
19139 # some platforms.
19140
19141
19142 depcc="$CC"   am_compiler_list=
19143
19144 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19145 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19146 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19147   echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19150   # We make a subdir and do the tests there.  Otherwise we can end up
19151   # making bogus files that we don't know about and never remove.  For
19152   # instance it was reported that on HP-UX the gcc test will end up
19153   # making a dummy file named `D' -- because `-MD' means `put the output
19154   # in D'.
19155   mkdir conftest.dir
19156   # Copy depcomp to subdir because otherwise we won't find it if we're
19157   # using a relative directory.
19158   cp "$am_depcomp" conftest.dir
19159   cd conftest.dir
19160   # We will build objects and dependencies in a subdirectory because
19161   # it helps to detect inapplicable dependency modes.  For instance
19162   # both Tru64's cc and ICC support -MD to output dependencies as a
19163   # side effect of compilation, but ICC will put the dependencies in
19164   # the current directory while Tru64 will put them in the object
19165   # directory.
19166   mkdir sub
19167
19168   am_cv_CC_dependencies_compiler_type=none
19169   if test "$am_compiler_list" = ""; then
19170      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19171   fi
19172   for depmode in $am_compiler_list; do
19173     # Setup a source with many dependencies, because some compilers
19174     # like to wrap large dependency lists on column 80 (with \), and
19175     # we should not choose a depcomp mode which is confused by this.
19176     #
19177     # We need to recreate these files for each test, as the compiler may
19178     # overwrite some of them when testing with obscure command lines.
19179     # This happens at least with the AIX C compiler.
19180     : > sub/conftest.c
19181     for i in 1 2 3 4 5 6; do
19182       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19183       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19184       # Solaris 8's {/usr,}/bin/sh.
19185       touch sub/conftst$i.h
19186     done
19187     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19188
19189     case $depmode in
19190     nosideeffect)
19191       # after this tag, mechanisms are not by side-effect, so they'll
19192       # only be used when explicitly requested
19193       if test "x$enable_dependency_tracking" = xyes; then
19194         continue
19195       else
19196         break
19197       fi
19198       ;;
19199     none) break ;;
19200     esac
19201     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19202     # mode.  It turns out that the SunPro C++ compiler does not properly
19203     # handle `-M -o', and we need to detect this.
19204     if depmode=$depmode \
19205        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19206        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19207        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19208          >/dev/null 2>conftest.err &&
19209        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19210        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19211        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19212       # icc doesn't choke on unknown options, it will just issue warnings
19213       # or remarks (even with -Werror).  So we grep stderr for any message
19214       # that says an option was ignored or not supported.
19215       # When given -MP, icc 7.0 and 7.1 complain thusly:
19216       #   icc: Command line warning: ignoring option '-M'; no argument required
19217       # The diagnosis changed in icc 8.0:
19218       #   icc: Command line remark: option '-MP' not supported
19219       if (grep 'ignoring option' conftest.err ||
19220           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19221         am_cv_CC_dependencies_compiler_type=$depmode
19222         break
19223       fi
19224     fi
19225   done
19226
19227   cd ..
19228   rm -rf conftest.dir
19229 else
19230   am_cv_CC_dependencies_compiler_type=none
19231 fi
19232
19233 fi
19234 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19235 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19236 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19237
19238
19239
19240 if
19241   test "x$enable_dependency_tracking" != xno \
19242   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19243   am__fastdepCC_TRUE=
19244   am__fastdepCC_FALSE='#'
19245 else
19246   am__fastdepCC_TRUE='#'
19247   am__fastdepCC_FALSE=
19248 fi
19249
19250
19251 depcc="$CXX"  am_compiler_list=
19252
19253 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19254 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19255 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19256   echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19259   # We make a subdir and do the tests there.  Otherwise we can end up
19260   # making bogus files that we don't know about and never remove.  For
19261   # instance it was reported that on HP-UX the gcc test will end up
19262   # making a dummy file named `D' -- because `-MD' means `put the output
19263   # in D'.
19264   mkdir conftest.dir
19265   # Copy depcomp to subdir because otherwise we won't find it if we're
19266   # using a relative directory.
19267   cp "$am_depcomp" conftest.dir
19268   cd conftest.dir
19269   # We will build objects and dependencies in a subdirectory because
19270   # it helps to detect inapplicable dependency modes.  For instance
19271   # both Tru64's cc and ICC support -MD to output dependencies as a
19272   # side effect of compilation, but ICC will put the dependencies in
19273   # the current directory while Tru64 will put them in the object
19274   # directory.
19275   mkdir sub
19276
19277   am_cv_CXX_dependencies_compiler_type=none
19278   if test "$am_compiler_list" = ""; then
19279      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19280   fi
19281   for depmode in $am_compiler_list; do
19282     # Setup a source with many dependencies, because some compilers
19283     # like to wrap large dependency lists on column 80 (with \), and
19284     # we should not choose a depcomp mode which is confused by this.
19285     #
19286     # We need to recreate these files for each test, as the compiler may
19287     # overwrite some of them when testing with obscure command lines.
19288     # This happens at least with the AIX C compiler.
19289     : > sub/conftest.c
19290     for i in 1 2 3 4 5 6; do
19291       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19292       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19293       # Solaris 8's {/usr,}/bin/sh.
19294       touch sub/conftst$i.h
19295     done
19296     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19297
19298     case $depmode in
19299     nosideeffect)
19300       # after this tag, mechanisms are not by side-effect, so they'll
19301       # only be used when explicitly requested
19302       if test "x$enable_dependency_tracking" = xyes; then
19303         continue
19304       else
19305         break
19306       fi
19307       ;;
19308     none) break ;;
19309     esac
19310     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19311     # mode.  It turns out that the SunPro C++ compiler does not properly
19312     # handle `-M -o', and we need to detect this.
19313     if depmode=$depmode \
19314        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19315        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19316        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19317          >/dev/null 2>conftest.err &&
19318        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19319        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19320        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19321       # icc doesn't choke on unknown options, it will just issue warnings
19322       # or remarks (even with -Werror).  So we grep stderr for any message
19323       # that says an option was ignored or not supported.
19324       # When given -MP, icc 7.0 and 7.1 complain thusly:
19325       #   icc: Command line warning: ignoring option '-M'; no argument required
19326       # The diagnosis changed in icc 8.0:
19327       #   icc: Command line remark: option '-MP' not supported
19328       if (grep 'ignoring option' conftest.err ||
19329           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19330         am_cv_CXX_dependencies_compiler_type=$depmode
19331         break
19332       fi
19333     fi
19334   done
19335
19336   cd ..
19337   rm -rf conftest.dir
19338 else
19339   am_cv_CXX_dependencies_compiler_type=none
19340 fi
19341
19342 fi
19343 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19344 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19345 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19346
19347
19348
19349 if
19350   test "x$enable_dependency_tracking" != xno \
19351   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19352   am__fastdepCXX_TRUE=
19353   am__fastdepCXX_FALSE='#'
19354 else
19355   am__fastdepCXX_TRUE='#'
19356   am__fastdepCXX_FALSE=
19357 fi
19358
19359
19360
19361
19362 LIB_MAJ=2
19363
19364
19365 cat >>confdefs.h <<_ACEOF
19366 #define LIB_MAJ $LIB_MAJ
19367 _ACEOF
19368
19369
19370 echo "$as_me:$LINENO: checking whether loading unversioned modules support is enabled" >&5
19371 echo $ECHO_N "checking whether loading unversioned modules support is enabled... $ECHO_C" >&6
19372 # Check whether --enable-unversioned-modules or --disable-unversioned-modules was given.
19373 if test "${enable_unversioned_modules+set}" = set; then
19374   enableval="$enable_unversioned_modules"
19375   if test "$enableval" = "no"; then
19376
19377 cat >>confdefs.h <<\_ACEOF
19378 #define DISABLE_UNVERSIONED_MODULES 1
19379 _ACEOF
19380
19381         fi
19382         echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19384 else
19385   echo "$as_me:$LINENO: result: yes" >&5
19386 echo "${ECHO_T}yes" >&6
19387 fi;
19388
19389 echo "$as_me:$LINENO: checking for modules directory support" >&5
19390 echo $ECHO_N "checking for modules directory support... $ECHO_C" >&6
19391
19392 # Check whether --with-modules-dir or --without-modules-dir was given.
19393 if test "${with_modules_dir+set}" = set; then
19394   withval="$with_modules_dir"
19395   if test "$withval" != "no"; then
19396                 OPENPAM_MODULES_DIR="$withval"
19397
19398 cat >>confdefs.h <<_ACEOF
19399 #define OPENPAM_MODULES_DIR "$OPENPAM_MODULES_DIR"
19400 _ACEOF
19401
19402                 echo "$as_me:$LINENO: result: $OPENPAM_MODULES_DIR" >&5
19403 echo "${ECHO_T}$OPENPAM_MODULES_DIR" >&6
19404         else
19405                 OPENPAM_MODULES_DIR="$libdir"
19406                 echo "$as_me:$LINENO: result: no" >&5
19407 echo "${ECHO_T}no" >&6
19408         fi
19409 else
19410   OPENPAM_MODULES_DIR="$libdir"
19411         echo "$as_me:$LINENO: result: no" >&5
19412 echo "${ECHO_T}no" >&6
19413 fi;
19414
19415
19416 echo "$as_me:$LINENO: checking whether to build example version of /bin/su" >&5
19417 echo $ECHO_N "checking whether to build example version of /bin/su... $ECHO_C" >&6
19418
19419 # Check whether --with-pam-su or --without-pam-su was given.
19420 if test "${with_pam_su+set}" = set; then
19421   withval="$with_pam_su"
19422
19423 else
19424   with_pam_su=no
19425 fi;
19426 echo "$as_me:$LINENO: result: $with_pam_su" >&5
19427 echo "${ECHO_T}$with_pam_su" >&6
19428
19429 echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
19430 echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6
19431
19432 # Check whether --with-pam-unix or --without-pam-unix was given.
19433 if test "${with_pam_unix+set}" = set; then
19434   withval="$with_pam_unix"
19435
19436 else
19437   with_pam_unix=no
19438 fi;
19439 echo "$as_me:$LINENO: result: $with_pam_unix" >&5
19440 echo "${ECHO_T}$with_pam_unix" >&6
19441
19442
19443
19444 if test "x$with_pam_su" = "xyes"; then
19445   WITH_PAM_SU_TRUE=
19446   WITH_PAM_SU_FALSE='#'
19447 else
19448   WITH_PAM_SU_TRUE='#'
19449   WITH_PAM_SU_FALSE=
19450 fi
19451
19452
19453
19454 if test "x$with_pam_unix" = "xyes"; then
19455   WITH_PAM_UNIX_TRUE=
19456   WITH_PAM_UNIX_FALSE='#'
19457 else
19458   WITH_PAM_UNIX_TRUE='#'
19459   WITH_PAM_UNIX_FALSE=
19460 fi
19461
19462
19463 # Find a good install program.  We prefer a C program (faster),
19464 # so one script is as good as another.  But avoid the broken or
19465 # incompatible versions:
19466 # SysV /etc/install, /usr/sbin/install
19467 # SunOS /usr/etc/install
19468 # IRIX /sbin/install
19469 # AIX /bin/install
19470 # AmigaOS /C/install, which installs bootblocks on floppy discs
19471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19474 # OS/2's system install, which has a completely different semantic
19475 # ./install, which can be erroneously created by make from ./install.sh.
19476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19478 if test -z "$INSTALL"; then
19479 if test "${ac_cv_path_install+set}" = set; then
19480   echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483 for as_dir in $PATH
19484 do
19485   IFS=$as_save_IFS
19486   test -z "$as_dir" && as_dir=.
19487   # Account for people who put trailing slashes in PATH elements.
19488 case $as_dir/ in
19489   ./ | .// | /cC/* | \
19490   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19491   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19492   /usr/ucb/* ) ;;
19493   *)
19494     # OSF1 and SCO ODT 3.0 have their own names for install.
19495     # Don't use installbsd from OSF since it installs stuff as root
19496     # by default.
19497     for ac_prog in ginstall scoinst install; do
19498       for ac_exec_ext in '' $ac_executable_extensions; do
19499         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19500           if test $ac_prog = install &&
19501             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19502             # AIX install.  It has an incompatible calling convention.
19503             :
19504           elif test $ac_prog = install &&
19505             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19506             # program-specific install script used by HP pwplus--don't use.
19507             :
19508           else
19509             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19510             break 3
19511           fi
19512         fi
19513       done
19514     done
19515     ;;
19516 esac
19517 done
19518
19519
19520 fi
19521   if test "${ac_cv_path_install+set}" = set; then
19522     INSTALL=$ac_cv_path_install
19523   else
19524     # As a last resort, use the slow shell script.  We don't cache a
19525     # path for INSTALL within a source directory, because that will
19526     # break other packages using the cache if that directory is
19527     # removed, or if the path is relative.
19528     INSTALL=$ac_install_sh
19529   fi
19530 fi
19531 echo "$as_me:$LINENO: result: $INSTALL" >&5
19532 echo "${ECHO_T}$INSTALL" >&6
19533
19534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19535 # It thinks the first close brace ends the variable substitution.
19536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19537
19538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19539
19540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19541
19542
19543
19544 for ac_header in crypt.h
19545 do
19546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19548   echo "$as_me:$LINENO: checking for $ac_header" >&5
19549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19551   echo $ECHO_N "(cached) $ECHO_C" >&6
19552 fi
19553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19555 else
19556   # Is the header compilable?
19557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h.  */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h.  */
19565 $ac_includes_default
19566 #include <$ac_header>
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570   (eval $ac_compile) 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } &&
19577          { ac_try='test -z "$ac_c_werror_flag"
19578                          || test ! -s conftest.err'
19579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580   (eval $ac_try) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; } &&
19584          { ac_try='test -s conftest.$ac_objext'
19585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586   (eval $ac_try) 2>&5
19587   ac_status=$?
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); }; }; then
19590   ac_header_compiler=yes
19591 else
19592   echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595 ac_header_compiler=no
19596 fi
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19599 echo "${ECHO_T}$ac_header_compiler" >&6
19600
19601 # Is the header present?
19602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 #include <$ac_header>
19611 _ACEOF
19612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } >/dev/null; then
19620   if test -s conftest.err; then
19621     ac_cpp_err=$ac_c_preproc_warn_flag
19622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19623   else
19624     ac_cpp_err=
19625   fi
19626 else
19627   ac_cpp_err=yes
19628 fi
19629 if test -z "$ac_cpp_err"; then
19630   ac_header_preproc=yes
19631 else
19632   echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635   ac_header_preproc=no
19636 fi
19637 rm -f conftest.err conftest.$ac_ext
19638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19639 echo "${ECHO_T}$ac_header_preproc" >&6
19640
19641 # So?  What about this header?
19642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19643   yes:no: )
19644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19648     ac_header_preproc=yes
19649     ;;
19650   no:yes:* )
19651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19663     (
19664       cat <<\_ASBOX
19665 ## ------------------------------ ##
19666 ## Report this to des@freebsd.org ##
19667 ## ------------------------------ ##
19668 _ASBOX
19669     ) |
19670       sed "s/^/$as_me: WARNING:     /" >&2
19671     ;;
19672 esac
19673 echo "$as_me:$LINENO: checking for $ac_header" >&5
19674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   eval "$as_ac_Header=\$ac_header_preproc"
19679 fi
19680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19682
19683 fi
19684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19685   cat >>confdefs.h <<_ACEOF
19686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19687 _ACEOF
19688
19689 fi
19690
19691 done
19692
19693
19694
19695 for ac_func in fpurge
19696 do
19697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19698 echo "$as_me:$LINENO: checking for $ac_func" >&5
19699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19700 if eval "test \"\${$as_ac_var+set}\" = set"; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h.  */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h.  */
19709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19711 #define $ac_func innocuous_$ac_func
19712
19713 /* System header to define __stub macros and hopefully few prototypes,
19714     which can conflict with char $ac_func (); below.
19715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19716     <limits.h> exists even on freestanding compilers.  */
19717
19718 #ifdef __STDC__
19719 # include <limits.h>
19720 #else
19721 # include <assert.h>
19722 #endif
19723
19724 #undef $ac_func
19725
19726 /* Override any gcc2 internal prototype to avoid an error.  */
19727 #ifdef __cplusplus
19728 extern "C"
19729 {
19730 #endif
19731 /* We use char because int might match the return type of a gcc2
19732    builtin and then its argument prototype would still apply.  */
19733 char $ac_func ();
19734 /* The GNU C library defines this for functions which it implements
19735     to always fail with ENOSYS.  Some functions are actually named
19736     something starting with __ and the normal name is an alias.  */
19737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19738 choke me
19739 #else
19740 char (*f) () = $ac_func;
19741 #endif
19742 #ifdef __cplusplus
19743 }
19744 #endif
19745
19746 int
19747 main ()
19748 {
19749 return f != $ac_func;
19750   ;
19751   return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19756   (eval $ac_link) 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } &&
19763          { ac_try='test -z "$ac_c_werror_flag"
19764                          || test ! -s conftest.err'
19765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766   (eval $ac_try) 2>&5
19767   ac_status=$?
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); }; } &&
19770          { ac_try='test -s conftest$ac_exeext'
19771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772   (eval $ac_try) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; }; then
19776   eval "$as_ac_var=yes"
19777 else
19778   echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781 eval "$as_ac_var=no"
19782 fi
19783 rm -f conftest.err conftest.$ac_objext \
19784       conftest$ac_exeext conftest.$ac_ext
19785 fi
19786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19788 if test `eval echo '${'$as_ac_var'}'` = yes; then
19789   cat >>confdefs.h <<_ACEOF
19790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19791 _ACEOF
19792
19793 fi
19794 done
19795
19796
19797 DL_LIBS=
19798 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19799 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19800 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-ldl  $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811
19812 /* Override any gcc2 internal prototype to avoid an error.  */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 /* We use char because int might match the return type of a gcc2
19817    builtin and then its argument prototype would still apply.  */
19818 char dlopen ();
19819 int
19820 main ()
19821 {
19822 dlopen ();
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829   (eval $ac_link) 2>conftest.er1
19830   ac_status=$?
19831   grep -v '^ *+' conftest.er1 >conftest.err
19832   rm -f conftest.er1
19833   cat conftest.err >&5
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } &&
19836          { ac_try='test -z "$ac_c_werror_flag"
19837                          || test ! -s conftest.err'
19838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839   (eval $ac_try) 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; } &&
19843          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19849   ac_cv_lib_dl_dlopen=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 ac_cv_lib_dl_dlopen=no
19855 fi
19856 rm -f conftest.err conftest.$ac_objext \
19857       conftest$ac_exeext conftest.$ac_ext
19858 LIBS=$ac_check_lib_save_LIBS
19859 fi
19860 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19861 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19862 if test $ac_cv_lib_dl_dlopen = yes; then
19863   DL_LIBS=-ldl
19864 fi
19865
19866
19867
19868 CRYPT_LIBS=
19869 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19870 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19871 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19872   echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874   ac_check_lib_save_LIBS=$LIBS
19875 LIBS="-lcrypt  $LIBS"
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882
19883 /* Override any gcc2 internal prototype to avoid an error.  */
19884 #ifdef __cplusplus
19885 extern "C"
19886 #endif
19887 /* We use char because int might match the return type of a gcc2
19888    builtin and then its argument prototype would still apply.  */
19889 char crypt ();
19890 int
19891 main ()
19892 {
19893 crypt ();
19894   ;
19895   return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900   (eval $ac_link) 2>conftest.er1
19901   ac_status=$?
19902   grep -v '^ *+' conftest.er1 >conftest.err
19903   rm -f conftest.er1
19904   cat conftest.err >&5
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } &&
19907          { ac_try='test -z "$ac_c_werror_flag"
19908                          || test ! -s conftest.err'
19909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910   (eval $ac_try) 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); }; } &&
19914          { ac_try='test -s conftest$ac_exeext'
19915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916   (eval $ac_try) 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; }; then
19920   ac_cv_lib_crypt_crypt=yes
19921 else
19922   echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 ac_cv_lib_crypt_crypt=no
19926 fi
19927 rm -f conftest.err conftest.$ac_objext \
19928       conftest$ac_exeext conftest.$ac_ext
19929 LIBS=$ac_check_lib_save_LIBS
19930 fi
19931 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19932 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19933 if test $ac_cv_lib_crypt_crypt = yes; then
19934   CRYPT_LIBS=-lcrypt
19935 fi
19936
19937
19938
19939 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19940
19941
19942 CFLAGS="$CFLAGS -Werror"
19943
19944
19945                                                                                                                         ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
19946
19947 cat >confcache <<\_ACEOF
19948 # This file is a shell script that caches the results of configure
19949 # tests run on this system so they can be shared between configure
19950 # scripts and configure runs, see configure's option --config-cache.
19951 # It is not useful on other systems.  If it contains results you don't
19952 # want to keep, you may remove or edit it.
19953 #
19954 # config.status only pays attention to the cache file if you give it
19955 # the --recheck option to rerun configure.
19956 #
19957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19959 # following values.
19960
19961 _ACEOF
19962
19963 # The following way of writing the cache mishandles newlines in values,
19964 # but we know of no workaround that is simple, portable, and efficient.
19965 # So, don't put newlines in cache variables' values.
19966 # Ultrix sh set writes to stderr and can't be redirected directly,
19967 # and sets the high bit in the cache file unless we assign to the vars.
19968 {
19969   (set) 2>&1 |
19970     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19971     *ac_space=\ *)
19972       # `set' does not quote correctly, so add quotes (double-quote
19973       # substitution turns \\\\ into \\, and sed turns \\ into \).
19974       sed -n \
19975         "s/'/'\\\\''/g;
19976           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19977       ;;
19978     *)
19979       # `set' quotes correctly as required by POSIX, so do not add quotes.
19980       sed -n \
19981         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19982       ;;
19983     esac;
19984 } |
19985   sed '
19986      t clear
19987      : clear
19988      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19989      t end
19990      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19991      : end' >>confcache
19992 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19993   if test -w $cache_file; then
19994     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19995     cat confcache >$cache_file
19996   else
19997     echo "not updating unwritable cache $cache_file"
19998   fi
19999 fi
20000 rm -f confcache
20001
20002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20003 # Let make expand exec_prefix.
20004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20005
20006 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20007 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20008 # trailing colons and then remove the whole line if VPATH becomes empty
20009 # (actually we leave an empty line to preserve line numbers).
20010 if test "x$srcdir" = x.; then
20011   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20012 s/:*\$(srcdir):*/:/;
20013 s/:*\${srcdir}:*/:/;
20014 s/:*@srcdir@:*/:/;
20015 s/^\([^=]*=[     ]*\):*/\1/;
20016 s/:*$//;
20017 s/^[^=]*=[       ]*$//;
20018 }'
20019 fi
20020
20021 DEFS=-DHAVE_CONFIG_H
20022
20023 ac_libobjs=
20024 ac_ltlibobjs=
20025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20026   # 1. Remove the extension, and $U if already installed.
20027   ac_i=`echo "$ac_i" |
20028          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20029   # 2. Add them.
20030   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20031   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20032 done
20033 LIBOBJS=$ac_libobjs
20034
20035 LTLIBOBJS=$ac_ltlibobjs
20036
20037
20038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20039   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&5
20041 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20042 Usually this means the macro was only invoked conditionally." >&2;}
20043    { (exit 1); exit 1; }; }
20044 fi
20045 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20046   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20047 Usually this means the macro was only invoked conditionally." >&5
20048 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20049 Usually this means the macro was only invoked conditionally." >&2;}
20050    { (exit 1); exit 1; }; }
20051 fi
20052 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20053   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20054 Usually this means the macro was only invoked conditionally." >&5
20055 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20056 Usually this means the macro was only invoked conditionally." >&2;}
20057    { (exit 1); exit 1; }; }
20058 fi
20059 if test -z "${WITH_PAM_SU_TRUE}" && test -z "${WITH_PAM_SU_FALSE}"; then
20060   { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_SU\" was never defined.
20061 Usually this means the macro was only invoked conditionally." >&5
20062 echo "$as_me: error: conditional \"WITH_PAM_SU\" was never defined.
20063 Usually this means the macro was only invoked conditionally." >&2;}
20064    { (exit 1); exit 1; }; }
20065 fi
20066 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
20067   { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_UNIX\" was never defined.
20068 Usually this means the macro was only invoked conditionally." >&5
20069 echo "$as_me: error: conditional \"WITH_PAM_UNIX\" was never defined.
20070 Usually this means the macro was only invoked conditionally." >&2;}
20071    { (exit 1); exit 1; }; }
20072 fi
20073
20074 : ${CONFIG_STATUS=./config.status}
20075 ac_clean_files_save=$ac_clean_files
20076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20077 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20078 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20079 cat >$CONFIG_STATUS <<_ACEOF
20080 #! $SHELL
20081 # Generated by $as_me.
20082 # Run this file to recreate the current configuration.
20083 # Compiler output produced by configure, useful for debugging
20084 # configure, is in config.log if it exists.
20085
20086 debug=false
20087 ac_cs_recheck=false
20088 ac_cs_silent=false
20089 SHELL=\${CONFIG_SHELL-$SHELL}
20090 _ACEOF
20091
20092 cat >>$CONFIG_STATUS <<\_ACEOF
20093 ## --------------------- ##
20094 ## M4sh Initialization.  ##
20095 ## --------------------- ##
20096
20097 # Be Bourne compatible
20098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20099   emulate sh
20100   NULLCMD=:
20101   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20102   # is contrary to our usage.  Disable this feature.
20103   alias -g '${1+"$@"}'='"$@"'
20104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20105   set -o posix
20106 fi
20107 DUALCASE=1; export DUALCASE # for MKS sh
20108
20109 # Support unset when possible.
20110 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20111   as_unset=unset
20112 else
20113   as_unset=false
20114 fi
20115
20116
20117 # Work around bugs in pre-3.0 UWIN ksh.
20118 $as_unset ENV MAIL MAILPATH
20119 PS1='$ '
20120 PS2='> '
20121 PS4='+ '
20122
20123 # NLS nuisances.
20124 for as_var in \
20125   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20126   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20127   LC_TELEPHONE LC_TIME
20128 do
20129   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20130     eval $as_var=C; export $as_var
20131   else
20132     $as_unset $as_var
20133   fi
20134 done
20135
20136 # Required to use basename.
20137 if expr a : '\(a\)' >/dev/null 2>&1; then
20138   as_expr=expr
20139 else
20140   as_expr=false
20141 fi
20142
20143 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20144   as_basename=basename
20145 else
20146   as_basename=false
20147 fi
20148
20149
20150 # Name of the executable.
20151 as_me=`$as_basename "$0" ||
20152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20153          X"$0" : 'X\(//\)$' \| \
20154          X"$0" : 'X\(/\)$' \| \
20155          .     : '\(.\)' 2>/dev/null ||
20156 echo X/"$0" |
20157     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20158           /^X\/\(\/\/\)$/{ s//\1/; q; }
20159           /^X\/\(\/\).*/{ s//\1/; q; }
20160           s/.*/./; q'`
20161
20162
20163 # PATH needs CR, and LINENO needs CR and PATH.
20164 # Avoid depending upon Character Ranges.
20165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20168 as_cr_digits='0123456789'
20169 as_cr_alnum=$as_cr_Letters$as_cr_digits
20170
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20173   echo "#! /bin/sh" >conf$$.sh
20174   echo  "exit 0"   >>conf$$.sh
20175   chmod +x conf$$.sh
20176   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20177     PATH_SEPARATOR=';'
20178   else
20179     PATH_SEPARATOR=:
20180   fi
20181   rm -f conf$$.sh
20182 fi
20183
20184
20185   as_lineno_1=$LINENO
20186   as_lineno_2=$LINENO
20187   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20188   test "x$as_lineno_1" != "x$as_lineno_2" &&
20189   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20190   # Find who we are.  Look in the path if we contain no path at all
20191   # relative or not.
20192   case $0 in
20193     *[\\/]* ) as_myself=$0 ;;
20194     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195 for as_dir in $PATH
20196 do
20197   IFS=$as_save_IFS
20198   test -z "$as_dir" && as_dir=.
20199   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20200 done
20201
20202        ;;
20203   esac
20204   # We did not find ourselves, most probably we were run as `sh COMMAND'
20205   # in which case we are not to be found in the path.
20206   if test "x$as_myself" = x; then
20207     as_myself=$0
20208   fi
20209   if test ! -f "$as_myself"; then
20210     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20211 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20212    { (exit 1); exit 1; }; }
20213   fi
20214   case $CONFIG_SHELL in
20215   '')
20216     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20218 do
20219   IFS=$as_save_IFS
20220   test -z "$as_dir" && as_dir=.
20221   for as_base in sh bash ksh sh5; do
20222          case $as_dir in
20223          /*)
20224            if ("$as_dir/$as_base" -c '
20225   as_lineno_1=$LINENO
20226   as_lineno_2=$LINENO
20227   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20228   test "x$as_lineno_1" != "x$as_lineno_2" &&
20229   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20230              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20231              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20232              CONFIG_SHELL=$as_dir/$as_base
20233              export CONFIG_SHELL
20234              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20235            fi;;
20236          esac
20237        done
20238 done
20239 ;;
20240   esac
20241
20242   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20243   # uniformly replaced by the line number.  The first 'sed' inserts a
20244   # line-number line before each line; the second 'sed' does the real
20245   # work.  The second script uses 'N' to pair each line-number line
20246   # with the numbered line, and appends trailing '-' during
20247   # substitution so that $LINENO is not a special case at line end.
20248   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20249   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20250   sed '=' <$as_myself |
20251     sed '
20252       N
20253       s,$,-,
20254       : loop
20255       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20256       t loop
20257       s,-$,,
20258       s,^['$as_cr_digits']*\n,,
20259     ' >$as_me.lineno &&
20260   chmod +x $as_me.lineno ||
20261     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20262 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20263    { (exit 1); exit 1; }; }
20264
20265   # Don't try to exec as it changes $[0], causing all sort of problems
20266   # (the dirname of $[0] is not the place where we might find the
20267   # original and so on.  Autoconf is especially sensible to this).
20268   . ./$as_me.lineno
20269   # Exit status is that of the last command.
20270   exit
20271 }
20272
20273
20274 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20275   *c*,-n*) ECHO_N= ECHO_C='
20276 ' ECHO_T='      ' ;;
20277   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20278   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20279 esac
20280
20281 if expr a : '\(a\)' >/dev/null 2>&1; then
20282   as_expr=expr
20283 else
20284   as_expr=false
20285 fi
20286
20287 rm -f conf$$ conf$$.exe conf$$.file
20288 echo >conf$$.file
20289 if ln -s conf$$.file conf$$ 2>/dev/null; then
20290   # We could just check for DJGPP; but this test a) works b) is more generic
20291   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20292   if test -f conf$$.exe; then
20293     # Don't use ln at all; we don't have any links
20294     as_ln_s='cp -p'
20295   else
20296     as_ln_s='ln -s'
20297   fi
20298 elif ln conf$$.file conf$$ 2>/dev/null; then
20299   as_ln_s=ln
20300 else
20301   as_ln_s='cp -p'
20302 fi
20303 rm -f conf$$ conf$$.exe conf$$.file
20304
20305 if mkdir -p . 2>/dev/null; then
20306   as_mkdir_p=:
20307 else
20308   test -d ./-p && rmdir ./-p
20309   as_mkdir_p=false
20310 fi
20311
20312 as_executable_p="test -f"
20313
20314 # Sed expression to map a string onto a valid CPP name.
20315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20316
20317 # Sed expression to map a string onto a valid variable name.
20318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20319
20320
20321 # IFS
20322 # We need space, tab and new line, in precisely that order.
20323 as_nl='
20324 '
20325 IFS="   $as_nl"
20326
20327 # CDPATH.
20328 $as_unset CDPATH
20329
20330 exec 6>&1
20331
20332 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20333 # report actual input values of CONFIG_FILES etc. instead of their
20334 # values after options handling.  Logging --version etc. is OK.
20335 exec 5>>config.log
20336 {
20337   echo
20338   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20339 ## Running $as_me. ##
20340 _ASBOX
20341 } >&5
20342 cat >&5 <<_CSEOF
20343
20344 This file was extended by OpenPAM $as_me 20050201, which was
20345 generated by GNU Autoconf 2.59.  Invocation command line was
20346
20347   CONFIG_FILES    = $CONFIG_FILES
20348   CONFIG_HEADERS  = $CONFIG_HEADERS
20349   CONFIG_LINKS    = $CONFIG_LINKS
20350   CONFIG_COMMANDS = $CONFIG_COMMANDS
20351   $ $0 $@
20352
20353 _CSEOF
20354 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20355 echo >&5
20356 _ACEOF
20357
20358 # Files that config.status was made for.
20359 if test -n "$ac_config_files"; then
20360   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20361 fi
20362
20363 if test -n "$ac_config_headers"; then
20364   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20365 fi
20366
20367 if test -n "$ac_config_links"; then
20368   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20369 fi
20370
20371 if test -n "$ac_config_commands"; then
20372   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20373 fi
20374
20375 cat >>$CONFIG_STATUS <<\_ACEOF
20376
20377 ac_cs_usage="\
20378 \`$as_me' instantiates files from templates according to the
20379 current configuration.
20380
20381 Usage: $0 [OPTIONS] [FILE]...
20382
20383   -h, --help       print this help, then exit
20384   -V, --version    print version number, then exit
20385   -q, --quiet      do not print progress messages
20386   -d, --debug      don't remove temporary files
20387       --recheck    update $as_me by reconfiguring in the same conditions
20388   --file=FILE[:TEMPLATE]
20389                    instantiate the configuration file FILE
20390   --header=FILE[:TEMPLATE]
20391                    instantiate the configuration header FILE
20392
20393 Configuration files:
20394 $config_files
20395
20396 Configuration headers:
20397 $config_headers
20398
20399 Configuration commands:
20400 $config_commands
20401
20402 Report bugs to <bug-autoconf@gnu.org>."
20403 _ACEOF
20404
20405 cat >>$CONFIG_STATUS <<_ACEOF
20406 ac_cs_version="\\
20407 OpenPAM config.status 20050201
20408 configured by $0, generated by GNU Autoconf 2.59,
20409   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20410
20411 Copyright (C) 2003 Free Software Foundation, Inc.
20412 This config.status script is free software; the Free Software Foundation
20413 gives unlimited permission to copy, distribute and modify it."
20414 srcdir=$srcdir
20415 INSTALL="$INSTALL"
20416 _ACEOF
20417
20418 cat >>$CONFIG_STATUS <<\_ACEOF
20419 # If no file are specified by the user, then we need to provide default
20420 # value.  By we need to know if files were specified by the user.
20421 ac_need_defaults=:
20422 while test $# != 0
20423 do
20424   case $1 in
20425   --*=*)
20426     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20427     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20428     ac_shift=:
20429     ;;
20430   -*)
20431     ac_option=$1
20432     ac_optarg=$2
20433     ac_shift=shift
20434     ;;
20435   *) # This is not an option, so the user has probably given explicit
20436      # arguments.
20437      ac_option=$1
20438      ac_need_defaults=false;;
20439   esac
20440
20441   case $ac_option in
20442   # Handling of the options.
20443 _ACEOF
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20445   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20446     ac_cs_recheck=: ;;
20447   --version | --vers* | -V )
20448     echo "$ac_cs_version"; exit 0 ;;
20449   --he | --h)
20450     # Conflict between --help and --header
20451     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20452 Try \`$0 --help' for more information." >&5
20453 echo "$as_me: error: ambiguous option: $1
20454 Try \`$0 --help' for more information." >&2;}
20455    { (exit 1); exit 1; }; };;
20456   --help | --hel | -h )
20457     echo "$ac_cs_usage"; exit 0 ;;
20458   --debug | --d* | -d )
20459     debug=: ;;
20460   --file | --fil | --fi | --f )
20461     $ac_shift
20462     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20463     ac_need_defaults=false;;
20464   --header | --heade | --head | --hea )
20465     $ac_shift
20466     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20467     ac_need_defaults=false;;
20468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20469   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20470     ac_cs_silent=: ;;
20471
20472   # This is an error.
20473   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20474 Try \`$0 --help' for more information." >&5
20475 echo "$as_me: error: unrecognized option: $1
20476 Try \`$0 --help' for more information." >&2;}
20477    { (exit 1); exit 1; }; } ;;
20478
20479   *) ac_config_targets="$ac_config_targets $1" ;;
20480
20481   esac
20482   shift
20483 done
20484
20485 ac_configure_extra_args=
20486
20487 if $ac_cs_silent; then
20488   exec 6>/dev/null
20489   ac_configure_extra_args="$ac_configure_extra_args --silent"
20490 fi
20491
20492 _ACEOF
20493 cat >>$CONFIG_STATUS <<_ACEOF
20494 if \$ac_cs_recheck; then
20495   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20496   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20497 fi
20498
20499 _ACEOF
20500
20501 cat >>$CONFIG_STATUS <<_ACEOF
20502 #
20503 # INIT-COMMANDS section.
20504 #
20505
20506 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20507
20508 _ACEOF
20509
20510
20511
20512 cat >>$CONFIG_STATUS <<\_ACEOF
20513 for ac_config_target in $ac_config_targets
20514 do
20515   case "$ac_config_target" in
20516   # Handling of arguments.
20517   "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20518   "bin/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
20519   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20520   "include/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
20521   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20522   "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20523   "modules/pam_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
20524   "modules/pam_deny/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
20525   "modules/pam_permit/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
20526   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20527   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20528   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20529   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20530   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20531   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20532 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20533    { (exit 1); exit 1; }; };;
20534   esac
20535 done
20536
20537 # If the user did not use the arguments to specify the items to instantiate,
20538 # then the envvar interface is used.  Set only those that are not.
20539 # We use the long form for the default assignment because of an extremely
20540 # bizarre bug on SunOS 4.1.3.
20541 if $ac_need_defaults; then
20542   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20543   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20544   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20545 fi
20546
20547 # Have a temporary directory for convenience.  Make it in the build tree
20548 # simply because there is no reason to put it here, and in addition,
20549 # creating and moving files from /tmp can sometimes cause problems.
20550 # Create a temporary directory, and hook for its removal unless debugging.
20551 $debug ||
20552 {
20553   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20554   trap '{ (exit 1); exit 1; }' 1 2 13 15
20555 }
20556
20557 # Create a (secure) tmp directory for tmp files.
20558
20559 {
20560   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20561   test -n "$tmp" && test -d "$tmp"
20562 }  ||
20563 {
20564   tmp=./confstat$$-$RANDOM
20565   (umask 077 && mkdir $tmp)
20566 } ||
20567 {
20568    echo "$me: cannot create a temporary directory in ." >&2
20569    { (exit 1); exit 1; }
20570 }
20571
20572 _ACEOF
20573
20574 cat >>$CONFIG_STATUS <<_ACEOF
20575
20576 #
20577 # CONFIG_FILES section.
20578 #
20579
20580 # No need to generate the scripts if there are no CONFIG_FILES.
20581 # This happens for instance when ./config.status config.h
20582 if test -n "\$CONFIG_FILES"; then
20583   # Protect against being on the right side of a sed subst in config.status.
20584   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20585    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20586 s,@SHELL@,$SHELL,;t t
20587 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20588 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20589 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20590 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20591 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20592 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20593 s,@exec_prefix@,$exec_prefix,;t t
20594 s,@prefix@,$prefix,;t t
20595 s,@program_transform_name@,$program_transform_name,;t t
20596 s,@bindir@,$bindir,;t t
20597 s,@sbindir@,$sbindir,;t t
20598 s,@libexecdir@,$libexecdir,;t t
20599 s,@datadir@,$datadir,;t t
20600 s,@sysconfdir@,$sysconfdir,;t t
20601 s,@sharedstatedir@,$sharedstatedir,;t t
20602 s,@localstatedir@,$localstatedir,;t t
20603 s,@libdir@,$libdir,;t t
20604 s,@includedir@,$includedir,;t t
20605 s,@oldincludedir@,$oldincludedir,;t t
20606 s,@infodir@,$infodir,;t t
20607 s,@mandir@,$mandir,;t t
20608 s,@build_alias@,$build_alias,;t t
20609 s,@host_alias@,$host_alias,;t t
20610 s,@target_alias@,$target_alias,;t t
20611 s,@DEFS@,$DEFS,;t t
20612 s,@ECHO_C@,$ECHO_C,;t t
20613 s,@ECHO_N@,$ECHO_N,;t t
20614 s,@ECHO_T@,$ECHO_T,;t t
20615 s,@LIBS@,$LIBS,;t t
20616 s,@build@,$build,;t t
20617 s,@build_cpu@,$build_cpu,;t t
20618 s,@build_vendor@,$build_vendor,;t t
20619 s,@build_os@,$build_os,;t t
20620 s,@host@,$host,;t t
20621 s,@host_cpu@,$host_cpu,;t t
20622 s,@host_vendor@,$host_vendor,;t t
20623 s,@host_os@,$host_os,;t t
20624 s,@target@,$target,;t t
20625 s,@target_cpu@,$target_cpu,;t t
20626 s,@target_vendor@,$target_vendor,;t t
20627 s,@target_os@,$target_os,;t t
20628 s,@CC@,$CC,;t t
20629 s,@CFLAGS@,$CFLAGS,;t t
20630 s,@LDFLAGS@,$LDFLAGS,;t t
20631 s,@CPPFLAGS@,$CPPFLAGS,;t t
20632 s,@ac_ct_CC@,$ac_ct_CC,;t t
20633 s,@EXEEXT@,$EXEEXT,;t t
20634 s,@OBJEXT@,$OBJEXT,;t t
20635 s,@EGREP@,$EGREP,;t t
20636 s,@LN_S@,$LN_S,;t t
20637 s,@ECHO@,$ECHO,;t t
20638 s,@AR@,$AR,;t t
20639 s,@ac_ct_AR@,$ac_ct_AR,;t t
20640 s,@RANLIB@,$RANLIB,;t t
20641 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20642 s,@STRIP@,$STRIP,;t t
20643 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20644 s,@CPP@,$CPP,;t t
20645 s,@CXX@,$CXX,;t t
20646 s,@CXXFLAGS@,$CXXFLAGS,;t t
20647 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20648 s,@CXXCPP@,$CXXCPP,;t t
20649 s,@F77@,$F77,;t t
20650 s,@FFLAGS@,$FFLAGS,;t t
20651 s,@ac_ct_F77@,$ac_ct_F77,;t t
20652 s,@LIBTOOL@,$LIBTOOL,;t t
20653 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20654 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20655 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20656 s,@CYGPATH_W@,$CYGPATH_W,;t t
20657 s,@PACKAGE@,$PACKAGE,;t t
20658 s,@VERSION@,$VERSION,;t t
20659 s,@ACLOCAL@,$ACLOCAL,;t t
20660 s,@AUTOCONF@,$AUTOCONF,;t t
20661 s,@AUTOMAKE@,$AUTOMAKE,;t t
20662 s,@AUTOHEADER@,$AUTOHEADER,;t t
20663 s,@MAKEINFO@,$MAKEINFO,;t t
20664 s,@AMTAR@,$AMTAR,;t t
20665 s,@install_sh@,$install_sh,;t t
20666 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20667 s,@mkdir_p@,$mkdir_p,;t t
20668 s,@AWK@,$AWK,;t t
20669 s,@SET_MAKE@,$SET_MAKE,;t t
20670 s,@am__leading_dot@,$am__leading_dot,;t t
20671 s,@DEPDIR@,$DEPDIR,;t t
20672 s,@am__include@,$am__include,;t t
20673 s,@am__quote@,$am__quote,;t t
20674 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20675 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20676 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20677 s,@CCDEPMODE@,$CCDEPMODE,;t t
20678 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20679 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20680 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20681 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20682 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20683 s,@LIB_MAJ@,$LIB_MAJ,;t t
20684 s,@OPENPAM_MODULES_DIR@,$OPENPAM_MODULES_DIR,;t t
20685 s,@WITH_PAM_SU_TRUE@,$WITH_PAM_SU_TRUE,;t t
20686 s,@WITH_PAM_SU_FALSE@,$WITH_PAM_SU_FALSE,;t t
20687 s,@WITH_PAM_UNIX_TRUE@,$WITH_PAM_UNIX_TRUE,;t t
20688 s,@WITH_PAM_UNIX_FALSE@,$WITH_PAM_UNIX_FALSE,;t t
20689 s,@DL_LIBS@,$DL_LIBS,;t t
20690 s,@CRYPT_LIBS@,$CRYPT_LIBS,;t t
20691 s,@LIBOBJS@,$LIBOBJS,;t t
20692 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20693 CEOF
20694
20695 _ACEOF
20696
20697   cat >>$CONFIG_STATUS <<\_ACEOF
20698   # Split the substitutions into bite-sized pieces for seds with
20699   # small command number limits, like on Digital OSF/1 and HP-UX.
20700   ac_max_sed_lines=48
20701   ac_sed_frag=1 # Number of current file.
20702   ac_beg=1 # First line for current file.
20703   ac_end=$ac_max_sed_lines # Line after last line for current file.
20704   ac_more_lines=:
20705   ac_sed_cmds=
20706   while $ac_more_lines; do
20707     if test $ac_beg -gt 1; then
20708       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20709     else
20710       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20711     fi
20712     if test ! -s $tmp/subs.frag; then
20713       ac_more_lines=false
20714     else
20715       # The purpose of the label and of the branching condition is to
20716       # speed up the sed processing (if there are no `@' at all, there
20717       # is no need to browse any of the substitutions).
20718       # These are the two extra sed commands mentioned above.
20719       (echo ':t
20720   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20721       if test -z "$ac_sed_cmds"; then
20722         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20723       else
20724         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20725       fi
20726       ac_sed_frag=`expr $ac_sed_frag + 1`
20727       ac_beg=$ac_end
20728       ac_end=`expr $ac_end + $ac_max_sed_lines`
20729     fi
20730   done
20731   if test -z "$ac_sed_cmds"; then
20732     ac_sed_cmds=cat
20733   fi
20734 fi # test -n "$CONFIG_FILES"
20735
20736 _ACEOF
20737 cat >>$CONFIG_STATUS <<\_ACEOF
20738 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20739   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20740   case $ac_file in
20741   - | *:- | *:-:* ) # input from stdin
20742         cat >$tmp/stdin
20743         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20744         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20745   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20746         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20747   * )   ac_file_in=$ac_file.in ;;
20748   esac
20749
20750   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20751   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20753          X"$ac_file" : 'X\(//\)[^/]' \| \
20754          X"$ac_file" : 'X\(//\)$' \| \
20755          X"$ac_file" : 'X\(/\)' \| \
20756          .     : '\(.\)' 2>/dev/null ||
20757 echo X"$ac_file" |
20758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20759           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20760           /^X\(\/\/\)$/{ s//\1/; q; }
20761           /^X\(\/\).*/{ s//\1/; q; }
20762           s/.*/./; q'`
20763   { if $as_mkdir_p; then
20764     mkdir -p "$ac_dir"
20765   else
20766     as_dir="$ac_dir"
20767     as_dirs=
20768     while test ! -d "$as_dir"; do
20769       as_dirs="$as_dir $as_dirs"
20770       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20772          X"$as_dir" : 'X\(//\)[^/]' \| \
20773          X"$as_dir" : 'X\(//\)$' \| \
20774          X"$as_dir" : 'X\(/\)' \| \
20775          .     : '\(.\)' 2>/dev/null ||
20776 echo X"$as_dir" |
20777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20779           /^X\(\/\/\)$/{ s//\1/; q; }
20780           /^X\(\/\).*/{ s//\1/; q; }
20781           s/.*/./; q'`
20782     done
20783     test ! -n "$as_dirs" || mkdir $as_dirs
20784   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20786    { (exit 1); exit 1; }; }; }
20787
20788   ac_builddir=.
20789
20790 if test "$ac_dir" != .; then
20791   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20792   # A "../" for each directory in $ac_dir_suffix.
20793   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20794 else
20795   ac_dir_suffix= ac_top_builddir=
20796 fi
20797
20798 case $srcdir in
20799   .)  # No --srcdir option.  We are building in place.
20800     ac_srcdir=.
20801     if test -z "$ac_top_builddir"; then
20802        ac_top_srcdir=.
20803     else
20804        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20805     fi ;;
20806   [\\/]* | ?:[\\/]* )  # Absolute path.
20807     ac_srcdir=$srcdir$ac_dir_suffix;
20808     ac_top_srcdir=$srcdir ;;
20809   *) # Relative path.
20810     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20811     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20812 esac
20813
20814 # Do not use `cd foo && pwd` to compute absolute paths, because
20815 # the directories may not exist.
20816 case `pwd` in
20817 .) ac_abs_builddir="$ac_dir";;
20818 *)
20819   case "$ac_dir" in
20820   .) ac_abs_builddir=`pwd`;;
20821   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20822   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20823   esac;;
20824 esac
20825 case $ac_abs_builddir in
20826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20827 *)
20828   case ${ac_top_builddir}. in
20829   .) ac_abs_top_builddir=$ac_abs_builddir;;
20830   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20831   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20832   esac;;
20833 esac
20834 case $ac_abs_builddir in
20835 .) ac_abs_srcdir=$ac_srcdir;;
20836 *)
20837   case $ac_srcdir in
20838   .) ac_abs_srcdir=$ac_abs_builddir;;
20839   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20840   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20841   esac;;
20842 esac
20843 case $ac_abs_builddir in
20844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20845 *)
20846   case $ac_top_srcdir in
20847   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20848   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20849   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20850   esac;;
20851 esac
20852
20853
20854   case $INSTALL in
20855   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20856   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20857   esac
20858
20859   if test x"$ac_file" != x-; then
20860     { echo "$as_me:$LINENO: creating $ac_file" >&5
20861 echo "$as_me: creating $ac_file" >&6;}
20862     rm -f "$ac_file"
20863   fi
20864   # Let's still pretend it is `configure' which instantiates (i.e., don't
20865   # use $as_me), people would be surprised to read:
20866   #    /* config.h.  Generated by config.status.  */
20867   if test x"$ac_file" = x-; then
20868     configure_input=
20869   else
20870     configure_input="$ac_file.  "
20871   fi
20872   configure_input=$configure_input"Generated from `echo $ac_file_in |
20873                                      sed 's,.*/,,'` by configure."
20874
20875   # First look for the input files in the build tree, otherwise in the
20876   # src tree.
20877   ac_file_inputs=`IFS=:
20878     for f in $ac_file_in; do
20879       case $f in
20880       -) echo $tmp/stdin ;;
20881       [\\/$]*)
20882          # Absolute (can't be DOS-style, as IFS=:)
20883          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20884 echo "$as_me: error: cannot find input file: $f" >&2;}
20885    { (exit 1); exit 1; }; }
20886          echo "$f";;
20887       *) # Relative
20888          if test -f "$f"; then
20889            # Build tree
20890            echo "$f"
20891          elif test -f "$srcdir/$f"; then
20892            # Source tree
20893            echo "$srcdir/$f"
20894          else
20895            # /dev/null tree
20896            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20897 echo "$as_me: error: cannot find input file: $f" >&2;}
20898    { (exit 1); exit 1; }; }
20899          fi;;
20900       esac
20901     done` || { (exit 1); exit 1; }
20902 _ACEOF
20903 cat >>$CONFIG_STATUS <<_ACEOF
20904   sed "$ac_vpsub
20905 $extrasub
20906 _ACEOF
20907 cat >>$CONFIG_STATUS <<\_ACEOF
20908 :t
20909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20910 s,@configure_input@,$configure_input,;t t
20911 s,@srcdir@,$ac_srcdir,;t t
20912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20913 s,@top_srcdir@,$ac_top_srcdir,;t t
20914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20915 s,@builddir@,$ac_builddir,;t t
20916 s,@abs_builddir@,$ac_abs_builddir,;t t
20917 s,@top_builddir@,$ac_top_builddir,;t t
20918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20919 s,@INSTALL@,$ac_INSTALL,;t t
20920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20921   rm -f $tmp/stdin
20922   if test x"$ac_file" != x-; then
20923     mv $tmp/out $ac_file
20924   else
20925     cat $tmp/out
20926     rm -f $tmp/out
20927   fi
20928
20929 done
20930 _ACEOF
20931 cat >>$CONFIG_STATUS <<\_ACEOF
20932
20933 #
20934 # CONFIG_HEADER section.
20935 #
20936
20937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20939 #
20940 # ac_d sets the value in "#define NAME VALUE" lines.
20941 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20942 ac_dB='[         ].*$,\1#\2'
20943 ac_dC=' '
20944 ac_dD=',;t'
20945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20946 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20947 ac_uB='$,\1#\2define\3'
20948 ac_uC=' '
20949 ac_uD=',;t'
20950
20951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20952   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20953   case $ac_file in
20954   - | *:- | *:-:* ) # input from stdin
20955         cat >$tmp/stdin
20956         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20957         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20958   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20960   * )   ac_file_in=$ac_file.in ;;
20961   esac
20962
20963   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20964 echo "$as_me: creating $ac_file" >&6;}
20965
20966   # First look for the input files in the build tree, otherwise in the
20967   # src tree.
20968   ac_file_inputs=`IFS=:
20969     for f in $ac_file_in; do
20970       case $f in
20971       -) echo $tmp/stdin ;;
20972       [\\/$]*)
20973          # Absolute (can't be DOS-style, as IFS=:)
20974          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20975 echo "$as_me: error: cannot find input file: $f" >&2;}
20976    { (exit 1); exit 1; }; }
20977          # Do quote $f, to prevent DOS paths from being IFS'd.
20978          echo "$f";;
20979       *) # Relative
20980          if test -f "$f"; then
20981            # Build tree
20982            echo "$f"
20983          elif test -f "$srcdir/$f"; then
20984            # Source tree
20985            echo "$srcdir/$f"
20986          else
20987            # /dev/null tree
20988            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20989 echo "$as_me: error: cannot find input file: $f" >&2;}
20990    { (exit 1); exit 1; }; }
20991          fi;;
20992       esac
20993     done` || { (exit 1); exit 1; }
20994   # Remove the trailing spaces.
20995   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20996
20997 _ACEOF
20998
20999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21000 # `conftest.undefs', that substitutes the proper values into
21001 # config.h.in to produce config.h.  The first handles `#define'
21002 # templates, and the second `#undef' templates.
21003 # And first: Protect against being on the right side of a sed subst in
21004 # config.status.  Protect against being in an unquoted here document
21005 # in config.status.
21006 rm -f conftest.defines conftest.undefs
21007 # Using a here document instead of a string reduces the quoting nightmare.
21008 # Putting comments in sed scripts is not portable.
21009 #
21010 # `end' is used to avoid that the second main sed command (meant for
21011 # 0-ary CPP macros) applies to n-ary macro definitions.
21012 # See the Autoconf documentation for `clear'.
21013 cat >confdef2sed.sed <<\_ACEOF
21014 s/[\\&,]/\\&/g
21015 s,[\\$`],\\&,g
21016 t clear
21017 : clear
21018 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21019 t end
21020 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21021 : end
21022 _ACEOF
21023 # If some macros were called several times there might be several times
21024 # the same #defines, which is useless.  Nevertheless, we may not want to
21025 # sort them, since we want the *last* AC-DEFINE to be honored.
21026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21028 rm -f confdef2sed.sed
21029
21030 # This sed command replaces #undef with comments.  This is necessary, for
21031 # example, in the case of _POSIX_SOURCE, which is predefined and required
21032 # on some systems where configure will not decide to define it.
21033 cat >>conftest.undefs <<\_ACEOF
21034 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21035 _ACEOF
21036
21037 # Break up conftest.defines because some shells have a limit on the size
21038 # of here documents, and old seds have small limits too (100 cmds).
21039 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21040 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21041 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21042 echo '  :' >>$CONFIG_STATUS
21043 rm -f conftest.tail
21044 while grep . conftest.defines >/dev/null
21045 do
21046   # Write a limited-size here document to $tmp/defines.sed.
21047   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21048   # Speed up: don't consider the non `#define' lines.
21049   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21050   # Work around the forget-to-reset-the-flag bug.
21051   echo 't clr' >>$CONFIG_STATUS
21052   echo ': clr' >>$CONFIG_STATUS
21053   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21054   echo 'CEOF
21055   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21056   rm -f $tmp/in
21057   mv $tmp/out $tmp/in
21058 ' >>$CONFIG_STATUS
21059   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21060   rm -f conftest.defines
21061   mv conftest.tail conftest.defines
21062 done
21063 rm -f conftest.defines
21064 echo '  fi # grep' >>$CONFIG_STATUS
21065 echo >>$CONFIG_STATUS
21066
21067 # Break up conftest.undefs because some shells have a limit on the size
21068 # of here documents, and old seds have small limits too (100 cmds).
21069 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21070 rm -f conftest.tail
21071 while grep . conftest.undefs >/dev/null
21072 do
21073   # Write a limited-size here document to $tmp/undefs.sed.
21074   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21075   # Speed up: don't consider the non `#undef'
21076   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21077   # Work around the forget-to-reset-the-flag bug.
21078   echo 't clr' >>$CONFIG_STATUS
21079   echo ': clr' >>$CONFIG_STATUS
21080   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21081   echo 'CEOF
21082   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21083   rm -f $tmp/in
21084   mv $tmp/out $tmp/in
21085 ' >>$CONFIG_STATUS
21086   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21087   rm -f conftest.undefs
21088   mv conftest.tail conftest.undefs
21089 done
21090 rm -f conftest.undefs
21091
21092 cat >>$CONFIG_STATUS <<\_ACEOF
21093   # Let's still pretend it is `configure' which instantiates (i.e., don't
21094   # use $as_me), people would be surprised to read:
21095   #    /* config.h.  Generated by config.status.  */
21096   if test x"$ac_file" = x-; then
21097     echo "/* Generated by configure.  */" >$tmp/config.h
21098   else
21099     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21100   fi
21101   cat $tmp/in >>$tmp/config.h
21102   rm -f $tmp/in
21103   if test x"$ac_file" != x-; then
21104     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21105       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21106 echo "$as_me: $ac_file is unchanged" >&6;}
21107     else
21108       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21110          X"$ac_file" : 'X\(//\)[^/]' \| \
21111          X"$ac_file" : 'X\(//\)$' \| \
21112          X"$ac_file" : 'X\(/\)' \| \
21113          .     : '\(.\)' 2>/dev/null ||
21114 echo X"$ac_file" |
21115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21117           /^X\(\/\/\)$/{ s//\1/; q; }
21118           /^X\(\/\).*/{ s//\1/; q; }
21119           s/.*/./; q'`
21120       { if $as_mkdir_p; then
21121     mkdir -p "$ac_dir"
21122   else
21123     as_dir="$ac_dir"
21124     as_dirs=
21125     while test ! -d "$as_dir"; do
21126       as_dirs="$as_dir $as_dirs"
21127       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21129          X"$as_dir" : 'X\(//\)[^/]' \| \
21130          X"$as_dir" : 'X\(//\)$' \| \
21131          X"$as_dir" : 'X\(/\)' \| \
21132          .     : '\(.\)' 2>/dev/null ||
21133 echo X"$as_dir" |
21134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21136           /^X\(\/\/\)$/{ s//\1/; q; }
21137           /^X\(\/\).*/{ s//\1/; q; }
21138           s/.*/./; q'`
21139     done
21140     test ! -n "$as_dirs" || mkdir $as_dirs
21141   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21143    { (exit 1); exit 1; }; }; }
21144
21145       rm -f $ac_file
21146       mv $tmp/config.h $ac_file
21147     fi
21148   else
21149     cat $tmp/config.h
21150     rm -f $tmp/config.h
21151   fi
21152 # Compute $ac_file's index in $config_headers.
21153 _am_stamp_count=1
21154 for _am_header in $config_headers :; do
21155   case $_am_header in
21156     $ac_file | $ac_file:* )
21157       break ;;
21158     * )
21159       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21160   esac
21161 done
21162 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21164          X$ac_file : 'X\(//\)[^/]' \| \
21165          X$ac_file : 'X\(//\)$' \| \
21166          X$ac_file : 'X\(/\)' \| \
21167          .     : '\(.\)' 2>/dev/null ||
21168 echo X$ac_file |
21169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21170           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21171           /^X\(\/\/\)$/{ s//\1/; q; }
21172           /^X\(\/\).*/{ s//\1/; q; }
21173           s/.*/./; q'`/stamp-h$_am_stamp_count
21174 done
21175 _ACEOF
21176 cat >>$CONFIG_STATUS <<\_ACEOF
21177
21178 #
21179 # CONFIG_COMMANDS section.
21180 #
21181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21182   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21183   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21184   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21186          X"$ac_dest" : 'X\(//\)[^/]' \| \
21187          X"$ac_dest" : 'X\(//\)$' \| \
21188          X"$ac_dest" : 'X\(/\)' \| \
21189          .     : '\(.\)' 2>/dev/null ||
21190 echo X"$ac_dest" |
21191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21192           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21193           /^X\(\/\/\)$/{ s//\1/; q; }
21194           /^X\(\/\).*/{ s//\1/; q; }
21195           s/.*/./; q'`
21196   { if $as_mkdir_p; then
21197     mkdir -p "$ac_dir"
21198   else
21199     as_dir="$ac_dir"
21200     as_dirs=
21201     while test ! -d "$as_dir"; do
21202       as_dirs="$as_dir $as_dirs"
21203       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21205          X"$as_dir" : 'X\(//\)[^/]' \| \
21206          X"$as_dir" : 'X\(//\)$' \| \
21207          X"$as_dir" : 'X\(/\)' \| \
21208          .     : '\(.\)' 2>/dev/null ||
21209 echo X"$as_dir" |
21210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21212           /^X\(\/\/\)$/{ s//\1/; q; }
21213           /^X\(\/\).*/{ s//\1/; q; }
21214           s/.*/./; q'`
21215     done
21216     test ! -n "$as_dirs" || mkdir $as_dirs
21217   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21219    { (exit 1); exit 1; }; }; }
21220
21221   ac_builddir=.
21222
21223 if test "$ac_dir" != .; then
21224   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21225   # A "../" for each directory in $ac_dir_suffix.
21226   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21227 else
21228   ac_dir_suffix= ac_top_builddir=
21229 fi
21230
21231 case $srcdir in
21232   .)  # No --srcdir option.  We are building in place.
21233     ac_srcdir=.
21234     if test -z "$ac_top_builddir"; then
21235        ac_top_srcdir=.
21236     else
21237        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21238     fi ;;
21239   [\\/]* | ?:[\\/]* )  # Absolute path.
21240     ac_srcdir=$srcdir$ac_dir_suffix;
21241     ac_top_srcdir=$srcdir ;;
21242   *) # Relative path.
21243     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21244     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21245 esac
21246
21247 # Do not use `cd foo && pwd` to compute absolute paths, because
21248 # the directories may not exist.
21249 case `pwd` in
21250 .) ac_abs_builddir="$ac_dir";;
21251 *)
21252   case "$ac_dir" in
21253   .) ac_abs_builddir=`pwd`;;
21254   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21255   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21256   esac;;
21257 esac
21258 case $ac_abs_builddir in
21259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21260 *)
21261   case ${ac_top_builddir}. in
21262   .) ac_abs_top_builddir=$ac_abs_builddir;;
21263   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21264   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21265   esac;;
21266 esac
21267 case $ac_abs_builddir in
21268 .) ac_abs_srcdir=$ac_srcdir;;
21269 *)
21270   case $ac_srcdir in
21271   .) ac_abs_srcdir=$ac_abs_builddir;;
21272   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21273   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21274   esac;;
21275 esac
21276 case $ac_abs_builddir in
21277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21278 *)
21279   case $ac_top_srcdir in
21280   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21281   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21282   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21283   esac;;
21284 esac
21285
21286
21287   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21288 echo "$as_me: executing $ac_dest commands" >&6;}
21289   case $ac_dest in
21290     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21291   # Strip MF so we end up with the name of the file.
21292   mf=`echo "$mf" | sed -e 's/:.*$//'`
21293   # Check whether this is an Automake generated Makefile or not.
21294   # We used to match only the files named `Makefile.in', but
21295   # some people rename them; so instead we look at the file content.
21296   # Grep'ing the first line is not enough: some people post-process
21297   # each Makefile.in and add a new line on top of each file to say so.
21298   # So let's grep whole file.
21299   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21300     dirpart=`(dirname "$mf") 2>/dev/null ||
21301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21302          X"$mf" : 'X\(//\)[^/]' \| \
21303          X"$mf" : 'X\(//\)$' \| \
21304          X"$mf" : 'X\(/\)' \| \
21305          .     : '\(.\)' 2>/dev/null ||
21306 echo X"$mf" |
21307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21308           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21309           /^X\(\/\/\)$/{ s//\1/; q; }
21310           /^X\(\/\).*/{ s//\1/; q; }
21311           s/.*/./; q'`
21312   else
21313     continue
21314   fi
21315   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21316   # Extract the definition of DEP_FILES from the Makefile without
21317   # running `make'.
21318   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21319   test -z "$DEPDIR" && continue
21320   # When using ansi2knr, U may be empty or an underscore; expand it
21321   U=`sed -n 's/^U = //p' < "$mf"`
21322   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21323   # We invoke sed twice because it is the simplest approach to
21324   # changing $(DEPDIR) to its actual value in the expansion.
21325   for file in `sed -n '
21326     /^DEP_FILES = .*\\\\$/ {
21327       s/^DEP_FILES = //
21328       :loop
21329         s/\\\\$//
21330         p
21331         n
21332         /\\\\$/ b loop
21333       p
21334     }
21335     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21336        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21337     # Make sure the directory exists.
21338     test -f "$dirpart/$file" && continue
21339     fdir=`(dirname "$file") 2>/dev/null ||
21340 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21341          X"$file" : 'X\(//\)[^/]' \| \
21342          X"$file" : 'X\(//\)$' \| \
21343          X"$file" : 'X\(/\)' \| \
21344          .     : '\(.\)' 2>/dev/null ||
21345 echo X"$file" |
21346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21348           /^X\(\/\/\)$/{ s//\1/; q; }
21349           /^X\(\/\).*/{ s//\1/; q; }
21350           s/.*/./; q'`
21351     { if $as_mkdir_p; then
21352     mkdir -p $dirpart/$fdir
21353   else
21354     as_dir=$dirpart/$fdir
21355     as_dirs=
21356     while test ! -d "$as_dir"; do
21357       as_dirs="$as_dir $as_dirs"
21358       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21360          X"$as_dir" : 'X\(//\)[^/]' \| \
21361          X"$as_dir" : 'X\(//\)$' \| \
21362          X"$as_dir" : 'X\(/\)' \| \
21363          .     : '\(.\)' 2>/dev/null ||
21364 echo X"$as_dir" |
21365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21366           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21367           /^X\(\/\/\)$/{ s//\1/; q; }
21368           /^X\(\/\).*/{ s//\1/; q; }
21369           s/.*/./; q'`
21370     done
21371     test ! -n "$as_dirs" || mkdir $as_dirs
21372   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21373 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21374    { (exit 1); exit 1; }; }; }
21375
21376     # echo "creating $dirpart/$file"
21377     echo '# dummy' > "$dirpart/$file"
21378   done
21379 done
21380  ;;
21381   esac
21382 done
21383 _ACEOF
21384
21385 cat >>$CONFIG_STATUS <<\_ACEOF
21386
21387 { (exit 0); exit 0; }
21388 _ACEOF
21389 chmod +x $CONFIG_STATUS
21390 ac_clean_files=$ac_clean_files_save
21391
21392
21393 # configure is writing to config.log, and then calls config.status.
21394 # config.status does its own redirection, appending to config.log.
21395 # Unfortunately, on DOS this fails, as config.log is still kept open
21396 # by configure, so config.status won't be able to write to it; its
21397 # output is simply discarded.  So we exec the FD to /dev/null,
21398 # effectively closing config.log, so it can be properly (re)opened and
21399 # appended to by config.status.  When coming back to configure, we
21400 # need to make the FD available again.
21401 if test "$no_create" != yes; then
21402   ac_cs_success=:
21403   ac_config_status_args=
21404   test "$silent" = yes &&
21405     ac_config_status_args="$ac_config_status_args --quiet"
21406   exec 5>/dev/null
21407   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21408   exec 5>>config.log
21409   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21410   # would make configure fail if this is the last instruction.
21411   $ac_cs_success || { (exit 1); exit 1; }
21412 fi
21413