Fix bad mkinstalldirs upstream use
[manu/libnss-mysql-bg.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.56 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/nss_main.c"
430 ac_default_prefix=
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RENAME_TRUE RENAME_FALSE LIBVER OS 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 this package 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
1024   cat <<\_ACEOF
1025
1026 Optional Features:
1027   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1028   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1029   --enable-maintainer-mode  enable make rules and dependencies not useful
1030                           (and sometimes confusing) to the casual installer
1031   --disable-dependency-tracking  speeds up one-time build
1032   --enable-dependency-tracking   do not reject slow dependency extractors
1033   --enable-static[=PKGS]
1034                           build static libraries [default=no]
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-libtool-lock  avoid locking (might break parallel builds)
1040   --enable-debug          Enable debug (see DEBUGGING)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-mysql=DIR        Location of your MySQL installation
1051
1052 Some influential environment variables:
1053   CC          C compiler command
1054   CFLAGS      C compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CPP         C preprocessor
1060   CXX         C++ compiler command
1061   CXXFLAGS    C++ compiler flags
1062   CXXCPP      C++ preprocessor
1063   F77         Fortran 77 compiler command
1064   FFLAGS      Fortran 77 compiler flags
1065
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1068
1069 _ACEOF
1070 fi
1071
1072 if test "$ac_init_help" = "recursive"; then
1073   # If there are subdirs, report their specific --help.
1074   ac_popdir=`pwd`
1075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076     test -d $ac_dir || continue
1077     ac_builddir=.
1078
1079 if test "$ac_dir" != .; then
1080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081   # A "../" for each directory in $ac_dir_suffix.
1082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084   ac_dir_suffix= ac_top_builddir=
1085 fi
1086
1087 case $srcdir in
1088   .)  # No --srcdir option.  We are building in place.
1089     ac_srcdir=.
1090     if test -z "$ac_top_builddir"; then
1091        ac_top_srcdir=.
1092     else
1093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094     fi ;;
1095   [\\/]* | ?:[\\/]* )  # Absolute path.
1096     ac_srcdir=$srcdir$ac_dir_suffix;
1097     ac_top_srcdir=$srcdir ;;
1098   *) # Relative path.
1099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1102
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1105 case `pwd` in
1106 .) ac_abs_builddir="$ac_dir";;
1107 *)
1108   case "$ac_dir" in
1109   .) ac_abs_builddir=`pwd`;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *)
1117   case ${ac_top_builddir}. in
1118   .) ac_abs_top_builddir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1125 *)
1126   case $ac_srcdir in
1127   .) ac_abs_srcdir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *)
1135   case $ac_top_srcdir in
1136   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139   esac;;
1140 esac
1141
1142     cd $ac_dir
1143     # Check for guested configure; otherwise get Cygnus style configure.
1144     if test -f $ac_srcdir/configure.gnu; then
1145       echo
1146       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147     elif test -f $ac_srcdir/configure; then
1148       echo
1149       $SHELL $ac_srcdir/configure  --help=recursive
1150     elif test -f $ac_srcdir/configure.ac ||
1151            test -f $ac_srcdir/configure.in; then
1152       echo
1153       $ac_configure --help
1154     else
1155       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156     fi
1157     cd $ac_popdir
1158   done
1159 fi
1160
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163   cat <<\_ACEOF
1164
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1168 _ACEOF
1169   exit 0
1170 fi
1171 exec 5>config.log
1172 cat >&5 <<_ACEOF
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1175
1176 It was created by $as_me, which was
1177 generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179   $ $0 $@
1180
1181 _ACEOF
1182 {
1183 cat <<_ASUNAME
1184 ## --------- ##
1185 ## Platform. ##
1186 ## --------- ##
1187
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205 _ASUNAME
1206
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210   IFS=$as_save_IFS
1211   test -z "$as_dir" && as_dir=.
1212   echo "PATH: $as_dir"
1213 done
1214
1215 } >&5
1216
1217 cat >&5 <<_ACEOF
1218
1219
1220 ## ----------- ##
1221 ## Core tests. ##
1222 ## ----------- ##
1223
1224 _ACEOF
1225
1226
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_configure_args=
1233 ac_configure_args0=
1234 ac_configure_args1=
1235 ac_sep=
1236 ac_must_keep_next=false
1237 for ac_pass in 1 2
1238 do
1239   for ac_arg
1240   do
1241     case $ac_arg in
1242     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244     | -silent | --silent | --silen | --sile | --sil)
1245       continue ;;
1246     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248     esac
1249     case $ac_pass in
1250     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251     2)
1252       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253       if test $ac_must_keep_next = true; then
1254         ac_must_keep_next=false # Got value, back to normal.
1255       else
1256         case $ac_arg in
1257           *=* | --config-cache | -C | -disable-* | --disable-* \
1258           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260           | -with-* | --with-* | -without-* | --without-* | --x)
1261             case "$ac_configure_args0 " in
1262               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263             esac
1264             ;;
1265           -* ) ac_must_keep_next=true ;;
1266         esac
1267       fi
1268       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269       # Get rid of the leading space.
1270       ac_sep=" "
1271       ;;
1272     esac
1273   done
1274 done
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log.  We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284   # Save into config.log some information that might help in debugging.
1285   {
1286     echo
1287
1288     cat <<\_ASBOX
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1292 _ASBOX
1293     echo
1294     # The following way of writing the cache mishandles newlines in values,
1295 {
1296   (set) 2>&1 |
1297     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298     *ac_space=\ *)
1299       sed -n \
1300         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302       ;;
1303     *)
1304       sed -n \
1305         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306       ;;
1307     esac;
1308 }
1309     echo
1310
1311     cat <<\_ASBOX
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1315 _ASBOX
1316     echo
1317     for ac_var in $ac_subst_vars
1318     do
1319       eval ac_val=$`echo $ac_var`
1320       echo "$ac_var='"'"'$ac_val'"'"'"
1321     done | sort
1322     echo
1323
1324     if test -n "$ac_subst_files"; then
1325       cat <<\_ASBOX
1326 ## ------------- ##
1327 ## Output files. ##
1328 ## ------------- ##
1329 _ASBOX
1330       echo
1331       for ac_var in $ac_subst_files
1332       do
1333         eval ac_val=$`echo $ac_var`
1334         echo "$ac_var='"'"'$ac_val'"'"'"
1335       done | sort
1336       echo
1337     fi
1338
1339     if test -s confdefs.h; then
1340       cat <<\_ASBOX
1341 ## ----------- ##
1342 ## confdefs.h. ##
1343 ## ----------- ##
1344 _ASBOX
1345       echo
1346       sed "/^$/d" confdefs.h | sort
1347       echo
1348     fi
1349     test "$ac_signal" != 0 &&
1350       echo "$as_me: caught signal $ac_signal"
1351     echo "$as_me: exit $exit_status"
1352   } >&5
1353   rm -f core *.core &&
1354   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355     exit $exit_status
1356      ' 0
1357 for ac_signal in 1 2 13 15; do
1358   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 done
1360 ac_signal=0
1361
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 echo >confdefs.h
1366
1367 # Predefined preprocessor variables.
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 _ACEOF
1392
1393
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397   if test "x$prefix" != xNONE; then
1398     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399   else
1400     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401   fi
1402 fi
1403 for ac_site_file in $CONFIG_SITE; do
1404   if test -r "$ac_site_file"; then
1405     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407     sed 's/^/| /' "$ac_site_file" >&5
1408     . "$ac_site_file"
1409   fi
1410 done
1411
1412 if test -r "$cache_file"; then
1413   # Some versions of bash will fail to source /dev/null (special
1414   # files actually), so we avoid doing that.
1415   if test -f "$cache_file"; then
1416     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1418     case $cache_file in
1419       [\\/]* | ?:[\\/]* ) . $cache_file;;
1420       *)                      . ./$cache_file;;
1421     esac
1422   fi
1423 else
1424   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1426   >$cache_file
1427 fi
1428
1429 # Check that the precious variables saved in the cache have kept the same
1430 # value.
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435   eval ac_new_set=\$ac_env_${ac_var}_set
1436   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437   eval ac_new_val="\$ac_env_${ac_var}_value"
1438   case $ac_old_set,$ac_new_set in
1439     set,)
1440       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442       ac_cache_corrupted=: ;;
1443     ,set)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,);;
1448     *)
1449       if test "x$ac_old_val" != "x$ac_new_val"; then
1450         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453 echo "$as_me:   former value:  $ac_old_val" >&2;}
1454         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455 echo "$as_me:   current value: $ac_new_val" >&2;}
1456         ac_cache_corrupted=:
1457       fi;;
1458   esac
1459   # Pass precious variables to config.status.
1460   if test "$ac_new_set" = set; then
1461     case $ac_new_val in
1462     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464     *) ac_arg=$ac_var=$ac_new_val ;;
1465     esac
1466     case " $ac_configure_args " in
1467       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469     esac
1470   fi
1471 done
1472 if $ac_cache_corrupted; then
1473   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477    { (exit 1); exit 1; }; }
1478 fi
1479
1480 ac_ext=c
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504 ac_aux_dir=
1505 for ac_dir in aux $srcdir/aux; do
1506   if test -f $ac_dir/install-sh; then
1507     ac_aux_dir=$ac_dir
1508     ac_install_sh="$ac_aux_dir/install-sh -c"
1509     break
1510   elif test -f $ac_dir/install.sh; then
1511     ac_aux_dir=$ac_dir
1512     ac_install_sh="$ac_aux_dir/install.sh -c"
1513     break
1514   elif test -f $ac_dir/shtool; then
1515     ac_aux_dir=$ac_dir
1516     ac_install_sh="$ac_aux_dir/shtool install -c"
1517     break
1518   fi
1519 done
1520 if test -z "$ac_aux_dir"; then
1521   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1522 echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1523    { (exit 1); exit 1; }; }
1524 fi
1525 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1526 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1527 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528
1529
1530
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544   ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548    { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552    { (exit 1); exit 1; }; }
1553
1554 fi
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1557 build=$ac_cv_build
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570   ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1579 host=$ac_cv_host
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585 echo "$as_me:$LINENO: checking target system type" >&5
1586 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1587 if test "${ac_cv_target+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   ac_cv_target_alias=$target_alias
1591 test "x$ac_cv_target_alias" = "x" &&
1592   ac_cv_target_alias=$ac_cv_host_alias
1593 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1594   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1596    { (exit 1); exit 1; }; }
1597
1598 fi
1599 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1600 echo "${ECHO_T}$ac_cv_target" >&6
1601 target=$ac_cv_target
1602 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607 # The aliases save the names the user supplied, while $host etc.
1608 # will get canonicalized.
1609 test -n "$target_alias" &&
1610   test "$program_prefix$program_suffix$program_transform_name" = \
1611     NONENONEs,x,x, &&
1612   program_prefix=${target_alias}-
1613
1614 am__api_version="1.9"
1615 # Find a good install program.  We prefer a C program (faster),
1616 # so one script is as good as another.  But avoid the broken or
1617 # incompatible versions:
1618 # SysV /etc/install, /usr/sbin/install
1619 # SunOS /usr/etc/install
1620 # IRIX /sbin/install
1621 # AIX /bin/install
1622 # AmigaOS /C/install, which installs bootblocks on floppy discs
1623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1626 # OS/2's system install, which has a completely different semantic
1627 # ./install, which can be erroneously created by make from ./install.sh.
1628 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1629 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1630 if test -z "$INSTALL"; then
1631 if test "${ac_cv_path_install+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   # Account for people who put trailing slashes in PATH elements.
1640 case $as_dir/ in
1641   ./ | .// | /cC/* | \
1642   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1643   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1644   /usr/ucb/* ) ;;
1645   *)
1646     # OSF1 and SCO ODT 3.0 have their own names for install.
1647     # Don't use installbsd from OSF since it installs stuff as root
1648     # by default.
1649     for ac_prog in ginstall scoinst install; do
1650       for ac_exec_ext in '' $ac_executable_extensions; do
1651         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1652           if test $ac_prog = install &&
1653             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654             # AIX install.  It has an incompatible calling convention.
1655             :
1656           elif test $ac_prog = install &&
1657             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658             # program-specific install script used by HP pwplus--don't use.
1659             :
1660           else
1661             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1662             break 3
1663           fi
1664         fi
1665       done
1666     done
1667     ;;
1668 esac
1669 done
1670
1671
1672 fi
1673   if test "${ac_cv_path_install+set}" = set; then
1674     INSTALL=$ac_cv_path_install
1675   else
1676     # As a last resort, use the slow shell script.  We don't cache a
1677     # path for INSTALL within a source directory, because that will
1678     # break other packages using the cache if that directory is
1679     # removed, or if the path is relative.
1680     INSTALL=$ac_install_sh
1681   fi
1682 fi
1683 echo "$as_me:$LINENO: result: $INSTALL" >&5
1684 echo "${ECHO_T}$INSTALL" >&6
1685
1686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1687 # It thinks the first close brace ends the variable substitution.
1688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1689
1690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1691
1692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1693
1694 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1695 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1696 # Just in case
1697 sleep 1
1698 echo timestamp > conftest.file
1699 # Do `set' in a subshell so we don't clobber the current shell's
1700 # arguments.  Must try -L first in case configure is actually a
1701 # symlink; some systems play weird games with the mod time of symlinks
1702 # (eg FreeBSD returns the mod time of the symlink's containing
1703 # directory).
1704 if (
1705    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1706    if test "$*" = "X"; then
1707       # -L didn't work.
1708       set X `ls -t $srcdir/configure conftest.file`
1709    fi
1710    rm -f conftest.file
1711    if test "$*" != "X $srcdir/configure conftest.file" \
1712       && test "$*" != "X conftest.file $srcdir/configure"; then
1713
1714       # If neither matched, then we have a broken ls.  This can happen
1715       # if, for instance, CONFIG_SHELL is bash and it inherits a
1716       # broken ls alias from the environment.  This has actually
1717       # happened.  Such a system could not be considered "sane".
1718       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1719 alias in your environment" >&5
1720 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1721 alias in your environment" >&2;}
1722    { (exit 1); exit 1; }; }
1723    fi
1724
1725    test "$2" = conftest.file
1726    )
1727 then
1728    # Ok.
1729    :
1730 else
1731    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1732 Check your system clock" >&5
1733 echo "$as_me: error: newly created file is older than distributed files!
1734 Check your system clock" >&2;}
1735    { (exit 1); exit 1; }; }
1736 fi
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1739 test "$program_prefix" != NONE &&
1740   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1741 # Use a double $ so make ignores it.
1742 test "$program_suffix" != NONE &&
1743   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1744 # Double any \ or $.  echo might interpret backslashes.
1745 # By default was `s,x,x', remove it if useless.
1746 cat <<\_ACEOF >conftest.sed
1747 s/[\\$]/&&/g;s/;s,x,x,$//
1748 _ACEOF
1749 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1750 rm conftest.sed
1751
1752 # expand $ac_aux_dir to an absolute path
1753 am_aux_dir=`cd $ac_aux_dir && pwd`
1754
1755 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1756 # Use eval to expand $SHELL
1757 if eval "$MISSING --run true"; then
1758   am_missing_run="$MISSING --run "
1759 else
1760   am_missing_run=
1761   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1762 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1763 fi
1764
1765 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1766   # We used to keeping the `.' as first argument, in order to
1767   # allow $(mkdir_p) to be used without argument.  As in
1768   #   $(mkdir_p) $(somedir)
1769   # where $(somedir) is conditionally defined.  However this is wrong
1770   # for two reasons:
1771   #  1. if the package is installed by a user who cannot write `.'
1772   #     make install will fail,
1773   #  2. the above comment should most certainly read
1774   #     $(mkdir_p) $(DESTDIR)$(somedir)
1775   #     so it does not work when $(somedir) is undefined and
1776   #     $(DESTDIR) is not.
1777   #  To support the latter case, we have to write
1778   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1779   #  so the `.' trick is pointless.
1780   mkdir_p='mkdir -p --'
1781 else
1782   # On NextStep and OpenStep, the `mkdir' command does not
1783   # recognize any option.  It will interpret all options as
1784   # directories to create, and then abort because `.' already
1785   # exists.
1786   for d in ./-p ./--version;
1787   do
1788     test -d $d && rmdir $d
1789   done
1790   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1791   if test -f "$ac_aux_dir/mkinstalldirs"; then
1792     mkdir_p='$(mkinstalldirs)'
1793   else
1794     mkdir_p='$(install_sh) -d'
1795   fi
1796 fi
1797
1798 for ac_prog in gawk mawk nawk awk
1799 do
1800   # Extract the first word of "$ac_prog", so it can be a program name with args.
1801 set dummy $ac_prog; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_AWK+set}" = set; then
1805   echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807   if test -n "$AWK"; then
1808   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1812 do
1813   IFS=$as_save_IFS
1814   test -z "$as_dir" && as_dir=.
1815   for ac_exec_ext in '' $ac_executable_extensions; do
1816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817     ac_cv_prog_AWK="$ac_prog"
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 fi
1825 fi
1826 AWK=$ac_cv_prog_AWK
1827 if test -n "$AWK"; then
1828   echo "$as_me:$LINENO: result: $AWK" >&5
1829 echo "${ECHO_T}$AWK" >&6
1830 else
1831   echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1833 fi
1834
1835   test -n "$AWK" && break
1836 done
1837
1838 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1840 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1841 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1842   echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844   cat >conftest.make <<\_ACEOF
1845 all:
1846         @echo 'ac_maketemp="$(MAKE)"'
1847 _ACEOF
1848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1849 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1850 if test -n "$ac_maketemp"; then
1851   eval ac_cv_prog_make_${ac_make}_set=yes
1852 else
1853   eval ac_cv_prog_make_${ac_make}_set=no
1854 fi
1855 rm -f conftest.make
1856 fi
1857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1858   echo "$as_me:$LINENO: result: yes" >&5
1859 echo "${ECHO_T}yes" >&6
1860   SET_MAKE=
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864   SET_MAKE="MAKE=${MAKE-make}"
1865 fi
1866
1867 rm -rf .tst 2>/dev/null
1868 mkdir .tst 2>/dev/null
1869 if test -d .tst; then
1870   am__leading_dot=.
1871 else
1872   am__leading_dot=_
1873 fi
1874 rmdir .tst 2>/dev/null
1875
1876 # test to see if srcdir already configured
1877 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1878    test -f $srcdir/config.status; then
1879   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1880 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884 # test whether we have cygpath
1885 if test -z "$CYGPATH_W"; then
1886   if (cygpath --version) >/dev/null 2>/dev/null; then
1887     CYGPATH_W='cygpath -w'
1888   else
1889     CYGPATH_W=echo
1890   fi
1891 fi
1892
1893
1894 # Define the identity of the package.
1895  PACKAGE=libnss-mysql
1896  VERSION=1.5
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE "$PACKAGE"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define VERSION "$VERSION"
1906 _ACEOF
1907
1908 # Some tools Automake needs.
1909
1910 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1911
1912
1913 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1914
1915
1916 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1917
1918
1919 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1920
1921
1922 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1923
1924 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1925
1926 # Installed binaries are usually stripped using `strip' when the user
1927 # run `make install-strip'.  However `strip' might not be the right
1928 # tool to use in cross-compilation environments, therefore Automake
1929 # will honor the `STRIP' environment variable to overrule this program.
1930 if test "$cross_compiling" != no; then
1931   if test -n "$ac_tool_prefix"; then
1932   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1933 set dummy ${ac_tool_prefix}strip; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_STRIP+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$STRIP"; then
1940   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 STRIP=$ac_cv_prog_STRIP
1959 if test -n "$STRIP"; then
1960   echo "$as_me:$LINENO: result: $STRIP" >&5
1961 echo "${ECHO_T}$STRIP" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967 fi
1968 if test -z "$ac_cv_prog_STRIP"; then
1969   ac_ct_STRIP=$STRIP
1970   # Extract the first word of "strip", so it can be a program name with args.
1971 set dummy strip; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$ac_ct_STRIP"; then
1978   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987     ac_cv_prog_ac_ct_STRIP="strip"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993
1994   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1995 fi
1996 fi
1997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1998 if test -n "$ac_ct_STRIP"; then
1999   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2000 echo "${ECHO_T}$ac_ct_STRIP" >&6
2001 else
2002   echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 fi
2005
2006   STRIP=$ac_ct_STRIP
2007 else
2008   STRIP="$ac_cv_prog_STRIP"
2009 fi
2010
2011 fi
2012 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2013
2014 # We need awk for the "check" target.  The system "awk" is bad on
2015 # some platforms.
2016 # Always define AMTAR for backward compatibility.
2017
2018 AMTAR=${AMTAR-"${am_missing_run}tar"}
2019
2020 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2021
2022
2023
2024
2025
2026           ac_config_headers="$ac_config_headers config.h"
2027
2028 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2029 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2030     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2031 if test "${enable_maintainer_mode+set}" = set; then
2032   enableval="$enable_maintainer_mode"
2033   USE_MAINTAINER_MODE=$enableval
2034 else
2035   USE_MAINTAINER_MODE=no
2036 fi;
2037   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2038 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2039
2040
2041 if test $USE_MAINTAINER_MODE = yes; then
2042   MAINTAINER_MODE_TRUE=
2043   MAINTAINER_MODE_FALSE='#'
2044 else
2045   MAINTAINER_MODE_TRUE='#'
2046   MAINTAINER_MODE_FALSE=
2047 fi
2048
2049   MAINT=$MAINTAINER_MODE_TRUE
2050
2051
2052
2053 ac_ext=c
2054 ac_cpp='$CPP $CPPFLAGS'
2055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058 if test -n "$ac_tool_prefix"; then
2059   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test -n "$CC"; then
2067   ac_cv_prog_CC="$CC" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2071 do
2072   IFS=$as_save_IFS
2073   test -z "$as_dir" && as_dir=.
2074   for ac_exec_ext in '' $ac_executable_extensions; do
2075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078     break 2
2079   fi
2080 done
2081 done
2082
2083 fi
2084 fi
2085 CC=$ac_cv_prog_CC
2086 if test -n "$CC"; then
2087   echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2089 else
2090   echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2092 fi
2093
2094 fi
2095 if test -z "$ac_cv_prog_CC"; then
2096   ac_ct_CC=$CC
2097   # Extract the first word of "gcc", so it can be a program name with args.
2098 set dummy gcc; ac_word=$2
2099 echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test -n "$ac_ct_CC"; then
2105   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   for ac_exec_ext in '' $ac_executable_extensions; do
2113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114     ac_cv_prog_ac_ct_CC="gcc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120
2121 fi
2122 fi
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126 echo "${ECHO_T}$ac_ct_CC" >&6
2127 else
2128   echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6
2130 fi
2131
2132   CC=$ac_ct_CC
2133 else
2134   CC="$ac_cv_prog_CC"
2135 fi
2136
2137 if test -z "$CC"; then
2138   if test -n "$ac_tool_prefix"; then
2139   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}cc; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   if test -n "$CC"; then
2147   ac_cv_prog_CC="$CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152   IFS=$as_save_IFS
2153   test -z "$as_dir" && as_dir=.
2154   for ac_exec_ext in '' $ac_executable_extensions; do
2155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156     ac_cv_prog_CC="${ac_tool_prefix}cc"
2157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158     break 2
2159   fi
2160 done
2161 done
2162
2163 fi
2164 fi
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167   echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6
2169 else
2170   echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2172 fi
2173
2174 fi
2175 if test -z "$ac_cv_prog_CC"; then
2176   ac_ct_CC=$CC
2177   # Extract the first word of "cc", so it can be a program name with args.
2178 set dummy cc; ac_word=$2
2179 echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   if test -n "$ac_ct_CC"; then
2185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190   IFS=$as_save_IFS
2191   test -z "$as_dir" && as_dir=.
2192   for ac_exec_ext in '' $ac_executable_extensions; do
2193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194     ac_cv_prog_ac_ct_CC="cc"
2195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200
2201 fi
2202 fi
2203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204 if test -n "$ac_ct_CC"; then
2205   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206 echo "${ECHO_T}$ac_ct_CC" >&6
2207 else
2208   echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2210 fi
2211
2212   CC=$ac_ct_CC
2213 else
2214   CC="$ac_cv_prog_CC"
2215 fi
2216
2217 fi
2218 if test -z "$CC"; then
2219   # Extract the first word of "cc", so it can be a program name with args.
2220 set dummy cc; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test -n "$CC"; then
2227   ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229   ac_prog_rejected=no
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2238        ac_prog_rejected=yes
2239        continue
2240      fi
2241     ac_cv_prog_CC="cc"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 if test $ac_prog_rejected = yes; then
2249   # We found a bogon in the path, so make sure we never use it.
2250   set dummy $ac_cv_prog_CC
2251   shift
2252   if test $# != 0; then
2253     # We chose a different compiler from the bogus one.
2254     # However, it has the same basename, so the bogon will be chosen
2255     # first if we set CC to just the basename; use the full file name.
2256     shift
2257     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2258   fi
2259 fi
2260 fi
2261 fi
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264   echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6
2266 else
2267   echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271 fi
2272 if test -z "$CC"; then
2273   if test -n "$ac_tool_prefix"; then
2274   for ac_prog in cl
2275   do
2276     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   if test -n "$CC"; then
2284   ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295     break 2
2296   fi
2297 done
2298 done
2299
2300 fi
2301 fi
2302 CC=$ac_cv_prog_CC
2303 if test -n "$CC"; then
2304   echo "$as_me:$LINENO: result: $CC" >&5
2305 echo "${ECHO_T}$CC" >&6
2306 else
2307   echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6
2309 fi
2310
2311     test -n "$CC" && break
2312   done
2313 fi
2314 if test -z "$CC"; then
2315   ac_ct_CC=$CC
2316   for ac_prog in cl
2317 do
2318   # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   if test -n "$ac_ct_CC"; then
2326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335     ac_cv_prog_ac_ct_CC="$ac_prog"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341
2342 fi
2343 fi
2344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2345 if test -n "$ac_ct_CC"; then
2346   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2347 echo "${ECHO_T}$ac_ct_CC" >&6
2348 else
2349   echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2351 fi
2352
2353   test -n "$ac_ct_CC" && break
2354 done
2355
2356   CC=$ac_ct_CC
2357 fi
2358
2359 fi
2360
2361
2362 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: no acceptable C compiler found in \$PATH
2365 See \`config.log' for more details." >&2;}
2366    { (exit 1); exit 1; }; }
2367
2368 # Provide some information about the compiler.
2369 echo "$as_me:$LINENO:" \
2370      "checking for C compiler version" >&5
2371 ac_compiler=`set X $ac_compile; echo $2`
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2373   (eval $ac_compiler --version </dev/null >&5) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2378   (eval $ac_compiler -v </dev/null >&5) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }
2382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2383   (eval $ac_compiler -V </dev/null >&5) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }
2387
2388 cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 ac_clean_files_save=$ac_clean_files
2404 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2405 # Try to create an executable without -o first, disregard a.out.
2406 # It will help us diagnose broken compilers, and finding out an intuition
2407 # of exeext.
2408 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2409 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2410 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2412   (eval $ac_link_default) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; then
2416   # Find the output, starting from the most likely.  This scheme is
2417 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2418 # resort.
2419
2420 # Be careful to initialize this variable, since it used to be cached.
2421 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 ac_cv_exeext=
2423 # b.out is created by i960 compilers.
2424 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425 do
2426   test -f "$ac_file" || continue
2427   case $ac_file in
2428     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2429         ;;
2430     conftest.$ac_ext )
2431         # This is the source file.
2432         ;;
2433     [ab].out )
2434         # We found the default executable, but exeext='' is most
2435         # certainly right.
2436         break;;
2437     *.* )
2438         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439         # FIXME: I believe we export ac_cv_exeext for Libtool,
2440         # but it would be cool to find out if it's true.  Does anybody
2441         # maintain Libtool? --akim.
2442         export ac_cv_exeext
2443         break;;
2444     * )
2445         break;;
2446   esac
2447 done
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&2;}
2456    { (exit 77); exit 77; }; }
2457 fi
2458
2459 ac_exeext=$ac_cv_exeext
2460 echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6
2462
2463 # Check the compiler produces executables we can run.  If not, either
2464 # the compiler is broken, or we cross compile.
2465 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2466 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2467 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2468 # If not cross compiling, check that we can run a simple program.
2469 if test "$cross_compiling" != yes; then
2470   if { ac_try='./$ac_file'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476     cross_compiling=no
2477   else
2478     if test "$cross_compiling" = maybe; then
2479         cross_compiling=yes
2480     else
2481         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&2;}
2487    { (exit 1); exit 1; }; }
2488     fi
2489   fi
2490 fi
2491 echo "$as_me:$LINENO: result: yes" >&5
2492 echo "${ECHO_T}yes" >&6
2493
2494 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 # Check the compiler produces executables we can run.  If not, either
2497 # the compiler is broken, or we cross compile.
2498 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2500 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501 echo "${ECHO_T}$cross_compiling" >&6
2502
2503 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2506   (eval $ac_link) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; then
2510   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 # `rm'.
2514 for ac_file in conftest.exe conftest conftest.*; do
2515   test -f "$ac_file" || continue
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2518     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519           export ac_cv_exeext
2520           break;;
2521     * ) break;;
2522   esac
2523 done
2524 else
2525   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest$ac_cv_exeext
2533 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534 echo "${ECHO_T}$ac_cv_exeext" >&6
2535
2536 rm -f conftest.$ac_ext
2537 EXEEXT=$ac_cv_exeext
2538 ac_exeext=$EXEEXT
2539 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2540 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2541 if test "${ac_cv_objext+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.o conftest.obj
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561   (eval $ac_compile) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; then
2565   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566   case $ac_file in
2567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2568     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569        break;;
2570   esac
2571 done
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579 See \`config.log' for more details." >&2;}
2580    { (exit 1); exit 1; }; }
2581 fi
2582
2583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584 fi
2585 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586 echo "${ECHO_T}$ac_cv_objext" >&6
2587 OBJEXT=$ac_cv_objext
2588 ac_objext=$OBJEXT
2589 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2590 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2591 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h.  */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h.  */
2600
2601 int
2602 main ()
2603 {
2604 #ifndef __GNUC__
2605        choke me
2606 #endif
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -z "$ac_c_werror_flag"
2622                          || test ! -s conftest.err'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_compiler_gnu=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 ac_compiler_gnu=no
2640 fi
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2643
2644 fi
2645 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2647 GCC=`test $ac_compiler_gnu = yes && echo yes`
2648 ac_test_CFLAGS=${CFLAGS+set}
2649 ac_save_CFLAGS=$CFLAGS
2650 CFLAGS="-g"
2651 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2653 if test "${ac_cv_prog_cc_g+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   cat >conftest.$ac_ext <<_ACEOF
2657 /* confdefs.h.  */
2658 _ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h.  */
2662
2663 int
2664 main ()
2665 {
2666
2667   ;
2668   return 0;
2669 }
2670 _ACEOF
2671 rm -f conftest.$ac_objext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673   (eval $ac_compile) 2>conftest.er1
2674   ac_status=$?
2675   grep -v '^ *+' conftest.er1 >conftest.err
2676   rm -f conftest.er1
2677   cat conftest.err >&5
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } &&
2680          { ac_try='test -z "$ac_c_werror_flag"
2681                          || test ! -s conftest.err'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; } &&
2687          { ac_try='test -s conftest.$ac_objext'
2688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; }; then
2693   ac_cv_prog_cc_g=yes
2694 else
2695   echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 ac_cv_prog_cc_g=no
2699 fi
2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 fi
2702 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2704 if test "$ac_test_CFLAGS" = set; then
2705   CFLAGS=$ac_save_CFLAGS
2706 elif test $ac_cv_prog_cc_g = yes; then
2707   if test "$GCC" = yes; then
2708     CFLAGS="-g -O2"
2709   else
2710     CFLAGS="-g"
2711   fi
2712 else
2713   if test "$GCC" = yes; then
2714     CFLAGS="-O2"
2715   else
2716     CFLAGS=
2717   fi
2718 fi
2719 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2720 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2721 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   ac_cv_prog_cc_stdc=no
2725 ac_save_CC=$CC
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732 #include <stdarg.h>
2733 #include <stdio.h>
2734 #include <sys/types.h>
2735 #include <sys/stat.h>
2736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2737 struct buf { int x; };
2738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2739 static char *e (p, i)
2740      char **p;
2741      int i;
2742 {
2743   return p[i];
2744 }
2745 static char *f (char * (*g) (char **, int), char **p, ...)
2746 {
2747   char *s;
2748   va_list v;
2749   va_start (v,p);
2750   s = g (p, va_arg (v,int));
2751   va_end (v);
2752   return s;
2753 }
2754
2755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2756    function prototypes and stuff, but not '\xHH' hex character constants.
2757    These don't provoke an error unfortunately, instead are silently treated
2758    as 'x'.  The following induces an error, until -std1 is added to get
2759    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2760    array size at least.  It's necessary to write '\x00'==0 to get something
2761    that's true only with -std1.  */
2762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763
2764 int test (int i, double x);
2765 struct s1 {int (*f) (int a);};
2766 struct s2 {int (*f) (double a);};
2767 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2768 int argc;
2769 char **argv;
2770 int
2771 main ()
2772 {
2773 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 # Don't try gcc -ansi; that turns off useful extensions and
2779 # breaks some systems' header files.
2780 # AIX                   -qlanglvl=ansi
2781 # Ultrix and OSF/1      -std1
2782 # HP-UX 10.20 and later -Ae
2783 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2784 # SVR4                  -Xc -D__EXTENSIONS__
2785 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786 do
2787   CC="$ac_save_CC $ac_arg"
2788   rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -z "$ac_c_werror_flag"
2798                          || test ! -s conftest.err'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; } &&
2804          { ac_try='test -s conftest.$ac_objext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   ac_cv_prog_cc_stdc=$ac_arg
2811 break
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 fi
2817 rm -f conftest.err conftest.$ac_objext
2818 done
2819 rm -f conftest.$ac_ext conftest.$ac_objext
2820 CC=$ac_save_CC
2821
2822 fi
2823
2824 case "x$ac_cv_prog_cc_stdc" in
2825   x|xno)
2826     echo "$as_me:$LINENO: result: none needed" >&5
2827 echo "${ECHO_T}none needed" >&6 ;;
2828   *)
2829     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2830 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2831     CC="$CC $ac_cv_prog_cc_stdc" ;;
2832 esac
2833
2834 # Some people use a C++ compiler to compile C.  Since we use `exit',
2835 # in C++ we need to declare it.  In case someone uses the same compiler
2836 # for both compiling C and C++ we need to have the C++ compiler decide
2837 # the declaration of exit, since it's the most demanding environment.
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #ifndef __cplusplus
2840   choke me
2841 #endif
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845   (eval $ac_compile) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -z "$ac_c_werror_flag"
2853                          || test ! -s conftest.err'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; } &&
2859          { ac_try='test -s conftest.$ac_objext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   for ac_declaration in \
2866    '' \
2867    'extern "C" void std::exit (int) throw (); using std::exit;' \
2868    'extern "C" void std::exit (int); using std::exit;' \
2869    'extern "C" void exit (int) throw ();' \
2870    'extern "C" void exit (int);' \
2871    'void exit (int);'
2872 do
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879 $ac_declaration
2880 #include <stdlib.h>
2881 int
2882 main ()
2883 {
2884 exit (42);
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891   (eval $ac_compile) 2>conftest.er1
2892   ac_status=$?
2893   grep -v '^ *+' conftest.er1 >conftest.err
2894   rm -f conftest.er1
2895   cat conftest.err >&5
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); } &&
2898          { ac_try='test -z "$ac_c_werror_flag"
2899                          || test ! -s conftest.err'
2900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901   (eval $ac_try) 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }; } &&
2905          { ac_try='test -s conftest.$ac_objext'
2906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907   (eval $ac_try) 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; }; then
2911   :
2912 else
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 continue
2917 fi
2918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919   cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h.  */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h.  */
2925 $ac_declaration
2926 int
2927 main ()
2928 {
2929 exit (42);
2930   ;
2931   return 0;
2932 }
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936   (eval $ac_compile) 2>conftest.er1
2937   ac_status=$?
2938   grep -v '^ *+' conftest.er1 >conftest.err
2939   rm -f conftest.er1
2940   cat conftest.err >&5
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } &&
2943          { ac_try='test -z "$ac_c_werror_flag"
2944                          || test ! -s conftest.err'
2945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946   (eval $ac_try) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; } &&
2950          { ac_try='test -s conftest.$ac_objext'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; }; then
2956   break
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961 fi
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963 done
2964 rm -f conftest*
2965 if test -n "$ac_declaration"; then
2966   echo '#ifdef __cplusplus' >>confdefs.h
2967   echo $ac_declaration      >>confdefs.h
2968   echo '#endif'             >>confdefs.h
2969 fi
2970
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 fi
2976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_ext=c
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 DEPDIR="${am__leading_dot}deps"
2983
2984           ac_config_commands="$ac_config_commands depfiles"
2985
2986
2987 am_make=${MAKE-make}
2988 cat > confinc << 'END'
2989 am__doit:
2990         @echo done
2991 .PHONY: am__doit
2992 END
2993 # If we don't find an include directive, just comment out the code.
2994 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2995 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2996 am__include="#"
2997 am__quote=
2998 _am_result=none
2999 # First try GNU make style include.
3000 echo "include confinc" > confmf
3001 # We grep out `Entering directory' and `Leaving directory'
3002 # messages which can occur if `w' ends up in MAKEFLAGS.
3003 # In particular we don't look at `^make:' because GNU make might
3004 # be invoked under some other name (usually "gmake"), in which
3005 # case it prints its new name instead of `make'.
3006 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3007    am__include=include
3008    am__quote=
3009    _am_result=GNU
3010 fi
3011 # Now try BSD make style include.
3012 if test "$am__include" = "#"; then
3013    echo '.include "confinc"' > confmf
3014    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3015       am__include=.include
3016       am__quote="\""
3017       _am_result=BSD
3018    fi
3019 fi
3020
3021
3022 echo "$as_me:$LINENO: result: $_am_result" >&5
3023 echo "${ECHO_T}$_am_result" >&6
3024 rm -f confinc confmf
3025
3026 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3027 if test "${enable_dependency_tracking+set}" = set; then
3028   enableval="$enable_dependency_tracking"
3029
3030 fi;
3031 if test "x$enable_dependency_tracking" != xno; then
3032   am_depcomp="$ac_aux_dir/depcomp"
3033   AMDEPBACKSLASH='\'
3034 fi
3035
3036
3037 if test "x$enable_dependency_tracking" != xno; then
3038   AMDEP_TRUE=
3039   AMDEP_FALSE='#'
3040 else
3041   AMDEP_TRUE='#'
3042   AMDEP_FALSE=
3043 fi
3044
3045
3046
3047
3048 depcc="$CC"   am_compiler_list=
3049
3050 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3052 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3056   # We make a subdir and do the tests there.  Otherwise we can end up
3057   # making bogus files that we don't know about and never remove.  For
3058   # instance it was reported that on HP-UX the gcc test will end up
3059   # making a dummy file named `D' -- because `-MD' means `put the output
3060   # in D'.
3061   mkdir conftest.dir
3062   # Copy depcomp to subdir because otherwise we won't find it if we're
3063   # using a relative directory.
3064   cp "$am_depcomp" conftest.dir
3065   cd conftest.dir
3066   # We will build objects and dependencies in a subdirectory because
3067   # it helps to detect inapplicable dependency modes.  For instance
3068   # both Tru64's cc and ICC support -MD to output dependencies as a
3069   # side effect of compilation, but ICC will put the dependencies in
3070   # the current directory while Tru64 will put them in the object
3071   # directory.
3072   mkdir sub
3073
3074   am_cv_CC_dependencies_compiler_type=none
3075   if test "$am_compiler_list" = ""; then
3076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3077   fi
3078   for depmode in $am_compiler_list; do
3079     # Setup a source with many dependencies, because some compilers
3080     # like to wrap large dependency lists on column 80 (with \), and
3081     # we should not choose a depcomp mode which is confused by this.
3082     #
3083     # We need to recreate these files for each test, as the compiler may
3084     # overwrite some of them when testing with obscure command lines.
3085     # This happens at least with the AIX C compiler.
3086     : > sub/conftest.c
3087     for i in 1 2 3 4 5 6; do
3088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3090       # Solaris 8's {/usr,}/bin/sh.
3091       touch sub/conftst$i.h
3092     done
3093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3094
3095     case $depmode in
3096     nosideeffect)
3097       # after this tag, mechanisms are not by side-effect, so they'll
3098       # only be used when explicitly requested
3099       if test "x$enable_dependency_tracking" = xyes; then
3100         continue
3101       else
3102         break
3103       fi
3104       ;;
3105     none) break ;;
3106     esac
3107     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3108     # mode.  It turns out that the SunPro C++ compiler does not properly
3109     # handle `-M -o', and we need to detect this.
3110     if depmode=$depmode \
3111        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3112        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3113        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3114          >/dev/null 2>conftest.err &&
3115        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3116        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3117        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3118       # icc doesn't choke on unknown options, it will just issue warnings
3119       # or remarks (even with -Werror).  So we grep stderr for any message
3120       # that says an option was ignored or not supported.
3121       # When given -MP, icc 7.0 and 7.1 complain thusly:
3122       #   icc: Command line warning: ignoring option '-M'; no argument required
3123       # The diagnosis changed in icc 8.0:
3124       #   icc: Command line remark: option '-MP' not supported
3125       if (grep 'ignoring option' conftest.err ||
3126           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3127         am_cv_CC_dependencies_compiler_type=$depmode
3128         break
3129       fi
3130     fi
3131   done
3132
3133   cd ..
3134   rm -rf conftest.dir
3135 else
3136   am_cv_CC_dependencies_compiler_type=none
3137 fi
3138
3139 fi
3140 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3141 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3142 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3143
3144
3145
3146 if
3147   test "x$enable_dependency_tracking" != xno \
3148   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3149   am__fastdepCC_TRUE=
3150   am__fastdepCC_FALSE='#'
3151 else
3152   am__fastdepCC_TRUE='#'
3153   am__fastdepCC_FALSE=
3154 fi
3155
3156
3157
3158 # Check whether --enable-static or --disable-static was given.
3159 if test "${enable_static+set}" = set; then
3160   enableval="$enable_static"
3161   p=${PACKAGE-default}
3162     case $enableval in
3163     yes) enable_static=yes ;;
3164     no) enable_static=no ;;
3165     *)
3166      enable_static=no
3167       # Look at the argument we got.  We use all the common list separators.
3168       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3169       for pkg in $enableval; do
3170         IFS="$lt_save_ifs"
3171         if test "X$pkg" = "X$p"; then
3172           enable_static=yes
3173         fi
3174       done
3175       IFS="$lt_save_ifs"
3176       ;;
3177     esac
3178 else
3179   enable_static=no
3180 fi;
3181
3182
3183 # Check whether --enable-shared or --disable-shared was given.
3184 if test "${enable_shared+set}" = set; then
3185   enableval="$enable_shared"
3186   p=${PACKAGE-default}
3187     case $enableval in
3188     yes) enable_shared=yes ;;
3189     no) enable_shared=no ;;
3190     *)
3191       enable_shared=no
3192       # Look at the argument we got.  We use all the common list separators.
3193       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3194       for pkg in $enableval; do
3195         IFS="$lt_save_ifs"
3196         if test "X$pkg" = "X$p"; then
3197           enable_shared=yes
3198         fi
3199       done
3200       IFS="$lt_save_ifs"
3201       ;;
3202     esac
3203 else
3204   enable_shared=yes
3205 fi;
3206
3207 # Check whether --enable-fast-install or --disable-fast-install was given.
3208 if test "${enable_fast_install+set}" = set; then
3209   enableval="$enable_fast_install"
3210   p=${PACKAGE-default}
3211     case $enableval in
3212     yes) enable_fast_install=yes ;;
3213     no) enable_fast_install=no ;;
3214     *)
3215       enable_fast_install=no
3216       # Look at the argument we got.  We use all the common list separators.
3217       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3218       for pkg in $enableval; do
3219         IFS="$lt_save_ifs"
3220         if test "X$pkg" = "X$p"; then
3221           enable_fast_install=yes
3222         fi
3223       done
3224       IFS="$lt_save_ifs"
3225       ;;
3226     esac
3227 else
3228   enable_fast_install=yes
3229 fi;
3230
3231 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3233 if test "${lt_cv_path_SED+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236   # Loop through the user's path and test for sed and gsed.
3237 # Then use that list of sed's as ones to test for truncation.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241   IFS=$as_save_IFS
3242   test -z "$as_dir" && as_dir=.
3243   for lt_ac_prog in sed gsed; do
3244     for ac_exec_ext in '' $ac_executable_extensions; do
3245       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3246         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3247       fi
3248     done
3249   done
3250 done
3251 lt_ac_max=0
3252 lt_ac_count=0
3253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3254 # along with /bin/sed that truncates output.
3255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3256   test ! -f $lt_ac_sed && break
3257   cat /dev/null > conftest.in
3258   lt_ac_count=0
3259   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3260   # Check for GNU sed and select it if it is found.
3261   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3262     lt_cv_path_SED=$lt_ac_sed
3263     break
3264   fi
3265   while true; do
3266     cat conftest.in conftest.in >conftest.tmp
3267     mv conftest.tmp conftest.in
3268     cp conftest.in conftest.nl
3269     echo >>conftest.nl
3270     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3271     cmp -s conftest.out conftest.nl || break
3272     # 10000 chars as input seems more than enough
3273     test $lt_ac_count -gt 10 && break
3274     lt_ac_count=`expr $lt_ac_count + 1`
3275     if test $lt_ac_count -gt $lt_ac_max; then
3276       lt_ac_max=$lt_ac_count
3277       lt_cv_path_SED=$lt_ac_sed
3278     fi
3279   done
3280 done
3281 SED=$lt_cv_path_SED
3282
3283 fi
3284
3285 echo "$as_me:$LINENO: result: $SED" >&5
3286 echo "${ECHO_T}$SED" >&6
3287
3288 echo "$as_me:$LINENO: checking for egrep" >&5
3289 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290 if test "${ac_cv_prog_egrep+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294     then ac_cv_prog_egrep='grep -E'
3295     else ac_cv_prog_egrep='egrep'
3296     fi
3297 fi
3298 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3299 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300  EGREP=$ac_cv_prog_egrep
3301
3302
3303
3304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3305 if test "${with_gnu_ld+set}" = set; then
3306   withval="$with_gnu_ld"
3307   test "$withval" = no || with_gnu_ld=yes
3308 else
3309   with_gnu_ld=no
3310 fi;
3311 ac_prog=ld
3312 if test "$GCC" = yes; then
3313   # Check if gcc -print-prog-name=ld gives a path.
3314   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3315 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3316   case $host in
3317   *-*-mingw*)
3318     # gcc leaves a trailing carriage return which upsets mingw
3319     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3320   *)
3321     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3322   esac
3323   case $ac_prog in
3324     # Accept absolute paths.
3325     [\\/]* | ?:[\\/]*)
3326       re_direlt='/[^/][^/]*/\.\./'
3327       # Canonicalize the pathname of ld
3328       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3331       done
3332       test -z "$LD" && LD="$ac_prog"
3333       ;;
3334   "")
3335     # If it fails, then pretend we aren't using GCC.
3336     ac_prog=ld
3337     ;;
3338   *)
3339     # If it is relative, then search for the first ld in PATH.
3340     with_gnu_ld=unknown
3341     ;;
3342   esac
3343 elif test "$with_gnu_ld" = yes; then
3344   echo "$as_me:$LINENO: checking for GNU ld" >&5
3345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3346 else
3347   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3349 fi
3350 if test "${lt_cv_path_LD+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   if test -z "$LD"; then
3354   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3355   for ac_dir in $PATH; do
3356     IFS="$lt_save_ifs"
3357     test -z "$ac_dir" && ac_dir=.
3358     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359       lt_cv_path_LD="$ac_dir/$ac_prog"
3360       # Check to see if the program is GNU ld.  I'd rather use --version,
3361       # but apparently some GNU ld's only accept -v.
3362       # Break only if it was the GNU/non-GNU ld that we prefer.
3363       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3364       *GNU* | *'with BFD'*)
3365         test "$with_gnu_ld" != no && break
3366         ;;
3367       *)
3368         test "$with_gnu_ld" != yes && break
3369         ;;
3370       esac
3371     fi
3372   done
3373   IFS="$lt_save_ifs"
3374 else
3375   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3376 fi
3377 fi
3378
3379 LD="$lt_cv_path_LD"
3380 if test -n "$LD"; then
3381   echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389    { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 case `$LD -v 2>&1 </dev/null` in
3397 *GNU* | *'with BFD'*)
3398   lt_cv_prog_gnu_ld=yes
3399   ;;
3400 *)
3401   lt_cv_prog_gnu_ld=no
3402   ;;
3403 esac
3404 fi
3405 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3406 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3407 with_gnu_ld=$lt_cv_prog_gnu_ld
3408
3409
3410 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3411 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3412 if test "${lt_cv_ld_reload_flag+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   lt_cv_ld_reload_flag='-r'
3416 fi
3417 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3418 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3419 reload_flag=$lt_cv_ld_reload_flag
3420 case $reload_flag in
3421 "" | " "*) ;;
3422 *) reload_flag=" $reload_flag" ;;
3423 esac
3424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3425
3426 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3427 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3428 if test "${lt_cv_path_NM+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   if test -n "$NM"; then
3432   # Let the user override the test.
3433   lt_cv_path_NM="$NM"
3434 else
3435   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3436   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3437     IFS="$lt_save_ifs"
3438     test -z "$ac_dir" && ac_dir=.
3439     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3440     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3441       # Check to see if the nm accepts a BSD-compat flag.
3442       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3443       #   nm: unknown option "B" ignored
3444       # Tru64's nm complains that /dev/null is an invalid object file
3445       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3446       */dev/null* | *'Invalid file or object type'*)
3447         lt_cv_path_NM="$tmp_nm -B"
3448         break
3449         ;;
3450       *)
3451         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3452         */dev/null*)
3453           lt_cv_path_NM="$tmp_nm -p"
3454           break
3455           ;;
3456         *)
3457           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3458           continue # so that we can try to find one that supports BSD flags
3459           ;;
3460         esac
3461       esac
3462     fi
3463   done
3464   IFS="$lt_save_ifs"
3465   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3466 fi
3467 fi
3468 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3469 echo "${ECHO_T}$lt_cv_path_NM" >&6
3470 NM="$lt_cv_path_NM"
3471
3472 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3473 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3474 LN_S=$as_ln_s
3475 if test "$LN_S" = "ln -s"; then
3476   echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478 else
3479   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3480 echo "${ECHO_T}no, using $LN_S" >&6
3481 fi
3482
3483 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3484 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3485 if test "${lt_cv_deplibs_check_method+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   lt_cv_file_magic_cmd='$MAGIC_CMD'
3489 lt_cv_file_magic_test_file=
3490 lt_cv_deplibs_check_method='unknown'
3491 # Need to set the preceding variable on all platforms that support
3492 # interlibrary dependencies.
3493 # 'none' -- dependencies not supported.
3494 # `unknown' -- same as none, but documents that we really don't know.
3495 # 'pass_all' -- all dependencies passed with no checks.
3496 # 'test_compile' -- check by making test program.
3497 # 'file_magic [[regex]]' -- check by looking for files in library path
3498 # which responds to the $file_magic_cmd with a given extended regex.
3499 # If you have `file' or equivalent on your system and you're not sure
3500 # whether `pass_all' will *always* work, you probably want this one.
3501
3502 case $host_os in
3503 aix4* | aix5*)
3504   lt_cv_deplibs_check_method=pass_all
3505   ;;
3506
3507 beos*)
3508   lt_cv_deplibs_check_method=pass_all
3509   ;;
3510
3511 bsdi4*)
3512   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3513   lt_cv_file_magic_cmd='/usr/bin/file -L'
3514   lt_cv_file_magic_test_file=/shlib/libc.so
3515   ;;
3516
3517 cygwin*)
3518   # func_win32_libid is a shell function defined in ltmain.sh
3519   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3520   lt_cv_file_magic_cmd='func_win32_libid'
3521   ;;
3522
3523 mingw* | pw32*)
3524   # Base MSYS/MinGW do not provide the 'file' command needed by
3525   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3526   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3527   lt_cv_file_magic_cmd='$OBJDUMP -f'
3528   ;;
3529
3530 darwin* | rhapsody*)
3531   lt_cv_deplibs_check_method=pass_all
3532   ;;
3533
3534 freebsd* | kfreebsd*-gnu)
3535   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3536     case $host_cpu in
3537     i*86 )
3538       # Not sure whether the presence of OpenBSD here was a mistake.
3539       # Let's accept both of them until this is cleared up.
3540       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3541       lt_cv_file_magic_cmd=/usr/bin/file
3542       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3543       ;;
3544     esac
3545   else
3546     lt_cv_deplibs_check_method=pass_all
3547   fi
3548   ;;
3549
3550 gnu*)
3551   lt_cv_deplibs_check_method=pass_all
3552   ;;
3553
3554 hpux10.20* | hpux11*)
3555   lt_cv_file_magic_cmd=/usr/bin/file
3556   case "$host_cpu" in
3557   ia64*)
3558     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3559     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3560     ;;
3561   hppa*64*)
3562     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]'
3563     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3564     ;;
3565   *)
3566     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3567     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3568     ;;
3569   esac
3570   ;;
3571
3572 irix5* | irix6* | nonstopux*)
3573   case $LD in
3574   *-32|*"-32 ") libmagic=32-bit;;
3575   *-n32|*"-n32 ") libmagic=N32;;
3576   *-64|*"-64 ") libmagic=64-bit;;
3577   *) libmagic=never-match;;
3578   esac
3579   lt_cv_deplibs_check_method=pass_all
3580   ;;
3581
3582 # This must be Linux ELF.
3583 linux*)
3584   case $host_cpu in
3585   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3586     lt_cv_deplibs_check_method=pass_all ;;
3587   *)
3588     # glibc up to 2.1.1 does not perform some relocations on ARM
3589     # this will be overridden with pass_all, but let us keep it just in case
3590     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3591   esac
3592   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3593   lt_cv_deplibs_check_method=pass_all
3594   ;;
3595
3596 netbsd*)
3597   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3599   else
3600     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3601   fi
3602   ;;
3603
3604 newos6*)
3605   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3606   lt_cv_file_magic_cmd=/usr/bin/file
3607   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3608   ;;
3609
3610 nto-qnx*)
3611   lt_cv_deplibs_check_method=unknown
3612   ;;
3613
3614 openbsd*)
3615   lt_cv_file_magic_cmd=/usr/bin/file
3616   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3617   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3618     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3619   else
3620     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3621   fi
3622   ;;
3623
3624 osf3* | osf4* | osf5*)
3625   lt_cv_deplibs_check_method=pass_all
3626   ;;
3627
3628 sco3.2v5*)
3629   lt_cv_deplibs_check_method=pass_all
3630   ;;
3631
3632 solaris*)
3633   lt_cv_deplibs_check_method=pass_all
3634   ;;
3635
3636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3637   case $host_vendor in
3638   motorola)
3639     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]'
3640     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3641     ;;
3642   ncr)
3643     lt_cv_deplibs_check_method=pass_all
3644     ;;
3645   sequent)
3646     lt_cv_file_magic_cmd='/bin/file'
3647     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3648     ;;
3649   sni)
3650     lt_cv_file_magic_cmd='/bin/file'
3651     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3652     lt_cv_file_magic_test_file=/lib/libc.so
3653     ;;
3654   siemens)
3655     lt_cv_deplibs_check_method=pass_all
3656     ;;
3657   esac
3658   ;;
3659
3660 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3661   lt_cv_deplibs_check_method=pass_all
3662   ;;
3663 esac
3664
3665 fi
3666 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3667 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3668 file_magic_cmd=$lt_cv_file_magic_cmd
3669 deplibs_check_method=$lt_cv_deplibs_check_method
3670 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3671
3672
3673
3674
3675 # If no C compiler was specified, use CC.
3676 LTCC=${LTCC-"$CC"}
3677
3678 # Allow CC to be a program name with arguments.
3679 compiler=$CC
3680
3681
3682 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3683 if test "${enable_libtool_lock+set}" = set; then
3684   enableval="$enable_libtool_lock"
3685
3686 fi;
3687 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3688
3689 # Some flags need to be propagated to the compiler or linker for good
3690 # libtool support.
3691 case $host in
3692 ia64-*-hpux*)
3693   # Find out which ABI we are using.
3694   echo 'int i;' > conftest.$ac_ext
3695   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696   (eval $ac_compile) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; then
3700     case `/usr/bin/file conftest.$ac_objext` in
3701     *ELF-32*)
3702       HPUX_IA64_MODE="32"
3703       ;;
3704     *ELF-64*)
3705       HPUX_IA64_MODE="64"
3706       ;;
3707     esac
3708   fi
3709   rm -rf conftest*
3710   ;;
3711 *-*-irix6*)
3712   # Find out which ABI we are using.
3713   echo '#line 3713 "configure"' > conftest.$ac_ext
3714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715   (eval $ac_compile) 2>&5
3716   ac_status=$?
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); }; then
3719    if test "$lt_cv_prog_gnu_ld" = yes; then
3720     case `/usr/bin/file conftest.$ac_objext` in
3721     *32-bit*)
3722       LD="${LD-ld} -melf32bsmip"
3723       ;;
3724     *N32*)
3725       LD="${LD-ld} -melf32bmipn32"
3726       ;;
3727     *64-bit*)
3728       LD="${LD-ld} -melf64bmip"
3729       ;;
3730     esac
3731    else
3732     case `/usr/bin/file conftest.$ac_objext` in
3733     *32-bit*)
3734       LD="${LD-ld} -32"
3735       ;;
3736     *N32*)
3737       LD="${LD-ld} -n32"
3738       ;;
3739     *64-bit*)
3740       LD="${LD-ld} -64"
3741       ;;
3742     esac
3743    fi
3744   fi
3745   rm -rf conftest*
3746   ;;
3747
3748 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3749   # Find out which ABI we are using.
3750   echo 'int i;' > conftest.$ac_ext
3751   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752   (eval $ac_compile) 2>&5
3753   ac_status=$?
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); }; then
3756     case "`/usr/bin/file conftest.o`" in
3757     *32-bit*)
3758       case $host in
3759         x86_64-*linux*)
3760           LD="${LD-ld} -m elf_i386"
3761           ;;
3762         ppc64-*linux*|powerpc64-*linux*)
3763           LD="${LD-ld} -m elf32ppclinux"
3764           ;;
3765         s390x-*linux*)
3766           LD="${LD-ld} -m elf_s390"
3767           ;;
3768         sparc64-*linux*)
3769           LD="${LD-ld} -m elf32_sparc"
3770           ;;
3771       esac
3772       ;;
3773     *64-bit*)
3774       case $host in
3775         x86_64-*linux*)
3776           LD="${LD-ld} -m elf_x86_64"
3777           ;;
3778         ppc*-*linux*|powerpc*-*linux*)
3779           LD="${LD-ld} -m elf64ppc"
3780           ;;
3781         s390*-*linux*)
3782           LD="${LD-ld} -m elf64_s390"
3783           ;;
3784         sparc*-*linux*)
3785           LD="${LD-ld} -m elf64_sparc"
3786           ;;
3787       esac
3788       ;;
3789     esac
3790   fi
3791   rm -rf conftest*
3792   ;;
3793
3794 *-*-sco3.2v5*)
3795   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3796   SAVE_CFLAGS="$CFLAGS"
3797   CFLAGS="$CFLAGS -belf"
3798   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3799 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3800 if test "${lt_cv_cc_needs_belf+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   ac_ext=c
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808
3809      cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826   (eval $ac_link) 2>conftest.er1
3827   ac_status=$?
3828   grep -v '^ *+' conftest.er1 >conftest.err
3829   rm -f conftest.er1
3830   cat conftest.err >&5
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } &&
3833          { ac_try='test -z "$ac_c_werror_flag"
3834                          || test ! -s conftest.err'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; } &&
3840          { ac_try='test -s conftest$ac_exeext'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; }; then
3846   lt_cv_cc_needs_belf=yes
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 lt_cv_cc_needs_belf=no
3852 fi
3853 rm -f conftest.err conftest.$ac_objext \
3854       conftest$ac_exeext conftest.$ac_ext
3855      ac_ext=c
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860
3861 fi
3862 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3863 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3864   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3865     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3866     CFLAGS="$SAVE_CFLAGS"
3867   fi
3868   ;;
3869
3870 esac
3871
3872 need_locks="$enable_libtool_lock"
3873
3874
3875 ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3882 # On Suns, sometimes $CPP names a directory.
3883 if test -n "$CPP" && test -d "$CPP"; then
3884   CPP=
3885 fi
3886 if test -z "$CPP"; then
3887   if test "${ac_cv_prog_CPP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890       # Double quotes because CPP needs to be expanded
3891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3892     do
3893       ac_preproc_ok=false
3894 for ac_c_preproc_warn_flag in '' yes
3895 do
3896   # Use a header file that comes with gcc, so configuring glibc
3897   # with a fresh cross-compiler works.
3898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899   # <limits.h> exists even on freestanding compilers.
3900   # On the NeXT, cc -E runs the code through the compiler's parser,
3901   # not just through cpp. "Syntax error" is here to catch this case.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #ifdef __STDC__
3909 # include <limits.h>
3910 #else
3911 # include <assert.h>
3912 #endif
3913                      Syntax error
3914 _ACEOF
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } >/dev/null; then
3923   if test -s conftest.err; then
3924     ac_cpp_err=$ac_c_preproc_warn_flag
3925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3926   else
3927     ac_cpp_err=
3928   fi
3929 else
3930   ac_cpp_err=yes
3931 fi
3932 if test -z "$ac_cpp_err"; then
3933   :
3934 else
3935   echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938   # Broken: fails on valid input.
3939 continue
3940 fi
3941 rm -f conftest.err conftest.$ac_ext
3942
3943   # OK, works on sane cases.  Now check whether non-existent headers
3944   # can be detected and how.
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 #include <ac_nonexistent.h>
3952 _ACEOF
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } >/dev/null; then
3961   if test -s conftest.err; then
3962     ac_cpp_err=$ac_c_preproc_warn_flag
3963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3964   else
3965     ac_cpp_err=
3966   fi
3967 else
3968   ac_cpp_err=yes
3969 fi
3970 if test -z "$ac_cpp_err"; then
3971   # Broken: success on invalid input.
3972 continue
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977   # Passes both tests.
3978 ac_preproc_ok=:
3979 break
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982
3983 done
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then
3987   break
3988 fi
3989
3990     done
3991     ac_cv_prog_CPP=$CPP
3992
3993 fi
3994   CPP=$ac_cv_prog_CPP
3995 else
3996   ac_cv_prog_CPP=$CPP
3997 fi
3998 echo "$as_me:$LINENO: result: $CPP" >&5
3999 echo "${ECHO_T}$CPP" >&6
4000 ac_preproc_ok=false
4001 for ac_c_preproc_warn_flag in '' yes
4002 do
4003   # Use a header file that comes with gcc, so configuring glibc
4004   # with a fresh cross-compiler works.
4005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006   # <limits.h> exists even on freestanding compilers.
4007   # On the NeXT, cc -E runs the code through the compiler's parser,
4008   # not just through cpp. "Syntax error" is here to catch this case.
4009   cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 #ifdef __STDC__
4016 # include <limits.h>
4017 #else
4018 # include <assert.h>
4019 #endif
4020                      Syntax error
4021 _ACEOF
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } >/dev/null; then
4030   if test -s conftest.err; then
4031     ac_cpp_err=$ac_c_preproc_warn_flag
4032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4033   else
4034     ac_cpp_err=
4035   fi
4036 else
4037   ac_cpp_err=yes
4038 fi
4039 if test -z "$ac_cpp_err"; then
4040   :
4041 else
4042   echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045   # Broken: fails on valid input.
4046 continue
4047 fi
4048 rm -f conftest.err conftest.$ac_ext
4049
4050   # OK, works on sane cases.  Now check whether non-existent headers
4051   # can be detected and how.
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 #include <ac_nonexistent.h>
4059 _ACEOF
4060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } >/dev/null; then
4068   if test -s conftest.err; then
4069     ac_cpp_err=$ac_c_preproc_warn_flag
4070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4071   else
4072     ac_cpp_err=
4073   fi
4074 else
4075   ac_cpp_err=yes
4076 fi
4077 if test -z "$ac_cpp_err"; then
4078   # Broken: success on invalid input.
4079 continue
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084   # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4094   :
4095 else
4096   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&5
4098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details." >&2;}
4100    { (exit 1); exit 1; }; }
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109
4110 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <stdlib.h>
4122 #include <stdarg.h>
4123 #include <string.h>
4124 #include <float.h>
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136   (eval $ac_compile) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"
4144                          || test ! -s conftest.err'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; } &&
4150          { ac_try='test -s conftest.$ac_objext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_cv_header_stdc=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164
4165 if test $ac_cv_header_stdc = yes; then
4166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <string.h>
4174
4175 _ACEOF
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177   $EGREP "memchr" >/dev/null 2>&1; then
4178   :
4179 else
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 fi
4185
4186 if test $ac_cv_header_stdc = yes; then
4187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <stdlib.h>
4195
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "free" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4204
4205 fi
4206
4207 if test $ac_cv_header_stdc = yes; then
4208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209   if test "$cross_compiling" = yes; then
4210   :
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #include <ctype.h>
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 #else
4223 # define ISLOWER(c) \
4224                    (('a' <= (c) && (c) <= 'i') \
4225                      || ('j' <= (c) && (c) <= 'r') \
4226                      || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #endif
4229
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231 int
4232 main ()
4233 {
4234   int i;
4235   for (i = 0; i < 256; i++)
4236     if (XOR (islower (i), ISLOWER (i))
4237         || toupper (i) != TOUPPER (i))
4238       exit(2);
4239   exit (0);
4240 }
4241 _ACEOF
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244   (eval $ac_link) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   :
4254 else
4255   echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 ( exit $ac_status )
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 fi
4264 fi
4265 fi
4266 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4268 if test $ac_cv_header_stdc = yes; then
4269
4270 cat >>confdefs.h <<\_ACEOF
4271 #define STDC_HEADERS 1
4272 _ACEOF
4273
4274 fi
4275
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287                   inttypes.h stdint.h unistd.h
4288 do
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301 $ac_includes_default
4302
4303 #include <$ac_header>
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307   (eval $ac_compile) 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } &&
4314          { ac_try='test -z "$ac_c_werror_flag"
4315                          || test ! -s conftest.err'
4316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317   (eval $ac_try) 2>&5
4318   ac_status=$?
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); }; } &&
4321          { ac_try='test -s conftest.$ac_objext'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   eval "$as_ac_Header=yes"
4328 else
4329   echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 eval "$as_ac_Header=no"
4333 fi
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339   cat >>confdefs.h <<_ACEOF
4340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4341 _ACEOF
4342
4343 fi
4344
4345 done
4346
4347
4348
4349 for ac_header in dlfcn.h
4350 do
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353   echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 fi
4358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4360 else
4361   # Is the header compilable?
4362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 $ac_includes_default
4371 #include <$ac_header>
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375   (eval $ac_compile) 2>conftest.er1
4376   ac_status=$?
4377   grep -v '^ *+' conftest.er1 >conftest.err
4378   rm -f conftest.er1
4379   cat conftest.err >&5
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } &&
4382          { ac_try='test -z "$ac_c_werror_flag"
4383                          || test ! -s conftest.err'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; }; then
4395   ac_header_compiler=yes
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 ac_header_compiler=no
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4404 echo "${ECHO_T}$ac_header_compiler" >&6
4405
4406 # Is the header present?
4407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 #include <$ac_header>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null; then
4425   if test -s conftest.err; then
4426     ac_cpp_err=$ac_c_preproc_warn_flag
4427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   ac_header_preproc=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440   ac_header_preproc=no
4441 fi
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4445
4446 # So?  What about this header?
4447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4448   yes:no: )
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453     ac_header_preproc=yes
4454     ;;
4455   no:yes:* )
4456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4468     (
4469       cat <<\_ASBOX
4470 ## ------------------------------------------ ##
4471 ## Report this to the AC_PACKAGE_NAME lists.  ##
4472 ## ------------------------------------------ ##
4473 _ASBOX
4474     ) |
4475       sed "s/^/$as_me: WARNING:     /" >&2
4476     ;;
4477 esac
4478 echo "$as_me:$LINENO: checking for $ac_header" >&5
4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   eval "$as_ac_Header=\$ac_header_preproc"
4484 fi
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487
4488 fi
4489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490   cat >>confdefs.h <<_ACEOF
4491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492 _ACEOF
4493
4494 fi
4495
4496 done
4497
4498 ac_ext=cc
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -n "$ac_tool_prefix"; then
4504   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4505   do
4506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_CXX+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   if test -n "$CXX"; then
4514   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_exec_ext in '' $ac_executable_extensions; do
4522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529
4530 fi
4531 fi
4532 CXX=$ac_cv_prog_CXX
4533 if test -n "$CXX"; then
4534   echo "$as_me:$LINENO: result: $CXX" >&5
4535 echo "${ECHO_T}$CXX" >&6
4536 else
4537   echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541     test -n "$CXX" && break
4542   done
4543 fi
4544 if test -z "$CXX"; then
4545   ac_ct_CXX=$CXX
4546   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   if test -n "$ac_ct_CXX"; then
4556   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   for ac_exec_ext in '' $ac_executable_extensions; do
4564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565     ac_cv_prog_ac_ct_CXX="$ac_prog"
4566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570 done
4571
4572 fi
4573 fi
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4577 echo "${ECHO_T}$ac_ct_CXX" >&6
4578 else
4579   echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4581 fi
4582
4583   test -n "$ac_ct_CXX" && break
4584 done
4585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4586
4587   CXX=$ac_ct_CXX
4588 fi
4589
4590
4591 # Provide some information about the compiler.
4592 echo "$as_me:$LINENO:" \
4593      "checking for C++ compiler version" >&5
4594 ac_compiler=`set X $ac_compile; echo $2`
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4596   (eval $ac_compiler --version </dev/null >&5) 2>&5
4597   ac_status=$?
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4601   (eval $ac_compiler -v </dev/null >&5) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4606   (eval $ac_compiler -V </dev/null >&5) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }
4610
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h.  */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626 #ifndef __GNUC__
4627        choke me
4628 #endif
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636   (eval $ac_compile) 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } &&
4643          { ac_try='test -z "$ac_cxx_werror_flag"
4644                          || test ! -s conftest.err'
4645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646   (eval $ac_try) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; } &&
4650          { ac_try='test -s conftest.$ac_objext'
4651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652   (eval $ac_try) 2>&5
4653   ac_status=$?
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); }; }; then
4656   ac_compiler_gnu=yes
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ac_compiler_gnu=no
4662 fi
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4665
4666 fi
4667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4669 GXX=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 CXXFLAGS="-g"
4673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cxx_g+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684
4685 int
4686 main ()
4687 {
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695   (eval $ac_compile) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_cxx_werror_flag"
4703                          || test ! -s conftest.err'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; } &&
4709          { ac_try='test -s conftest.$ac_objext'
4710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711   (eval $ac_try) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); }; }; then
4715   ac_cv_prog_cxx_g=yes
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_cv_prog_cxx_g=no
4721 fi
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4726 if test "$ac_test_CXXFLAGS" = set; then
4727   CXXFLAGS=$ac_save_CXXFLAGS
4728 elif test $ac_cv_prog_cxx_g = yes; then
4729   if test "$GXX" = yes; then
4730     CXXFLAGS="-g -O2"
4731   else
4732     CXXFLAGS="-g"
4733   fi
4734 else
4735   if test "$GXX" = yes; then
4736     CXXFLAGS="-O2"
4737   else
4738     CXXFLAGS=
4739   fi
4740 fi
4741 for ac_declaration in \
4742    '' \
4743    'extern "C" void std::exit (int) throw (); using std::exit;' \
4744    'extern "C" void std::exit (int); using std::exit;' \
4745    'extern "C" void exit (int) throw ();' \
4746    'extern "C" void exit (int);' \
4747    'void exit (int);'
4748 do
4749   cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 $ac_declaration
4756 #include <stdlib.h>
4757 int
4758 main ()
4759 {
4760 exit (42);
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767   (eval $ac_compile) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -z "$ac_cxx_werror_flag"
4775                          || test ! -s conftest.err'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   :
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 continue
4793 fi
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795   cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801 $ac_declaration
4802 int
4803 main ()
4804 {
4805 exit (42);
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_cxx_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   break
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 done
4840 rm -f conftest*
4841 if test -n "$ac_declaration"; then
4842   echo '#ifdef __cplusplus' >>confdefs.h
4843   echo $ac_declaration      >>confdefs.h
4844   echo '#endif'             >>confdefs.h
4845 fi
4846
4847 ac_ext=cc
4848 ac_cpp='$CXXCPP $CPPFLAGS'
4849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4852
4853 depcc="$CXX"  am_compiler_list=
4854
4855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861   # We make a subdir and do the tests there.  Otherwise we can end up
4862   # making bogus files that we don't know about and never remove.  For
4863   # instance it was reported that on HP-UX the gcc test will end up
4864   # making a dummy file named `D' -- because `-MD' means `put the output
4865   # in D'.
4866   mkdir conftest.dir
4867   # Copy depcomp to subdir because otherwise we won't find it if we're
4868   # using a relative directory.
4869   cp "$am_depcomp" conftest.dir
4870   cd conftest.dir
4871   # We will build objects and dependencies in a subdirectory because
4872   # it helps to detect inapplicable dependency modes.  For instance
4873   # both Tru64's cc and ICC support -MD to output dependencies as a
4874   # side effect of compilation, but ICC will put the dependencies in
4875   # the current directory while Tru64 will put them in the object
4876   # directory.
4877   mkdir sub
4878
4879   am_cv_CXX_dependencies_compiler_type=none
4880   if test "$am_compiler_list" = ""; then
4881      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4882   fi
4883   for depmode in $am_compiler_list; do
4884     # Setup a source with many dependencies, because some compilers
4885     # like to wrap large dependency lists on column 80 (with \), and
4886     # we should not choose a depcomp mode which is confused by this.
4887     #
4888     # We need to recreate these files for each test, as the compiler may
4889     # overwrite some of them when testing with obscure command lines.
4890     # This happens at least with the AIX C compiler.
4891     : > sub/conftest.c
4892     for i in 1 2 3 4 5 6; do
4893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4895       # Solaris 8's {/usr,}/bin/sh.
4896       touch sub/conftst$i.h
4897     done
4898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899
4900     case $depmode in
4901     nosideeffect)
4902       # after this tag, mechanisms are not by side-effect, so they'll
4903       # only be used when explicitly requested
4904       if test "x$enable_dependency_tracking" = xyes; then
4905         continue
4906       else
4907         break
4908       fi
4909       ;;
4910     none) break ;;
4911     esac
4912     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913     # mode.  It turns out that the SunPro C++ compiler does not properly
4914     # handle `-M -o', and we need to detect this.
4915     if depmode=$depmode \
4916        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919          >/dev/null 2>conftest.err &&
4920        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923       # icc doesn't choke on unknown options, it will just issue warnings
4924       # or remarks (even with -Werror).  So we grep stderr for any message
4925       # that says an option was ignored or not supported.
4926       # When given -MP, icc 7.0 and 7.1 complain thusly:
4927       #   icc: Command line warning: ignoring option '-M'; no argument required
4928       # The diagnosis changed in icc 8.0:
4929       #   icc: Command line remark: option '-MP' not supported
4930       if (grep 'ignoring option' conftest.err ||
4931           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932         am_cv_CXX_dependencies_compiler_type=$depmode
4933         break
4934       fi
4935     fi
4936   done
4937
4938   cd ..
4939   rm -rf conftest.dir
4940 else
4941   am_cv_CXX_dependencies_compiler_type=none
4942 fi
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4948
4949
4950
4951 if
4952   test "x$enable_dependency_tracking" != xno \
4953   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4954   am__fastdepCXX_TRUE=
4955   am__fastdepCXX_FALSE='#'
4956 else
4957   am__fastdepCXX_TRUE='#'
4958   am__fastdepCXX_FALSE=
4959 fi
4960
4961
4962 ac_ext=cc
4963 ac_cpp='$CXXCPP $CPPFLAGS'
4964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4967 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4968 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4969 if test -z "$CXXCPP"; then
4970   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973       # Double quotes because CXXCPP needs to be expanded
4974     for CXXCPP in "$CXX -E" "/lib/cpp"
4975     do
4976       ac_preproc_ok=false
4977 for ac_cxx_preproc_warn_flag in '' yes
4978 do
4979   # Use a header file that comes with gcc, so configuring glibc
4980   # with a fresh cross-compiler works.
4981   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4982   # <limits.h> exists even on freestanding compilers.
4983   # On the NeXT, cc -E runs the code through the compiler's parser,
4984   # not just through cpp. "Syntax error" is here to catch this case.
4985   cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996                      Syntax error
4997 _ACEOF
4998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000   ac_status=$?
5001   grep -v '^ *+' conftest.er1 >conftest.err
5002   rm -f conftest.er1
5003   cat conftest.err >&5
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } >/dev/null; then
5006   if test -s conftest.err; then
5007     ac_cpp_err=$ac_cxx_preproc_warn_flag
5008     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5009   else
5010     ac_cpp_err=
5011   fi
5012 else
5013   ac_cpp_err=yes
5014 fi
5015 if test -z "$ac_cpp_err"; then
5016   :
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021   # Broken: fails on valid input.
5022 continue
5023 fi
5024 rm -f conftest.err conftest.$ac_ext
5025
5026   # OK, works on sane cases.  Now check whether non-existent headers
5027   # can be detected and how.
5028   cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 #include <ac_nonexistent.h>
5035 _ACEOF
5036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5038   ac_status=$?
5039   grep -v '^ *+' conftest.er1 >conftest.err
5040   rm -f conftest.er1
5041   cat conftest.err >&5
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } >/dev/null; then
5044   if test -s conftest.err; then
5045     ac_cpp_err=$ac_cxx_preproc_warn_flag
5046     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5047   else
5048     ac_cpp_err=
5049   fi
5050 else
5051   ac_cpp_err=yes
5052 fi
5053 if test -z "$ac_cpp_err"; then
5054   # Broken: success on invalid input.
5055 continue
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060   # Passes both tests.
5061 ac_preproc_ok=:
5062 break
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066 done
5067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5068 rm -f conftest.err conftest.$ac_ext
5069 if $ac_preproc_ok; then
5070   break
5071 fi
5072
5073     done
5074     ac_cv_prog_CXXCPP=$CXXCPP
5075
5076 fi
5077   CXXCPP=$ac_cv_prog_CXXCPP
5078 else
5079   ac_cv_prog_CXXCPP=$CXXCPP
5080 fi
5081 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5082 echo "${ECHO_T}$CXXCPP" >&6
5083 ac_preproc_ok=false
5084 for ac_cxx_preproc_warn_flag in '' yes
5085 do
5086   # Use a header file that comes with gcc, so configuring glibc
5087   # with a fresh cross-compiler works.
5088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089   # <limits.h> exists even on freestanding compilers.
5090   # On the NeXT, cc -E runs the code through the compiler's parser,
5091   # not just through cpp. "Syntax error" is here to catch this case.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103                      Syntax error
5104 _ACEOF
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } >/dev/null; then
5113   if test -s conftest.err; then
5114     ac_cpp_err=$ac_cxx_preproc_warn_flag
5115     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116   else
5117     ac_cpp_err=
5118   fi
5119 else
5120   ac_cpp_err=yes
5121 fi
5122 if test -z "$ac_cpp_err"; then
5123   :
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128   # Broken: fails on valid input.
5129 continue
5130 fi
5131 rm -f conftest.err conftest.$ac_ext
5132
5133   # OK, works on sane cases.  Now check whether non-existent headers
5134   # can be detected and how.
5135   cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 #include <ac_nonexistent.h>
5142 _ACEOF
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
5148   cat conftest.err >&5
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); } >/dev/null; then
5151   if test -s conftest.err; then
5152     ac_cpp_err=$ac_cxx_preproc_warn_flag
5153     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154   else
5155     ac_cpp_err=
5156   fi
5157 else
5158   ac_cpp_err=yes
5159 fi
5160 if test -z "$ac_cpp_err"; then
5161   # Broken: success on invalid input.
5162 continue
5163 else
5164   echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167   # Passes both tests.
5168 ac_preproc_ok=:
5169 break
5170 fi
5171 rm -f conftest.err conftest.$ac_ext
5172
5173 done
5174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5175 rm -f conftest.err conftest.$ac_ext
5176 if $ac_preproc_ok; then
5177   :
5178 else
5179   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5180 See \`config.log' for more details." >&5
5181 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5182 See \`config.log' for more details." >&2;}
5183    { (exit 1); exit 1; }; }
5184 fi
5185
5186 ac_ext=cc
5187 ac_cpp='$CXXCPP $CPPFLAGS'
5188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5191
5192
5193 ac_ext=f
5194 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5195 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5197 if test -n "$ac_tool_prefix"; then
5198   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5199   do
5200     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_F77+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   if test -n "$F77"; then
5208   ac_cv_prog_F77="$F77" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215   for ac_exec_ext in '' $ac_executable_extensions; do
5216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222 done
5223
5224 fi
5225 fi
5226 F77=$ac_cv_prog_F77
5227 if test -n "$F77"; then
5228   echo "$as_me:$LINENO: result: $F77" >&5
5229 echo "${ECHO_T}$F77" >&6
5230 else
5231   echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5233 fi
5234
5235     test -n "$F77" && break
5236   done
5237 fi
5238 if test -z "$F77"; then
5239   ac_ct_F77=$F77
5240   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5241 do
5242   # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   if test -n "$ac_ct_F77"; then
5250   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for ac_exec_ext in '' $ac_executable_extensions; do
5258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_prog_ac_ct_F77="$ac_prog"
5260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264 done
5265
5266 fi
5267 fi
5268 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5269 if test -n "$ac_ct_F77"; then
5270   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5271 echo "${ECHO_T}$ac_ct_F77" >&6
5272 else
5273   echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5275 fi
5276
5277   test -n "$ac_ct_F77" && break
5278 done
5279
5280   F77=$ac_ct_F77
5281 fi
5282
5283
5284 # Provide some information about the compiler.
5285 echo "$as_me:5285:" \
5286      "checking for Fortran 77 compiler version" >&5
5287 ac_compiler=`set X $ac_compile; echo $2`
5288 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5289   (eval $ac_compiler --version </dev/null >&5) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5294   (eval $ac_compiler -v </dev/null >&5) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }
5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5299   (eval $ac_compiler -V </dev/null >&5) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }
5303 rm -f a.out
5304
5305 # If we don't use `.F' as extension, the preprocessor is not run on the
5306 # input file.  (Note that this only needs to work for GNU compilers.)
5307 ac_save_ext=$ac_ext
5308 ac_ext=F
5309 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5310 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5311 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   cat >conftest.$ac_ext <<_ACEOF
5315       program main
5316 #ifndef __GNUC__
5317        choke me
5318 #endif
5319
5320       end
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324   (eval $ac_compile) 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } &&
5331          { ac_try='test -z "$ac_f77_werror_flag"
5332                          || test ! -s conftest.err'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_compiler_gnu=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_compiler_gnu=no
5350 fi
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5353
5354 fi
5355 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5356 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5357 ac_ext=$ac_save_ext
5358 ac_test_FFLAGS=${FFLAGS+set}
5359 ac_save_FFLAGS=$FFLAGS
5360 FFLAGS=
5361 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5362 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5363 if test "${ac_cv_prog_f77_g+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   FFLAGS=-g
5367 cat >conftest.$ac_ext <<_ACEOF
5368       program main
5369
5370       end
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374   (eval $ac_compile) 2>conftest.er1
5375   ac_status=$?
5376   grep -v '^ *+' conftest.er1 >conftest.err
5377   rm -f conftest.er1
5378   cat conftest.err >&5
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); } &&
5381          { ac_try='test -z "$ac_f77_werror_flag"
5382                          || test ! -s conftest.err'
5383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384   (eval $ac_try) 2>&5
5385   ac_status=$?
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); }; } &&
5388          { ac_try='test -s conftest.$ac_objext'
5389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390   (eval $ac_try) 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; }; then
5394   ac_cv_prog_f77_g=yes
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 ac_cv_prog_f77_g=no
5400 fi
5401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402
5403 fi
5404 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5405 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5406 if test "$ac_test_FFLAGS" = set; then
5407   FFLAGS=$ac_save_FFLAGS
5408 elif test $ac_cv_prog_f77_g = yes; then
5409   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5410     FFLAGS="-g -O2"
5411   else
5412     FFLAGS="-g"
5413   fi
5414 else
5415   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5416     FFLAGS="-O2"
5417   else
5418     FFLAGS=
5419   fi
5420 fi
5421
5422 G77=`test $ac_compiler_gnu = yes && echo yes`
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428
5429
5430
5431 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5432
5433 # find the maximum length of command line arguments
5434 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5435 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5436 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439     i=0
5440   teststring="ABCD"
5441
5442   case $build_os in
5443   msdosdjgpp*)
5444     # On DJGPP, this test can blow up pretty badly due to problems in libc
5445     # (any single argument exceeding 2000 bytes causes a buffer overrun
5446     # during glob expansion).  Even if it were fixed, the result of this
5447     # check would be larger than it should be.
5448     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5449     ;;
5450
5451   gnu*)
5452     # Under GNU Hurd, this test is not required because there is
5453     # no limit to the length of command line arguments.
5454     # Libtool will interpret -1 as no limit whatsoever
5455     lt_cv_sys_max_cmd_len=-1;
5456     ;;
5457
5458   cygwin* | mingw*)
5459     # On Win9x/ME, this test blows up -- it succeeds, but takes
5460     # about 5 minutes as the teststring grows exponentially.
5461     # Worse, since 9x/ME are not pre-emptively multitasking,
5462     # you end up with a "frozen" computer, even though with patience
5463     # the test eventually succeeds (with a max line length of 256k).
5464     # Instead, let's just punt: use the minimum linelength reported by
5465     # all of the supported platforms: 8192 (on NT/2K/XP).
5466     lt_cv_sys_max_cmd_len=8192;
5467     ;;
5468
5469   amigaos*)
5470     # On AmigaOS with pdksh, this test takes hours, literally.
5471     # So we just punt and use a minimum line length of 8192.
5472     lt_cv_sys_max_cmd_len=8192;
5473     ;;
5474
5475  *)
5476     # If test is not a shell built-in, we'll probably end up computing a
5477     # maximum length that is only half of the actual maximum length, but
5478     # we can't tell.
5479     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5480                = "XX$teststring") >/dev/null 2>&1 &&
5481             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5482             lt_cv_sys_max_cmd_len=$new_result &&
5483             test $i != 17 # 1/2 MB should be enough
5484     do
5485       i=`expr $i + 1`
5486       teststring=$teststring$teststring
5487     done
5488     teststring=
5489     # Add a significant safety factor because C++ compilers can tack on massive
5490     # amounts of additional arguments before passing them to the linker.
5491     # It appears as though 1/2 is a usable value.
5492     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5493     ;;
5494   esac
5495
5496 fi
5497
5498 if test -n $lt_cv_sys_max_cmd_len ; then
5499   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5501 else
5502   echo "$as_me:$LINENO: result: none" >&5
5503 echo "${ECHO_T}none" >&6
5504 fi
5505
5506
5507
5508
5509 # Check for command to grab the raw symbol name followed by C symbol from nm.
5510 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5511 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515
5516 # These are sane defaults that work on at least a few old systems.
5517 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5518
5519 # Character class describing NM global symbol codes.
5520 symcode='[BCDEGRST]'
5521
5522 # Regexp to match symbols that can be accessed directly from C.
5523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5524
5525 # Transform the above into a raw symbol and a C symbol.
5526 symxfrm='\1 \2\3 \3'
5527
5528 # Transform an extracted symbol line into a proper C declaration
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5530
5531 # Transform an extracted symbol line into symbol name and symbol address
5532 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'"
5533
5534 # Define system-specific variables.
5535 case $host_os in
5536 aix*)
5537   symcode='[BCDT]'
5538   ;;
5539 cygwin* | mingw* | pw32*)
5540   symcode='[ABCDGISTW]'
5541   ;;
5542 hpux*) # Its linker distinguishes data from code symbols
5543   if test "$host_cpu" = ia64; then
5544     symcode='[ABCDEGRST]'
5545   fi
5546   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5547   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'"
5548   ;;
5549 irix* | nonstopux*)
5550   symcode='[BCDEGRST]'
5551   ;;
5552 osf*)
5553   symcode='[BCDEGQRST]'
5554   ;;
5555 solaris* | sysv5*)
5556   symcode='[BDRT]'
5557   ;;
5558 sysv4)
5559   symcode='[DFNSTU]'
5560   ;;
5561 esac
5562
5563 # Handle CRLF in mingw tool chain
5564 opt_cr=
5565 case $build_os in
5566 mingw*)
5567   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5568   ;;
5569 esac
5570
5571 # If we're using GNU nm, then use its standard symbol codes.
5572 case `$NM -V 2>&1` in
5573 *GNU* | *'with BFD'*)
5574   symcode='[ABCDGIRSTW]' ;;
5575 esac
5576
5577 # Try without a prefix undercore, then with it.
5578 for ac_symprfx in "" "_"; do
5579
5580   # Write the raw and C identifiers.
5581   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5582
5583   # Check to see that the pipe works correctly.
5584   pipe_works=no
5585
5586   rm -f conftest*
5587   cat > conftest.$ac_ext <<EOF
5588 #ifdef __cplusplus
5589 extern "C" {
5590 #endif
5591 char nm_test_var;
5592 void nm_test_func(){}
5593 #ifdef __cplusplus
5594 }
5595 #endif
5596 int main(){nm_test_var='a';nm_test_func();return(0);}
5597 EOF
5598
5599   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600   (eval $ac_compile) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; then
5604     # Now try to grab the symbols.
5605     nlist=conftest.nm
5606     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5607   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } && test -s "$nlist"; then
5611       # Try sorting and uniquifying the output.
5612       if sort "$nlist" | uniq > "$nlist"T; then
5613         mv -f "$nlist"T "$nlist"
5614       else
5615         rm -f "$nlist"T
5616       fi
5617
5618       # Make sure that we snagged all the symbols we need.
5619       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5620         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5621           cat <<EOF > conftest.$ac_ext
5622 #ifdef __cplusplus
5623 extern "C" {
5624 #endif
5625
5626 EOF
5627           # Now generate the symbol file.
5628           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5629
5630           cat <<EOF >> conftest.$ac_ext
5631 #if defined (__STDC__) && __STDC__
5632 # define lt_ptr_t void *
5633 #else
5634 # define lt_ptr_t char *
5635 # define const
5636 #endif
5637
5638 /* The mapping between symbol names and symbols. */
5639 const struct {
5640   const char *name;
5641   lt_ptr_t address;
5642 }
5643 lt_preloaded_symbols[] =
5644 {
5645 EOF
5646           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5647           cat <<\EOF >> conftest.$ac_ext
5648   {0, (lt_ptr_t) 0}
5649 };
5650
5651 #ifdef __cplusplus
5652 }
5653 #endif
5654 EOF
5655           # Now try linking the two files.
5656           mv conftest.$ac_objext conftstm.$ac_objext
5657           lt_save_LIBS="$LIBS"
5658           lt_save_CFLAGS="$CFLAGS"
5659           LIBS="conftstm.$ac_objext"
5660           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5661           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662   (eval $ac_link) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5666             pipe_works=yes
5667           fi
5668           LIBS="$lt_save_LIBS"
5669           CFLAGS="$lt_save_CFLAGS"
5670         else
5671           echo "cannot find nm_test_func in $nlist" >&5
5672         fi
5673       else
5674         echo "cannot find nm_test_var in $nlist" >&5
5675       fi
5676     else
5677       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5678     fi
5679   else
5680     echo "$progname: failed program was:" >&5
5681     cat conftest.$ac_ext >&5
5682   fi
5683   rm -f conftest* conftst*
5684
5685   # Do not use the global_symbol_pipe unless it works.
5686   if test "$pipe_works" = yes; then
5687     break
5688   else
5689     lt_cv_sys_global_symbol_pipe=
5690   fi
5691 done
5692
5693 fi
5694
5695 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5696   lt_cv_sys_global_symbol_to_cdecl=
5697 fi
5698 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5699   echo "$as_me:$LINENO: result: failed" >&5
5700 echo "${ECHO_T}failed" >&6
5701 else
5702   echo "$as_me:$LINENO: result: ok" >&5
5703 echo "${ECHO_T}ok" >&6
5704 fi
5705
5706 echo "$as_me:$LINENO: checking for objdir" >&5
5707 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5708 if test "${lt_cv_objdir+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   rm -f .libs 2>/dev/null
5712 mkdir .libs 2>/dev/null
5713 if test -d .libs; then
5714   lt_cv_objdir=.libs
5715 else
5716   # MS-DOS does not allow filenames that begin with a dot.
5717   lt_cv_objdir=_libs
5718 fi
5719 rmdir .libs 2>/dev/null
5720 fi
5721 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5722 echo "${ECHO_T}$lt_cv_objdir" >&6
5723 objdir=$lt_cv_objdir
5724
5725
5726
5727
5728
5729 case $host_os in
5730 aix3*)
5731   # AIX sometimes has problems with the GCC collect2 program.  For some
5732   # reason, if we set the COLLECT_NAMES environment variable, the problems
5733   # vanish in a puff of smoke.
5734   if test "X${COLLECT_NAMES+set}" != Xset; then
5735     COLLECT_NAMES=
5736     export COLLECT_NAMES
5737   fi
5738   ;;
5739 esac
5740
5741 # Sed substitution that helps us do robust quoting.  It backslashifies
5742 # metacharacters that are still active within double-quoted strings.
5743 Xsed='sed -e s/^X//'
5744 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5745
5746 # Same as above, but do not quote variable references.
5747 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5748
5749 # Sed substitution to delay expansion of an escaped shell variable in a
5750 # double_quote_subst'ed string.
5751 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5752
5753 # Sed substitution to avoid accidental globbing in evaled expressions
5754 no_glob_subst='s/\*/\\\*/g'
5755
5756 # Constants:
5757 rm="rm -f"
5758
5759 # Global variables:
5760 default_ofile=libtool
5761 can_build_shared=yes
5762
5763 # All known linkers require a `.a' archive for static linking (except M$VC,
5764 # which needs '.lib').
5765 libext=a
5766 ltmain="$ac_aux_dir/ltmain.sh"
5767 ofile="$default_ofile"
5768 with_gnu_ld="$lt_cv_prog_gnu_ld"
5769
5770 if test -n "$ac_tool_prefix"; then
5771   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5772 set dummy ${ac_tool_prefix}ar; ac_word=$2
5773 echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5775 if test "${ac_cv_prog_AR+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   if test -n "$AR"; then
5779   ac_cv_prog_AR="$AR" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786   for ac_exec_ext in '' $ac_executable_extensions; do
5787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788     ac_cv_prog_AR="${ac_tool_prefix}ar"
5789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793 done
5794
5795 fi
5796 fi
5797 AR=$ac_cv_prog_AR
5798 if test -n "$AR"; then
5799   echo "$as_me:$LINENO: result: $AR" >&5
5800 echo "${ECHO_T}$AR" >&6
5801 else
5802   echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5804 fi
5805
5806 fi
5807 if test -z "$ac_cv_prog_AR"; then
5808   ac_ct_AR=$AR
5809   # Extract the first word of "ar", so it can be a program name with args.
5810 set dummy ar; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   if test -n "$ac_ct_AR"; then
5817   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826     ac_cv_prog_ac_ct_AR="ar"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832
5833   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5834 fi
5835 fi
5836 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5837 if test -n "$ac_ct_AR"; then
5838   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5839 echo "${ECHO_T}$ac_ct_AR" >&6
5840 else
5841   echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5843 fi
5844
5845   AR=$ac_ct_AR
5846 else
5847   AR="$ac_cv_prog_AR"
5848 fi
5849
5850 if test -n "$ac_tool_prefix"; then
5851   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_RANLIB+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   if test -n "$RANLIB"; then
5859   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866   for ac_exec_ext in '' $ac_executable_extensions; do
5867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873 done
5874
5875 fi
5876 fi
5877 RANLIB=$ac_cv_prog_RANLIB
5878 if test -n "$RANLIB"; then
5879   echo "$as_me:$LINENO: result: $RANLIB" >&5
5880 echo "${ECHO_T}$RANLIB" >&6
5881 else
5882   echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6
5884 fi
5885
5886 fi
5887 if test -z "$ac_cv_prog_RANLIB"; then
5888   ac_ct_RANLIB=$RANLIB
5889   # Extract the first word of "ranlib", so it can be a program name with args.
5890 set dummy ranlib; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   if test -n "$ac_ct_RANLIB"; then
5897   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906     ac_cv_prog_ac_ct_RANLIB="ranlib"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912
5913   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5914 fi
5915 fi
5916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5917 if test -n "$ac_ct_RANLIB"; then
5918   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5919 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5920 else
5921   echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5923 fi
5924
5925   RANLIB=$ac_ct_RANLIB
5926 else
5927   RANLIB="$ac_cv_prog_RANLIB"
5928 fi
5929
5930 if test -n "$ac_tool_prefix"; then
5931   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5932 set dummy ${ac_tool_prefix}strip; ac_word=$2
5933 echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935 if test "${ac_cv_prog_STRIP+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -n "$STRIP"; then
5939   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954
5955 fi
5956 fi
5957 STRIP=$ac_cv_prog_STRIP
5958 if test -n "$STRIP"; then
5959   echo "$as_me:$LINENO: result: $STRIP" >&5
5960 echo "${ECHO_T}$STRIP" >&6
5961 else
5962   echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5964 fi
5965
5966 fi
5967 if test -z "$ac_cv_prog_STRIP"; then
5968   ac_ct_STRIP=$STRIP
5969   # Extract the first word of "strip", so it can be a program name with args.
5970 set dummy strip; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$ac_ct_STRIP"; then
5977   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984   for ac_exec_ext in '' $ac_executable_extensions; do
5985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_prog_ac_ct_STRIP="strip"
5987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991 done
5992
5993   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5994 fi
5995 fi
5996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5997 if test -n "$ac_ct_STRIP"; then
5998   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5999 echo "${ECHO_T}$ac_ct_STRIP" >&6
6000 else
6001   echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6003 fi
6004
6005   STRIP=$ac_ct_STRIP
6006 else
6007   STRIP="$ac_cv_prog_STRIP"
6008 fi
6009
6010
6011 old_CC="$CC"
6012 old_CFLAGS="$CFLAGS"
6013
6014 # Set sane defaults for various variables
6015 test -z "$AR" && AR=ar
6016 test -z "$AR_FLAGS" && AR_FLAGS=cru
6017 test -z "$AS" && AS=as
6018 test -z "$CC" && CC=cc
6019 test -z "$LTCC" && LTCC=$CC
6020 test -z "$DLLTOOL" && DLLTOOL=dlltool
6021 test -z "$LD" && LD=ld
6022 test -z "$LN_S" && LN_S="ln -s"
6023 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6024 test -z "$NM" && NM=nm
6025 test -z "$SED" && SED=sed
6026 test -z "$OBJDUMP" && OBJDUMP=objdump
6027 test -z "$RANLIB" && RANLIB=:
6028 test -z "$STRIP" && STRIP=:
6029 test -z "$ac_objext" && ac_objext=o
6030
6031 # Determine commands to create old-style static archives.
6032 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6033 old_postinstall_cmds='chmod 644 $oldlib'
6034 old_postuninstall_cmds=
6035
6036 if test -n "$RANLIB"; then
6037   case $host_os in
6038   openbsd*)
6039     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6040     ;;
6041   *)
6042     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6043     ;;
6044   esac
6045   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6046 fi
6047
6048 # Only perform the check for file, if the check method requires it
6049 case $deplibs_check_method in
6050 file_magic*)
6051   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6052     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6053 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6054 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case $MAGIC_CMD in
6058 [\\/*] |  ?:[\\/]*)
6059   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6060   ;;
6061 *)
6062   lt_save_MAGIC_CMD="$MAGIC_CMD"
6063   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6064   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6065   for ac_dir in $ac_dummy; do
6066     IFS="$lt_save_ifs"
6067     test -z "$ac_dir" && ac_dir=.
6068     if test -f $ac_dir/${ac_tool_prefix}file; then
6069       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6070       if test -n "$file_magic_test_file"; then
6071         case $deplibs_check_method in
6072         "file_magic "*)
6073           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6074           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6075           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6076             $EGREP "$file_magic_regex" > /dev/null; then
6077             :
6078           else
6079             cat <<EOF 1>&2
6080
6081 *** Warning: the command libtool uses to detect shared libraries,
6082 *** $file_magic_cmd, produces output that libtool cannot recognize.
6083 *** The result is that libtool may fail to recognize shared libraries
6084 *** as such.  This will affect the creation of libtool libraries that
6085 *** depend on shared libraries, but programs linked with such libtool
6086 *** libraries will work regardless of this problem.  Nevertheless, you
6087 *** may want to report the problem to your system manager and/or to
6088 *** bug-libtool@gnu.org
6089
6090 EOF
6091           fi ;;
6092         esac
6093       fi
6094       break
6095     fi
6096   done
6097   IFS="$lt_save_ifs"
6098   MAGIC_CMD="$lt_save_MAGIC_CMD"
6099   ;;
6100 esac
6101 fi
6102
6103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6104 if test -n "$MAGIC_CMD"; then
6105   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6106 echo "${ECHO_T}$MAGIC_CMD" >&6
6107 else
6108   echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6110 fi
6111
6112 if test -z "$lt_cv_path_MAGIC_CMD"; then
6113   if test -n "$ac_tool_prefix"; then
6114     echo "$as_me:$LINENO: checking for file" >&5
6115 echo $ECHO_N "checking for file... $ECHO_C" >&6
6116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   case $MAGIC_CMD in
6120 [\\/*] |  ?:[\\/]*)
6121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6122   ;;
6123 *)
6124   lt_save_MAGIC_CMD="$MAGIC_CMD"
6125   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6126   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6127   for ac_dir in $ac_dummy; do
6128     IFS="$lt_save_ifs"
6129     test -z "$ac_dir" && ac_dir=.
6130     if test -f $ac_dir/file; then
6131       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6132       if test -n "$file_magic_test_file"; then
6133         case $deplibs_check_method in
6134         "file_magic "*)
6135           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6136           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6137           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6138             $EGREP "$file_magic_regex" > /dev/null; then
6139             :
6140           else
6141             cat <<EOF 1>&2
6142
6143 *** Warning: the command libtool uses to detect shared libraries,
6144 *** $file_magic_cmd, produces output that libtool cannot recognize.
6145 *** The result is that libtool may fail to recognize shared libraries
6146 *** as such.  This will affect the creation of libtool libraries that
6147 *** depend on shared libraries, but programs linked with such libtool
6148 *** libraries will work regardless of this problem.  Nevertheless, you
6149 *** may want to report the problem to your system manager and/or to
6150 *** bug-libtool@gnu.org
6151
6152 EOF
6153           fi ;;
6154         esac
6155       fi
6156       break
6157     fi
6158   done
6159   IFS="$lt_save_ifs"
6160   MAGIC_CMD="$lt_save_MAGIC_CMD"
6161   ;;
6162 esac
6163 fi
6164
6165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6166 if test -n "$MAGIC_CMD"; then
6167   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6168 echo "${ECHO_T}$MAGIC_CMD" >&6
6169 else
6170   echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6
6172 fi
6173
6174   else
6175     MAGIC_CMD=:
6176   fi
6177 fi
6178
6179   fi
6180   ;;
6181 esac
6182
6183 enable_dlopen=no
6184 enable_win32_dll=no
6185
6186 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6187 if test "${enable_libtool_lock+set}" = set; then
6188   enableval="$enable_libtool_lock"
6189
6190 fi;
6191 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6192
6193
6194 # Check whether --with-pic or --without-pic was given.
6195 if test "${with_pic+set}" = set; then
6196   withval="$with_pic"
6197   pic_mode="$withval"
6198 else
6199   pic_mode=default
6200 fi;
6201 test -z "$pic_mode" && pic_mode=default
6202
6203 # Use C for the default configuration in the libtool script
6204 tagname=
6205 lt_save_CC="$CC"
6206 ac_ext=c
6207 ac_cpp='$CPP $CPPFLAGS'
6208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211
6212
6213 # Source file extension for C test sources.
6214 ac_ext=c
6215
6216 # Object file extension for compiled C test sources.
6217 objext=o
6218 objext=$objext
6219
6220 # Code to be used in simple compile tests
6221 lt_simple_compile_test_code="int some_variable = 0;\n"
6222
6223 # Code to be used in simple link tests
6224 lt_simple_link_test_code='int main(){return(0);}\n'
6225
6226
6227 # If no C compiler was specified, use CC.
6228 LTCC=${LTCC-"$CC"}
6229
6230 # Allow CC to be a program name with arguments.
6231 compiler=$CC
6232
6233
6234 #
6235 # Check for any special shared library compilation flags.
6236 #
6237 lt_prog_cc_shlib=
6238 if test "$GCC" = no; then
6239   case $host_os in
6240   sco3.2v5*)
6241     lt_prog_cc_shlib='-belf'
6242     ;;
6243   esac
6244 fi
6245 if test -n "$lt_prog_cc_shlib"; then
6246   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6247 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6248   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6249   else
6250     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6251 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6252     lt_cv_prog_cc_can_build_shared=no
6253   fi
6254 fi
6255
6256
6257 #
6258 # Check to make sure the static flag actually works.
6259 #
6260 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6261 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6262 if test "${lt_prog_compiler_static_works+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   lt_prog_compiler_static_works=no
6266    save_LDFLAGS="$LDFLAGS"
6267    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6268    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6269    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6270      # The compiler can only warn and ignore the option if not recognized
6271      # So say no if there are warnings
6272      if test -s conftest.err; then
6273        # Append any errors to the config.log.
6274        cat conftest.err 1>&5
6275      else
6276        lt_prog_compiler_static_works=yes
6277      fi
6278    fi
6279    $rm conftest*
6280    LDFLAGS="$save_LDFLAGS"
6281
6282 fi
6283 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6284 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6285
6286 if test x"$lt_prog_compiler_static_works" = xyes; then
6287     :
6288 else
6289     lt_prog_compiler_static=
6290 fi
6291
6292
6293
6294
6295 lt_prog_compiler_no_builtin_flag=
6296
6297 if test "$GCC" = yes; then
6298   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6299
6300
6301 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6302 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6303 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   lt_cv_prog_compiler_rtti_exceptions=no
6307   ac_outfile=conftest.$ac_objext
6308    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6309    lt_compiler_flag="-fno-rtti -fno-exceptions"
6310    # Insert the option either (1) after the last *FLAGS variable, or
6311    # (2) before a word containing "conftest.", or (3) at the end.
6312    # Note that $ac_compile itself does not contain backslashes and begins
6313    # with a dollar sign (not a hyphen), so the echo should work correctly.
6314    # The option is referenced via a variable to avoid confusing sed.
6315    lt_compile=`echo "$ac_compile" | $SED \
6316    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6317    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6318    -e 's:$: $lt_compiler_flag:'`
6319    (eval echo "\"\$as_me:6319: $lt_compile\"" >&5)
6320    (eval "$lt_compile" 2>conftest.err)
6321    ac_status=$?
6322    cat conftest.err >&5
6323    echo "$as_me:6323: \$? = $ac_status" >&5
6324    if (exit $ac_status) && test -s "$ac_outfile"; then
6325      # The compiler can only warn and ignore the option if not recognized
6326      # So say no if there are warnings
6327      if test ! -s conftest.err; then
6328        lt_cv_prog_compiler_rtti_exceptions=yes
6329      fi
6330    fi
6331    $rm conftest*
6332
6333 fi
6334 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6335 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6336
6337 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6338     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6339 else
6340     :
6341 fi
6342
6343 fi
6344
6345 lt_prog_compiler_wl=
6346 lt_prog_compiler_pic=
6347 lt_prog_compiler_static=
6348
6349 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6350 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6351
6352   if test "$GCC" = yes; then
6353     lt_prog_compiler_wl='-Wl,'
6354     lt_prog_compiler_static='-static'
6355
6356     case $host_os in
6357       aix*)
6358       # All AIX code is PIC.
6359       if test "$host_cpu" = ia64; then
6360         # AIX 5 now supports IA64 processor
6361         lt_prog_compiler_static='-Bstatic'
6362       fi
6363       ;;
6364
6365     amigaos*)
6366       # FIXME: we need at least 68020 code to build shared libraries, but
6367       # adding the `-m68020' flag to GCC prevents building anything better,
6368       # like `-m68040'.
6369       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6370       ;;
6371
6372     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6373       # PIC is the default for these OSes.
6374       ;;
6375
6376     mingw* | pw32* | os2*)
6377       # This hack is so that the source file can tell whether it is being
6378       # built for inclusion in a dll (and should export symbols for example).
6379       lt_prog_compiler_pic='-DDLL_EXPORT'
6380       ;;
6381
6382     darwin* | rhapsody*)
6383       # PIC is the default on this platform
6384       # Common symbols not allowed in MH_DYLIB files
6385       lt_prog_compiler_pic='-fno-common'
6386       ;;
6387
6388     msdosdjgpp*)
6389       # Just because we use GCC doesn't mean we suddenly get shared libraries
6390       # on systems that don't support them.
6391       lt_prog_compiler_can_build_shared=no
6392       enable_shared=no
6393       ;;
6394
6395     sysv4*MP*)
6396       if test -d /usr/nec; then
6397         lt_prog_compiler_pic=-Kconform_pic
6398       fi
6399       ;;
6400
6401     hpux*)
6402       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6403       # not for PA HP-UX.
6404       case "$host_cpu" in
6405       hppa*64*|ia64*)
6406         # +Z the default
6407         ;;
6408       *)
6409         lt_prog_compiler_pic='-fPIC'
6410         ;;
6411       esac
6412       ;;
6413
6414     *)
6415       lt_prog_compiler_pic='-fPIC'
6416       ;;
6417     esac
6418   else
6419     # PORTME Check for flag to pass linker flags through the system compiler.
6420     case $host_os in
6421     aix*)
6422       lt_prog_compiler_wl='-Wl,'
6423       if test "$host_cpu" = ia64; then
6424         # AIX 5 now supports IA64 processor
6425         lt_prog_compiler_static='-Bstatic'
6426       else
6427         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6428       fi
6429       ;;
6430
6431     mingw* | pw32* | os2*)
6432       # This hack is so that the source file can tell whether it is being
6433       # built for inclusion in a dll (and should export symbols for example).
6434       lt_prog_compiler_pic='-DDLL_EXPORT'
6435       ;;
6436
6437     hpux9* | hpux10* | hpux11*)
6438       lt_prog_compiler_wl='-Wl,'
6439       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6440       # not for PA HP-UX.
6441       case "$host_cpu" in
6442       hppa*64*|ia64*)
6443         # +Z the default
6444         ;;
6445       *)
6446         lt_prog_compiler_pic='+Z'
6447         ;;
6448       esac
6449       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6450       lt_prog_compiler_static='${wl}-a ${wl}archive'
6451       ;;
6452
6453     irix5* | irix6* | nonstopux*)
6454       lt_prog_compiler_wl='-Wl,'
6455       # PIC (with -KPIC) is the default.
6456       lt_prog_compiler_static='-non_shared'
6457       ;;
6458
6459     newsos6)
6460       lt_prog_compiler_pic='-KPIC'
6461       lt_prog_compiler_static='-Bstatic'
6462       ;;
6463
6464     linux*)
6465       case $CC in
6466       icc* | ecc*)
6467         lt_prog_compiler_wl='-Wl,'
6468         lt_prog_compiler_pic='-KPIC'
6469         lt_prog_compiler_static='-static'
6470         ;;
6471       ccc*)
6472         lt_prog_compiler_wl='-Wl,'
6473         # All Alpha code is PIC.
6474         lt_prog_compiler_static='-non_shared'
6475         ;;
6476       esac
6477       ;;
6478
6479     osf3* | osf4* | osf5*)
6480       lt_prog_compiler_wl='-Wl,'
6481       # All OSF/1 code is PIC.
6482       lt_prog_compiler_static='-non_shared'
6483       ;;
6484
6485     sco3.2v5*)
6486       lt_prog_compiler_pic='-Kpic'
6487       lt_prog_compiler_static='-dn'
6488       ;;
6489
6490     solaris*)
6491       lt_prog_compiler_wl='-Wl,'
6492       lt_prog_compiler_pic='-KPIC'
6493       lt_prog_compiler_static='-Bstatic'
6494       ;;
6495
6496     sunos4*)
6497       lt_prog_compiler_wl='-Qoption ld '
6498       lt_prog_compiler_pic='-PIC'
6499       lt_prog_compiler_static='-Bstatic'
6500       ;;
6501
6502     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6503       lt_prog_compiler_wl='-Wl,'
6504       lt_prog_compiler_pic='-KPIC'
6505       lt_prog_compiler_static='-Bstatic'
6506       ;;
6507
6508     sysv4*MP*)
6509       if test -d /usr/nec ;then
6510         lt_prog_compiler_pic='-Kconform_pic'
6511         lt_prog_compiler_static='-Bstatic'
6512       fi
6513       ;;
6514
6515     uts4*)
6516       lt_prog_compiler_pic='-pic'
6517       lt_prog_compiler_static='-Bstatic'
6518       ;;
6519
6520     *)
6521       lt_prog_compiler_can_build_shared=no
6522       ;;
6523     esac
6524   fi
6525
6526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6527 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6528
6529 #
6530 # Check to make sure the PIC flag actually works.
6531 #
6532 if test -n "$lt_prog_compiler_pic"; then
6533
6534 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6535 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6536 if test "${lt_prog_compiler_pic_works+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   lt_prog_compiler_pic_works=no
6540   ac_outfile=conftest.$ac_objext
6541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6542    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6543    # Insert the option either (1) after the last *FLAGS variable, or
6544    # (2) before a word containing "conftest.", or (3) at the end.
6545    # Note that $ac_compile itself does not contain backslashes and begins
6546    # with a dollar sign (not a hyphen), so the echo should work correctly.
6547    # The option is referenced via a variable to avoid confusing sed.
6548    lt_compile=`echo "$ac_compile" | $SED \
6549    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6551    -e 's:$: $lt_compiler_flag:'`
6552    (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
6553    (eval "$lt_compile" 2>conftest.err)
6554    ac_status=$?
6555    cat conftest.err >&5
6556    echo "$as_me:6556: \$? = $ac_status" >&5
6557    if (exit $ac_status) && test -s "$ac_outfile"; then
6558      # The compiler can only warn and ignore the option if not recognized
6559      # So say no if there are warnings
6560      if test ! -s conftest.err; then
6561        lt_prog_compiler_pic_works=yes
6562      fi
6563    fi
6564    $rm conftest*
6565
6566 fi
6567 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6568 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6569
6570 if test x"$lt_prog_compiler_pic_works" = xyes; then
6571     case $lt_prog_compiler_pic in
6572      "" | " "*) ;;
6573      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6574      esac
6575 else
6576     lt_prog_compiler_pic=
6577      lt_prog_compiler_can_build_shared=no
6578 fi
6579
6580 fi
6581 case "$host_os" in
6582   # For platforms which do not support PIC, -DPIC is meaningless:
6583   *djgpp*)
6584     lt_prog_compiler_pic=
6585     ;;
6586   *)
6587     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6588     ;;
6589 esac
6590
6591 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6592 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6593 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   lt_cv_prog_compiler_c_o=no
6597    $rm -r conftest 2>/dev/null
6598    mkdir conftest
6599    cd conftest
6600    mkdir out
6601    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6602
6603    lt_compiler_flag="-o out/conftest2.$ac_objext"
6604    # Insert the option either (1) after the last *FLAGS variable, or
6605    # (2) before a word containing "conftest.", or (3) at the end.
6606    # Note that $ac_compile itself does not contain backslashes and begins
6607    # with a dollar sign (not a hyphen), so the echo should work correctly.
6608    lt_compile=`echo "$ac_compile" | $SED \
6609    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6610    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6611    -e 's:$: $lt_compiler_flag:'`
6612    (eval echo "\"\$as_me:6612: $lt_compile\"" >&5)
6613    (eval "$lt_compile" 2>out/conftest.err)
6614    ac_status=$?
6615    cat out/conftest.err >&5
6616    echo "$as_me:6616: \$? = $ac_status" >&5
6617    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6618    then
6619      # The compiler can only warn and ignore the option if not recognized
6620      # So say no if there are warnings
6621      if test ! -s out/conftest.err; then
6622        lt_cv_prog_compiler_c_o=yes
6623      fi
6624    fi
6625    chmod u+w .
6626    $rm conftest*
6627    # SGI C++ compiler will create directory out/ii_files/ for
6628    # template instantiation
6629    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6630    $rm out/* && rmdir out
6631    cd ..
6632    rmdir conftest
6633    $rm conftest*
6634
6635 fi
6636 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6637 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6638
6639
6640 hard_links="nottested"
6641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6642   # do not overwrite the value of need_locks provided by the user
6643   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6644 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6645   hard_links=yes
6646   $rm conftest*
6647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6648   touch conftest.a
6649   ln conftest.a conftest.b 2>&5 || hard_links=no
6650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6651   echo "$as_me:$LINENO: result: $hard_links" >&5
6652 echo "${ECHO_T}$hard_links" >&6
6653   if test "$hard_links" = no; then
6654     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6655 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6656     need_locks=warn
6657   fi
6658 else
6659   need_locks=no
6660 fi
6661
6662 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6663 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6664
6665   runpath_var=
6666   allow_undefined_flag=
6667   enable_shared_with_static_runtimes=no
6668   archive_cmds=
6669   archive_expsym_cmds=
6670   old_archive_From_new_cmds=
6671   old_archive_from_expsyms_cmds=
6672   export_dynamic_flag_spec=
6673   whole_archive_flag_spec=
6674   thread_safe_flag_spec=
6675   hardcode_libdir_flag_spec=
6676   hardcode_libdir_flag_spec_ld=
6677   hardcode_libdir_separator=
6678   hardcode_direct=no
6679   hardcode_minus_L=no
6680   hardcode_shlibpath_var=unsupported
6681   link_all_deplibs=unknown
6682   hardcode_automatic=no
6683   module_cmds=
6684   module_expsym_cmds=
6685   always_export_symbols=no
6686   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6687   # include_expsyms should be a list of space-separated symbols to be *always*
6688   # included in the symbol list
6689   include_expsyms=
6690   # exclude_expsyms can be an extended regexp of symbols to exclude
6691   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6692   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6693   # as well as any symbol that contains `d'.
6694   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6695   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6696   # platforms (ab)use it in PIC code, but their linkers get confused if
6697   # the symbol is explicitly referenced.  Since portable code cannot
6698   # rely on this symbol name, it's probably fine to never include it in
6699   # preloaded symbol tables.
6700   extract_expsyms_cmds=
6701
6702   case $host_os in
6703   cygwin* | mingw* | pw32*)
6704     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6705     # When not using gcc, we currently assume that we are using
6706     # Microsoft Visual C++.
6707     if test "$GCC" != yes; then
6708       with_gnu_ld=no
6709     fi
6710     ;;
6711   openbsd*)
6712     with_gnu_ld=no
6713     ;;
6714   esac
6715
6716   ld_shlibs=yes
6717   if test "$with_gnu_ld" = yes; then
6718     # If archive_cmds runs LD, not CC, wlarc should be empty
6719     wlarc='${wl}'
6720
6721     # See if GNU ld supports shared libraries.
6722     case $host_os in
6723     aix3* | aix4* | aix5*)
6724       # On AIX/PPC, the GNU linker is very broken
6725       if test "$host_cpu" != ia64; then
6726         ld_shlibs=no
6727         cat <<EOF 1>&2
6728
6729 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6730 *** to be unable to reliably create shared libraries on AIX.
6731 *** Therefore, libtool is disabling shared libraries support.  If you
6732 *** really care for shared libraries, you may want to modify your PATH
6733 *** so that a non-GNU linker is found, and then restart.
6734
6735 EOF
6736       fi
6737       ;;
6738
6739     amigaos*)
6740       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)'
6741       hardcode_libdir_flag_spec='-L$libdir'
6742       hardcode_minus_L=yes
6743
6744       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6745       # that the semantics of dynamic libraries on AmigaOS, at least up
6746       # to version 4, is to share data among multiple programs linked
6747       # with the same dynamic library.  Since this doesn't match the
6748       # behavior of shared libraries on other platforms, we can't use
6749       # them.
6750       ld_shlibs=no
6751       ;;
6752
6753     beos*)
6754       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6755         allow_undefined_flag=unsupported
6756         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6757         # support --undefined.  This deserves some investigation.  FIXME
6758         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759       else
6760         ld_shlibs=no
6761       fi
6762       ;;
6763
6764     cygwin* | mingw* | pw32*)
6765       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6766       # as there is no search path for DLLs.
6767       hardcode_libdir_flag_spec='-L$libdir'
6768       allow_undefined_flag=unsupported
6769       always_export_symbols=no
6770       enable_shared_with_static_runtimes=yes
6771       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6772
6773       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6774         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6775         # If the export-symbols file already is a .def file (1st line
6776         # is EXPORTS), use it as is; otherwise, prepend...
6777         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6778           cp $export_symbols $output_objdir/$soname.def;
6779         else
6780           echo EXPORTS > $output_objdir/$soname.def;
6781           cat $export_symbols >> $output_objdir/$soname.def;
6782         fi~
6783         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6784       else
6785         ld_shlibs=no
6786       fi
6787       ;;
6788
6789     netbsd*)
6790       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6791         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6792         wlarc=
6793       else
6794         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6795         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6796       fi
6797       ;;
6798
6799     solaris* | sysv5*)
6800       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6801         ld_shlibs=no
6802         cat <<EOF 1>&2
6803
6804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6805 *** create shared libraries on Solaris systems.  Therefore, libtool
6806 *** is disabling shared libraries support.  We urge you to upgrade GNU
6807 *** binutils to release 2.9.1 or newer.  Another option is to modify
6808 *** your PATH or compiler configuration so that the native linker is
6809 *** used, and then restart.
6810
6811 EOF
6812       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6813         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6814         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6815       else
6816         ld_shlibs=no
6817       fi
6818       ;;
6819
6820     sunos4*)
6821       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6822       wlarc=
6823       hardcode_direct=yes
6824       hardcode_shlibpath_var=no
6825       ;;
6826
6827   linux*)
6828     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6829         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6830         archive_cmds="$tmp_archive_cmds"
6831       supports_anon_versioning=no
6832       case `$LD -v 2>/dev/null` in
6833         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6834         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6835         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6836         *\ 2.11.*) ;; # other 2.11 versions
6837         *) supports_anon_versioning=yes ;;
6838       esac
6839       if test $supports_anon_versioning = yes; then
6840         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6842 $echo "local: *; };" >> $output_objdir/$libname.ver~
6843         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6844       else
6845         archive_expsym_cmds="$tmp_archive_cmds"
6846       fi
6847     else
6848       ld_shlibs=no
6849     fi
6850     ;;
6851
6852     *)
6853       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6854         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6855         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6856       else
6857         ld_shlibs=no
6858       fi
6859       ;;
6860     esac
6861
6862     if test "$ld_shlibs" = yes; then
6863       runpath_var=LD_RUN_PATH
6864       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6865       export_dynamic_flag_spec='${wl}--export-dynamic'
6866       # ancient GNU ld didn't support --whole-archive et. al.
6867       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6868         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6869       else
6870         whole_archive_flag_spec=
6871       fi
6872     fi
6873   else
6874     # PORTME fill in a description of your system's linker (not GNU ld)
6875     case $host_os in
6876     aix3*)
6877       allow_undefined_flag=unsupported
6878       always_export_symbols=yes
6879       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'
6880       # Note: this linker hardcodes the directories in LIBPATH if there
6881       # are no directories specified by -L.
6882       hardcode_minus_L=yes
6883       if test "$GCC" = yes && test -z "$link_static_flag"; then
6884         # Neither direct hardcoding nor static linking is supported with a
6885         # broken collect2.
6886         hardcode_direct=unsupported
6887       fi
6888       ;;
6889
6890     aix4* | aix5*)
6891       if test "$host_cpu" = ia64; then
6892         # On IA64, the linker does run time linking by default, so we don't
6893         # have to do anything special.
6894         aix_use_runtimelinking=no
6895         exp_sym_flag='-Bexport'
6896         no_entry_flag=""
6897       else
6898         # If we're using GNU nm, then we don't want the "-C" option.
6899         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6900         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6901           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'
6902         else
6903           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'
6904         fi
6905         aix_use_runtimelinking=no
6906
6907         # Test if we are trying to use run time linking or normal
6908         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6909         # need to do runtime linking.
6910         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6911           for ld_flag in $LDFLAGS; do
6912           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6913             aix_use_runtimelinking=yes
6914             break
6915           fi
6916           done
6917         esac
6918
6919         exp_sym_flag='-bexport'
6920         no_entry_flag='-bnoentry'
6921       fi
6922
6923       # When large executables or shared objects are built, AIX ld can
6924       # have problems creating the table of contents.  If linking a library
6925       # or program results in "error TOC overflow" add -mminimal-toc to
6926       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6927       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6928
6929       archive_cmds=''
6930       hardcode_direct=yes
6931       hardcode_libdir_separator=':'
6932       link_all_deplibs=yes
6933
6934       if test "$GCC" = yes; then
6935         case $host_os in aix4.012|aix4.012.*)
6936         # We only want to do this on AIX 4.2 and lower, the check
6937         # below for broken collect2 doesn't work under 4.3+
6938           collect2name=`${CC} -print-prog-name=collect2`
6939           if test -f "$collect2name" && \
6940            strings "$collect2name" | grep resolve_lib_name >/dev/null
6941           then
6942           # We have reworked collect2
6943           hardcode_direct=yes
6944           else
6945           # We have old collect2
6946           hardcode_direct=unsupported
6947           # It fails to find uninstalled libraries when the uninstalled
6948           # path is not listed in the libpath.  Setting hardcode_minus_L
6949           # to unsupported forces relinking
6950           hardcode_minus_L=yes
6951           hardcode_libdir_flag_spec='-L$libdir'
6952           hardcode_libdir_separator=
6953           fi
6954         esac
6955         shared_flag='-shared'
6956       else
6957         # not using gcc
6958         if test "$host_cpu" = ia64; then
6959         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6960         # chokes on -Wl,-G. The following line is correct:
6961           shared_flag='-G'
6962         else
6963         if test "$aix_use_runtimelinking" = yes; then
6964             shared_flag='${wl}-G'
6965           else
6966             shared_flag='${wl}-bM:SRE'
6967         fi
6968         fi
6969       fi
6970
6971       # It seems that -bexpall does not export symbols beginning with
6972       # underscore (_), so it is better to generate a list of symbols to export.
6973       always_export_symbols=yes
6974       if test "$aix_use_runtimelinking" = yes; then
6975         # Warning - without using the other runtime loading flags (-brtl),
6976         # -berok will link without error, but may produce a broken library.
6977         allow_undefined_flag='-berok'
6978        # Determine the default libpath from the value encoded in an empty executable.
6979        cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985
6986 int
6987 main ()
6988 {
6989
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996   (eval $ac_link) 2>conftest.er1
6997   ac_status=$?
6998   grep -v '^ *+' conftest.er1 >conftest.err
6999   rm -f conftest.er1
7000   cat conftest.err >&5
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } &&
7003          { ac_try='test -z "$ac_c_werror_flag"
7004                          || test ! -s conftest.err'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; } &&
7010          { ac_try='test -s conftest$ac_exeext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016
7017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7018 }'`
7019 # Check for a 64-bit object if we didn't find anything.
7020 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; }
7021 }'`; fi
7022 else
7023   echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 fi
7027 rm -f conftest.err conftest.$ac_objext \
7028       conftest$ac_exeext conftest.$ac_ext
7029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7030
7031        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7032         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"
7033        else
7034         if test "$host_cpu" = ia64; then
7035           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7036           allow_undefined_flag="-z nodefs"
7037           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"
7038         else
7039          # Determine the default libpath from the value encoded in an empty executable.
7040          cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046
7047 int
7048 main ()
7049 {
7050
7051   ;
7052   return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext conftest$ac_exeext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7057   (eval $ac_link) 2>conftest.er1
7058   ac_status=$?
7059   grep -v '^ *+' conftest.er1 >conftest.err
7060   rm -f conftest.er1
7061   cat conftest.err >&5
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } &&
7064          { ac_try='test -z "$ac_c_werror_flag"
7065                          || test ! -s conftest.err'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; } &&
7071          { ac_try='test -s conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077
7078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7079 }'`
7080 # Check for a 64-bit object if we didn't find anything.
7081 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; }
7082 }'`; fi
7083 else
7084   echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 fi
7088 rm -f conftest.err conftest.$ac_objext \
7089       conftest$ac_exeext conftest.$ac_ext
7090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7091
7092          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7093           # Warning - without using the other run time loading flags,
7094           # -berok will link without error, but may produce a broken library.
7095           no_undefined_flag=' ${wl}-bernotok'
7096           allow_undefined_flag=' ${wl}-berok'
7097           # -bexpall does not export symbols beginning with underscore (_)
7098           always_export_symbols=yes
7099           # Exported symbols can be pulled into shared objects from archives
7100           whole_archive_flag_spec=' '
7101           archive_cmds_need_lc=yes
7102           # This is similar to how AIX traditionally builds it's shared libraries.
7103           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'
7104         fi
7105       fi
7106       ;;
7107
7108     amigaos*)
7109       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)'
7110       hardcode_libdir_flag_spec='-L$libdir'
7111       hardcode_minus_L=yes
7112       # see comment about different semantics on the GNU ld section
7113       ld_shlibs=no
7114       ;;
7115
7116     bsdi4*)
7117       export_dynamic_flag_spec=-rdynamic
7118       ;;
7119
7120     cygwin* | mingw* | pw32*)
7121       # When not using gcc, we currently assume that we are using
7122       # Microsoft Visual C++.
7123       # hardcode_libdir_flag_spec is actually meaningless, as there is
7124       # no search path for DLLs.
7125       hardcode_libdir_flag_spec=' '
7126       allow_undefined_flag=unsupported
7127       # Tell ltmain to make .lib files, not .a files.
7128       libext=lib
7129       # Tell ltmain to make .dll files, not .so files.
7130       shrext_cmds=".dll"
7131       # FIXME: Setting linknames here is a bad hack.
7132       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7133       # The linker will automatically build a .lib file if we build a DLL.
7134       old_archive_From_new_cmds='true'
7135       # FIXME: Should let the user specify the lib program.
7136       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7137       fix_srcfile_path='`cygpath -w "$srcfile"`'
7138       enable_shared_with_static_runtimes=yes
7139       ;;
7140
7141     darwin* | rhapsody*)
7142     if test "$GXX" = yes ; then
7143       archive_cmds_need_lc=no
7144       case "$host_os" in
7145       rhapsody* | darwin1.[012])
7146         allow_undefined_flag='-undefined suppress'
7147         ;;
7148       *) # Darwin 1.3 on
7149       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7150         allow_undefined_flag='-flat_namespace -undefined suppress'
7151       else
7152         case ${MACOSX_DEPLOYMENT_TARGET} in
7153           10.[012])
7154             allow_undefined_flag='-flat_namespace -undefined suppress'
7155             ;;
7156           10.*)
7157             allow_undefined_flag='-undefined dynamic_lookup'
7158             ;;
7159         esac
7160       fi
7161         ;;
7162       esac
7163         lt_int_apple_cc_single_mod=no
7164         output_verbose_link_cmd='echo'
7165         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7166           lt_int_apple_cc_single_mod=yes
7167         fi
7168         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7169           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7170         else
7171         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7172       fi
7173       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7174       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7175         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7176           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7177         else
7178           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7179         fi
7180           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}'
7181       hardcode_direct=no
7182       hardcode_automatic=yes
7183       hardcode_shlibpath_var=unsupported
7184       whole_archive_flag_spec='-all_load $convenience'
7185       link_all_deplibs=yes
7186     else
7187       ld_shlibs=no
7188     fi
7189       ;;
7190
7191     dgux*)
7192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193       hardcode_libdir_flag_spec='-L$libdir'
7194       hardcode_shlibpath_var=no
7195       ;;
7196
7197     freebsd1*)
7198       ld_shlibs=no
7199       ;;
7200
7201     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7202     # support.  Future versions do this automatically, but an explicit c++rt0.o
7203     # does not break anything, and helps significantly (at the cost of a little
7204     # extra space).
7205     freebsd2.2*)
7206       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7207       hardcode_libdir_flag_spec='-R$libdir'
7208       hardcode_direct=yes
7209       hardcode_shlibpath_var=no
7210       ;;
7211
7212     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7213     freebsd2*)
7214       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7215       hardcode_direct=yes
7216       hardcode_minus_L=yes
7217       hardcode_shlibpath_var=no
7218       ;;
7219
7220     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7221     freebsd* | kfreebsd*-gnu)
7222       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7223       hardcode_libdir_flag_spec='-R$libdir'
7224       hardcode_direct=yes
7225       hardcode_shlibpath_var=no
7226       ;;
7227
7228     hpux9*)
7229       if test "$GCC" = yes; then
7230         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'
7231       else
7232         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'
7233       fi
7234       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235       hardcode_libdir_separator=:
7236       hardcode_direct=yes
7237
7238       # hardcode_minus_L: Not really in the search PATH,
7239       # but as the default location of the library.
7240       hardcode_minus_L=yes
7241       export_dynamic_flag_spec='${wl}-E'
7242       ;;
7243
7244     hpux10* | hpux11*)
7245       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7246         case "$host_cpu" in
7247         hppa*64*|ia64*)
7248           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7249           ;;
7250         *)
7251           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7252           ;;
7253         esac
7254       else
7255         case "$host_cpu" in
7256         hppa*64*|ia64*)
7257           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7258           ;;
7259         *)
7260           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7261           ;;
7262         esac
7263       fi
7264       if test "$with_gnu_ld" = no; then
7265         case "$host_cpu" in
7266         hppa*64*)
7267           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7268           hardcode_libdir_flag_spec_ld='+b $libdir'
7269           hardcode_libdir_separator=:
7270           hardcode_direct=no
7271           hardcode_shlibpath_var=no
7272           ;;
7273         ia64*)
7274           hardcode_libdir_flag_spec='-L$libdir'
7275           hardcode_direct=no
7276           hardcode_shlibpath_var=no
7277
7278           # hardcode_minus_L: Not really in the search PATH,
7279           # but as the default location of the library.
7280           hardcode_minus_L=yes
7281           ;;
7282         *)
7283           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7284           hardcode_libdir_separator=:
7285           hardcode_direct=yes
7286           export_dynamic_flag_spec='${wl}-E'
7287
7288           # hardcode_minus_L: Not really in the search PATH,
7289           # but as the default location of the library.
7290           hardcode_minus_L=yes
7291           ;;
7292         esac
7293       fi
7294       ;;
7295
7296     irix5* | irix6* | nonstopux*)
7297       if test "$GCC" = yes; then
7298         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'
7299       else
7300         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'
7301         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7302       fi
7303       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7304       hardcode_libdir_separator=:
7305       link_all_deplibs=yes
7306       ;;
7307
7308     netbsd*)
7309       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7310         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7311       else
7312         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7313       fi
7314       hardcode_libdir_flag_spec='-R$libdir'
7315       hardcode_direct=yes
7316       hardcode_shlibpath_var=no
7317       ;;
7318
7319     newsos6)
7320       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7321       hardcode_direct=yes
7322       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7323       hardcode_libdir_separator=:
7324       hardcode_shlibpath_var=no
7325       ;;
7326
7327     openbsd*)
7328       hardcode_direct=yes
7329       hardcode_shlibpath_var=no
7330       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7331         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7332         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7333         export_dynamic_flag_spec='${wl}-E'
7334       else
7335        case $host_os in
7336          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7337            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7338            hardcode_libdir_flag_spec='-R$libdir'
7339            ;;
7340          *)
7341            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7342            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7343            ;;
7344        esac
7345       fi
7346       ;;
7347
7348     os2*)
7349       hardcode_libdir_flag_spec='-L$libdir'
7350       hardcode_minus_L=yes
7351       allow_undefined_flag=unsupported
7352       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'
7353       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7354       ;;
7355
7356     osf3*)
7357       if test "$GCC" = yes; then
7358         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7359         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'
7360       else
7361         allow_undefined_flag=' -expect_unresolved \*'
7362         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'
7363       fi
7364       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7365       hardcode_libdir_separator=:
7366       ;;
7367
7368     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7369       if test "$GCC" = yes; then
7370         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7371         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'
7372         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7373       else
7374         allow_undefined_flag=' -expect_unresolved \*'
7375         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'
7376         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7377         $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'
7378
7379         # Both c and cxx compiler support -rpath directly
7380         hardcode_libdir_flag_spec='-rpath $libdir'
7381       fi
7382       hardcode_libdir_separator=:
7383       ;;
7384
7385     sco3.2v5*)
7386       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387       hardcode_shlibpath_var=no
7388       export_dynamic_flag_spec='${wl}-Bexport'
7389       runpath_var=LD_RUN_PATH
7390       hardcode_runpath_var=yes
7391       ;;
7392
7393     solaris*)
7394       no_undefined_flag=' -z text'
7395       if test "$GCC" = yes; then
7396         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7397         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7398           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7399       else
7400         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7401         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7402         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7403       fi
7404       hardcode_libdir_flag_spec='-R$libdir'
7405       hardcode_shlibpath_var=no
7406       case $host_os in
7407       solaris2.[0-5] | solaris2.[0-5].*) ;;
7408       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7409         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7410       esac
7411       link_all_deplibs=yes
7412       ;;
7413
7414     sunos4*)
7415       if test "x$host_vendor" = xsequent; then
7416         # Use $CC to link under sequent, because it throws in some extra .o
7417         # files that make .init and .fini sections work.
7418         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7419       else
7420         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7421       fi
7422       hardcode_libdir_flag_spec='-L$libdir'
7423       hardcode_direct=yes
7424       hardcode_minus_L=yes
7425       hardcode_shlibpath_var=no
7426       ;;
7427
7428     sysv4)
7429       case $host_vendor in
7430         sni)
7431           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432           hardcode_direct=yes # is this really true???
7433         ;;
7434         siemens)
7435           ## LD is ld it makes a PLAMLIB
7436           ## CC just makes a GrossModule.
7437           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438           reload_cmds='$CC -r -o $output$reload_objs'
7439           hardcode_direct=no
7440         ;;
7441         motorola)
7442           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7444         ;;
7445       esac
7446       runpath_var='LD_RUN_PATH'
7447       hardcode_shlibpath_var=no
7448       ;;
7449
7450     sysv4.3*)
7451       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452       hardcode_shlibpath_var=no
7453       export_dynamic_flag_spec='-Bexport'
7454       ;;
7455
7456     sysv4*MP*)
7457       if test -d /usr/nec; then
7458         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459         hardcode_shlibpath_var=no
7460         runpath_var=LD_RUN_PATH
7461         hardcode_runpath_var=yes
7462         ld_shlibs=yes
7463       fi
7464       ;;
7465
7466     sysv4.2uw2*)
7467       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7468       hardcode_direct=yes
7469       hardcode_minus_L=no
7470       hardcode_shlibpath_var=no
7471       hardcode_runpath_var=yes
7472       runpath_var=LD_RUN_PATH
7473       ;;
7474
7475    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7476       no_undefined_flag='${wl}-z ${wl}text'
7477       if test "$GCC" = yes; then
7478         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7479       else
7480         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7481       fi
7482       runpath_var='LD_RUN_PATH'
7483       hardcode_shlibpath_var=no
7484       ;;
7485
7486     sysv5*)
7487       no_undefined_flag=' -z text'
7488       # $CC -shared without GNU ld will not create a library from C++
7489       # object files and a static libstdc++, better avoid it by now
7490       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7491       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7492                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7493       hardcode_libdir_flag_spec=
7494       hardcode_shlibpath_var=no
7495       runpath_var='LD_RUN_PATH'
7496       ;;
7497
7498     uts4*)
7499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7500       hardcode_libdir_flag_spec='-L$libdir'
7501       hardcode_shlibpath_var=no
7502       ;;
7503
7504     *)
7505       ld_shlibs=no
7506       ;;
7507     esac
7508   fi
7509
7510 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7511 echo "${ECHO_T}$ld_shlibs" >&6
7512 test "$ld_shlibs" = no && can_build_shared=no
7513
7514 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7515 if test "$GCC" = yes; then
7516   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7517 fi
7518
7519 #
7520 # Do we need to explicitly link libc?
7521 #
7522 case "x$archive_cmds_need_lc" in
7523 x|xyes)
7524   # Assume -lc should be added
7525   archive_cmds_need_lc=yes
7526
7527   if test "$enable_shared" = yes && test "$GCC" = yes; then
7528     case $archive_cmds in
7529     *'~'*)
7530       # FIXME: we may have to deal with multi-command sequences.
7531       ;;
7532     '$CC '*)
7533       # Test whether the compiler implicitly links with -lc since on some
7534       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7535       # to ld, don't add -lc before -lgcc.
7536       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7537 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7538       $rm conftest*
7539       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7540
7541       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); } 2>conftest.err; then
7546         soname=conftest
7547         lib=conftest
7548         libobjs=conftest.$ac_objext
7549         deplibs=
7550         wl=$lt_prog_compiler_wl
7551         compiler_flags=-v
7552         linker_flags=-v
7553         verstring=
7554         output_objdir=.
7555         libname=conftest
7556         lt_save_allow_undefined_flag=$allow_undefined_flag
7557         allow_undefined_flag=
7558         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7559   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }
7563         then
7564           archive_cmds_need_lc=no
7565         else
7566           archive_cmds_need_lc=yes
7567         fi
7568         allow_undefined_flag=$lt_save_allow_undefined_flag
7569       else
7570         cat conftest.err 1>&5
7571       fi
7572       $rm conftest*
7573       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7574 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7575       ;;
7576     esac
7577   fi
7578   ;;
7579 esac
7580
7581 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7582 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7583 library_names_spec=
7584 libname_spec='lib$name'
7585 soname_spec=
7586 shrext_cmds=".so"
7587 postinstall_cmds=
7588 postuninstall_cmds=
7589 finish_cmds=
7590 finish_eval=
7591 shlibpath_var=
7592 shlibpath_overrides_runpath=unknown
7593 version_type=none
7594 dynamic_linker="$host_os ld.so"
7595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7596 if test "$GCC" = yes; then
7597   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7598   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7599     # if the path contains ";" then we assume it to be the separator
7600     # otherwise default to the standard path separator (i.e. ":") - it is
7601     # assumed that no part of a normal pathname contains ";" but that should
7602     # okay in the real world where ";" in dirpaths is itself problematic.
7603     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7604   else
7605     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7606   fi
7607 else
7608   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7609 fi
7610 need_lib_prefix=unknown
7611 hardcode_into_libs=no
7612
7613 # when you set need_version to no, make sure it does not cause -set_version
7614 # flags to be left without arguments
7615 need_version=unknown
7616
7617 case $host_os in
7618 aix3*)
7619   version_type=linux
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7621   shlibpath_var=LIBPATH
7622
7623   # AIX 3 has no versioning support, so we append a major version to the name.
7624   soname_spec='${libname}${release}${shared_ext}$major'
7625   ;;
7626
7627 aix4* | aix5*)
7628   version_type=linux
7629   need_lib_prefix=no
7630   need_version=no
7631   hardcode_into_libs=yes
7632   if test "$host_cpu" = ia64; then
7633     # AIX 5 supports IA64
7634     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7635     shlibpath_var=LD_LIBRARY_PATH
7636   else
7637     # With GCC up to 2.95.x, collect2 would create an import file
7638     # for dependence libraries.  The import file would start with
7639     # the line `#! .'.  This would cause the generated library to
7640     # depend on `.', always an invalid library.  This was fixed in
7641     # development snapshots of GCC prior to 3.0.
7642     case $host_os in
7643       aix4 | aix4.[01] | aix4.[01].*)
7644       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7645            echo ' yes '
7646            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7647         :
7648       else
7649         can_build_shared=no
7650       fi
7651       ;;
7652     esac
7653     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7654     # soname into executable. Probably we can add versioning support to
7655     # collect2, so additional links can be useful in future.
7656     if test "$aix_use_runtimelinking" = yes; then
7657       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7658       # instead of lib<name>.a to let people know that these are not
7659       # typical AIX shared libraries.
7660       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7661     else
7662       # We preserve .a as extension for shared libraries through AIX4.2
7663       # and later when we are not doing run time linking.
7664       library_names_spec='${libname}${release}.a $libname.a'
7665       soname_spec='${libname}${release}${shared_ext}$major'
7666     fi
7667     shlibpath_var=LIBPATH
7668   fi
7669   ;;
7670
7671 amigaos*)
7672   library_names_spec='$libname.ixlibrary $libname.a'
7673   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7674   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'
7675   ;;
7676
7677 beos*)
7678   library_names_spec='${libname}${shared_ext}'
7679   dynamic_linker="$host_os ld.so"
7680   shlibpath_var=LIBRARY_PATH
7681   ;;
7682
7683 bsdi4*)
7684   version_type=linux
7685   need_version=no
7686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687   soname_spec='${libname}${release}${shared_ext}$major'
7688   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7689   shlibpath_var=LD_LIBRARY_PATH
7690   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7691   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7692   # the default ld.so.conf also contains /usr/contrib/lib and
7693   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7694   # libtool to hard-code these into programs
7695   ;;
7696
7697 cygwin* | mingw* | pw32*)
7698   version_type=windows
7699   shrext_cmds=".dll"
7700   need_version=no
7701   need_lib_prefix=no
7702
7703   case $GCC,$host_os in
7704   yes,cygwin* | yes,mingw* | yes,pw32*)
7705     library_names_spec='$libname.dll.a'
7706     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7707     postinstall_cmds='base_file=`basename \${file}`~
7708       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7709       dldir=$destdir/`dirname \$dlpath`~
7710       test -d \$dldir || mkdir -p \$dldir~
7711       $install_prog $dir/$dlname \$dldir/$dlname'
7712     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7713       dlpath=$dir/\$dldll~
7714        $rm \$dlpath'
7715     shlibpath_overrides_runpath=yes
7716
7717     case $host_os in
7718     cygwin*)
7719       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7720       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7721       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7722       ;;
7723     mingw*)
7724       # MinGW DLLs use traditional 'lib' prefix
7725       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7726       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7727       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7728         # It is most probably a Windows format PATH printed by
7729         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7730         # path with ; separators, and with drive letters. We can handle the
7731         # drive letters (cygwin fileutils understands them), so leave them,
7732         # especially as we might pass files found there to a mingw objdump,
7733         # which wouldn't understand a cygwinified path. Ahh.
7734         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7735       else
7736         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7737       fi
7738       ;;
7739     pw32*)
7740       # pw32 DLLs use 'pw' prefix rather than 'lib'
7741       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7742       ;;
7743     esac
7744     ;;
7745
7746   *)
7747     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7748     ;;
7749   esac
7750   dynamic_linker='Win32 ld.exe'
7751   # FIXME: first we should search . and the directory the executable is in
7752   shlibpath_var=PATH
7753   ;;
7754
7755 darwin* | rhapsody*)
7756   dynamic_linker="$host_os dyld"
7757   version_type=darwin
7758   need_lib_prefix=no
7759   need_version=no
7760   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7761   soname_spec='${libname}${release}${major}$shared_ext'
7762   shlibpath_overrides_runpath=yes
7763   shlibpath_var=DYLD_LIBRARY_PATH
7764   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7765   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7766   if test "$GCC" = yes; then
7767     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"`
7768   else
7769     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7770   fi
7771   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7772   ;;
7773
7774 dgux*)
7775   version_type=linux
7776   need_lib_prefix=no
7777   need_version=no
7778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7779   soname_spec='${libname}${release}${shared_ext}$major'
7780   shlibpath_var=LD_LIBRARY_PATH
7781   ;;
7782
7783 freebsd1*)
7784   dynamic_linker=no
7785   ;;
7786
7787 kfreebsd*-gnu)
7788   version_type=linux
7789   need_lib_prefix=no
7790   need_version=no
7791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7792   soname_spec='${libname}${release}${shared_ext}$major'
7793   shlibpath_var=LD_LIBRARY_PATH
7794   shlibpath_overrides_runpath=no
7795   hardcode_into_libs=yes
7796   dynamic_linker='GNU ld.so'
7797   ;;
7798
7799 freebsd*)
7800   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7801   version_type=freebsd-$objformat
7802   case $version_type in
7803     freebsd-elf*)
7804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7805       need_version=no
7806       need_lib_prefix=no
7807       ;;
7808     freebsd-*)
7809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7810       need_version=yes
7811       ;;
7812   esac
7813   shlibpath_var=LD_LIBRARY_PATH
7814   case $host_os in
7815   freebsd2*)
7816     shlibpath_overrides_runpath=yes
7817     ;;
7818   freebsd3.01* | freebsdelf3.01*)
7819     shlibpath_overrides_runpath=yes
7820     hardcode_into_libs=yes
7821     ;;
7822   *) # from 3.2 on
7823     shlibpath_overrides_runpath=no
7824     hardcode_into_libs=yes
7825     ;;
7826   esac
7827   ;;
7828
7829 gnu*)
7830   version_type=linux
7831   need_lib_prefix=no
7832   need_version=no
7833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7834   soname_spec='${libname}${release}${shared_ext}$major'
7835   shlibpath_var=LD_LIBRARY_PATH
7836   hardcode_into_libs=yes
7837   ;;
7838
7839 hpux9* | hpux10* | hpux11*)
7840   # Give a soname corresponding to the major version so that dld.sl refuses to
7841   # link against other versions.
7842   version_type=sunos
7843   need_lib_prefix=no
7844   need_version=no
7845   case "$host_cpu" in
7846   ia64*)
7847     shrext_cmds='.so'
7848     hardcode_into_libs=yes
7849     dynamic_linker="$host_os dld.so"
7850     shlibpath_var=LD_LIBRARY_PATH
7851     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7853     soname_spec='${libname}${release}${shared_ext}$major'
7854     if test "X$HPUX_IA64_MODE" = X32; then
7855       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7856     else
7857       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7858     fi
7859     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7860     ;;
7861    hppa*64*)
7862      shrext_cmds='.sl'
7863      hardcode_into_libs=yes
7864      dynamic_linker="$host_os dld.sl"
7865      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7866      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7867      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7868      soname_spec='${libname}${release}${shared_ext}$major'
7869      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7870      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7871      ;;
7872    *)
7873     shrext_cmds='.sl'
7874     dynamic_linker="$host_os dld.sl"
7875     shlibpath_var=SHLIB_PATH
7876     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878     soname_spec='${libname}${release}${shared_ext}$major'
7879     ;;
7880   esac
7881   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7882   postinstall_cmds='chmod 555 $lib'
7883   ;;
7884
7885 irix5* | irix6* | nonstopux*)
7886   case $host_os in
7887     nonstopux*) version_type=nonstopux ;;
7888     *)
7889         if test "$lt_cv_prog_gnu_ld" = yes; then
7890                 version_type=linux
7891         else
7892                 version_type=irix
7893         fi ;;
7894   esac
7895   need_lib_prefix=no
7896   need_version=no
7897   soname_spec='${libname}${release}${shared_ext}$major'
7898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7899   case $host_os in
7900   irix5* | nonstopux*)
7901     libsuff= shlibsuff=
7902     ;;
7903   *)
7904     case $LD in # libtool.m4 will add one of these switches to LD
7905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7906       libsuff= shlibsuff= libmagic=32-bit;;
7907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7908       libsuff=32 shlibsuff=N32 libmagic=N32;;
7909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7911     *) libsuff= shlibsuff= libmagic=never-match;;
7912     esac
7913     ;;
7914   esac
7915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7916   shlibpath_overrides_runpath=no
7917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7919   hardcode_into_libs=yes
7920   ;;
7921
7922 # No shared lib support for Linux oldld, aout, or coff.
7923 linux*oldld* | linux*aout* | linux*coff*)
7924   dynamic_linker=no
7925   ;;
7926
7927 # This must be Linux ELF.
7928 linux*)
7929   version_type=linux
7930   need_lib_prefix=no
7931   need_version=no
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7933   soname_spec='${libname}${release}${shared_ext}$major'
7934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7935   shlibpath_var=LD_LIBRARY_PATH
7936   shlibpath_overrides_runpath=no
7937   # This implies no fast_install, which is unacceptable.
7938   # Some rework will be needed to allow for fast_install
7939   # before this can be enabled.
7940   hardcode_into_libs=yes
7941
7942   # find out which ABI we are using
7943   libsuff=
7944   case "$host_cpu" in
7945   x86_64*|s390x*|powerpc64*)
7946     echo '#line 7946 "configure"' > conftest.$ac_ext
7947     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948   (eval $ac_compile) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; then
7952       case `/usr/bin/file conftest.$ac_objext` in
7953       *64-bit*)
7954         libsuff=64
7955         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7956         ;;
7957       esac
7958     fi
7959     rm -rf conftest*
7960     ;;
7961   esac
7962
7963   # Append ld.so.conf contents to the search path
7964   if test -f /etc/ld.so.conf; then
7965     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7966     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7967   fi
7968
7969   # We used to test for /lib/ld.so.1 and disable shared libraries on
7970   # powerpc, because MkLinux only supported shared libraries with the
7971   # GNU dynamic linker.  Since this was broken with cross compilers,
7972   # most powerpc-linux boxes support dynamic linking these days and
7973   # people can always --disable-shared, the test was removed, and we
7974   # assume the GNU/Linux dynamic linker is in use.
7975   dynamic_linker='GNU/Linux ld.so'
7976   ;;
7977
7978 knetbsd*-gnu)
7979   version_type=linux
7980   need_lib_prefix=no
7981   need_version=no
7982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7983   soname_spec='${libname}${release}${shared_ext}$major'
7984   shlibpath_var=LD_LIBRARY_PATH
7985   shlibpath_overrides_runpath=no
7986   hardcode_into_libs=yes
7987   dynamic_linker='GNU ld.so'
7988   ;;
7989
7990 netbsd*)
7991   version_type=sunos
7992   need_lib_prefix=no
7993   need_version=no
7994   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7996     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7997     dynamic_linker='NetBSD (a.out) ld.so'
7998   else
7999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8000     soname_spec='${libname}${release}${shared_ext}$major'
8001     dynamic_linker='NetBSD ld.elf_so'
8002   fi
8003   shlibpath_var=LD_LIBRARY_PATH
8004   shlibpath_overrides_runpath=yes
8005   hardcode_into_libs=yes
8006   ;;
8007
8008 newsos6)
8009   version_type=linux
8010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011   shlibpath_var=LD_LIBRARY_PATH
8012   shlibpath_overrides_runpath=yes
8013   ;;
8014
8015 nto-qnx*)
8016   version_type=linux
8017   need_lib_prefix=no
8018   need_version=no
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   shlibpath_overrides_runpath=yes
8023   ;;
8024
8025 openbsd*)
8026   version_type=sunos
8027   need_lib_prefix=no
8028   need_version=yes
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8031   shlibpath_var=LD_LIBRARY_PATH
8032   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8033     case $host_os in
8034       openbsd2.[89] | openbsd2.[89].*)
8035         shlibpath_overrides_runpath=no
8036         ;;
8037       *)
8038         shlibpath_overrides_runpath=yes
8039         ;;
8040       esac
8041   else
8042     shlibpath_overrides_runpath=yes
8043   fi
8044   ;;
8045
8046 os2*)
8047   libname_spec='$name'
8048   shrext_cmds=".dll"
8049   need_lib_prefix=no
8050   library_names_spec='$libname${shared_ext} $libname.a'
8051   dynamic_linker='OS/2 ld.exe'
8052   shlibpath_var=LIBPATH
8053   ;;
8054
8055 osf3* | osf4* | osf5*)
8056   version_type=osf
8057   need_lib_prefix=no
8058   need_version=no
8059   soname_spec='${libname}${release}${shared_ext}$major'
8060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8061   shlibpath_var=LD_LIBRARY_PATH
8062   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8063   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8064   ;;
8065
8066 sco3.2v5*)
8067   version_type=osf
8068   soname_spec='${libname}${release}${shared_ext}$major'
8069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8070   shlibpath_var=LD_LIBRARY_PATH
8071   ;;
8072
8073 solaris*)
8074   version_type=linux
8075   need_lib_prefix=no
8076   need_version=no
8077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078   soname_spec='${libname}${release}${shared_ext}$major'
8079   shlibpath_var=LD_LIBRARY_PATH
8080   shlibpath_overrides_runpath=yes
8081   hardcode_into_libs=yes
8082   # ldd complains unless libraries are executable
8083   postinstall_cmds='chmod +x $lib'
8084   ;;
8085
8086 sunos4*)
8087   version_type=sunos
8088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8089   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8090   shlibpath_var=LD_LIBRARY_PATH
8091   shlibpath_overrides_runpath=yes
8092   if test "$with_gnu_ld" = yes; then
8093     need_lib_prefix=no
8094   fi
8095   need_version=yes
8096   ;;
8097
8098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8099   version_type=linux
8100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8101   soname_spec='${libname}${release}${shared_ext}$major'
8102   shlibpath_var=LD_LIBRARY_PATH
8103   case $host_vendor in
8104     sni)
8105       shlibpath_overrides_runpath=no
8106       need_lib_prefix=no
8107       export_dynamic_flag_spec='${wl}-Blargedynsym'
8108       runpath_var=LD_RUN_PATH
8109       ;;
8110     siemens)
8111       need_lib_prefix=no
8112       ;;
8113     motorola)
8114       need_lib_prefix=no
8115       need_version=no
8116       shlibpath_overrides_runpath=no
8117       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8118       ;;
8119   esac
8120   ;;
8121
8122 sysv4*MP*)
8123   if test -d /usr/nec ;then
8124     version_type=linux
8125     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8126     soname_spec='$libname${shared_ext}.$major'
8127     shlibpath_var=LD_LIBRARY_PATH
8128   fi
8129   ;;
8130
8131 uts4*)
8132   version_type=linux
8133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134   soname_spec='${libname}${release}${shared_ext}$major'
8135   shlibpath_var=LD_LIBRARY_PATH
8136   ;;
8137
8138 *)
8139   dynamic_linker=no
8140   ;;
8141 esac
8142 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8143 echo "${ECHO_T}$dynamic_linker" >&6
8144 test "$dynamic_linker" = no && can_build_shared=no
8145
8146 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8147 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8148 hardcode_action=
8149 if test -n "$hardcode_libdir_flag_spec" || \
8150    test -n "$runpath_var " || \
8151    test "X$hardcode_automatic"="Xyes" ; then
8152
8153   # We can hardcode non-existant directories.
8154   if test "$hardcode_direct" != no &&
8155      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8156      # have to relink, otherwise we might link with an installed library
8157      # when we should be linking with a yet-to-be-installed one
8158      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8159      test "$hardcode_minus_L" != no; then
8160     # Linking always hardcodes the temporary library directory.
8161     hardcode_action=relink
8162   else
8163     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8164     hardcode_action=immediate
8165   fi
8166 else
8167   # We cannot hardcode anything, or else we can only hardcode existing
8168   # directories.
8169   hardcode_action=unsupported
8170 fi
8171 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8172 echo "${ECHO_T}$hardcode_action" >&6
8173
8174 if test "$hardcode_action" = relink; then
8175   # Fast installation is not supported
8176   enable_fast_install=no
8177 elif test "$shlibpath_overrides_runpath" = yes ||
8178      test "$enable_shared" = no; then
8179   # Fast installation is not necessary
8180   enable_fast_install=needless
8181 fi
8182
8183 striplib=
8184 old_striplib=
8185 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8186 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8187 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8188   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8189   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8190   echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8192 else
8193 # FIXME - insert some real tests, host_os isn't really good enough
8194   case $host_os in
8195    darwin*)
8196        if test -n "$STRIP" ; then
8197          striplib="$STRIP -x"
8198          echo "$as_me:$LINENO: result: yes" >&5
8199 echo "${ECHO_T}yes" >&6
8200        else
8201   echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6
8203 fi
8204        ;;
8205    *)
8206   echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8208     ;;
8209   esac
8210 fi
8211
8212 if test "x$enable_dlopen" != xyes; then
8213   enable_dlopen=unknown
8214   enable_dlopen_self=unknown
8215   enable_dlopen_self_static=unknown
8216 else
8217   lt_cv_dlopen=no
8218   lt_cv_dlopen_libs=
8219
8220   case $host_os in
8221   beos*)
8222     lt_cv_dlopen="load_add_on"
8223     lt_cv_dlopen_libs=
8224     lt_cv_dlopen_self=yes
8225     ;;
8226
8227   mingw* | pw32*)
8228     lt_cv_dlopen="LoadLibrary"
8229     lt_cv_dlopen_libs=
8230    ;;
8231
8232   cygwin*)
8233     lt_cv_dlopen="dlopen"
8234     lt_cv_dlopen_libs=
8235    ;;
8236
8237   darwin*)
8238   # if libdl is installed we need to link against it
8239     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   ac_check_lib_save_LIBS=$LIBS
8245 LIBS="-ldl  $LIBS"
8246 cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252
8253 /* Override any gcc2 internal prototype to avoid an error.  */
8254 #ifdef __cplusplus
8255 extern "C"
8256 #endif
8257 /* We use char because int might match the return type of a gcc2
8258    builtin and then its argument prototype would still apply.  */
8259 char dlopen ();
8260 int
8261 main ()
8262 {
8263 dlopen ();
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270   (eval $ac_link) 2>conftest.er1
8271   ac_status=$?
8272   grep -v '^ *+' conftest.er1 >conftest.err
8273   rm -f conftest.er1
8274   cat conftest.err >&5
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -z "$ac_c_werror_flag"
8278                          || test ! -s conftest.err'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; } &&
8284          { ac_try='test -s conftest$ac_exeext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_cv_lib_dl_dlopen=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_cv_lib_dl_dlopen=no
8296 fi
8297 rm -f conftest.err conftest.$ac_objext \
8298       conftest$ac_exeext conftest.$ac_ext
8299 LIBS=$ac_check_lib_save_LIBS
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8303 if test $ac_cv_lib_dl_dlopen = yes; then
8304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8305 else
8306
8307     lt_cv_dlopen="dyld"
8308     lt_cv_dlopen_libs=
8309     lt_cv_dlopen_self=yes
8310
8311 fi
8312
8313    ;;
8314
8315   *)
8316     echo "$as_me:$LINENO: checking for shl_load" >&5
8317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8318 if test "${ac_cv_func_shl_load+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8329 #define shl_load innocuous_shl_load
8330
8331 /* System header to define __stub macros and hopefully few prototypes,
8332     which can conflict with char shl_load (); below.
8333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334     <limits.h> exists even on freestanding compilers.  */
8335
8336 #ifdef __STDC__
8337 # include <limits.h>
8338 #else
8339 # include <assert.h>
8340 #endif
8341
8342 #undef shl_load
8343
8344 /* Override any gcc2 internal prototype to avoid an error.  */
8345 #ifdef __cplusplus
8346 extern "C"
8347 {
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350    builtin and then its argument prototype would still apply.  */
8351 char shl_load ();
8352 /* The GNU C library defines this for functions which it implements
8353     to always fail with ENOSYS.  Some functions are actually named
8354     something starting with __ and the normal name is an alias.  */
8355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8356 choke me
8357 #else
8358 char (*f) () = shl_load;
8359 #endif
8360 #ifdef __cplusplus
8361 }
8362 #endif
8363
8364 int
8365 main ()
8366 {
8367 return f != shl_load;
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374   (eval $ac_link) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"
8382                          || test ! -s conftest.err'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; } &&
8388          { ac_try='test -s conftest$ac_exeext'
8389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390   (eval $ac_try) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; }; then
8394   ac_cv_func_shl_load=yes
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ac_cv_func_shl_load=no
8400 fi
8401 rm -f conftest.err conftest.$ac_objext \
8402       conftest$ac_exeext conftest.$ac_ext
8403 fi
8404 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8405 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8406 if test $ac_cv_func_shl_load = yes; then
8407   lt_cv_dlopen="shl_load"
8408 else
8409   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   ac_check_lib_save_LIBS=$LIBS
8415 LIBS="-ldld  $LIBS"
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422
8423 /* Override any gcc2 internal prototype to avoid an error.  */
8424 #ifdef __cplusplus
8425 extern "C"
8426 #endif
8427 /* We use char because int might match the return type of a gcc2
8428    builtin and then its argument prototype would still apply.  */
8429 char shl_load ();
8430 int
8431 main ()
8432 {
8433 shl_load ();
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440   (eval $ac_link) 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag"
8448                          || test ! -s conftest.err'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; } &&
8454          { ac_try='test -s conftest$ac_exeext'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   ac_cv_lib_dld_shl_load=yes
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 ac_cv_lib_dld_shl_load=no
8466 fi
8467 rm -f conftest.err conftest.$ac_objext \
8468       conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8470 fi
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8472 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8473 if test $ac_cv_lib_dld_shl_load = yes; then
8474   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8475 else
8476   echo "$as_me:$LINENO: checking for dlopen" >&5
8477 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8478 if test "${ac_cv_func_dlopen+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8489 #define dlopen innocuous_dlopen
8490
8491 /* System header to define __stub macros and hopefully few prototypes,
8492     which can conflict with char dlopen (); below.
8493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8494     <limits.h> exists even on freestanding compilers.  */
8495
8496 #ifdef __STDC__
8497 # include <limits.h>
8498 #else
8499 # include <assert.h>
8500 #endif
8501
8502 #undef dlopen
8503
8504 /* Override any gcc2 internal prototype to avoid an error.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 {
8508 #endif
8509 /* We use char because int might match the return type of a gcc2
8510    builtin and then its argument prototype would still apply.  */
8511 char dlopen ();
8512 /* The GNU C library defines this for functions which it implements
8513     to always fail with ENOSYS.  Some functions are actually named
8514     something starting with __ and the normal name is an alias.  */
8515 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8516 choke me
8517 #else
8518 char (*f) () = dlopen;
8519 #endif
8520 #ifdef __cplusplus
8521 }
8522 #endif
8523
8524 int
8525 main ()
8526 {
8527 return f != dlopen;
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534   (eval $ac_link) 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -z "$ac_c_werror_flag"
8542                          || test ! -s conftest.err'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; } &&
8548          { ac_try='test -s conftest$ac_exeext'
8549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550   (eval $ac_try) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; }; then
8554   ac_cv_func_dlopen=yes
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 ac_cv_func_dlopen=no
8560 fi
8561 rm -f conftest.err conftest.$ac_objext \
8562       conftest$ac_exeext conftest.$ac_ext
8563 fi
8564 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8565 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8566 if test $ac_cv_func_dlopen = yes; then
8567   lt_cv_dlopen="dlopen"
8568 else
8569   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574   ac_check_lib_save_LIBS=$LIBS
8575 LIBS="-ldl  $LIBS"
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582
8583 /* Override any gcc2 internal prototype to avoid an error.  */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588    builtin and then its argument prototype would still apply.  */
8589 char dlopen ();
8590 int
8591 main ()
8592 {
8593 dlopen ();
8594   ;
8595   return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600   (eval $ac_link) 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } &&
8607          { ac_try='test -z "$ac_c_werror_flag"
8608                          || test ! -s conftest.err'
8609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610   (eval $ac_try) 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; } &&
8614          { ac_try='test -s conftest$ac_exeext'
8615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616   (eval $ac_try) 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; }; then
8620   ac_cv_lib_dl_dlopen=yes
8621 else
8622   echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625 ac_cv_lib_dl_dlopen=no
8626 fi
8627 rm -f conftest.err conftest.$ac_objext \
8628       conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8630 fi
8631 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8633 if test $ac_cv_lib_dl_dlopen = yes; then
8634   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8635 else
8636   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8637 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8638 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-lsvld  $LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649
8650 /* Override any gcc2 internal prototype to avoid an error.  */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655    builtin and then its argument prototype would still apply.  */
8656 char dlopen ();
8657 int
8658 main ()
8659 {
8660 dlopen ();
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -z "$ac_c_werror_flag"
8675                          || test ! -s conftest.err'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; } &&
8681          { ac_try='test -s conftest$ac_exeext'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; }; then
8687   ac_cv_lib_svld_dlopen=yes
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ac_cv_lib_svld_dlopen=no
8693 fi
8694 rm -f conftest.err conftest.$ac_objext \
8695       conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8700 if test $ac_cv_lib_svld_dlopen = yes; then
8701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8702 else
8703   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   ac_check_lib_save_LIBS=$LIBS
8709 LIBS="-ldld  $LIBS"
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716
8717 /* Override any gcc2 internal prototype to avoid an error.  */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722    builtin and then its argument prototype would still apply.  */
8723 char dld_link ();
8724 int
8725 main ()
8726 {
8727 dld_link ();
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734   (eval $ac_link) 2>conftest.er1
8735   ac_status=$?
8736   grep -v '^ *+' conftest.er1 >conftest.err
8737   rm -f conftest.er1
8738   cat conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); } &&
8741          { ac_try='test -z "$ac_c_werror_flag"
8742                          || test ! -s conftest.err'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; } &&
8748          { ac_try='test -s conftest$ac_exeext'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; }; then
8754   ac_cv_lib_dld_dld_link=yes
8755 else
8756   echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 ac_cv_lib_dld_dld_link=no
8760 fi
8761 rm -f conftest.err conftest.$ac_objext \
8762       conftest$ac_exeext conftest.$ac_ext
8763 LIBS=$ac_check_lib_save_LIBS
8764 fi
8765 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8766 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8767 if test $ac_cv_lib_dld_dld_link = yes; then
8768   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8769 fi
8770
8771
8772 fi
8773
8774
8775 fi
8776
8777
8778 fi
8779
8780
8781 fi
8782
8783
8784 fi
8785
8786     ;;
8787   esac
8788
8789   if test "x$lt_cv_dlopen" != xno; then
8790     enable_dlopen=yes
8791   else
8792     enable_dlopen=no
8793   fi
8794
8795   case $lt_cv_dlopen in
8796   dlopen)
8797     save_CPPFLAGS="$CPPFLAGS"
8798     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8799
8800     save_LDFLAGS="$LDFLAGS"
8801     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8802
8803     save_LIBS="$LIBS"
8804     LIBS="$lt_cv_dlopen_libs $LIBS"
8805
8806     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8807 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8808 if test "${lt_cv_dlopen_self+set}" = set; then
8809   echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811           if test "$cross_compiling" = yes; then :
8812   lt_cv_dlopen_self=cross
8813 else
8814   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8815   lt_status=$lt_dlunknown
8816   cat > conftest.$ac_ext <<EOF
8817 #line 8817 "configure"
8818 #include "confdefs.h"
8819
8820 #if HAVE_DLFCN_H
8821 #include <dlfcn.h>
8822 #endif
8823
8824 #include <stdio.h>
8825
8826 #ifdef RTLD_GLOBAL
8827 #  define LT_DLGLOBAL           RTLD_GLOBAL
8828 #else
8829 #  ifdef DL_GLOBAL
8830 #    define LT_DLGLOBAL         DL_GLOBAL
8831 #  else
8832 #    define LT_DLGLOBAL         0
8833 #  endif
8834 #endif
8835
8836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8837    find out it does not work in some platform. */
8838 #ifndef LT_DLLAZY_OR_NOW
8839 #  ifdef RTLD_LAZY
8840 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8841 #  else
8842 #    ifdef DL_LAZY
8843 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8844 #    else
8845 #      ifdef RTLD_NOW
8846 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8847 #      else
8848 #        ifdef DL_NOW
8849 #          define LT_DLLAZY_OR_NOW      DL_NOW
8850 #        else
8851 #          define LT_DLLAZY_OR_NOW      0
8852 #        endif
8853 #      endif
8854 #    endif
8855 #  endif
8856 #endif
8857
8858 #ifdef __cplusplus
8859 extern "C" void exit (int);
8860 #endif
8861
8862 void fnord() { int i=42;}
8863 int main ()
8864 {
8865   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8866   int status = $lt_dlunknown;
8867
8868   if (self)
8869     {
8870       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8871       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8872       /* dlclose (self); */
8873     }
8874
8875     exit (status);
8876 }
8877 EOF
8878   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879   (eval $ac_link) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8883     (./conftest; exit; ) 2>/dev/null
8884     lt_status=$?
8885     case x$lt_status in
8886       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8887       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8888       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8889     esac
8890   else :
8891     # compilation failed
8892     lt_cv_dlopen_self=no
8893   fi
8894 fi
8895 rm -fr conftest*
8896
8897
8898 fi
8899 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8900 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8901
8902     if test "x$lt_cv_dlopen_self" = xyes; then
8903       LDFLAGS="$LDFLAGS $link_static_flag"
8904       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8905 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8906 if test "${lt_cv_dlopen_self_static+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909           if test "$cross_compiling" = yes; then :
8910   lt_cv_dlopen_self_static=cross
8911 else
8912   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8913   lt_status=$lt_dlunknown
8914   cat > conftest.$ac_ext <<EOF
8915 #line 8915 "configure"
8916 #include "confdefs.h"
8917
8918 #if HAVE_DLFCN_H
8919 #include <dlfcn.h>
8920 #endif
8921
8922 #include <stdio.h>
8923
8924 #ifdef RTLD_GLOBAL
8925 #  define LT_DLGLOBAL           RTLD_GLOBAL
8926 #else
8927 #  ifdef DL_GLOBAL
8928 #    define LT_DLGLOBAL         DL_GLOBAL
8929 #  else
8930 #    define LT_DLGLOBAL         0
8931 #  endif
8932 #endif
8933
8934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8935    find out it does not work in some platform. */
8936 #ifndef LT_DLLAZY_OR_NOW
8937 #  ifdef RTLD_LAZY
8938 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8939 #  else
8940 #    ifdef DL_LAZY
8941 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8942 #    else
8943 #      ifdef RTLD_NOW
8944 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8945 #      else
8946 #        ifdef DL_NOW
8947 #          define LT_DLLAZY_OR_NOW      DL_NOW
8948 #        else
8949 #          define LT_DLLAZY_OR_NOW      0
8950 #        endif
8951 #      endif
8952 #    endif
8953 #  endif
8954 #endif
8955
8956 #ifdef __cplusplus
8957 extern "C" void exit (int);
8958 #endif
8959
8960 void fnord() { int i=42;}
8961 int main ()
8962 {
8963   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8964   int status = $lt_dlunknown;
8965
8966   if (self)
8967     {
8968       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8969       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8970       /* dlclose (self); */
8971     }
8972
8973     exit (status);
8974 }
8975 EOF
8976   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977   (eval $ac_link) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8981     (./conftest; exit; ) 2>/dev/null
8982     lt_status=$?
8983     case x$lt_status in
8984       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8985       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8986       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8987     esac
8988   else :
8989     # compilation failed
8990     lt_cv_dlopen_self_static=no
8991   fi
8992 fi
8993 rm -fr conftest*
8994
8995
8996 fi
8997 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8998 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8999     fi
9000
9001     CPPFLAGS="$save_CPPFLAGS"
9002     LDFLAGS="$save_LDFLAGS"
9003     LIBS="$save_LIBS"
9004     ;;
9005   esac
9006
9007   case $lt_cv_dlopen_self in
9008   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9009   *) enable_dlopen_self=unknown ;;
9010   esac
9011
9012   case $lt_cv_dlopen_self_static in
9013   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9014   *) enable_dlopen_self_static=unknown ;;
9015   esac
9016 fi
9017
9018
9019 # Report which librarie types wil actually be built
9020 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9021 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9022 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9023 echo "${ECHO_T}$can_build_shared" >&6
9024
9025 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9026 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9027 test "$can_build_shared" = "no" && enable_shared=no
9028
9029 # On AIX, shared libraries and static libraries use the same namespace, and
9030 # are all built from PIC.
9031 case "$host_os" in
9032 aix3*)
9033   test "$enable_shared" = yes && enable_static=no
9034   if test -n "$RANLIB"; then
9035     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9036     postinstall_cmds='$RANLIB $lib'
9037   fi
9038   ;;
9039
9040 aix4* | aix5*)
9041   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9042     test "$enable_shared" = yes && enable_static=no
9043   fi
9044   ;;
9045   darwin* | rhapsody*)
9046   if test "$GCC" = yes; then
9047     archive_cmds_need_lc=no
9048     case "$host_os" in
9049     rhapsody* | darwin1.[012])
9050       allow_undefined_flag='-undefined suppress'
9051       ;;
9052     *) # Darwin 1.3 on
9053       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9054         allow_undefined_flag='-flat_namespace -undefined suppress'
9055       else
9056         case ${MACOSX_DEPLOYMENT_TARGET} in
9057           10.[012])
9058             allow_undefined_flag='-flat_namespace -undefined suppress'
9059             ;;
9060           10.*)
9061             allow_undefined_flag='-undefined dynamic_lookup'
9062             ;;
9063         esac
9064       fi
9065       ;;
9066     esac
9067     output_verbose_link_cmd='echo'
9068     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9069     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9070     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9071     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}'
9072     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}'
9073     hardcode_direct=no
9074     hardcode_automatic=yes
9075     hardcode_shlibpath_var=unsupported
9076     whole_archive_flag_spec='-all_load $convenience'
9077     link_all_deplibs=yes
9078   else
9079     ld_shlibs=no
9080   fi
9081     ;;
9082 esac
9083 echo "$as_me:$LINENO: result: $enable_shared" >&5
9084 echo "${ECHO_T}$enable_shared" >&6
9085
9086 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9087 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9088 # Make sure either enable_shared or enable_static is yes.
9089 test "$enable_shared" = yes || enable_static=yes
9090 echo "$as_me:$LINENO: result: $enable_static" >&5
9091 echo "${ECHO_T}$enable_static" >&6
9092
9093 # The else clause should only fire when bootstrapping the
9094 # libtool distribution, otherwise you forgot to ship ltmain.sh
9095 # with your package, and you will get complaints that there are
9096 # no rules to generate ltmain.sh.
9097 if test -f "$ltmain"; then
9098   # See if we are running on zsh, and set the options which allow our commands through
9099   # without removal of \ escapes.
9100   if test -n "${ZSH_VERSION+set}" ; then
9101     setopt NO_GLOB_SUBST
9102   fi
9103   # Now quote all the things that may contain metacharacters while being
9104   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9105   # variables and quote the copies for generation of the libtool script.
9106   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9107     SED SHELL STRIP \
9108     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9109     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9110     deplibs_check_method reload_flag reload_cmds need_locks \
9111     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9112     lt_cv_sys_global_symbol_to_c_name_address \
9113     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9114     old_postinstall_cmds old_postuninstall_cmds \
9115     compiler \
9116     CC \
9117     LD \
9118     lt_prog_compiler_wl \
9119     lt_prog_compiler_pic \
9120     lt_prog_compiler_static \
9121     lt_prog_compiler_no_builtin_flag \
9122     export_dynamic_flag_spec \
9123     thread_safe_flag_spec \
9124     whole_archive_flag_spec \
9125     enable_shared_with_static_runtimes \
9126     old_archive_cmds \
9127     old_archive_from_new_cmds \
9128     predep_objects \
9129     postdep_objects \
9130     predeps \
9131     postdeps \
9132     compiler_lib_search_path \
9133     archive_cmds \
9134     archive_expsym_cmds \
9135     postinstall_cmds \
9136     postuninstall_cmds \
9137     old_archive_from_expsyms_cmds \
9138     allow_undefined_flag \
9139     no_undefined_flag \
9140     export_symbols_cmds \
9141     hardcode_libdir_flag_spec \
9142     hardcode_libdir_flag_spec_ld \
9143     hardcode_libdir_separator \
9144     hardcode_automatic \
9145     module_cmds \
9146     module_expsym_cmds \
9147     lt_cv_prog_compiler_c_o \
9148     exclude_expsyms \
9149     include_expsyms; do
9150
9151     case $var in
9152     old_archive_cmds | \
9153     old_archive_from_new_cmds | \
9154     archive_cmds | \
9155     archive_expsym_cmds | \
9156     module_cmds | \
9157     module_expsym_cmds | \
9158     old_archive_from_expsyms_cmds | \
9159     export_symbols_cmds | \
9160     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9161     postinstall_cmds | postuninstall_cmds | \
9162     old_postinstall_cmds | old_postuninstall_cmds | \
9163     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9164       # Double-quote double-evaled strings.
9165       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9166       ;;
9167     *)
9168       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9169       ;;
9170     esac
9171   done
9172
9173   case $lt_echo in
9174   *'\$0 --fallback-echo"')
9175     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9176     ;;
9177   esac
9178
9179 cfgfile="${ofile}T"
9180   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9181   $rm -f "$cfgfile"
9182   { echo "$as_me:$LINENO: creating $ofile" >&5
9183 echo "$as_me: creating $ofile" >&6;}
9184
9185   cat <<__EOF__ >> "$cfgfile"
9186 #! $SHELL
9187
9188 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9189 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9191 #
9192 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9193 # Free Software Foundation, Inc.
9194 #
9195 # This file is part of GNU Libtool:
9196 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9197 #
9198 # This program is free software; you can redistribute it and/or modify
9199 # it under the terms of the GNU General Public License as published by
9200 # the Free Software Foundation; either version 2 of the License, or
9201 # (at your option) any later version.
9202 #
9203 # This program is distributed in the hope that it will be useful, but
9204 # WITHOUT ANY WARRANTY; without even the implied warranty of
9205 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9206 # General Public License for more details.
9207 #
9208 # You should have received a copy of the GNU General Public License
9209 # along with this program; if not, write to the Free Software
9210 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9211 #
9212 # As a special exception to the GNU General Public License, if you
9213 # distribute this file as part of a program that contains a
9214 # configuration script generated by Autoconf, you may include it under
9215 # the same distribution terms that you use for the rest of that program.
9216
9217 # A sed program that does not truncate output.
9218 SED=$lt_SED
9219
9220 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9221 Xsed="$SED -e s/^X//"
9222
9223 # The HP-UX ksh and POSIX shell print the target directory to stdout
9224 # if CDPATH is set.
9225 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9226
9227 # The names of the tagged configurations supported by this script.
9228 available_tags=
9229
9230 # ### BEGIN LIBTOOL CONFIG
9231
9232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9233
9234 # Shell to use when invoking shell scripts.
9235 SHELL=$lt_SHELL
9236
9237 # Whether or not to build shared libraries.
9238 build_libtool_libs=$enable_shared
9239
9240 # Whether or not to build static libraries.
9241 build_old_libs=$enable_static
9242
9243 # Whether or not to add -lc for building shared libraries.
9244 build_libtool_need_lc=$archive_cmds_need_lc
9245
9246 # Whether or not to disallow shared libs when runtime libs are static
9247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9248
9249 # Whether or not to optimize for fast installation.
9250 fast_install=$enable_fast_install
9251
9252 # The host system.
9253 host_alias=$host_alias
9254 host=$host
9255
9256 # An echo program that does not interpret backslashes.
9257 echo=$lt_echo
9258
9259 # The archiver.
9260 AR=$lt_AR
9261 AR_FLAGS=$lt_AR_FLAGS
9262
9263 # A C compiler.
9264 LTCC=$lt_LTCC
9265
9266 # A language-specific compiler.
9267 CC=$lt_compiler
9268
9269 # Is the compiler the GNU C compiler?
9270 with_gcc=$GCC
9271
9272 # An ERE matcher.
9273 EGREP=$lt_EGREP
9274
9275 # The linker used to build libraries.
9276 LD=$lt_LD
9277
9278 # Whether we need hard or soft links.
9279 LN_S=$lt_LN_S
9280
9281 # A BSD-compatible nm program.
9282 NM=$lt_NM
9283
9284 # A symbol stripping program
9285 STRIP=$lt_STRIP
9286
9287 # Used to examine libraries when file_magic_cmd begins "file"
9288 MAGIC_CMD=$MAGIC_CMD
9289
9290 # Used on cygwin: DLL creation program.
9291 DLLTOOL="$DLLTOOL"
9292
9293 # Used on cygwin: object dumper.
9294 OBJDUMP="$OBJDUMP"
9295
9296 # Used on cygwin: assembler.
9297 AS="$AS"
9298
9299 # The name of the directory that contains temporary libtool files.
9300 objdir=$objdir
9301
9302 # How to create reloadable object files.
9303 reload_flag=$lt_reload_flag
9304 reload_cmds=$lt_reload_cmds
9305
9306 # How to pass a linker flag through the compiler.
9307 wl=$lt_lt_prog_compiler_wl
9308
9309 # Object file suffix (normally "o").
9310 objext="$ac_objext"
9311
9312 # Old archive suffix (normally "a").
9313 libext="$libext"
9314
9315 # Shared library suffix (normally ".so").
9316 shrext_cmds='$shrext_cmds'
9317
9318 # Executable file suffix (normally "").
9319 exeext="$exeext"
9320
9321 # Additional compiler flags for building library objects.
9322 pic_flag=$lt_lt_prog_compiler_pic
9323 pic_mode=$pic_mode
9324
9325 # What is the maximum length of a command?
9326 max_cmd_len=$lt_cv_sys_max_cmd_len
9327
9328 # Does compiler simultaneously support -c and -o options?
9329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9330
9331 # Must we lock files when doing compilation ?
9332 need_locks=$lt_need_locks
9333
9334 # Do we need the lib prefix for modules?
9335 need_lib_prefix=$need_lib_prefix
9336
9337 # Do we need a version for libraries?
9338 need_version=$need_version
9339
9340 # Whether dlopen is supported.
9341 dlopen_support=$enable_dlopen
9342
9343 # Whether dlopen of programs is supported.
9344 dlopen_self=$enable_dlopen_self
9345
9346 # Whether dlopen of statically linked programs is supported.
9347 dlopen_self_static=$enable_dlopen_self_static
9348
9349 # Compiler flag to prevent dynamic linking.
9350 link_static_flag=$lt_lt_prog_compiler_static
9351
9352 # Compiler flag to turn off builtin functions.
9353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9354
9355 # Compiler flag to allow reflexive dlopens.
9356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9357
9358 # Compiler flag to generate shared objects directly from archives.
9359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9360
9361 # Compiler flag to generate thread-safe objects.
9362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9363
9364 # Library versioning type.
9365 version_type=$version_type
9366
9367 # Format of library name prefix.
9368 libname_spec=$lt_libname_spec
9369
9370 # List of archive names.  First name is the real one, the rest are links.
9371 # The last name is the one that the linker finds with -lNAME.
9372 library_names_spec=$lt_library_names_spec
9373
9374 # The coded name of the library, if different from the real name.
9375 soname_spec=$lt_soname_spec
9376
9377 # Commands used to build and install an old-style archive.
9378 RANLIB=$lt_RANLIB
9379 old_archive_cmds=$lt_old_archive_cmds
9380 old_postinstall_cmds=$lt_old_postinstall_cmds
9381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9382
9383 # Create an old-style archive from a shared archive.
9384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9385
9386 # Create a temporary old-style archive to link instead of a shared archive.
9387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9388
9389 # Commands used to build and install a shared archive.
9390 archive_cmds=$lt_archive_cmds
9391 archive_expsym_cmds=$lt_archive_expsym_cmds
9392 postinstall_cmds=$lt_postinstall_cmds
9393 postuninstall_cmds=$lt_postuninstall_cmds
9394
9395 # Commands used to build a loadable module (assumed same as above if empty)
9396 module_cmds=$lt_module_cmds
9397 module_expsym_cmds=$lt_module_expsym_cmds
9398
9399 # Commands to strip libraries.
9400 old_striplib=$lt_old_striplib
9401 striplib=$lt_striplib
9402
9403 # Dependencies to place before the objects being linked to create a
9404 # shared library.
9405 predep_objects=$lt_predep_objects
9406
9407 # Dependencies to place after the objects being linked to create a
9408 # shared library.
9409 postdep_objects=$lt_postdep_objects
9410
9411 # Dependencies to place before the objects being linked to create a
9412 # shared library.
9413 predeps=$lt_predeps
9414
9415 # Dependencies to place after the objects being linked to create a
9416 # shared library.
9417 postdeps=$lt_postdeps
9418
9419 # The library search path used internally by the compiler when linking
9420 # a shared library.
9421 compiler_lib_search_path=$lt_compiler_lib_search_path
9422
9423 # Method to check whether dependent libraries are shared objects.
9424 deplibs_check_method=$lt_deplibs_check_method
9425
9426 # Command to use when deplibs_check_method == file_magic.
9427 file_magic_cmd=$lt_file_magic_cmd
9428
9429 # Flag that allows shared libraries with undefined symbols to be built.
9430 allow_undefined_flag=$lt_allow_undefined_flag
9431
9432 # Flag that forces no undefined symbols.
9433 no_undefined_flag=$lt_no_undefined_flag
9434
9435 # Commands used to finish a libtool library installation in a directory.
9436 finish_cmds=$lt_finish_cmds
9437
9438 # Same as above, but a single script fragment to be evaled but not shown.
9439 finish_eval=$lt_finish_eval
9440
9441 # Take the output of nm and produce a listing of raw symbols and C names.
9442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9443
9444 # Transform the output of nm in a proper C declaration
9445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9446
9447 # Transform the output of nm in a C name address pair
9448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9449
9450 # This is the shared library runtime path variable.
9451 runpath_var=$runpath_var
9452
9453 # This is the shared library path variable.
9454 shlibpath_var=$shlibpath_var
9455
9456 # Is shlibpath searched before the hard-coded library search path?
9457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9458
9459 # How to hardcode a shared library path into an executable.
9460 hardcode_action=$hardcode_action
9461
9462 # Whether we should hardcode library paths into libraries.
9463 hardcode_into_libs=$hardcode_into_libs
9464
9465 # Flag to hardcode \$libdir into a binary during linking.
9466 # This must work even if \$libdir does not exist.
9467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9468
9469 # If ld is used when linking, flag to hardcode \$libdir into
9470 # a binary during linking. This must work even if \$libdir does
9471 # not exist.
9472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9473
9474 # Whether we need a single -rpath flag with a separated argument.
9475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9476
9477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9478 # resulting binary.
9479 hardcode_direct=$hardcode_direct
9480
9481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9482 # resulting binary.
9483 hardcode_minus_L=$hardcode_minus_L
9484
9485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9486 # the resulting binary.
9487 hardcode_shlibpath_var=$hardcode_shlibpath_var
9488
9489 # Set to yes if building a shared library automatically hardcodes DIR into the library
9490 # and all subsequent libraries and executables linked against it.
9491 hardcode_automatic=$hardcode_automatic
9492
9493 # Variables whose values should be saved in libtool wrapper scripts and
9494 # restored at relink time.
9495 variables_saved_for_relink="$variables_saved_for_relink"
9496
9497 # Whether libtool must link a program against all its dependency libraries.
9498 link_all_deplibs=$link_all_deplibs
9499
9500 # Compile-time system search path for libraries
9501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9502
9503 # Run-time system search path for libraries
9504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9505
9506 # Fix the shell variable \$srcfile for the compiler.
9507 fix_srcfile_path="$fix_srcfile_path"
9508
9509 # Set to yes if exported symbols are required.
9510 always_export_symbols=$always_export_symbols
9511
9512 # The commands to list exported symbols.
9513 export_symbols_cmds=$lt_export_symbols_cmds
9514
9515 # The commands to extract the exported symbol list from a shared archive.
9516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9517
9518 # Symbols that should not be listed in the preloaded symbols.
9519 exclude_expsyms=$lt_exclude_expsyms
9520
9521 # Symbols that must always be exported.
9522 include_expsyms=$lt_include_expsyms
9523
9524 # ### END LIBTOOL CONFIG
9525
9526 __EOF__
9527
9528
9529   case $host_os in
9530   aix3*)
9531     cat <<\EOF >> "$cfgfile"
9532
9533 # AIX sometimes has problems with the GCC collect2 program.  For some
9534 # reason, if we set the COLLECT_NAMES environment variable, the problems
9535 # vanish in a puff of smoke.
9536 if test "X${COLLECT_NAMES+set}" != Xset; then
9537   COLLECT_NAMES=
9538   export COLLECT_NAMES
9539 fi
9540 EOF
9541     ;;
9542   esac
9543
9544   # We use sed instead of cat because bash on DJGPP gets confused if
9545   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9546   # text mode, it properly converts lines to CR/LF.  This bash problem
9547   # is reportedly fixed, but why not run on old versions too?
9548   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9549
9550   mv -f "$cfgfile" "$ofile" || \
9551     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9552   chmod +x "$ofile"
9553
9554 else
9555   # If there is no Makefile yet, we rely on a make rule to execute
9556   # `config.status --recheck' to rerun these tests and create the
9557   # libtool script then.
9558   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9559   if test -f "$ltmain_in"; then
9560     test -f Makefile && make "$ltmain"
9561   fi
9562 fi
9563
9564
9565 ac_ext=c
9566 ac_cpp='$CPP $CPPFLAGS'
9567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9570
9571 CC="$lt_save_CC"
9572
9573
9574 # Check whether --with-tags or --without-tags was given.
9575 if test "${with_tags+set}" = set; then
9576   withval="$with_tags"
9577   tagnames="$withval"
9578 fi;
9579
9580 if test -f "$ltmain" && test -n "$tagnames"; then
9581   if test ! -f "${ofile}"; then
9582     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9583 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9584   fi
9585
9586   if test -z "$LTCC"; then
9587     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9588     if test -z "$LTCC"; then
9589       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9590 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9591     else
9592       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9593 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9594     fi
9595   fi
9596
9597   # Extract list of available tagged configurations in $ofile.
9598   # Note that this assumes the entire list is on one line.
9599   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9600
9601   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9602   for tagname in $tagnames; do
9603     IFS="$lt_save_ifs"
9604     # Check whether tagname contains only valid characters
9605     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9606     "") ;;
9607     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9608 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9609    { (exit 1); exit 1; }; }
9610         ;;
9611     esac
9612
9613     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9614     then
9615       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9616 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9617    { (exit 1); exit 1; }; }
9618     fi
9619
9620     # Update the list of available tags.
9621     if test -n "$tagname"; then
9622       echo appending configuration tag \"$tagname\" to $ofile
9623
9624       case $tagname in
9625       CXX)
9626         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9627           ac_ext=cc
9628 ac_cpp='$CXXCPP $CPPFLAGS'
9629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9632
9633
9634
9635
9636 archive_cmds_need_lc_CXX=no
9637 allow_undefined_flag_CXX=
9638 always_export_symbols_CXX=no
9639 archive_expsym_cmds_CXX=
9640 export_dynamic_flag_spec_CXX=
9641 hardcode_direct_CXX=no
9642 hardcode_libdir_flag_spec_CXX=
9643 hardcode_libdir_flag_spec_ld_CXX=
9644 hardcode_libdir_separator_CXX=
9645 hardcode_minus_L_CXX=no
9646 hardcode_automatic_CXX=no
9647 module_cmds_CXX=
9648 module_expsym_cmds_CXX=
9649 link_all_deplibs_CXX=unknown
9650 old_archive_cmds_CXX=$old_archive_cmds
9651 no_undefined_flag_CXX=
9652 whole_archive_flag_spec_CXX=
9653 enable_shared_with_static_runtimes_CXX=no
9654
9655 # Dependencies to place before and after the object being linked:
9656 predep_objects_CXX=
9657 postdep_objects_CXX=
9658 predeps_CXX=
9659 postdeps_CXX=
9660 compiler_lib_search_path_CXX=
9661
9662 # Source file extension for C++ test sources.
9663 ac_ext=cc
9664
9665 # Object file extension for compiled C++ test sources.
9666 objext=o
9667 objext_CXX=$objext
9668
9669 # Code to be used in simple compile tests
9670 lt_simple_compile_test_code="int some_variable = 0;\n"
9671
9672 # Code to be used in simple link tests
9673 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9674
9675 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9676
9677 # If no C compiler was specified, use CC.
9678 LTCC=${LTCC-"$CC"}
9679
9680 # Allow CC to be a program name with arguments.
9681 compiler=$CC
9682
9683
9684 # Allow CC to be a program name with arguments.
9685 lt_save_CC=$CC
9686 lt_save_LD=$LD
9687 lt_save_GCC=$GCC
9688 GCC=$GXX
9689 lt_save_with_gnu_ld=$with_gnu_ld
9690 lt_save_path_LD=$lt_cv_path_LD
9691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9692   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9693 else
9694   unset lt_cv_prog_gnu_ld
9695 fi
9696 if test -n "${lt_cv_path_LDCXX+set}"; then
9697   lt_cv_path_LD=$lt_cv_path_LDCXX
9698 else
9699   unset lt_cv_path_LD
9700 fi
9701 test -z "${LDCXX+set}" || LD=$LDCXX
9702 CC=${CXX-"c++"}
9703 compiler=$CC
9704 compiler_CXX=$CC
9705 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9706
9707 # We don't want -fno-exception wen compiling C++ code, so set the
9708 # no_builtin_flag separately
9709 if test "$GXX" = yes; then
9710   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9711 else
9712   lt_prog_compiler_no_builtin_flag_CXX=
9713 fi
9714
9715 if test "$GXX" = yes; then
9716   # Set up default GNU C++ configuration
9717
9718
9719 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9720 if test "${with_gnu_ld+set}" = set; then
9721   withval="$with_gnu_ld"
9722   test "$withval" = no || with_gnu_ld=yes
9723 else
9724   with_gnu_ld=no
9725 fi;
9726 ac_prog=ld
9727 if test "$GCC" = yes; then
9728   # Check if gcc -print-prog-name=ld gives a path.
9729   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9730 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9731   case $host in
9732   *-*-mingw*)
9733     # gcc leaves a trailing carriage return which upsets mingw
9734     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9735   *)
9736     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9737   esac
9738   case $ac_prog in
9739     # Accept absolute paths.
9740     [\\/]* | ?:[\\/]*)
9741       re_direlt='/[^/][^/]*/\.\./'
9742       # Canonicalize the pathname of ld
9743       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9744       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9745         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9746       done
9747       test -z "$LD" && LD="$ac_prog"
9748       ;;
9749   "")
9750     # If it fails, then pretend we aren't using GCC.
9751     ac_prog=ld
9752     ;;
9753   *)
9754     # If it is relative, then search for the first ld in PATH.
9755     with_gnu_ld=unknown
9756     ;;
9757   esac
9758 elif test "$with_gnu_ld" = yes; then
9759   echo "$as_me:$LINENO: checking for GNU ld" >&5
9760 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9761 else
9762   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9763 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9764 fi
9765 if test "${lt_cv_path_LD+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768   if test -z "$LD"; then
9769   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9770   for ac_dir in $PATH; do
9771     IFS="$lt_save_ifs"
9772     test -z "$ac_dir" && ac_dir=.
9773     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9774       lt_cv_path_LD="$ac_dir/$ac_prog"
9775       # Check to see if the program is GNU ld.  I'd rather use --version,
9776       # but apparently some GNU ld's only accept -v.
9777       # Break only if it was the GNU/non-GNU ld that we prefer.
9778       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9779       *GNU* | *'with BFD'*)
9780         test "$with_gnu_ld" != no && break
9781         ;;
9782       *)
9783         test "$with_gnu_ld" != yes && break
9784         ;;
9785       esac
9786     fi
9787   done
9788   IFS="$lt_save_ifs"
9789 else
9790   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9791 fi
9792 fi
9793
9794 LD="$lt_cv_path_LD"
9795 if test -n "$LD"; then
9796   echo "$as_me:$LINENO: result: $LD" >&5
9797 echo "${ECHO_T}$LD" >&6
9798 else
9799   echo "$as_me:$LINENO: result: no" >&5
9800 echo "${ECHO_T}no" >&6
9801 fi
9802 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9803 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9804    { (exit 1); exit 1; }; }
9805 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9806 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9807 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9811 case `$LD -v 2>&1 </dev/null` in
9812 *GNU* | *'with BFD'*)
9813   lt_cv_prog_gnu_ld=yes
9814   ;;
9815 *)
9816   lt_cv_prog_gnu_ld=no
9817   ;;
9818 esac
9819 fi
9820 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9821 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9822 with_gnu_ld=$lt_cv_prog_gnu_ld
9823
9824
9825
9826   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9827   # archiving commands below assume that GNU ld is being used.
9828   if test "$with_gnu_ld" = yes; then
9829     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830     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'
9831
9832     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9833     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9834
9835     # If archive_cmds runs LD, not CC, wlarc should be empty
9836     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9837     #     investigate it a little bit more. (MM)
9838     wlarc='${wl}'
9839
9840     # ancient GNU ld didn't support --whole-archive et. al.
9841     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9842         grep 'no-whole-archive' > /dev/null; then
9843       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9844     else
9845       whole_archive_flag_spec_CXX=
9846     fi
9847   else
9848     with_gnu_ld=no
9849     wlarc=
9850
9851     # A generic and very simple default shared library creation
9852     # command for GNU C++ for the case where it uses the native
9853     # linker, instead of GNU ld.  If possible, this setting should
9854     # overridden to take advantage of the native linker features on
9855     # the platform it is being used on.
9856     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9857   fi
9858
9859   # Commands to make compiler produce verbose output that lists
9860   # what "hidden" libraries, object files and flags are used when
9861   # linking a shared library.
9862   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9863
9864 else
9865   GXX=no
9866   with_gnu_ld=no
9867   wlarc=
9868 fi
9869
9870 # PORTME: fill in a description of your system's C++ link characteristics
9871 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9872 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9873 ld_shlibs_CXX=yes
9874 case $host_os in
9875   aix3*)
9876     # FIXME: insert proper C++ library support
9877     ld_shlibs_CXX=no
9878     ;;
9879   aix4* | aix5*)
9880     if test "$host_cpu" = ia64; then
9881       # On IA64, the linker does run time linking by default, so we don't
9882       # have to do anything special.
9883       aix_use_runtimelinking=no
9884       exp_sym_flag='-Bexport'
9885       no_entry_flag=""
9886     else
9887       aix_use_runtimelinking=no
9888
9889       # Test if we are trying to use run time linking or normal
9890       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9891       # need to do runtime linking.
9892       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9893         for ld_flag in $LDFLAGS; do
9894           case $ld_flag in
9895           *-brtl*)
9896             aix_use_runtimelinking=yes
9897             break
9898             ;;
9899           esac
9900         done
9901       esac
9902
9903       exp_sym_flag='-bexport'
9904       no_entry_flag='-bnoentry'
9905     fi
9906
9907     # When large executables or shared objects are built, AIX ld can
9908     # have problems creating the table of contents.  If linking a library
9909     # or program results in "error TOC overflow" add -mminimal-toc to
9910     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9911     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9912
9913     archive_cmds_CXX=''
9914     hardcode_direct_CXX=yes
9915     hardcode_libdir_separator_CXX=':'
9916     link_all_deplibs_CXX=yes
9917
9918     if test "$GXX" = yes; then
9919       case $host_os in aix4.012|aix4.012.*)
9920       # We only want to do this on AIX 4.2 and lower, the check
9921       # below for broken collect2 doesn't work under 4.3+
9922         collect2name=`${CC} -print-prog-name=collect2`
9923         if test -f "$collect2name" && \
9924            strings "$collect2name" | grep resolve_lib_name >/dev/null
9925         then
9926           # We have reworked collect2
9927           hardcode_direct_CXX=yes
9928         else
9929           # We have old collect2
9930           hardcode_direct_CXX=unsupported
9931           # It fails to find uninstalled libraries when the uninstalled
9932           # path is not listed in the libpath.  Setting hardcode_minus_L
9933           # to unsupported forces relinking
9934           hardcode_minus_L_CXX=yes
9935           hardcode_libdir_flag_spec_CXX='-L$libdir'
9936           hardcode_libdir_separator_CXX=
9937         fi
9938       esac
9939       shared_flag='-shared'
9940     else
9941       # not using gcc
9942       if test "$host_cpu" = ia64; then
9943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9944         # chokes on -Wl,-G. The following line is correct:
9945         shared_flag='-G'
9946       else
9947         if test "$aix_use_runtimelinking" = yes; then
9948           shared_flag='${wl}-G'
9949         else
9950           shared_flag='${wl}-bM:SRE'
9951         fi
9952       fi
9953     fi
9954
9955     # It seems that -bexpall does not export symbols beginning with
9956     # underscore (_), so it is better to generate a list of symbols to export.
9957     always_export_symbols_CXX=yes
9958     if test "$aix_use_runtimelinking" = yes; then
9959       # Warning - without using the other runtime loading flags (-brtl),
9960       # -berok will link without error, but may produce a broken library.
9961       allow_undefined_flag_CXX='-berok'
9962       # Determine the default libpath from the value encoded in an empty executable.
9963       cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 int
9971 main ()
9972 {
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_cxx_werror_flag"
9988                          || test ! -s conftest.err'
9989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990   (eval $ac_try) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest$ac_exeext'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000
10001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10002 }'`
10003 # Check for a 64-bit object if we didn't find anything.
10004 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; }
10005 }'`; fi
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 fi
10011 rm -f conftest.err conftest.$ac_objext \
10012       conftest$ac_exeext conftest.$ac_ext
10013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10014
10015       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10016
10017       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"
10018      else
10019       if test "$host_cpu" = ia64; then
10020         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10021         allow_undefined_flag_CXX="-z nodefs"
10022         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"
10023       else
10024         # Determine the default libpath from the value encoded in an empty executable.
10025         cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031
10032 int
10033 main ()
10034 {
10035
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042   (eval $ac_link) 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } &&
10049          { ac_try='test -z "$ac_cxx_werror_flag"
10050                          || test ! -s conftest.err'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; } &&
10056          { ac_try='test -s conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062
10063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10064 }'`
10065 # Check for a 64-bit object if we didn't find anything.
10066 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; }
10067 }'`; fi
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 fi
10073 rm -f conftest.err conftest.$ac_objext \
10074       conftest$ac_exeext conftest.$ac_ext
10075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10076
10077         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10078         # Warning - without using the other run time loading flags,
10079         # -berok will link without error, but may produce a broken library.
10080         no_undefined_flag_CXX=' ${wl}-bernotok'
10081         allow_undefined_flag_CXX=' ${wl}-berok'
10082         # -bexpall does not export symbols beginning with underscore (_)
10083         always_export_symbols_CXX=yes
10084         # Exported symbols can be pulled into shared objects from archives
10085         whole_archive_flag_spec_CXX=' '
10086         archive_cmds_need_lc_CXX=yes
10087         # This is similar to how AIX traditionally builds it's shared libraries.
10088         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'
10089       fi
10090     fi
10091     ;;
10092   chorus*)
10093     case $cc_basename in
10094       *)
10095         # FIXME: insert proper C++ library support
10096         ld_shlibs_CXX=no
10097         ;;
10098     esac
10099     ;;
10100
10101   cygwin* | mingw* | pw32*)
10102     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10103     # as there is no search path for DLLs.
10104     hardcode_libdir_flag_spec_CXX='-L$libdir'
10105     allow_undefined_flag_CXX=unsupported
10106     always_export_symbols_CXX=no
10107     enable_shared_with_static_runtimes_CXX=yes
10108
10109     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10110       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'
10111       # If the export-symbols file already is a .def file (1st line
10112       # is EXPORTS), use it as is; otherwise, prepend...
10113       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10114         cp $export_symbols $output_objdir/$soname.def;
10115       else
10116         echo EXPORTS > $output_objdir/$soname.def;
10117         cat $export_symbols >> $output_objdir/$soname.def;
10118       fi~
10119       $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'
10120     else
10121       ld_shlibs_CXX=no
10122     fi
10123   ;;
10124
10125   darwin* | rhapsody*)
10126   if test "$GXX" = yes; then
10127     archive_cmds_need_lc_CXX=no
10128     case "$host_os" in
10129     rhapsody* | darwin1.[012])
10130       allow_undefined_flag_CXX='-undefined suppress'
10131       ;;
10132     *) # Darwin 1.3 on
10133       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10134         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10135       else
10136         case ${MACOSX_DEPLOYMENT_TARGET} in
10137           10.[012])
10138             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10139             ;;
10140           10.*)
10141             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10142             ;;
10143         esac
10144       fi
10145       ;;
10146     esac
10147     lt_int_apple_cc_single_mod=no
10148     output_verbose_link_cmd='echo'
10149     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10150       lt_int_apple_cc_single_mod=yes
10151     fi
10152     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10153       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10154     else
10155       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10156     fi
10157     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10158
10159     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10160     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10161       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}'
10162     else
10163       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10164     fi
10165     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}'
10166     hardcode_direct_CXX=no
10167     hardcode_automatic_CXX=yes
10168     hardcode_shlibpath_var_CXX=unsupported
10169     whole_archive_flag_spec_CXX='-all_load $convenience'
10170     link_all_deplibs_CXX=yes
10171   else
10172     ld_shlibs_CXX=no
10173   fi
10174     ;;
10175
10176   dgux*)
10177     case $cc_basename in
10178       ec++)
10179         # FIXME: insert proper C++ library support
10180         ld_shlibs_CXX=no
10181         ;;
10182       ghcx)
10183         # Green Hills C++ Compiler
10184         # FIXME: insert proper C++ library support
10185         ld_shlibs_CXX=no
10186         ;;
10187       *)
10188         # FIXME: insert proper C++ library support
10189         ld_shlibs_CXX=no
10190         ;;
10191     esac
10192     ;;
10193   freebsd12*)
10194     # C++ shared libraries reported to be fairly broken before switch to ELF
10195     ld_shlibs_CXX=no
10196     ;;
10197   freebsd-elf*)
10198     archive_cmds_need_lc_CXX=no
10199     ;;
10200   freebsd* | kfreebsd*-gnu)
10201     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10202     # conventions
10203     ld_shlibs_CXX=yes
10204     ;;
10205   gnu*)
10206     ;;
10207   hpux9*)
10208     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10209     hardcode_libdir_separator_CXX=:
10210     export_dynamic_flag_spec_CXX='${wl}-E'
10211     hardcode_direct_CXX=yes
10212     hardcode_minus_L_CXX=yes # Not in the search PATH,
10213                                 # but as the default
10214                                 # location of the library.
10215
10216     case $cc_basename in
10217     CC)
10218       # FIXME: insert proper C++ library support
10219       ld_shlibs_CXX=no
10220       ;;
10221     aCC)
10222       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'
10223       # Commands to make compiler produce verbose output that lists
10224       # what "hidden" libraries, object files and flags are used when
10225       # linking a shared library.
10226       #
10227       # There doesn't appear to be a way to prevent this compiler from
10228       # explicitly linking system object files so we need to strip them
10229       # from the output so that they don't get included in the library
10230       # dependencies.
10231       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'
10232       ;;
10233     *)
10234       if test "$GXX" = yes; then
10235         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'
10236       else
10237         # FIXME: insert proper C++ library support
10238         ld_shlibs_CXX=no
10239       fi
10240       ;;
10241     esac
10242     ;;
10243   hpux10*|hpux11*)
10244     if test $with_gnu_ld = no; then
10245       case "$host_cpu" in
10246       hppa*64*)
10247         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10248         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10249         hardcode_libdir_separator_CXX=:
10250         ;;
10251       ia64*)
10252         hardcode_libdir_flag_spec_CXX='-L$libdir'
10253         ;;
10254       *)
10255         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10256         hardcode_libdir_separator_CXX=:
10257         export_dynamic_flag_spec_CXX='${wl}-E'
10258         ;;
10259       esac
10260     fi
10261     case "$host_cpu" in
10262     hppa*64*)
10263       hardcode_direct_CXX=no
10264       hardcode_shlibpath_var_CXX=no
10265       ;;
10266     ia64*)
10267       hardcode_direct_CXX=no
10268       hardcode_shlibpath_var_CXX=no
10269       hardcode_minus_L_CXX=yes # Not in the search PATH,
10270                                               # but as the default
10271                                               # location of the library.
10272       ;;
10273     *)
10274       hardcode_direct_CXX=yes
10275       hardcode_minus_L_CXX=yes # Not in the search PATH,
10276                                               # but as the default
10277                                               # location of the library.
10278       ;;
10279     esac
10280
10281     case $cc_basename in
10282       CC)
10283         # FIXME: insert proper C++ library support
10284         ld_shlibs_CXX=no
10285         ;;
10286       aCC)
10287         case "$host_cpu" in
10288         hppa*64*|ia64*)
10289           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10290           ;;
10291         *)
10292           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10293           ;;
10294         esac
10295         # Commands to make compiler produce verbose output that lists
10296         # what "hidden" libraries, object files and flags are used when
10297         # linking a shared library.
10298         #
10299         # There doesn't appear to be a way to prevent this compiler from
10300         # explicitly linking system object files so we need to strip them
10301         # from the output so that they don't get included in the library
10302         # dependencies.
10303         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'
10304         ;;
10305       *)
10306         if test "$GXX" = yes; then
10307           if test $with_gnu_ld = no; then
10308             case "$host_cpu" in
10309             ia64*|hppa*64*)
10310               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10311               ;;
10312             *)
10313               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'
10314               ;;
10315             esac
10316           fi
10317         else
10318           # FIXME: insert proper C++ library support
10319           ld_shlibs_CXX=no
10320         fi
10321         ;;
10322     esac
10323     ;;
10324   irix5* | irix6*)
10325     case $cc_basename in
10326       CC)
10327         # SGI C++
10328         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'
10329
10330         # Archives containing C++ object files must be created using
10331         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10332         # necessary to make sure instantiated templates are included
10333         # in the archive.
10334         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10335         ;;
10336       *)
10337         if test "$GXX" = yes; then
10338           if test "$with_gnu_ld" = no; then
10339             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'
10340           else
10341             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'
10342           fi
10343         fi
10344         link_all_deplibs_CXX=yes
10345         ;;
10346     esac
10347     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10348     hardcode_libdir_separator_CXX=:
10349     ;;
10350   linux*)
10351     case $cc_basename in
10352       KCC)
10353         # Kuck and Associates, Inc. (KAI) C++ Compiler
10354
10355         # KCC will only create a shared library if the output file
10356         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10357         # to its proper name (with version) after linking.
10358         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'
10359         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'
10360         # Commands to make compiler produce verbose output that lists
10361         # what "hidden" libraries, object files and flags are used when
10362         # linking a shared library.
10363         #
10364         # There doesn't appear to be a way to prevent this compiler from
10365         # explicitly linking system object files so we need to strip them
10366         # from the output so that they don't get included in the library
10367         # dependencies.
10368         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'
10369
10370         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10371         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10372
10373         # Archives containing C++ object files must be created using
10374         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10375         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10376         ;;
10377       icpc)
10378         # Intel C++
10379         with_gnu_ld=yes
10380         archive_cmds_need_lc_CXX=no
10381         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10382         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'
10383         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10384         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10385         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10386         ;;
10387       cxx)
10388         # Compaq C++
10389         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390         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'
10391
10392         runpath_var=LD_RUN_PATH
10393         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10394         hardcode_libdir_separator_CXX=:
10395
10396         # Commands to make compiler produce verbose output that lists
10397         # what "hidden" libraries, object files and flags are used when
10398         # linking a shared library.
10399         #
10400         # There doesn't appear to be a way to prevent this compiler from
10401         # explicitly linking system object files so we need to strip them
10402         # from the output so that they don't get included in the library
10403         # dependencies.
10404         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'
10405         ;;
10406     esac
10407     ;;
10408   lynxos*)
10409     # FIXME: insert proper C++ library support
10410     ld_shlibs_CXX=no
10411     ;;
10412   m88k*)
10413     # FIXME: insert proper C++ library support
10414     ld_shlibs_CXX=no
10415     ;;
10416   mvs*)
10417     case $cc_basename in
10418       cxx)
10419         # FIXME: insert proper C++ library support
10420         ld_shlibs_CXX=no
10421         ;;
10422       *)
10423         # FIXME: insert proper C++ library support
10424         ld_shlibs_CXX=no
10425         ;;
10426     esac
10427     ;;
10428   netbsd*)
10429     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10430       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10431       wlarc=
10432       hardcode_libdir_flag_spec_CXX='-R$libdir'
10433       hardcode_direct_CXX=yes
10434       hardcode_shlibpath_var_CXX=no
10435     fi
10436     # Workaround some broken pre-1.5 toolchains
10437     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10438     ;;
10439   osf3*)
10440     case $cc_basename in
10441       KCC)
10442         # Kuck and Associates, Inc. (KAI) C++ Compiler
10443
10444         # KCC will only create a shared library if the output file
10445         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10446         # to its proper name (with version) after linking.
10447         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'
10448
10449         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10450         hardcode_libdir_separator_CXX=:
10451
10452         # Archives containing C++ object files must be created using
10453         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10454         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10455
10456         ;;
10457       RCC)
10458         # Rational C++ 2.4.1
10459         # FIXME: insert proper C++ library support
10460         ld_shlibs_CXX=no
10461         ;;
10462       cxx)
10463         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10464         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'
10465
10466         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10467         hardcode_libdir_separator_CXX=:
10468
10469         # Commands to make compiler produce verbose output that lists
10470         # what "hidden" libraries, object files and flags are used when
10471         # linking a shared library.
10472         #
10473         # There doesn't appear to be a way to prevent this compiler from
10474         # explicitly linking system object files so we need to strip them
10475         # from the output so that they don't get included in the library
10476         # dependencies.
10477         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'
10478         ;;
10479       *)
10480         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10481           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482           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'
10483
10484           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485           hardcode_libdir_separator_CXX=:
10486
10487           # Commands to make compiler produce verbose output that lists
10488           # what "hidden" libraries, object files and flags are used when
10489           # linking a shared library.
10490           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10491
10492         else
10493           # FIXME: insert proper C++ library support
10494           ld_shlibs_CXX=no
10495         fi
10496         ;;
10497     esac
10498     ;;
10499   osf4* | osf5*)
10500     case $cc_basename in
10501       KCC)
10502         # Kuck and Associates, Inc. (KAI) C++ Compiler
10503
10504         # KCC will only create a shared library if the output file
10505         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10506         # to its proper name (with version) after linking.
10507         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'
10508
10509         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10510         hardcode_libdir_separator_CXX=:
10511
10512         # Archives containing C++ object files must be created using
10513         # the KAI C++ compiler.
10514         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10515         ;;
10516       RCC)
10517         # Rational C++ 2.4.1
10518         # FIXME: insert proper C++ library support
10519         ld_shlibs_CXX=no
10520         ;;
10521       cxx)
10522         allow_undefined_flag_CXX=' -expect_unresolved \*'
10523         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'
10524         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10525           echo "-hidden">> $lib.exp~
10526           $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~
10527           $rm $lib.exp'
10528
10529         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10530         hardcode_libdir_separator_CXX=:
10531
10532         # Commands to make compiler produce verbose output that lists
10533         # what "hidden" libraries, object files and flags are used when
10534         # linking a shared library.
10535         #
10536         # There doesn't appear to be a way to prevent this compiler from
10537         # explicitly linking system object files so we need to strip them
10538         # from the output so that they don't get included in the library
10539         # dependencies.
10540         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'
10541         ;;
10542       *)
10543         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10544           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10545          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'
10546
10547           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10548           hardcode_libdir_separator_CXX=:
10549
10550           # Commands to make compiler produce verbose output that lists
10551           # what "hidden" libraries, object files and flags are used when
10552           # linking a shared library.
10553           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10554
10555         else
10556           # FIXME: insert proper C++ library support
10557           ld_shlibs_CXX=no
10558         fi
10559         ;;
10560     esac
10561     ;;
10562   psos*)
10563     # FIXME: insert proper C++ library support
10564     ld_shlibs_CXX=no
10565     ;;
10566   sco*)
10567     archive_cmds_need_lc_CXX=no
10568     case $cc_basename in
10569       CC)
10570         # FIXME: insert proper C++ library support
10571         ld_shlibs_CXX=no
10572         ;;
10573       *)
10574         # FIXME: insert proper C++ library support
10575         ld_shlibs_CXX=no
10576         ;;
10577     esac
10578     ;;
10579   sunos4*)
10580     case $cc_basename in
10581       CC)
10582         # Sun C++ 4.x
10583         # FIXME: insert proper C++ library support
10584         ld_shlibs_CXX=no
10585         ;;
10586       lcc)
10587         # Lucid
10588         # FIXME: insert proper C++ library support
10589         ld_shlibs_CXX=no
10590         ;;
10591       *)
10592         # FIXME: insert proper C++ library support
10593         ld_shlibs_CXX=no
10594         ;;
10595     esac
10596     ;;
10597   solaris*)
10598     case $cc_basename in
10599       CC)
10600         # Sun C++ 4.2, 5.x and Centerline C++
10601         no_undefined_flag_CXX=' -zdefs'
10602         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10604         $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'
10605
10606         hardcode_libdir_flag_spec_CXX='-R$libdir'
10607         hardcode_shlibpath_var_CXX=no
10608         case $host_os in
10609           solaris2.0-5 | solaris2.0-5.*) ;;
10610           *)
10611             # The C++ compiler is used as linker so we must use $wl
10612             # flag to pass the commands to the underlying system
10613             # linker.
10614             # Supported since Solaris 2.6 (maybe 2.5.1?)
10615             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10616             ;;
10617         esac
10618         link_all_deplibs_CXX=yes
10619
10620         # Commands to make compiler produce verbose output that lists
10621         # what "hidden" libraries, object files and flags are used when
10622         # linking a shared library.
10623         #
10624         # There doesn't appear to be a way to prevent this compiler from
10625         # explicitly linking system object files so we need to strip them
10626         # from the output so that they don't get included in the library
10627         # dependencies.
10628         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'
10629
10630         # Archives containing C++ object files must be created using
10631         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10632         # necessary to make sure instantiated templates are included
10633         # in the archive.
10634         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10635         ;;
10636       gcx)
10637         # Green Hills C++ Compiler
10638         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10639
10640         # The C++ compiler must be used to create the archive.
10641         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10642         ;;
10643       *)
10644         # GNU C++ compiler with Solaris linker
10645         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10646           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10647           if $CC --version | grep -v '^2\.7' > /dev/null; then
10648             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10649             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10650                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10651
10652             # Commands to make compiler produce verbose output that lists
10653             # what "hidden" libraries, object files and flags are used when
10654             # linking a shared library.
10655             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10656           else
10657             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10658             # platform.
10659             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10660             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10661                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10662
10663             # Commands to make compiler produce verbose output that lists
10664             # what "hidden" libraries, object files and flags are used when
10665             # linking a shared library.
10666             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10667           fi
10668
10669           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10670         fi
10671         ;;
10672     esac
10673     ;;
10674   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10675     archive_cmds_need_lc_CXX=no
10676     ;;
10677   tandem*)
10678     case $cc_basename in
10679       NCC)
10680         # NonStop-UX NCC 3.20
10681         # FIXME: insert proper C++ library support
10682         ld_shlibs_CXX=no
10683         ;;
10684       *)
10685         # FIXME: insert proper C++ library support
10686         ld_shlibs_CXX=no
10687         ;;
10688     esac
10689     ;;
10690   vxworks*)
10691     # FIXME: insert proper C++ library support
10692     ld_shlibs_CXX=no
10693     ;;
10694   *)
10695     # FIXME: insert proper C++ library support
10696     ld_shlibs_CXX=no
10697     ;;
10698 esac
10699 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10700 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10701 test "$ld_shlibs_CXX" = no && can_build_shared=no
10702
10703 GCC_CXX="$GXX"
10704 LD_CXX="$LD"
10705
10706
10707 cat > conftest.$ac_ext <<EOF
10708 class Foo
10709 {
10710 public:
10711   Foo (void) { a = 0; }
10712 private:
10713   int a;
10714 };
10715 EOF
10716
10717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718   (eval $ac_compile) 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }; then
10722   # Parse the compiler output and extract the necessary
10723   # objects, libraries and library flags.
10724
10725   # Sentinel used to keep track of whether or not we are before
10726   # the conftest object file.
10727   pre_test_object_deps_done=no
10728
10729   # The `*' in the case matches for architectures that use `case' in
10730   # $output_verbose_cmd can trigger glob expansion during the loop
10731   # eval without this substitution.
10732   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10733
10734   for p in `eval $output_verbose_link_cmd`; do
10735     case $p in
10736
10737     -L* | -R* | -l*)
10738        # Some compilers place space between "-{L,R}" and the path.
10739        # Remove the space.
10740        if test $p = "-L" \
10741           || test $p = "-R"; then
10742          prev=$p
10743          continue
10744        else
10745          prev=
10746        fi
10747
10748        if test "$pre_test_object_deps_done" = no; then
10749          case $p in
10750          -L* | -R*)
10751            # Internal compiler library paths should come after those
10752            # provided the user.  The postdeps already come after the
10753            # user supplied libs so there is no need to process them.
10754            if test -z "$compiler_lib_search_path_CXX"; then
10755              compiler_lib_search_path_CXX="${prev}${p}"
10756            else
10757              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10758            fi
10759            ;;
10760          # The "-l" case would never come before the object being
10761          # linked, so don't bother handling this case.
10762          esac
10763        else
10764          if test -z "$postdeps_CXX"; then
10765            postdeps_CXX="${prev}${p}"
10766          else
10767            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10768          fi
10769        fi
10770        ;;
10771
10772     *.$objext)
10773        # This assumes that the test object file only shows up
10774        # once in the compiler output.
10775        if test "$p" = "conftest.$objext"; then
10776          pre_test_object_deps_done=yes
10777          continue
10778        fi
10779
10780        if test "$pre_test_object_deps_done" = no; then
10781          if test -z "$predep_objects_CXX"; then
10782            predep_objects_CXX="$p"
10783          else
10784            predep_objects_CXX="$predep_objects_CXX $p"
10785          fi
10786        else
10787          if test -z "$postdep_objects_CXX"; then
10788            postdep_objects_CXX="$p"
10789          else
10790            postdep_objects_CXX="$postdep_objects_CXX $p"
10791          fi
10792        fi
10793        ;;
10794
10795     *) ;; # Ignore the rest.
10796
10797     esac
10798   done
10799
10800   # Clean up.
10801   rm -f a.out a.exe
10802 else
10803   echo "libtool.m4: error: problem compiling CXX test program"
10804 fi
10805
10806 $rm -f confest.$objext
10807
10808 case " $postdeps_CXX " in
10809 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10810 esac
10811
10812 lt_prog_compiler_wl_CXX=
10813 lt_prog_compiler_pic_CXX=
10814 lt_prog_compiler_static_CXX=
10815
10816 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10817 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10818
10819   # C++ specific cases for pic, static, wl, etc.
10820   if test "$GXX" = yes; then
10821     lt_prog_compiler_wl_CXX='-Wl,'
10822     lt_prog_compiler_static_CXX='-static'
10823
10824     case $host_os in
10825     aix*)
10826       # All AIX code is PIC.
10827       if test "$host_cpu" = ia64; then
10828         # AIX 5 now supports IA64 processor
10829         lt_prog_compiler_static_CXX='-Bstatic'
10830       fi
10831       ;;
10832     amigaos*)
10833       # FIXME: we need at least 68020 code to build shared libraries, but
10834       # adding the `-m68020' flag to GCC prevents building anything better,
10835       # like `-m68040'.
10836       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10837       ;;
10838     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10839       # PIC is the default for these OSes.
10840       ;;
10841     mingw* | os2* | pw32*)
10842       # This hack is so that the source file can tell whether it is being
10843       # built for inclusion in a dll (and should export symbols for example).
10844       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10845       ;;
10846     darwin* | rhapsody*)
10847       # PIC is the default on this platform
10848       # Common symbols not allowed in MH_DYLIB files
10849       lt_prog_compiler_pic_CXX='-fno-common'
10850       ;;
10851     *djgpp*)
10852       # DJGPP does not support shared libraries at all
10853       lt_prog_compiler_pic_CXX=
10854       ;;
10855     sysv4*MP*)
10856       if test -d /usr/nec; then
10857         lt_prog_compiler_pic_CXX=-Kconform_pic
10858       fi
10859       ;;
10860     hpux*)
10861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10862       # not for PA HP-UX.
10863       case "$host_cpu" in
10864       hppa*64*|ia64*)
10865         ;;
10866       *)
10867         lt_prog_compiler_pic_CXX='-fPIC'
10868         ;;
10869       esac
10870       ;;
10871     *)
10872       lt_prog_compiler_pic_CXX='-fPIC'
10873       ;;
10874     esac
10875   else
10876     case $host_os in
10877       aix4* | aix5*)
10878         # All AIX code is PIC.
10879         if test "$host_cpu" = ia64; then
10880           # AIX 5 now supports IA64 processor
10881           lt_prog_compiler_static_CXX='-Bstatic'
10882         else
10883           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10884         fi
10885         ;;
10886       chorus*)
10887         case $cc_basename in
10888         cxch68)
10889           # Green Hills C++ Compiler
10890           # _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"
10891           ;;
10892         esac
10893         ;;
10894       dgux*)
10895         case $cc_basename in
10896           ec++)
10897             lt_prog_compiler_pic_CXX='-KPIC'
10898             ;;
10899           ghcx)
10900             # Green Hills C++ Compiler
10901             lt_prog_compiler_pic_CXX='-pic'
10902             ;;
10903           *)
10904             ;;
10905         esac
10906         ;;
10907       freebsd* | kfreebsd*-gnu)
10908         # FreeBSD uses GNU C++
10909         ;;
10910       hpux9* | hpux10* | hpux11*)
10911         case $cc_basename in
10912           CC)
10913             lt_prog_compiler_wl_CXX='-Wl,'
10914             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10915             if test "$host_cpu" != ia64; then
10916               lt_prog_compiler_pic_CXX='+Z'
10917             fi
10918             ;;
10919           aCC)
10920             lt_prog_compiler_wl_CXX='-Wl,'
10921             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10922             case "$host_cpu" in
10923             hppa*64*|ia64*)
10924               # +Z the default
10925               ;;
10926             *)
10927               lt_prog_compiler_pic_CXX='+Z'
10928               ;;
10929             esac
10930             ;;
10931           *)
10932             ;;
10933         esac
10934         ;;
10935       irix5* | irix6* | nonstopux*)
10936         case $cc_basename in
10937           CC)
10938             lt_prog_compiler_wl_CXX='-Wl,'
10939             lt_prog_compiler_static_CXX='-non_shared'
10940             # CC pic flag -KPIC is the default.
10941             ;;
10942           *)
10943             ;;
10944         esac
10945         ;;
10946       linux*)
10947         case $cc_basename in
10948           KCC)
10949             # KAI C++ Compiler
10950             lt_prog_compiler_wl_CXX='--backend -Wl,'
10951             lt_prog_compiler_pic_CXX='-fPIC'
10952             ;;
10953           icpc)
10954             # Intel C++
10955             lt_prog_compiler_wl_CXX='-Wl,'
10956             lt_prog_compiler_pic_CXX='-KPIC'
10957             lt_prog_compiler_static_CXX='-static'
10958             ;;
10959           cxx)
10960             # Compaq C++
10961             # Make sure the PIC flag is empty.  It appears that all Alpha
10962             # Linux and Compaq Tru64 Unix objects are PIC.
10963             lt_prog_compiler_pic_CXX=
10964             lt_prog_compiler_static_CXX='-non_shared'
10965             ;;
10966           *)
10967             ;;
10968         esac
10969         ;;
10970       lynxos*)
10971         ;;
10972       m88k*)
10973         ;;
10974       mvs*)
10975         case $cc_basename in
10976           cxx)
10977             lt_prog_compiler_pic_CXX='-W c,exportall'
10978             ;;
10979           *)
10980             ;;
10981         esac
10982         ;;
10983       netbsd*)
10984         ;;
10985       osf3* | osf4* | osf5*)
10986         case $cc_basename in
10987           KCC)
10988             lt_prog_compiler_wl_CXX='--backend -Wl,'
10989             ;;
10990           RCC)
10991             # Rational C++ 2.4.1
10992             lt_prog_compiler_pic_CXX='-pic'
10993             ;;
10994           cxx)
10995             # Digital/Compaq C++
10996             lt_prog_compiler_wl_CXX='-Wl,'
10997             # Make sure the PIC flag is empty.  It appears that all Alpha
10998             # Linux and Compaq Tru64 Unix objects are PIC.
10999             lt_prog_compiler_pic_CXX=
11000             lt_prog_compiler_static_CXX='-non_shared'
11001             ;;
11002           *)
11003             ;;
11004         esac
11005         ;;
11006       psos*)
11007         ;;
11008       sco*)
11009         case $cc_basename in
11010           CC)
11011             lt_prog_compiler_pic_CXX='-fPIC'
11012             ;;
11013           *)
11014             ;;
11015         esac
11016         ;;
11017       solaris*)
11018         case $cc_basename in
11019           CC)
11020             # Sun C++ 4.2, 5.x and Centerline C++
11021             lt_prog_compiler_pic_CXX='-KPIC'
11022             lt_prog_compiler_static_CXX='-Bstatic'
11023             lt_prog_compiler_wl_CXX='-Qoption ld '
11024             ;;
11025           gcx)
11026             # Green Hills C++ Compiler
11027             lt_prog_compiler_pic_CXX='-PIC'
11028             ;;
11029           *)
11030             ;;
11031         esac
11032         ;;
11033       sunos4*)
11034         case $cc_basename in
11035           CC)
11036             # Sun C++ 4.x
11037             lt_prog_compiler_pic_CXX='-pic'
11038             lt_prog_compiler_static_CXX='-Bstatic'
11039             ;;
11040           lcc)
11041             # Lucid
11042             lt_prog_compiler_pic_CXX='-pic'
11043             ;;
11044           *)
11045             ;;
11046         esac
11047         ;;
11048       tandem*)
11049         case $cc_basename in
11050           NCC)
11051             # NonStop-UX NCC 3.20
11052             lt_prog_compiler_pic_CXX='-KPIC'
11053             ;;
11054           *)
11055             ;;
11056         esac
11057         ;;
11058       unixware*)
11059         ;;
11060       vxworks*)
11061         ;;
11062       *)
11063         lt_prog_compiler_can_build_shared_CXX=no
11064         ;;
11065     esac
11066   fi
11067
11068 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11069 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11070
11071 #
11072 # Check to make sure the PIC flag actually works.
11073 #
11074 if test -n "$lt_prog_compiler_pic_CXX"; then
11075
11076 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11077 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11078 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   lt_prog_compiler_pic_works_CXX=no
11082   ac_outfile=conftest.$ac_objext
11083    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11084    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11085    # Insert the option either (1) after the last *FLAGS variable, or
11086    # (2) before a word containing "conftest.", or (3) at the end.
11087    # Note that $ac_compile itself does not contain backslashes and begins
11088    # with a dollar sign (not a hyphen), so the echo should work correctly.
11089    # The option is referenced via a variable to avoid confusing sed.
11090    lt_compile=`echo "$ac_compile" | $SED \
11091    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11093    -e 's:$: $lt_compiler_flag:'`
11094    (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
11095    (eval "$lt_compile" 2>conftest.err)
11096    ac_status=$?
11097    cat conftest.err >&5
11098    echo "$as_me:11098: \$? = $ac_status" >&5
11099    if (exit $ac_status) && test -s "$ac_outfile"; then
11100      # The compiler can only warn and ignore the option if not recognized
11101      # So say no if there are warnings
11102      if test ! -s conftest.err; then
11103        lt_prog_compiler_pic_works_CXX=yes
11104      fi
11105    fi
11106    $rm conftest*
11107
11108 fi
11109 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11110 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11111
11112 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11113     case $lt_prog_compiler_pic_CXX in
11114      "" | " "*) ;;
11115      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11116      esac
11117 else
11118     lt_prog_compiler_pic_CXX=
11119      lt_prog_compiler_can_build_shared_CXX=no
11120 fi
11121
11122 fi
11123 case "$host_os" in
11124   # For platforms which do not support PIC, -DPIC is meaningless:
11125   *djgpp*)
11126     lt_prog_compiler_pic_CXX=
11127     ;;
11128   *)
11129     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11130     ;;
11131 esac
11132
11133 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11134 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11135 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   lt_cv_prog_compiler_c_o_CXX=no
11139    $rm -r conftest 2>/dev/null
11140    mkdir conftest
11141    cd conftest
11142    mkdir out
11143    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11144
11145    lt_compiler_flag="-o out/conftest2.$ac_objext"
11146    # Insert the option either (1) after the last *FLAGS variable, or
11147    # (2) before a word containing "conftest.", or (3) at the end.
11148    # Note that $ac_compile itself does not contain backslashes and begins
11149    # with a dollar sign (not a hyphen), so the echo should work correctly.
11150    lt_compile=`echo "$ac_compile" | $SED \
11151    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11153    -e 's:$: $lt_compiler_flag:'`
11154    (eval echo "\"\$as_me:11154: $lt_compile\"" >&5)
11155    (eval "$lt_compile" 2>out/conftest.err)
11156    ac_status=$?
11157    cat out/conftest.err >&5
11158    echo "$as_me:11158: \$? = $ac_status" >&5
11159    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11160    then
11161      # The compiler can only warn and ignore the option if not recognized
11162      # So say no if there are warnings
11163      if test ! -s out/conftest.err; then
11164        lt_cv_prog_compiler_c_o_CXX=yes
11165      fi
11166    fi
11167    chmod u+w .
11168    $rm conftest*
11169    # SGI C++ compiler will create directory out/ii_files/ for
11170    # template instantiation
11171    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11172    $rm out/* && rmdir out
11173    cd ..
11174    rmdir conftest
11175    $rm conftest*
11176
11177 fi
11178 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11179 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11180
11181
11182 hard_links="nottested"
11183 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11184   # do not overwrite the value of need_locks provided by the user
11185   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11186 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11187   hard_links=yes
11188   $rm conftest*
11189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11190   touch conftest.a
11191   ln conftest.a conftest.b 2>&5 || hard_links=no
11192   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11193   echo "$as_me:$LINENO: result: $hard_links" >&5
11194 echo "${ECHO_T}$hard_links" >&6
11195   if test "$hard_links" = no; then
11196     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11197 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11198     need_locks=warn
11199   fi
11200 else
11201   need_locks=no
11202 fi
11203
11204 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11205 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11206
11207   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11208   case $host_os in
11209   aix4* | aix5*)
11210     # If we're using GNU nm, then we don't want the "-C" option.
11211     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11212     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11213       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'
11214     else
11215       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'
11216     fi
11217     ;;
11218   pw32*)
11219     export_symbols_cmds_CXX="$ltdll_cmds"
11220   ;;
11221   cygwin* | mingw*)
11222     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11223   ;;
11224   *)
11225     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11226   ;;
11227   esac
11228
11229 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11230 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11231 test "$ld_shlibs_CXX" = no && can_build_shared=no
11232
11233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11234 if test "$GCC" = yes; then
11235   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11236 fi
11237
11238 #
11239 # Do we need to explicitly link libc?
11240 #
11241 case "x$archive_cmds_need_lc_CXX" in
11242 x|xyes)
11243   # Assume -lc should be added
11244   archive_cmds_need_lc_CXX=yes
11245
11246   if test "$enable_shared" = yes && test "$GCC" = yes; then
11247     case $archive_cmds_CXX in
11248     *'~'*)
11249       # FIXME: we may have to deal with multi-command sequences.
11250       ;;
11251     '$CC '*)
11252       # Test whether the compiler implicitly links with -lc since on some
11253       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11254       # to ld, don't add -lc before -lgcc.
11255       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11256 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11257       $rm conftest*
11258       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11259
11260       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } 2>conftest.err; then
11265         soname=conftest
11266         lib=conftest
11267         libobjs=conftest.$ac_objext
11268         deplibs=
11269         wl=$lt_prog_compiler_wl_CXX
11270         compiler_flags=-v
11271         linker_flags=-v
11272         verstring=
11273         output_objdir=.
11274         libname=conftest
11275         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11276         allow_undefined_flag_CXX=
11277         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11278   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }
11282         then
11283           archive_cmds_need_lc_CXX=no
11284         else
11285           archive_cmds_need_lc_CXX=yes
11286         fi
11287         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11288       else
11289         cat conftest.err 1>&5
11290       fi
11291       $rm conftest*
11292       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11293 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11294       ;;
11295     esac
11296   fi
11297   ;;
11298 esac
11299
11300 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11302 library_names_spec=
11303 libname_spec='lib$name'
11304 soname_spec=
11305 shrext_cmds=".so"
11306 postinstall_cmds=
11307 postuninstall_cmds=
11308 finish_cmds=
11309 finish_eval=
11310 shlibpath_var=
11311 shlibpath_overrides_runpath=unknown
11312 version_type=none
11313 dynamic_linker="$host_os ld.so"
11314 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11315 if test "$GCC" = yes; then
11316   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11317   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11318     # if the path contains ";" then we assume it to be the separator
11319     # otherwise default to the standard path separator (i.e. ":") - it is
11320     # assumed that no part of a normal pathname contains ";" but that should
11321     # okay in the real world where ";" in dirpaths is itself problematic.
11322     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11323   else
11324     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11325   fi
11326 else
11327   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11328 fi
11329 need_lib_prefix=unknown
11330 hardcode_into_libs=no
11331
11332 # when you set need_version to no, make sure it does not cause -set_version
11333 # flags to be left without arguments
11334 need_version=unknown
11335
11336 case $host_os in
11337 aix3*)
11338   version_type=linux
11339   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11340   shlibpath_var=LIBPATH
11341
11342   # AIX 3 has no versioning support, so we append a major version to the name.
11343   soname_spec='${libname}${release}${shared_ext}$major'
11344   ;;
11345
11346 aix4* | aix5*)
11347   version_type=linux
11348   need_lib_prefix=no
11349   need_version=no
11350   hardcode_into_libs=yes
11351   if test "$host_cpu" = ia64; then
11352     # AIX 5 supports IA64
11353     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11354     shlibpath_var=LD_LIBRARY_PATH
11355   else
11356     # With GCC up to 2.95.x, collect2 would create an import file
11357     # for dependence libraries.  The import file would start with
11358     # the line `#! .'.  This would cause the generated library to
11359     # depend on `.', always an invalid library.  This was fixed in
11360     # development snapshots of GCC prior to 3.0.
11361     case $host_os in
11362       aix4 | aix4.[01] | aix4.[01].*)
11363       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11364            echo ' yes '
11365            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11366         :
11367       else
11368         can_build_shared=no
11369       fi
11370       ;;
11371     esac
11372     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11373     # soname into executable. Probably we can add versioning support to
11374     # collect2, so additional links can be useful in future.
11375     if test "$aix_use_runtimelinking" = yes; then
11376       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11377       # instead of lib<name>.a to let people know that these are not
11378       # typical AIX shared libraries.
11379       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380     else
11381       # We preserve .a as extension for shared libraries through AIX4.2
11382       # and later when we are not doing run time linking.
11383       library_names_spec='${libname}${release}.a $libname.a'
11384       soname_spec='${libname}${release}${shared_ext}$major'
11385     fi
11386     shlibpath_var=LIBPATH
11387   fi
11388   ;;
11389
11390 amigaos*)
11391   library_names_spec='$libname.ixlibrary $libname.a'
11392   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11393   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'
11394   ;;
11395
11396 beos*)
11397   library_names_spec='${libname}${shared_ext}'
11398   dynamic_linker="$host_os ld.so"
11399   shlibpath_var=LIBRARY_PATH
11400   ;;
11401
11402 bsdi4*)
11403   version_type=linux
11404   need_version=no
11405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406   soname_spec='${libname}${release}${shared_ext}$major'
11407   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11408   shlibpath_var=LD_LIBRARY_PATH
11409   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11410   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11411   # the default ld.so.conf also contains /usr/contrib/lib and
11412   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11413   # libtool to hard-code these into programs
11414   ;;
11415
11416 cygwin* | mingw* | pw32*)
11417   version_type=windows
11418   shrext_cmds=".dll"
11419   need_version=no
11420   need_lib_prefix=no
11421
11422   case $GCC,$host_os in
11423   yes,cygwin* | yes,mingw* | yes,pw32*)
11424     library_names_spec='$libname.dll.a'
11425     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11426     postinstall_cmds='base_file=`basename \${file}`~
11427       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11428       dldir=$destdir/`dirname \$dlpath`~
11429       test -d \$dldir || mkdir -p \$dldir~
11430       $install_prog $dir/$dlname \$dldir/$dlname'
11431     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11432       dlpath=$dir/\$dldll~
11433        $rm \$dlpath'
11434     shlibpath_overrides_runpath=yes
11435
11436     case $host_os in
11437     cygwin*)
11438       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11439       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11440       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11441       ;;
11442     mingw*)
11443       # MinGW DLLs use traditional 'lib' prefix
11444       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11445       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11446       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11447         # It is most probably a Windows format PATH printed by
11448         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11449         # path with ; separators, and with drive letters. We can handle the
11450         # drive letters (cygwin fileutils understands them), so leave them,
11451         # especially as we might pass files found there to a mingw objdump,
11452         # which wouldn't understand a cygwinified path. Ahh.
11453         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11454       else
11455         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11456       fi
11457       ;;
11458     pw32*)
11459       # pw32 DLLs use 'pw' prefix rather than 'lib'
11460       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11461       ;;
11462     esac
11463     ;;
11464
11465   *)
11466     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11467     ;;
11468   esac
11469   dynamic_linker='Win32 ld.exe'
11470   # FIXME: first we should search . and the directory the executable is in
11471   shlibpath_var=PATH
11472   ;;
11473
11474 darwin* | rhapsody*)
11475   dynamic_linker="$host_os dyld"
11476   version_type=darwin
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11480   soname_spec='${libname}${release}${major}$shared_ext'
11481   shlibpath_overrides_runpath=yes
11482   shlibpath_var=DYLD_LIBRARY_PATH
11483   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11484   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11485   if test "$GCC" = yes; then
11486     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"`
11487   else
11488     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11489   fi
11490   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11491   ;;
11492
11493 dgux*)
11494   version_type=linux
11495   need_lib_prefix=no
11496   need_version=no
11497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11498   soname_spec='${libname}${release}${shared_ext}$major'
11499   shlibpath_var=LD_LIBRARY_PATH
11500   ;;
11501
11502 freebsd1*)
11503   dynamic_linker=no
11504   ;;
11505
11506 kfreebsd*-gnu)
11507   version_type=linux
11508   need_lib_prefix=no
11509   need_version=no
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11511   soname_spec='${libname}${release}${shared_ext}$major'
11512   shlibpath_var=LD_LIBRARY_PATH
11513   shlibpath_overrides_runpath=no
11514   hardcode_into_libs=yes
11515   dynamic_linker='GNU ld.so'
11516   ;;
11517
11518 freebsd*)
11519   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11520   version_type=freebsd-$objformat
11521   case $version_type in
11522     freebsd-elf*)
11523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11524       need_version=no
11525       need_lib_prefix=no
11526       ;;
11527     freebsd-*)
11528       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11529       need_version=yes
11530       ;;
11531   esac
11532   shlibpath_var=LD_LIBRARY_PATH
11533   case $host_os in
11534   freebsd2*)
11535     shlibpath_overrides_runpath=yes
11536     ;;
11537   freebsd3.01* | freebsdelf3.01*)
11538     shlibpath_overrides_runpath=yes
11539     hardcode_into_libs=yes
11540     ;;
11541   *) # from 3.2 on
11542     shlibpath_overrides_runpath=no
11543     hardcode_into_libs=yes
11544     ;;
11545   esac
11546   ;;
11547
11548 gnu*)
11549   version_type=linux
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   hardcode_into_libs=yes
11556   ;;
11557
11558 hpux9* | hpux10* | hpux11*)
11559   # Give a soname corresponding to the major version so that dld.sl refuses to
11560   # link against other versions.
11561   version_type=sunos
11562   need_lib_prefix=no
11563   need_version=no
11564   case "$host_cpu" in
11565   ia64*)
11566     shrext_cmds='.so'
11567     hardcode_into_libs=yes
11568     dynamic_linker="$host_os dld.so"
11569     shlibpath_var=LD_LIBRARY_PATH
11570     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572     soname_spec='${libname}${release}${shared_ext}$major'
11573     if test "X$HPUX_IA64_MODE" = X32; then
11574       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11575     else
11576       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11577     fi
11578     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11579     ;;
11580    hppa*64*)
11581      shrext_cmds='.sl'
11582      hardcode_into_libs=yes
11583      dynamic_linker="$host_os dld.sl"
11584      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11585      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11586      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587      soname_spec='${libname}${release}${shared_ext}$major'
11588      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11589      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11590      ;;
11591    *)
11592     shrext_cmds='.sl'
11593     dynamic_linker="$host_os dld.sl"
11594     shlibpath_var=SHLIB_PATH
11595     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597     soname_spec='${libname}${release}${shared_ext}$major'
11598     ;;
11599   esac
11600   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11601   postinstall_cmds='chmod 555 $lib'
11602   ;;
11603
11604 irix5* | irix6* | nonstopux*)
11605   case $host_os in
11606     nonstopux*) version_type=nonstopux ;;
11607     *)
11608         if test "$lt_cv_prog_gnu_ld" = yes; then
11609                 version_type=linux
11610         else
11611                 version_type=irix
11612         fi ;;
11613   esac
11614   need_lib_prefix=no
11615   need_version=no
11616   soname_spec='${libname}${release}${shared_ext}$major'
11617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11618   case $host_os in
11619   irix5* | nonstopux*)
11620     libsuff= shlibsuff=
11621     ;;
11622   *)
11623     case $LD in # libtool.m4 will add one of these switches to LD
11624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11625       libsuff= shlibsuff= libmagic=32-bit;;
11626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11627       libsuff=32 shlibsuff=N32 libmagic=N32;;
11628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11630     *) libsuff= shlibsuff= libmagic=never-match;;
11631     esac
11632     ;;
11633   esac
11634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11635   shlibpath_overrides_runpath=no
11636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11638   hardcode_into_libs=yes
11639   ;;
11640
11641 # No shared lib support for Linux oldld, aout, or coff.
11642 linux*oldld* | linux*aout* | linux*coff*)
11643   dynamic_linker=no
11644   ;;
11645
11646 # This must be Linux ELF.
11647 linux*)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654   shlibpath_var=LD_LIBRARY_PATH
11655   shlibpath_overrides_runpath=no
11656   # This implies no fast_install, which is unacceptable.
11657   # Some rework will be needed to allow for fast_install
11658   # before this can be enabled.
11659   hardcode_into_libs=yes
11660
11661   # find out which ABI we are using
11662   libsuff=
11663   case "$host_cpu" in
11664   x86_64*|s390x*|powerpc64*)
11665     echo '#line 11665 "configure"' > conftest.$ac_ext
11666     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11667   (eval $ac_compile) 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; then
11671       case `/usr/bin/file conftest.$ac_objext` in
11672       *64-bit*)
11673         libsuff=64
11674         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11675         ;;
11676       esac
11677     fi
11678     rm -rf conftest*
11679     ;;
11680   esac
11681
11682   # Append ld.so.conf contents to the search path
11683   if test -f /etc/ld.so.conf; then
11684     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11685     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11686   fi
11687
11688   # We used to test for /lib/ld.so.1 and disable shared libraries on
11689   # powerpc, because MkLinux only supported shared libraries with the
11690   # GNU dynamic linker.  Since this was broken with cross compilers,
11691   # most powerpc-linux boxes support dynamic linking these days and
11692   # people can always --disable-shared, the test was removed, and we
11693   # assume the GNU/Linux dynamic linker is in use.
11694   dynamic_linker='GNU/Linux ld.so'
11695   ;;
11696
11697 knetbsd*-gnu)
11698   version_type=linux
11699   need_lib_prefix=no
11700   need_version=no
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11702   soname_spec='${libname}${release}${shared_ext}$major'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   shlibpath_overrides_runpath=no
11705   hardcode_into_libs=yes
11706   dynamic_linker='GNU ld.so'
11707   ;;
11708
11709 netbsd*)
11710   version_type=sunos
11711   need_lib_prefix=no
11712   need_version=no
11713   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11714     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11715     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11716     dynamic_linker='NetBSD (a.out) ld.so'
11717   else
11718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11719     soname_spec='${libname}${release}${shared_ext}$major'
11720     dynamic_linker='NetBSD ld.elf_so'
11721   fi
11722   shlibpath_var=LD_LIBRARY_PATH
11723   shlibpath_overrides_runpath=yes
11724   hardcode_into_libs=yes
11725   ;;
11726
11727 newsos6)
11728   version_type=linux
11729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730   shlibpath_var=LD_LIBRARY_PATH
11731   shlibpath_overrides_runpath=yes
11732   ;;
11733
11734 nto-qnx*)
11735   version_type=linux
11736   need_lib_prefix=no
11737   need_version=no
11738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739   soname_spec='${libname}${release}${shared_ext}$major'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   shlibpath_overrides_runpath=yes
11742   ;;
11743
11744 openbsd*)
11745   version_type=sunos
11746   need_lib_prefix=no
11747   need_version=yes
11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11749   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11750   shlibpath_var=LD_LIBRARY_PATH
11751   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11752     case $host_os in
11753       openbsd2.[89] | openbsd2.[89].*)
11754         shlibpath_overrides_runpath=no
11755         ;;
11756       *)
11757         shlibpath_overrides_runpath=yes
11758         ;;
11759       esac
11760   else
11761     shlibpath_overrides_runpath=yes
11762   fi
11763   ;;
11764
11765 os2*)
11766   libname_spec='$name'
11767   shrext_cmds=".dll"
11768   need_lib_prefix=no
11769   library_names_spec='$libname${shared_ext} $libname.a'
11770   dynamic_linker='OS/2 ld.exe'
11771   shlibpath_var=LIBPATH
11772   ;;
11773
11774 osf3* | osf4* | osf5*)
11775   version_type=osf
11776   need_lib_prefix=no
11777   need_version=no
11778   soname_spec='${libname}${release}${shared_ext}$major'
11779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780   shlibpath_var=LD_LIBRARY_PATH
11781   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11782   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11783   ;;
11784
11785 sco3.2v5*)
11786   version_type=osf
11787   soname_spec='${libname}${release}${shared_ext}$major'
11788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789   shlibpath_var=LD_LIBRARY_PATH
11790   ;;
11791
11792 solaris*)
11793   version_type=linux
11794   need_lib_prefix=no
11795   need_version=no
11796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797   soname_spec='${libname}${release}${shared_ext}$major'
11798   shlibpath_var=LD_LIBRARY_PATH
11799   shlibpath_overrides_runpath=yes
11800   hardcode_into_libs=yes
11801   # ldd complains unless libraries are executable
11802   postinstall_cmds='chmod +x $lib'
11803   ;;
11804
11805 sunos4*)
11806   version_type=sunos
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11808   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   shlibpath_overrides_runpath=yes
11811   if test "$with_gnu_ld" = yes; then
11812     need_lib_prefix=no
11813   fi
11814   need_version=yes
11815   ;;
11816
11817 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11818   version_type=linux
11819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820   soname_spec='${libname}${release}${shared_ext}$major'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   case $host_vendor in
11823     sni)
11824       shlibpath_overrides_runpath=no
11825       need_lib_prefix=no
11826       export_dynamic_flag_spec='${wl}-Blargedynsym'
11827       runpath_var=LD_RUN_PATH
11828       ;;
11829     siemens)
11830       need_lib_prefix=no
11831       ;;
11832     motorola)
11833       need_lib_prefix=no
11834       need_version=no
11835       shlibpath_overrides_runpath=no
11836       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11837       ;;
11838   esac
11839   ;;
11840
11841 sysv4*MP*)
11842   if test -d /usr/nec ;then
11843     version_type=linux
11844     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11845     soname_spec='$libname${shared_ext}.$major'
11846     shlibpath_var=LD_LIBRARY_PATH
11847   fi
11848   ;;
11849
11850 uts4*)
11851   version_type=linux
11852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853   soname_spec='${libname}${release}${shared_ext}$major'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   ;;
11856
11857 *)
11858   dynamic_linker=no
11859   ;;
11860 esac
11861 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11862 echo "${ECHO_T}$dynamic_linker" >&6
11863 test "$dynamic_linker" = no && can_build_shared=no
11864
11865 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11866 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11867 hardcode_action_CXX=
11868 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11869    test -n "$runpath_var CXX" || \
11870    test "X$hardcode_automatic_CXX"="Xyes" ; then
11871
11872   # We can hardcode non-existant directories.
11873   if test "$hardcode_direct_CXX" != no &&
11874      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11875      # have to relink, otherwise we might link with an installed library
11876      # when we should be linking with a yet-to-be-installed one
11877      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11878      test "$hardcode_minus_L_CXX" != no; then
11879     # Linking always hardcodes the temporary library directory.
11880     hardcode_action_CXX=relink
11881   else
11882     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11883     hardcode_action_CXX=immediate
11884   fi
11885 else
11886   # We cannot hardcode anything, or else we can only hardcode existing
11887   # directories.
11888   hardcode_action_CXX=unsupported
11889 fi
11890 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11891 echo "${ECHO_T}$hardcode_action_CXX" >&6
11892
11893 if test "$hardcode_action_CXX" = relink; then
11894   # Fast installation is not supported
11895   enable_fast_install=no
11896 elif test "$shlibpath_overrides_runpath" = yes ||
11897      test "$enable_shared" = no; then
11898   # Fast installation is not necessary
11899   enable_fast_install=needless
11900 fi
11901
11902 striplib=
11903 old_striplib=
11904 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11905 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11906 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11907   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11908   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11909   echo "$as_me:$LINENO: result: yes" >&5
11910 echo "${ECHO_T}yes" >&6
11911 else
11912 # FIXME - insert some real tests, host_os isn't really good enough
11913   case $host_os in
11914    darwin*)
11915        if test -n "$STRIP" ; then
11916          striplib="$STRIP -x"
11917          echo "$as_me:$LINENO: result: yes" >&5
11918 echo "${ECHO_T}yes" >&6
11919        else
11920   echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6
11922 fi
11923        ;;
11924    *)
11925   echo "$as_me:$LINENO: result: no" >&5
11926 echo "${ECHO_T}no" >&6
11927     ;;
11928   esac
11929 fi
11930
11931 if test "x$enable_dlopen" != xyes; then
11932   enable_dlopen=unknown
11933   enable_dlopen_self=unknown
11934   enable_dlopen_self_static=unknown
11935 else
11936   lt_cv_dlopen=no
11937   lt_cv_dlopen_libs=
11938
11939   case $host_os in
11940   beos*)
11941     lt_cv_dlopen="load_add_on"
11942     lt_cv_dlopen_libs=
11943     lt_cv_dlopen_self=yes
11944     ;;
11945
11946   mingw* | pw32*)
11947     lt_cv_dlopen="LoadLibrary"
11948     lt_cv_dlopen_libs=
11949    ;;
11950
11951   cygwin*)
11952     lt_cv_dlopen="dlopen"
11953     lt_cv_dlopen_libs=
11954    ;;
11955
11956   darwin*)
11957   # if libdl is installed we need to link against it
11958     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11959 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11960 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-ldl  $LIBS"
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 /* Override any gcc2 internal prototype to avoid an error.  */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 /* We use char because int might match the return type of a gcc2
11977    builtin and then its argument prototype would still apply.  */
11978 char dlopen ();
11979 int
11980 main ()
11981 {
11982 dlopen ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989   (eval $ac_link) 2>conftest.er1
11990   ac_status=$?
11991   grep -v '^ *+' conftest.er1 >conftest.err
11992   rm -f conftest.er1
11993   cat conftest.err >&5
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } &&
11996          { ac_try='test -z "$ac_cxx_werror_flag"
11997                          || test ! -s conftest.err'
11998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999   (eval $ac_try) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; } &&
12003          { ac_try='test -s conftest$ac_exeext'
12004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005   (eval $ac_try) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; }; then
12009   ac_cv_lib_dl_dlopen=yes
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014 ac_cv_lib_dl_dlopen=no
12015 fi
12016 rm -f conftest.err conftest.$ac_objext \
12017       conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12019 fi
12020 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12022 if test $ac_cv_lib_dl_dlopen = yes; then
12023   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12024 else
12025
12026     lt_cv_dlopen="dyld"
12027     lt_cv_dlopen_libs=
12028     lt_cv_dlopen_self=yes
12029
12030 fi
12031
12032    ;;
12033
12034   *)
12035     echo "$as_me:$LINENO: checking for shl_load" >&5
12036 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12037 if test "${ac_cv_func_shl_load+set}" = set; then
12038   echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040   cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12048 #define shl_load innocuous_shl_load
12049
12050 /* System header to define __stub macros and hopefully few prototypes,
12051     which can conflict with char shl_load (); below.
12052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053     <limits.h> exists even on freestanding compilers.  */
12054
12055 #ifdef __STDC__
12056 # include <limits.h>
12057 #else
12058 # include <assert.h>
12059 #endif
12060
12061 #undef shl_load
12062
12063 /* Override any gcc2 internal prototype to avoid an error.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 {
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069    builtin and then its argument prototype would still apply.  */
12070 char shl_load ();
12071 /* The GNU C library defines this for functions which it implements
12072     to always fail with ENOSYS.  Some functions are actually named
12073     something starting with __ and the normal name is an alias.  */
12074 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12075 choke me
12076 #else
12077 char (*f) () = shl_load;
12078 #endif
12079 #ifdef __cplusplus
12080 }
12081 #endif
12082
12083 int
12084 main ()
12085 {
12086 return f != shl_load;
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093   (eval $ac_link) 2>conftest.er1
12094   ac_status=$?
12095   grep -v '^ *+' conftest.er1 >conftest.err
12096   rm -f conftest.er1
12097   cat conftest.err >&5
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -z "$ac_cxx_werror_flag"
12101                          || test ! -s conftest.err'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; } &&
12107          { ac_try='test -s conftest$ac_exeext'
12108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109   (eval $ac_try) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }; }; then
12113   ac_cv_func_shl_load=yes
12114 else
12115   echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 ac_cv_func_shl_load=no
12119 fi
12120 rm -f conftest.err conftest.$ac_objext \
12121       conftest$ac_exeext conftest.$ac_ext
12122 fi
12123 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12124 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12125 if test $ac_cv_func_shl_load = yes; then
12126   lt_cv_dlopen="shl_load"
12127 else
12128   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12129 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12130 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133   ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-ldld  $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141
12142 /* Override any gcc2 internal prototype to avoid an error.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147    builtin and then its argument prototype would still apply.  */
12148 char shl_load ();
12149 int
12150 main ()
12151 {
12152 shl_load ();
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159   (eval $ac_link) 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -z "$ac_cxx_werror_flag"
12167                          || test ! -s conftest.err'
12168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169   (eval $ac_try) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; } &&
12173          { ac_try='test -s conftest$ac_exeext'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_cv_lib_dld_shl_load=yes
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_cv_lib_dld_shl_load=no
12185 fi
12186 rm -f conftest.err conftest.$ac_objext \
12187       conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12189 fi
12190 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12191 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12192 if test $ac_cv_lib_dld_shl_load = yes; then
12193   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12194 else
12195   echo "$as_me:$LINENO: checking for dlopen" >&5
12196 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12197 if test "${ac_cv_func_dlopen+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12208 #define dlopen innocuous_dlopen
12209
12210 /* System header to define __stub macros and hopefully few prototypes,
12211     which can conflict with char dlopen (); below.
12212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213     <limits.h> exists even on freestanding compilers.  */
12214
12215 #ifdef __STDC__
12216 # include <limits.h>
12217 #else
12218 # include <assert.h>
12219 #endif
12220
12221 #undef dlopen
12222
12223 /* Override any gcc2 internal prototype to avoid an error.  */
12224 #ifdef __cplusplus
12225 extern "C"
12226 {
12227 #endif
12228 /* We use char because int might match the return type of a gcc2
12229    builtin and then its argument prototype would still apply.  */
12230 char dlopen ();
12231 /* The GNU C library defines this for functions which it implements
12232     to always fail with ENOSYS.  Some functions are actually named
12233     something starting with __ and the normal name is an alias.  */
12234 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12235 choke me
12236 #else
12237 char (*f) () = dlopen;
12238 #endif
12239 #ifdef __cplusplus
12240 }
12241 #endif
12242
12243 int
12244 main ()
12245 {
12246 return f != dlopen;
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253   (eval $ac_link) 2>conftest.er1
12254   ac_status=$?
12255   grep -v '^ *+' conftest.er1 >conftest.err
12256   rm -f conftest.er1
12257   cat conftest.err >&5
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); } &&
12260          { ac_try='test -z "$ac_cxx_werror_flag"
12261                          || test ! -s conftest.err'
12262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263   (eval $ac_try) 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; } &&
12267          { ac_try='test -s conftest$ac_exeext'
12268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269   (eval $ac_try) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; }; then
12273   ac_cv_func_dlopen=yes
12274 else
12275   echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_cv_func_dlopen=no
12279 fi
12280 rm -f conftest.err conftest.$ac_objext \
12281       conftest$ac_exeext conftest.$ac_ext
12282 fi
12283 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12284 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12285 if test $ac_cv_func_dlopen = yes; then
12286   lt_cv_dlopen="dlopen"
12287 else
12288   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-ldl  $LIBS"
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 /* Override any gcc2 internal prototype to avoid an error.  */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 /* We use char because int might match the return type of a gcc2
12307    builtin and then its argument prototype would still apply.  */
12308 char dlopen ();
12309 int
12310 main ()
12311 {
12312 dlopen ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319   (eval $ac_link) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } &&
12326          { ac_try='test -z "$ac_cxx_werror_flag"
12327                          || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest$ac_exeext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_cv_lib_dl_dlopen=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_cv_lib_dl_dlopen=no
12345 fi
12346 rm -f conftest.err conftest.$ac_objext \
12347       conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12351 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12352 if test $ac_cv_lib_dl_dlopen = yes; then
12353   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12354 else
12355   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12356 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12357 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12358   echo $ECHO_N "(cached) $ECHO_C" >&6
12359 else
12360   ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lsvld  $LIBS"
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368
12369 /* Override any gcc2 internal prototype to avoid an error.  */
12370 #ifdef __cplusplus
12371 extern "C"
12372 #endif
12373 /* We use char because int might match the return type of a gcc2
12374    builtin and then its argument prototype would still apply.  */
12375 char dlopen ();
12376 int
12377 main ()
12378 {
12379 dlopen ();
12380   ;
12381   return 0;
12382 }
12383 _ACEOF
12384 rm -f conftest.$ac_objext conftest$ac_exeext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386   (eval $ac_link) 2>conftest.er1
12387   ac_status=$?
12388   grep -v '^ *+' conftest.er1 >conftest.err
12389   rm -f conftest.er1
12390   cat conftest.err >&5
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); } &&
12393          { ac_try='test -z "$ac_cxx_werror_flag"
12394                          || test ! -s conftest.err'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; } &&
12400          { ac_try='test -s conftest$ac_exeext'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   ac_cv_lib_svld_dlopen=yes
12407 else
12408   echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411 ac_cv_lib_svld_dlopen=no
12412 fi
12413 rm -f conftest.err conftest.$ac_objext \
12414       conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12416 fi
12417 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12418 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12419 if test $ac_cv_lib_svld_dlopen = yes; then
12420   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12421 else
12422   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12423 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12424 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427   ac_check_lib_save_LIBS=$LIBS
12428 LIBS="-ldld  $LIBS"
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h.  */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h.  */
12435
12436 /* Override any gcc2 internal prototype to avoid an error.  */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 /* We use char because int might match the return type of a gcc2
12441    builtin and then its argument prototype would still apply.  */
12442 char dld_link ();
12443 int
12444 main ()
12445 {
12446 dld_link ();
12447   ;
12448   return 0;
12449 }
12450 _ACEOF
12451 rm -f conftest.$ac_objext conftest$ac_exeext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453   (eval $ac_link) 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } &&
12460          { ac_try='test -z "$ac_cxx_werror_flag"
12461                          || test ! -s conftest.err'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; } &&
12467          { ac_try='test -s conftest$ac_exeext'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   ac_cv_lib_dld_dld_link=yes
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 ac_cv_lib_dld_dld_link=no
12479 fi
12480 rm -f conftest.err conftest.$ac_objext \
12481       conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12483 fi
12484 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12485 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12486 if test $ac_cv_lib_dld_dld_link = yes; then
12487   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12488 fi
12489
12490
12491 fi
12492
12493
12494 fi
12495
12496
12497 fi
12498
12499
12500 fi
12501
12502
12503 fi
12504
12505     ;;
12506   esac
12507
12508   if test "x$lt_cv_dlopen" != xno; then
12509     enable_dlopen=yes
12510   else
12511     enable_dlopen=no
12512   fi
12513
12514   case $lt_cv_dlopen in
12515   dlopen)
12516     save_CPPFLAGS="$CPPFLAGS"
12517     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12518
12519     save_LDFLAGS="$LDFLAGS"
12520     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12521
12522     save_LIBS="$LIBS"
12523     LIBS="$lt_cv_dlopen_libs $LIBS"
12524
12525     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12526 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12527 if test "${lt_cv_dlopen_self+set}" = set; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530           if test "$cross_compiling" = yes; then :
12531   lt_cv_dlopen_self=cross
12532 else
12533   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12534   lt_status=$lt_dlunknown
12535   cat > conftest.$ac_ext <<EOF
12536 #line 12536 "configure"
12537 #include "confdefs.h"
12538
12539 #if HAVE_DLFCN_H
12540 #include <dlfcn.h>
12541 #endif
12542
12543 #include <stdio.h>
12544
12545 #ifdef RTLD_GLOBAL
12546 #  define LT_DLGLOBAL           RTLD_GLOBAL
12547 #else
12548 #  ifdef DL_GLOBAL
12549 #    define LT_DLGLOBAL         DL_GLOBAL
12550 #  else
12551 #    define LT_DLGLOBAL         0
12552 #  endif
12553 #endif
12554
12555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12556    find out it does not work in some platform. */
12557 #ifndef LT_DLLAZY_OR_NOW
12558 #  ifdef RTLD_LAZY
12559 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12560 #  else
12561 #    ifdef DL_LAZY
12562 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12563 #    else
12564 #      ifdef RTLD_NOW
12565 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12566 #      else
12567 #        ifdef DL_NOW
12568 #          define LT_DLLAZY_OR_NOW      DL_NOW
12569 #        else
12570 #          define LT_DLLAZY_OR_NOW      0
12571 #        endif
12572 #      endif
12573 #    endif
12574 #  endif
12575 #endif
12576
12577 #ifdef __cplusplus
12578 extern "C" void exit (int);
12579 #endif
12580
12581 void fnord() { int i=42;}
12582 int main ()
12583 {
12584   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585   int status = $lt_dlunknown;
12586
12587   if (self)
12588     {
12589       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12590       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12591       /* dlclose (self); */
12592     }
12593
12594     exit (status);
12595 }
12596 EOF
12597   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12598   (eval $ac_link) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12602     (./conftest; exit; ) 2>/dev/null
12603     lt_status=$?
12604     case x$lt_status in
12605       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12606       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12607       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12608     esac
12609   else :
12610     # compilation failed
12611     lt_cv_dlopen_self=no
12612   fi
12613 fi
12614 rm -fr conftest*
12615
12616
12617 fi
12618 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12619 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12620
12621     if test "x$lt_cv_dlopen_self" = xyes; then
12622       LDFLAGS="$LDFLAGS $link_static_flag"
12623       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12624 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12625 if test "${lt_cv_dlopen_self_static+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628           if test "$cross_compiling" = yes; then :
12629   lt_cv_dlopen_self_static=cross
12630 else
12631   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12632   lt_status=$lt_dlunknown
12633   cat > conftest.$ac_ext <<EOF
12634 #line 12634 "configure"
12635 #include "confdefs.h"
12636
12637 #if HAVE_DLFCN_H
12638 #include <dlfcn.h>
12639 #endif
12640
12641 #include <stdio.h>
12642
12643 #ifdef RTLD_GLOBAL
12644 #  define LT_DLGLOBAL           RTLD_GLOBAL
12645 #else
12646 #  ifdef DL_GLOBAL
12647 #    define LT_DLGLOBAL         DL_GLOBAL
12648 #  else
12649 #    define LT_DLGLOBAL         0
12650 #  endif
12651 #endif
12652
12653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12654    find out it does not work in some platform. */
12655 #ifndef LT_DLLAZY_OR_NOW
12656 #  ifdef RTLD_LAZY
12657 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12658 #  else
12659 #    ifdef DL_LAZY
12660 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12661 #    else
12662 #      ifdef RTLD_NOW
12663 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12664 #      else
12665 #        ifdef DL_NOW
12666 #          define LT_DLLAZY_OR_NOW      DL_NOW
12667 #        else
12668 #          define LT_DLLAZY_OR_NOW      0
12669 #        endif
12670 #      endif
12671 #    endif
12672 #  endif
12673 #endif
12674
12675 #ifdef __cplusplus
12676 extern "C" void exit (int);
12677 #endif
12678
12679 void fnord() { int i=42;}
12680 int main ()
12681 {
12682   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12683   int status = $lt_dlunknown;
12684
12685   if (self)
12686     {
12687       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12688       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12689       /* dlclose (self); */
12690     }
12691
12692     exit (status);
12693 }
12694 EOF
12695   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696   (eval $ac_link) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12700     (./conftest; exit; ) 2>/dev/null
12701     lt_status=$?
12702     case x$lt_status in
12703       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12704       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12705       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12706     esac
12707   else :
12708     # compilation failed
12709     lt_cv_dlopen_self_static=no
12710   fi
12711 fi
12712 rm -fr conftest*
12713
12714
12715 fi
12716 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12717 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12718     fi
12719
12720     CPPFLAGS="$save_CPPFLAGS"
12721     LDFLAGS="$save_LDFLAGS"
12722     LIBS="$save_LIBS"
12723     ;;
12724   esac
12725
12726   case $lt_cv_dlopen_self in
12727   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12728   *) enable_dlopen_self=unknown ;;
12729   esac
12730
12731   case $lt_cv_dlopen_self_static in
12732   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12733   *) enable_dlopen_self_static=unknown ;;
12734   esac
12735 fi
12736
12737
12738 # The else clause should only fire when bootstrapping the
12739 # libtool distribution, otherwise you forgot to ship ltmain.sh
12740 # with your package, and you will get complaints that there are
12741 # no rules to generate ltmain.sh.
12742 if test -f "$ltmain"; then
12743   # See if we are running on zsh, and set the options which allow our commands through
12744   # without removal of \ escapes.
12745   if test -n "${ZSH_VERSION+set}" ; then
12746     setopt NO_GLOB_SUBST
12747   fi
12748   # Now quote all the things that may contain metacharacters while being
12749   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12750   # variables and quote the copies for generation of the libtool script.
12751   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12752     SED SHELL STRIP \
12753     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12754     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12755     deplibs_check_method reload_flag reload_cmds need_locks \
12756     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12757     lt_cv_sys_global_symbol_to_c_name_address \
12758     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12759     old_postinstall_cmds old_postuninstall_cmds \
12760     compiler_CXX \
12761     CC_CXX \
12762     LD_CXX \
12763     lt_prog_compiler_wl_CXX \
12764     lt_prog_compiler_pic_CXX \
12765     lt_prog_compiler_static_CXX \
12766     lt_prog_compiler_no_builtin_flag_CXX \
12767     export_dynamic_flag_spec_CXX \
12768     thread_safe_flag_spec_CXX \
12769     whole_archive_flag_spec_CXX \
12770     enable_shared_with_static_runtimes_CXX \
12771     old_archive_cmds_CXX \
12772     old_archive_from_new_cmds_CXX \
12773     predep_objects_CXX \
12774     postdep_objects_CXX \
12775     predeps_CXX \
12776     postdeps_CXX \
12777     compiler_lib_search_path_CXX \
12778     archive_cmds_CXX \
12779     archive_expsym_cmds_CXX \
12780     postinstall_cmds_CXX \
12781     postuninstall_cmds_CXX \
12782     old_archive_from_expsyms_cmds_CXX \
12783     allow_undefined_flag_CXX \
12784     no_undefined_flag_CXX \
12785     export_symbols_cmds_CXX \
12786     hardcode_libdir_flag_spec_CXX \
12787     hardcode_libdir_flag_spec_ld_CXX \
12788     hardcode_libdir_separator_CXX \
12789     hardcode_automatic_CXX \
12790     module_cmds_CXX \
12791     module_expsym_cmds_CXX \
12792     lt_cv_prog_compiler_c_o_CXX \
12793     exclude_expsyms_CXX \
12794     include_expsyms_CXX; do
12795
12796     case $var in
12797     old_archive_cmds_CXX | \
12798     old_archive_from_new_cmds_CXX | \
12799     archive_cmds_CXX | \
12800     archive_expsym_cmds_CXX | \
12801     module_cmds_CXX | \
12802     module_expsym_cmds_CXX | \
12803     old_archive_from_expsyms_cmds_CXX | \
12804     export_symbols_cmds_CXX | \
12805     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12806     postinstall_cmds | postuninstall_cmds | \
12807     old_postinstall_cmds | old_postuninstall_cmds | \
12808     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12809       # Double-quote double-evaled strings.
12810       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12811       ;;
12812     *)
12813       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12814       ;;
12815     esac
12816   done
12817
12818   case $lt_echo in
12819   *'\$0 --fallback-echo"')
12820     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12821     ;;
12822   esac
12823
12824 cfgfile="$ofile"
12825
12826   cat <<__EOF__ >> "$cfgfile"
12827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12828
12829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12830
12831 # Shell to use when invoking shell scripts.
12832 SHELL=$lt_SHELL
12833
12834 # Whether or not to build shared libraries.
12835 build_libtool_libs=$enable_shared
12836
12837 # Whether or not to build static libraries.
12838 build_old_libs=$enable_static
12839
12840 # Whether or not to add -lc for building shared libraries.
12841 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12842
12843 # Whether or not to disallow shared libs when runtime libs are static
12844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12845
12846 # Whether or not to optimize for fast installation.
12847 fast_install=$enable_fast_install
12848
12849 # The host system.
12850 host_alias=$host_alias
12851 host=$host
12852
12853 # An echo program that does not interpret backslashes.
12854 echo=$lt_echo
12855
12856 # The archiver.
12857 AR=$lt_AR
12858 AR_FLAGS=$lt_AR_FLAGS
12859
12860 # A C compiler.
12861 LTCC=$lt_LTCC
12862
12863 # A language-specific compiler.
12864 CC=$lt_compiler_CXX
12865
12866 # Is the compiler the GNU C compiler?
12867 with_gcc=$GCC_CXX
12868
12869 # An ERE matcher.
12870 EGREP=$lt_EGREP
12871
12872 # The linker used to build libraries.
12873 LD=$lt_LD_CXX
12874
12875 # Whether we need hard or soft links.
12876 LN_S=$lt_LN_S
12877
12878 # A BSD-compatible nm program.
12879 NM=$lt_NM
12880
12881 # A symbol stripping program
12882 STRIP=$lt_STRIP
12883
12884 # Used to examine libraries when file_magic_cmd begins "file"
12885 MAGIC_CMD=$MAGIC_CMD
12886
12887 # Used on cygwin: DLL creation program.
12888 DLLTOOL="$DLLTOOL"
12889
12890 # Used on cygwin: object dumper.
12891 OBJDUMP="$OBJDUMP"
12892
12893 # Used on cygwin: assembler.
12894 AS="$AS"
12895
12896 # The name of the directory that contains temporary libtool files.
12897 objdir=$objdir
12898
12899 # How to create reloadable object files.
12900 reload_flag=$lt_reload_flag
12901 reload_cmds=$lt_reload_cmds
12902
12903 # How to pass a linker flag through the compiler.
12904 wl=$lt_lt_prog_compiler_wl_CXX
12905
12906 # Object file suffix (normally "o").
12907 objext="$ac_objext"
12908
12909 # Old archive suffix (normally "a").
12910 libext="$libext"
12911
12912 # Shared library suffix (normally ".so").
12913 shrext_cmds='$shrext_cmds'
12914
12915 # Executable file suffix (normally "").
12916 exeext="$exeext"
12917
12918 # Additional compiler flags for building library objects.
12919 pic_flag=$lt_lt_prog_compiler_pic_CXX
12920 pic_mode=$pic_mode
12921
12922 # What is the maximum length of a command?
12923 max_cmd_len=$lt_cv_sys_max_cmd_len
12924
12925 # Does compiler simultaneously support -c and -o options?
12926 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12927
12928 # Must we lock files when doing compilation ?
12929 need_locks=$lt_need_locks
12930
12931 # Do we need the lib prefix for modules?
12932 need_lib_prefix=$need_lib_prefix
12933
12934 # Do we need a version for libraries?
12935 need_version=$need_version
12936
12937 # Whether dlopen is supported.
12938 dlopen_support=$enable_dlopen
12939
12940 # Whether dlopen of programs is supported.
12941 dlopen_self=$enable_dlopen_self
12942
12943 # Whether dlopen of statically linked programs is supported.
12944 dlopen_self_static=$enable_dlopen_self_static
12945
12946 # Compiler flag to prevent dynamic linking.
12947 link_static_flag=$lt_lt_prog_compiler_static_CXX
12948
12949 # Compiler flag to turn off builtin functions.
12950 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12951
12952 # Compiler flag to allow reflexive dlopens.
12953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12954
12955 # Compiler flag to generate shared objects directly from archives.
12956 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12957
12958 # Compiler flag to generate thread-safe objects.
12959 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12960
12961 # Library versioning type.
12962 version_type=$version_type
12963
12964 # Format of library name prefix.
12965 libname_spec=$lt_libname_spec
12966
12967 # List of archive names.  First name is the real one, the rest are links.
12968 # The last name is the one that the linker finds with -lNAME.
12969 library_names_spec=$lt_library_names_spec
12970
12971 # The coded name of the library, if different from the real name.
12972 soname_spec=$lt_soname_spec
12973
12974 # Commands used to build and install an old-style archive.
12975 RANLIB=$lt_RANLIB
12976 old_archive_cmds=$lt_old_archive_cmds_CXX
12977 old_postinstall_cmds=$lt_old_postinstall_cmds
12978 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12979
12980 # Create an old-style archive from a shared archive.
12981 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12982
12983 # Create a temporary old-style archive to link instead of a shared archive.
12984 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12985
12986 # Commands used to build and install a shared archive.
12987 archive_cmds=$lt_archive_cmds_CXX
12988 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12989 postinstall_cmds=$lt_postinstall_cmds
12990 postuninstall_cmds=$lt_postuninstall_cmds
12991
12992 # Commands used to build a loadable module (assumed same as above if empty)
12993 module_cmds=$lt_module_cmds_CXX
12994 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12995
12996 # Commands to strip libraries.
12997 old_striplib=$lt_old_striplib
12998 striplib=$lt_striplib
12999
13000 # Dependencies to place before the objects being linked to create a
13001 # shared library.
13002 predep_objects=$lt_predep_objects_CXX
13003
13004 # Dependencies to place after the objects being linked to create a
13005 # shared library.
13006 postdep_objects=$lt_postdep_objects_CXX
13007
13008 # Dependencies to place before the objects being linked to create a
13009 # shared library.
13010 predeps=$lt_predeps_CXX
13011
13012 # Dependencies to place after the objects being linked to create a
13013 # shared library.
13014 postdeps=$lt_postdeps_CXX
13015
13016 # The library search path used internally by the compiler when linking
13017 # a shared library.
13018 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13019
13020 # Method to check whether dependent libraries are shared objects.
13021 deplibs_check_method=$lt_deplibs_check_method
13022
13023 # Command to use when deplibs_check_method == file_magic.
13024 file_magic_cmd=$lt_file_magic_cmd
13025
13026 # Flag that allows shared libraries with undefined symbols to be built.
13027 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13028
13029 # Flag that forces no undefined symbols.
13030 no_undefined_flag=$lt_no_undefined_flag_CXX
13031
13032 # Commands used to finish a libtool library installation in a directory.
13033 finish_cmds=$lt_finish_cmds
13034
13035 # Same as above, but a single script fragment to be evaled but not shown.
13036 finish_eval=$lt_finish_eval
13037
13038 # Take the output of nm and produce a listing of raw symbols and C names.
13039 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13040
13041 # Transform the output of nm in a proper C declaration
13042 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13043
13044 # Transform the output of nm in a C name address pair
13045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13046
13047 # This is the shared library runtime path variable.
13048 runpath_var=$runpath_var
13049
13050 # This is the shared library path variable.
13051 shlibpath_var=$shlibpath_var
13052
13053 # Is shlibpath searched before the hard-coded library search path?
13054 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13055
13056 # How to hardcode a shared library path into an executable.
13057 hardcode_action=$hardcode_action_CXX
13058
13059 # Whether we should hardcode library paths into libraries.
13060 hardcode_into_libs=$hardcode_into_libs
13061
13062 # Flag to hardcode \$libdir into a binary during linking.
13063 # This must work even if \$libdir does not exist.
13064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13065
13066 # If ld is used when linking, flag to hardcode \$libdir into
13067 # a binary during linking. This must work even if \$libdir does
13068 # not exist.
13069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13070
13071 # Whether we need a single -rpath flag with a separated argument.
13072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13073
13074 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13075 # resulting binary.
13076 hardcode_direct=$hardcode_direct_CXX
13077
13078 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13079 # resulting binary.
13080 hardcode_minus_L=$hardcode_minus_L_CXX
13081
13082 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13083 # the resulting binary.
13084 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13085
13086 # Set to yes if building a shared library automatically hardcodes DIR into the library
13087 # and all subsequent libraries and executables linked against it.
13088 hardcode_automatic=$hardcode_automatic_CXX
13089
13090 # Variables whose values should be saved in libtool wrapper scripts and
13091 # restored at relink time.
13092 variables_saved_for_relink="$variables_saved_for_relink"
13093
13094 # Whether libtool must link a program against all its dependency libraries.
13095 link_all_deplibs=$link_all_deplibs_CXX
13096
13097 # Compile-time system search path for libraries
13098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13099
13100 # Run-time system search path for libraries
13101 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13102
13103 # Fix the shell variable \$srcfile for the compiler.
13104 fix_srcfile_path="$fix_srcfile_path_CXX"
13105
13106 # Set to yes if exported symbols are required.
13107 always_export_symbols=$always_export_symbols_CXX
13108
13109 # The commands to list exported symbols.
13110 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13111
13112 # The commands to extract the exported symbol list from a shared archive.
13113 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13114
13115 # Symbols that should not be listed in the preloaded symbols.
13116 exclude_expsyms=$lt_exclude_expsyms_CXX
13117
13118 # Symbols that must always be exported.
13119 include_expsyms=$lt_include_expsyms_CXX
13120
13121 # ### END LIBTOOL TAG CONFIG: $tagname
13122
13123 __EOF__
13124
13125
13126 else
13127   # If there is no Makefile yet, we rely on a make rule to execute
13128   # `config.status --recheck' to rerun these tests and create the
13129   # libtool script then.
13130   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13131   if test -f "$ltmain_in"; then
13132     test -f Makefile && make "$ltmain"
13133   fi
13134 fi
13135
13136
13137 ac_ext=c
13138 ac_cpp='$CPP $CPPFLAGS'
13139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13142
13143 CC=$lt_save_CC
13144 LDCXX=$LD
13145 LD=$lt_save_LD
13146 GCC=$lt_save_GCC
13147 with_gnu_ldcxx=$with_gnu_ld
13148 with_gnu_ld=$lt_save_with_gnu_ld
13149 lt_cv_path_LDCXX=$lt_cv_path_LD
13150 lt_cv_path_LD=$lt_save_path_LD
13151 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13152 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13153
13154         else
13155           tagname=""
13156         fi
13157         ;;
13158
13159       F77)
13160         if test -n "$F77" && test "X$F77" != "Xno"; then
13161
13162 ac_ext=f
13163 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13164 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13166
13167
13168 archive_cmds_need_lc_F77=no
13169 allow_undefined_flag_F77=
13170 always_export_symbols_F77=no
13171 archive_expsym_cmds_F77=
13172 export_dynamic_flag_spec_F77=
13173 hardcode_direct_F77=no
13174 hardcode_libdir_flag_spec_F77=
13175 hardcode_libdir_flag_spec_ld_F77=
13176 hardcode_libdir_separator_F77=
13177 hardcode_minus_L_F77=no
13178 hardcode_automatic_F77=no
13179 module_cmds_F77=
13180 module_expsym_cmds_F77=
13181 link_all_deplibs_F77=unknown
13182 old_archive_cmds_F77=$old_archive_cmds
13183 no_undefined_flag_F77=
13184 whole_archive_flag_spec_F77=
13185 enable_shared_with_static_runtimes_F77=no
13186
13187 # Source file extension for f77 test sources.
13188 ac_ext=f
13189
13190 # Object file extension for compiled f77 test sources.
13191 objext=o
13192 objext_F77=$objext
13193
13194 # Code to be used in simple compile tests
13195 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13196
13197 # Code to be used in simple link tests
13198 lt_simple_link_test_code="      program t\n      end\n"
13199
13200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13201
13202 # If no C compiler was specified, use CC.
13203 LTCC=${LTCC-"$CC"}
13204
13205 # Allow CC to be a program name with arguments.
13206 compiler=$CC
13207
13208
13209 # Allow CC to be a program name with arguments.
13210 lt_save_CC="$CC"
13211 CC=${F77-"f77"}
13212 compiler=$CC
13213 compiler_F77=$CC
13214 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13215
13216 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13217 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13218 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13219 echo "${ECHO_T}$can_build_shared" >&6
13220
13221 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13222 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13223 test "$can_build_shared" = "no" && enable_shared=no
13224
13225 # On AIX, shared libraries and static libraries use the same namespace, and
13226 # are all built from PIC.
13227 case "$host_os" in
13228 aix3*)
13229   test "$enable_shared" = yes && enable_static=no
13230   if test -n "$RANLIB"; then
13231     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13232     postinstall_cmds='$RANLIB $lib'
13233   fi
13234   ;;
13235 aix4* | aix5*)
13236   test "$enable_shared" = yes && enable_static=no
13237   ;;
13238 esac
13239 echo "$as_me:$LINENO: result: $enable_shared" >&5
13240 echo "${ECHO_T}$enable_shared" >&6
13241
13242 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13243 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13244 # Make sure either enable_shared or enable_static is yes.
13245 test "$enable_shared" = yes || enable_static=yes
13246 echo "$as_me:$LINENO: result: $enable_static" >&5
13247 echo "${ECHO_T}$enable_static" >&6
13248
13249 test "$ld_shlibs_F77" = no && can_build_shared=no
13250
13251 GCC_F77="$G77"
13252 LD_F77="$LD"
13253
13254 lt_prog_compiler_wl_F77=
13255 lt_prog_compiler_pic_F77=
13256 lt_prog_compiler_static_F77=
13257
13258 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13260
13261   if test "$GCC" = yes; then
13262     lt_prog_compiler_wl_F77='-Wl,'
13263     lt_prog_compiler_static_F77='-static'
13264
13265     case $host_os in
13266       aix*)
13267       # All AIX code is PIC.
13268       if test "$host_cpu" = ia64; then
13269         # AIX 5 now supports IA64 processor
13270         lt_prog_compiler_static_F77='-Bstatic'
13271       fi
13272       ;;
13273
13274     amigaos*)
13275       # FIXME: we need at least 68020 code to build shared libraries, but
13276       # adding the `-m68020' flag to GCC prevents building anything better,
13277       # like `-m68040'.
13278       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13279       ;;
13280
13281     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13282       # PIC is the default for these OSes.
13283       ;;
13284
13285     mingw* | pw32* | os2*)
13286       # This hack is so that the source file can tell whether it is being
13287       # built for inclusion in a dll (and should export symbols for example).
13288       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13289       ;;
13290
13291     darwin* | rhapsody*)
13292       # PIC is the default on this platform
13293       # Common symbols not allowed in MH_DYLIB files
13294       lt_prog_compiler_pic_F77='-fno-common'
13295       ;;
13296
13297     msdosdjgpp*)
13298       # Just because we use GCC doesn't mean we suddenly get shared libraries
13299       # on systems that don't support them.
13300       lt_prog_compiler_can_build_shared_F77=no
13301       enable_shared=no
13302       ;;
13303
13304     sysv4*MP*)
13305       if test -d /usr/nec; then
13306         lt_prog_compiler_pic_F77=-Kconform_pic
13307       fi
13308       ;;
13309
13310     hpux*)
13311       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13312       # not for PA HP-UX.
13313       case "$host_cpu" in
13314       hppa*64*|ia64*)
13315         # +Z the default
13316         ;;
13317       *)
13318         lt_prog_compiler_pic_F77='-fPIC'
13319         ;;
13320       esac
13321       ;;
13322
13323     *)
13324       lt_prog_compiler_pic_F77='-fPIC'
13325       ;;
13326     esac
13327   else
13328     # PORTME Check for flag to pass linker flags through the system compiler.
13329     case $host_os in
13330     aix*)
13331       lt_prog_compiler_wl_F77='-Wl,'
13332       if test "$host_cpu" = ia64; then
13333         # AIX 5 now supports IA64 processor
13334         lt_prog_compiler_static_F77='-Bstatic'
13335       else
13336         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13337       fi
13338       ;;
13339
13340     mingw* | pw32* | os2*)
13341       # This hack is so that the source file can tell whether it is being
13342       # built for inclusion in a dll (and should export symbols for example).
13343       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13344       ;;
13345
13346     hpux9* | hpux10* | hpux11*)
13347       lt_prog_compiler_wl_F77='-Wl,'
13348       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13349       # not for PA HP-UX.
13350       case "$host_cpu" in
13351       hppa*64*|ia64*)
13352         # +Z the default
13353         ;;
13354       *)
13355         lt_prog_compiler_pic_F77='+Z'
13356         ;;
13357       esac
13358       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13359       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13360       ;;
13361
13362     irix5* | irix6* | nonstopux*)
13363       lt_prog_compiler_wl_F77='-Wl,'
13364       # PIC (with -KPIC) is the default.
13365       lt_prog_compiler_static_F77='-non_shared'
13366       ;;
13367
13368     newsos6)
13369       lt_prog_compiler_pic_F77='-KPIC'
13370       lt_prog_compiler_static_F77='-Bstatic'
13371       ;;
13372
13373     linux*)
13374       case $CC in
13375       icc* | ecc*)
13376         lt_prog_compiler_wl_F77='-Wl,'
13377         lt_prog_compiler_pic_F77='-KPIC'
13378         lt_prog_compiler_static_F77='-static'
13379         ;;
13380       ccc*)
13381         lt_prog_compiler_wl_F77='-Wl,'
13382         # All Alpha code is PIC.
13383         lt_prog_compiler_static_F77='-non_shared'
13384         ;;
13385       esac
13386       ;;
13387
13388     osf3* | osf4* | osf5*)
13389       lt_prog_compiler_wl_F77='-Wl,'
13390       # All OSF/1 code is PIC.
13391       lt_prog_compiler_static_F77='-non_shared'
13392       ;;
13393
13394     sco3.2v5*)
13395       lt_prog_compiler_pic_F77='-Kpic'
13396       lt_prog_compiler_static_F77='-dn'
13397       ;;
13398
13399     solaris*)
13400       lt_prog_compiler_wl_F77='-Wl,'
13401       lt_prog_compiler_pic_F77='-KPIC'
13402       lt_prog_compiler_static_F77='-Bstatic'
13403       ;;
13404
13405     sunos4*)
13406       lt_prog_compiler_wl_F77='-Qoption ld '
13407       lt_prog_compiler_pic_F77='-PIC'
13408       lt_prog_compiler_static_F77='-Bstatic'
13409       ;;
13410
13411     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13412       lt_prog_compiler_wl_F77='-Wl,'
13413       lt_prog_compiler_pic_F77='-KPIC'
13414       lt_prog_compiler_static_F77='-Bstatic'
13415       ;;
13416
13417     sysv4*MP*)
13418       if test -d /usr/nec ;then
13419         lt_prog_compiler_pic_F77='-Kconform_pic'
13420         lt_prog_compiler_static_F77='-Bstatic'
13421       fi
13422       ;;
13423
13424     uts4*)
13425       lt_prog_compiler_pic_F77='-pic'
13426       lt_prog_compiler_static_F77='-Bstatic'
13427       ;;
13428
13429     *)
13430       lt_prog_compiler_can_build_shared_F77=no
13431       ;;
13432     esac
13433   fi
13434
13435 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13436 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13437
13438 #
13439 # Check to make sure the PIC flag actually works.
13440 #
13441 if test -n "$lt_prog_compiler_pic_F77"; then
13442
13443 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13444 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13445 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13446   echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448   lt_prog_compiler_pic_works_F77=no
13449   ac_outfile=conftest.$ac_objext
13450    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13451    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13452    # Insert the option either (1) after the last *FLAGS variable, or
13453    # (2) before a word containing "conftest.", or (3) at the end.
13454    # Note that $ac_compile itself does not contain backslashes and begins
13455    # with a dollar sign (not a hyphen), so the echo should work correctly.
13456    # The option is referenced via a variable to avoid confusing sed.
13457    lt_compile=`echo "$ac_compile" | $SED \
13458    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13460    -e 's:$: $lt_compiler_flag:'`
13461    (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
13462    (eval "$lt_compile" 2>conftest.err)
13463    ac_status=$?
13464    cat conftest.err >&5
13465    echo "$as_me:13465: \$? = $ac_status" >&5
13466    if (exit $ac_status) && test -s "$ac_outfile"; then
13467      # The compiler can only warn and ignore the option if not recognized
13468      # So say no if there are warnings
13469      if test ! -s conftest.err; then
13470        lt_prog_compiler_pic_works_F77=yes
13471      fi
13472    fi
13473    $rm conftest*
13474
13475 fi
13476 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13477 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13478
13479 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13480     case $lt_prog_compiler_pic_F77 in
13481      "" | " "*) ;;
13482      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13483      esac
13484 else
13485     lt_prog_compiler_pic_F77=
13486      lt_prog_compiler_can_build_shared_F77=no
13487 fi
13488
13489 fi
13490 case "$host_os" in
13491   # For platforms which do not support PIC, -DPIC is meaningless:
13492   *djgpp*)
13493     lt_prog_compiler_pic_F77=
13494     ;;
13495   *)
13496     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13497     ;;
13498 esac
13499
13500 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13501 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13502 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   lt_cv_prog_compiler_c_o_F77=no
13506    $rm -r conftest 2>/dev/null
13507    mkdir conftest
13508    cd conftest
13509    mkdir out
13510    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13511
13512    lt_compiler_flag="-o out/conftest2.$ac_objext"
13513    # Insert the option either (1) after the last *FLAGS variable, or
13514    # (2) before a word containing "conftest.", or (3) at the end.
13515    # Note that $ac_compile itself does not contain backslashes and begins
13516    # with a dollar sign (not a hyphen), so the echo should work correctly.
13517    lt_compile=`echo "$ac_compile" | $SED \
13518    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13520    -e 's:$: $lt_compiler_flag:'`
13521    (eval echo "\"\$as_me:13521: $lt_compile\"" >&5)
13522    (eval "$lt_compile" 2>out/conftest.err)
13523    ac_status=$?
13524    cat out/conftest.err >&5
13525    echo "$as_me:13525: \$? = $ac_status" >&5
13526    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13527    then
13528      # The compiler can only warn and ignore the option if not recognized
13529      # So say no if there are warnings
13530      if test ! -s out/conftest.err; then
13531        lt_cv_prog_compiler_c_o_F77=yes
13532      fi
13533    fi
13534    chmod u+w .
13535    $rm conftest*
13536    # SGI C++ compiler will create directory out/ii_files/ for
13537    # template instantiation
13538    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13539    $rm out/* && rmdir out
13540    cd ..
13541    rmdir conftest
13542    $rm conftest*
13543
13544 fi
13545 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13546 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13547
13548
13549 hard_links="nottested"
13550 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13551   # do not overwrite the value of need_locks provided by the user
13552   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13553 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13554   hard_links=yes
13555   $rm conftest*
13556   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13557   touch conftest.a
13558   ln conftest.a conftest.b 2>&5 || hard_links=no
13559   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13560   echo "$as_me:$LINENO: result: $hard_links" >&5
13561 echo "${ECHO_T}$hard_links" >&6
13562   if test "$hard_links" = no; then
13563     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13564 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13565     need_locks=warn
13566   fi
13567 else
13568   need_locks=no
13569 fi
13570
13571 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13573
13574   runpath_var=
13575   allow_undefined_flag_F77=
13576   enable_shared_with_static_runtimes_F77=no
13577   archive_cmds_F77=
13578   archive_expsym_cmds_F77=
13579   old_archive_From_new_cmds_F77=
13580   old_archive_from_expsyms_cmds_F77=
13581   export_dynamic_flag_spec_F77=
13582   whole_archive_flag_spec_F77=
13583   thread_safe_flag_spec_F77=
13584   hardcode_libdir_flag_spec_F77=
13585   hardcode_libdir_flag_spec_ld_F77=
13586   hardcode_libdir_separator_F77=
13587   hardcode_direct_F77=no
13588   hardcode_minus_L_F77=no
13589   hardcode_shlibpath_var_F77=unsupported
13590   link_all_deplibs_F77=unknown
13591   hardcode_automatic_F77=no
13592   module_cmds_F77=
13593   module_expsym_cmds_F77=
13594   always_export_symbols_F77=no
13595   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13596   # include_expsyms should be a list of space-separated symbols to be *always*
13597   # included in the symbol list
13598   include_expsyms_F77=
13599   # exclude_expsyms can be an extended regexp of symbols to exclude
13600   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13601   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13602   # as well as any symbol that contains `d'.
13603   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13604   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13605   # platforms (ab)use it in PIC code, but their linkers get confused if
13606   # the symbol is explicitly referenced.  Since portable code cannot
13607   # rely on this symbol name, it's probably fine to never include it in
13608   # preloaded symbol tables.
13609   extract_expsyms_cmds=
13610
13611   case $host_os in
13612   cygwin* | mingw* | pw32*)
13613     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13614     # When not using gcc, we currently assume that we are using
13615     # Microsoft Visual C++.
13616     if test "$GCC" != yes; then
13617       with_gnu_ld=no
13618     fi
13619     ;;
13620   openbsd*)
13621     with_gnu_ld=no
13622     ;;
13623   esac
13624
13625   ld_shlibs_F77=yes
13626   if test "$with_gnu_ld" = yes; then
13627     # If archive_cmds runs LD, not CC, wlarc should be empty
13628     wlarc='${wl}'
13629
13630     # See if GNU ld supports shared libraries.
13631     case $host_os in
13632     aix3* | aix4* | aix5*)
13633       # On AIX/PPC, the GNU linker is very broken
13634       if test "$host_cpu" != ia64; then
13635         ld_shlibs_F77=no
13636         cat <<EOF 1>&2
13637
13638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13639 *** to be unable to reliably create shared libraries on AIX.
13640 *** Therefore, libtool is disabling shared libraries support.  If you
13641 *** really care for shared libraries, you may want to modify your PATH
13642 *** so that a non-GNU linker is found, and then restart.
13643
13644 EOF
13645       fi
13646       ;;
13647
13648     amigaos*)
13649       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)'
13650       hardcode_libdir_flag_spec_F77='-L$libdir'
13651       hardcode_minus_L_F77=yes
13652
13653       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13654       # that the semantics of dynamic libraries on AmigaOS, at least up
13655       # to version 4, is to share data among multiple programs linked
13656       # with the same dynamic library.  Since this doesn't match the
13657       # behavior of shared libraries on other platforms, we can't use
13658       # them.
13659       ld_shlibs_F77=no
13660       ;;
13661
13662     beos*)
13663       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13664         allow_undefined_flag_F77=unsupported
13665         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13666         # support --undefined.  This deserves some investigation.  FIXME
13667         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668       else
13669         ld_shlibs_F77=no
13670       fi
13671       ;;
13672
13673     cygwin* | mingw* | pw32*)
13674       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13675       # as there is no search path for DLLs.
13676       hardcode_libdir_flag_spec_F77='-L$libdir'
13677       allow_undefined_flag_F77=unsupported
13678       always_export_symbols_F77=no
13679       enable_shared_with_static_runtimes_F77=yes
13680       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13681
13682       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13683         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13684         # If the export-symbols file already is a .def file (1st line
13685         # is EXPORTS), use it as is; otherwise, prepend...
13686         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13687           cp $export_symbols $output_objdir/$soname.def;
13688         else
13689           echo EXPORTS > $output_objdir/$soname.def;
13690           cat $export_symbols >> $output_objdir/$soname.def;
13691         fi~
13692         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13693       else
13694         ld_shlibs=no
13695       fi
13696       ;;
13697
13698     netbsd*)
13699       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13700         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13701         wlarc=
13702       else
13703         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13704         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13705       fi
13706       ;;
13707
13708     solaris* | sysv5*)
13709       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13710         ld_shlibs_F77=no
13711         cat <<EOF 1>&2
13712
13713 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13714 *** create shared libraries on Solaris systems.  Therefore, libtool
13715 *** is disabling shared libraries support.  We urge you to upgrade GNU
13716 *** binutils to release 2.9.1 or newer.  Another option is to modify
13717 *** your PATH or compiler configuration so that the native linker is
13718 *** used, and then restart.
13719
13720 EOF
13721       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13722         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13724       else
13725         ld_shlibs_F77=no
13726       fi
13727       ;;
13728
13729     sunos4*)
13730       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13731       wlarc=
13732       hardcode_direct_F77=yes
13733       hardcode_shlibpath_var_F77=no
13734       ;;
13735
13736   linux*)
13737     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13738         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739         archive_cmds_F77="$tmp_archive_cmds"
13740       supports_anon_versioning=no
13741       case `$LD -v 2>/dev/null` in
13742         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13743         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13744         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13745         *\ 2.11.*) ;; # other 2.11 versions
13746         *) supports_anon_versioning=yes ;;
13747       esac
13748       if test $supports_anon_versioning = yes; then
13749         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13751 $echo "local: *; };" >> $output_objdir/$libname.ver~
13752         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13753       else
13754         archive_expsym_cmds_F77="$tmp_archive_cmds"
13755       fi
13756     else
13757       ld_shlibs_F77=no
13758     fi
13759     ;;
13760
13761     *)
13762       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13763         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13765       else
13766         ld_shlibs_F77=no
13767       fi
13768       ;;
13769     esac
13770
13771     if test "$ld_shlibs_F77" = yes; then
13772       runpath_var=LD_RUN_PATH
13773       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13774       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13775       # ancient GNU ld didn't support --whole-archive et. al.
13776       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13777         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13778       else
13779         whole_archive_flag_spec_F77=
13780       fi
13781     fi
13782   else
13783     # PORTME fill in a description of your system's linker (not GNU ld)
13784     case $host_os in
13785     aix3*)
13786       allow_undefined_flag_F77=unsupported
13787       always_export_symbols_F77=yes
13788       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'
13789       # Note: this linker hardcodes the directories in LIBPATH if there
13790       # are no directories specified by -L.
13791       hardcode_minus_L_F77=yes
13792       if test "$GCC" = yes && test -z "$link_static_flag"; then
13793         # Neither direct hardcoding nor static linking is supported with a
13794         # broken collect2.
13795         hardcode_direct_F77=unsupported
13796       fi
13797       ;;
13798
13799     aix4* | aix5*)
13800       if test "$host_cpu" = ia64; then
13801         # On IA64, the linker does run time linking by default, so we don't
13802         # have to do anything special.
13803         aix_use_runtimelinking=no
13804         exp_sym_flag='-Bexport'
13805         no_entry_flag=""
13806       else
13807         # If we're using GNU nm, then we don't want the "-C" option.
13808         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13809         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13810           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'
13811         else
13812           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'
13813         fi
13814         aix_use_runtimelinking=no
13815
13816         # Test if we are trying to use run time linking or normal
13817         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13818         # need to do runtime linking.
13819         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13820           for ld_flag in $LDFLAGS; do
13821           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13822             aix_use_runtimelinking=yes
13823             break
13824           fi
13825           done
13826         esac
13827
13828         exp_sym_flag='-bexport'
13829         no_entry_flag='-bnoentry'
13830       fi
13831
13832       # When large executables or shared objects are built, AIX ld can
13833       # have problems creating the table of contents.  If linking a library
13834       # or program results in "error TOC overflow" add -mminimal-toc to
13835       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13836       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13837
13838       archive_cmds_F77=''
13839       hardcode_direct_F77=yes
13840       hardcode_libdir_separator_F77=':'
13841       link_all_deplibs_F77=yes
13842
13843       if test "$GCC" = yes; then
13844         case $host_os in aix4.012|aix4.012.*)
13845         # We only want to do this on AIX 4.2 and lower, the check
13846         # below for broken collect2 doesn't work under 4.3+
13847           collect2name=`${CC} -print-prog-name=collect2`
13848           if test -f "$collect2name" && \
13849            strings "$collect2name" | grep resolve_lib_name >/dev/null
13850           then
13851           # We have reworked collect2
13852           hardcode_direct_F77=yes
13853           else
13854           # We have old collect2
13855           hardcode_direct_F77=unsupported
13856           # It fails to find uninstalled libraries when the uninstalled
13857           # path is not listed in the libpath.  Setting hardcode_minus_L
13858           # to unsupported forces relinking
13859           hardcode_minus_L_F77=yes
13860           hardcode_libdir_flag_spec_F77='-L$libdir'
13861           hardcode_libdir_separator_F77=
13862           fi
13863         esac
13864         shared_flag='-shared'
13865       else
13866         # not using gcc
13867         if test "$host_cpu" = ia64; then
13868         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13869         # chokes on -Wl,-G. The following line is correct:
13870           shared_flag='-G'
13871         else
13872         if test "$aix_use_runtimelinking" = yes; then
13873             shared_flag='${wl}-G'
13874           else
13875             shared_flag='${wl}-bM:SRE'
13876         fi
13877         fi
13878       fi
13879
13880       # It seems that -bexpall does not export symbols beginning with
13881       # underscore (_), so it is better to generate a list of symbols to export.
13882       always_export_symbols_F77=yes
13883       if test "$aix_use_runtimelinking" = yes; then
13884         # Warning - without using the other runtime loading flags (-brtl),
13885         # -berok will link without error, but may produce a broken library.
13886         allow_undefined_flag_F77='-berok'
13887        # Determine the default libpath from the value encoded in an empty executable.
13888        cat >conftest.$ac_ext <<_ACEOF
13889       program main
13890
13891       end
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895   (eval $ac_link) 2>conftest.er1
13896   ac_status=$?
13897   grep -v '^ *+' conftest.er1 >conftest.err
13898   rm -f conftest.er1
13899   cat conftest.err >&5
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } &&
13902          { ac_try='test -z "$ac_f77_werror_flag"
13903                          || test ! -s conftest.err'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; } &&
13909          { ac_try='test -s conftest$ac_exeext'
13910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911   (eval $ac_try) 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); }; }; then
13915
13916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13917 }'`
13918 # Check for a 64-bit object if we didn't find anything.
13919 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; }
13920 }'`; fi
13921 else
13922   echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13924
13925 fi
13926 rm -f conftest.err conftest.$ac_objext \
13927       conftest$ac_exeext conftest.$ac_ext
13928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13929
13930        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13931         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"
13932        else
13933         if test "$host_cpu" = ia64; then
13934           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13935           allow_undefined_flag_F77="-z nodefs"
13936           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"
13937         else
13938          # Determine the default libpath from the value encoded in an empty executable.
13939          cat >conftest.$ac_ext <<_ACEOF
13940       program main
13941
13942       end
13943 _ACEOF
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946   (eval $ac_link) 2>conftest.er1
13947   ac_status=$?
13948   grep -v '^ *+' conftest.er1 >conftest.err
13949   rm -f conftest.er1
13950   cat conftest.err >&5
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); } &&
13953          { ac_try='test -z "$ac_f77_werror_flag"
13954                          || test ! -s conftest.err'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; } &&
13960          { ac_try='test -s conftest$ac_exeext'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }; then
13966
13967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13968 }'`
13969 # Check for a 64-bit object if we didn't find anything.
13970 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; }
13971 }'`; fi
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 fi
13977 rm -f conftest.err conftest.$ac_objext \
13978       conftest$ac_exeext conftest.$ac_ext
13979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13980
13981          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13982           # Warning - without using the other run time loading flags,
13983           # -berok will link without error, but may produce a broken library.
13984           no_undefined_flag_F77=' ${wl}-bernotok'
13985           allow_undefined_flag_F77=' ${wl}-berok'
13986           # -bexpall does not export symbols beginning with underscore (_)
13987           always_export_symbols_F77=yes
13988           # Exported symbols can be pulled into shared objects from archives
13989           whole_archive_flag_spec_F77=' '
13990           archive_cmds_need_lc_F77=yes
13991           # This is similar to how AIX traditionally builds it's shared libraries.
13992           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'
13993         fi
13994       fi
13995       ;;
13996
13997     amigaos*)
13998       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)'
13999       hardcode_libdir_flag_spec_F77='-L$libdir'
14000       hardcode_minus_L_F77=yes
14001       # see comment about different semantics on the GNU ld section
14002       ld_shlibs_F77=no
14003       ;;
14004
14005     bsdi4*)
14006       export_dynamic_flag_spec_F77=-rdynamic
14007       ;;
14008
14009     cygwin* | mingw* | pw32*)
14010       # When not using gcc, we currently assume that we are using
14011       # Microsoft Visual C++.
14012       # hardcode_libdir_flag_spec is actually meaningless, as there is
14013       # no search path for DLLs.
14014       hardcode_libdir_flag_spec_F77=' '
14015       allow_undefined_flag_F77=unsupported
14016       # Tell ltmain to make .lib files, not .a files.
14017       libext=lib
14018       # Tell ltmain to make .dll files, not .so files.
14019       shrext_cmds=".dll"
14020       # FIXME: Setting linknames here is a bad hack.
14021       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14022       # The linker will automatically build a .lib file if we build a DLL.
14023       old_archive_From_new_cmds_F77='true'
14024       # FIXME: Should let the user specify the lib program.
14025       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14026       fix_srcfile_path='`cygpath -w "$srcfile"`'
14027       enable_shared_with_static_runtimes_F77=yes
14028       ;;
14029
14030     darwin* | rhapsody*)
14031     if test "$GXX" = yes ; then
14032       archive_cmds_need_lc_F77=no
14033       case "$host_os" in
14034       rhapsody* | darwin1.[012])
14035         allow_undefined_flag_F77='-undefined suppress'
14036         ;;
14037       *) # Darwin 1.3 on
14038       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14039         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14040       else
14041         case ${MACOSX_DEPLOYMENT_TARGET} in
14042           10.[012])
14043             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14044             ;;
14045           10.*)
14046             allow_undefined_flag_F77='-undefined dynamic_lookup'
14047             ;;
14048         esac
14049       fi
14050         ;;
14051       esac
14052         lt_int_apple_cc_single_mod=no
14053         output_verbose_link_cmd='echo'
14054         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14055           lt_int_apple_cc_single_mod=yes
14056         fi
14057         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14058           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14059         else
14060         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14061       fi
14062       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14063       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14064         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14065           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14066         else
14067           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14068         fi
14069           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}'
14070       hardcode_direct_F77=no
14071       hardcode_automatic_F77=yes
14072       hardcode_shlibpath_var_F77=unsupported
14073       whole_archive_flag_spec_F77='-all_load $convenience'
14074       link_all_deplibs_F77=yes
14075     else
14076       ld_shlibs_F77=no
14077     fi
14078       ;;
14079
14080     dgux*)
14081       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14082       hardcode_libdir_flag_spec_F77='-L$libdir'
14083       hardcode_shlibpath_var_F77=no
14084       ;;
14085
14086     freebsd1*)
14087       ld_shlibs_F77=no
14088       ;;
14089
14090     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14091     # support.  Future versions do this automatically, but an explicit c++rt0.o
14092     # does not break anything, and helps significantly (at the cost of a little
14093     # extra space).
14094     freebsd2.2*)
14095       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14096       hardcode_libdir_flag_spec_F77='-R$libdir'
14097       hardcode_direct_F77=yes
14098       hardcode_shlibpath_var_F77=no
14099       ;;
14100
14101     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14102     freebsd2*)
14103       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14104       hardcode_direct_F77=yes
14105       hardcode_minus_L_F77=yes
14106       hardcode_shlibpath_var_F77=no
14107       ;;
14108
14109     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14110     freebsd* | kfreebsd*-gnu)
14111       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14112       hardcode_libdir_flag_spec_F77='-R$libdir'
14113       hardcode_direct_F77=yes
14114       hardcode_shlibpath_var_F77=no
14115       ;;
14116
14117     hpux9*)
14118       if test "$GCC" = yes; then
14119         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'
14120       else
14121         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'
14122       fi
14123       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14124       hardcode_libdir_separator_F77=:
14125       hardcode_direct_F77=yes
14126
14127       # hardcode_minus_L: Not really in the search PATH,
14128       # but as the default location of the library.
14129       hardcode_minus_L_F77=yes
14130       export_dynamic_flag_spec_F77='${wl}-E'
14131       ;;
14132
14133     hpux10* | hpux11*)
14134       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14135         case "$host_cpu" in
14136         hppa*64*|ia64*)
14137           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14138           ;;
14139         *)
14140           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14141           ;;
14142         esac
14143       else
14144         case "$host_cpu" in
14145         hppa*64*|ia64*)
14146           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14147           ;;
14148         *)
14149           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14150           ;;
14151         esac
14152       fi
14153       if test "$with_gnu_ld" = no; then
14154         case "$host_cpu" in
14155         hppa*64*)
14156           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14157           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14158           hardcode_libdir_separator_F77=:
14159           hardcode_direct_F77=no
14160           hardcode_shlibpath_var_F77=no
14161           ;;
14162         ia64*)
14163           hardcode_libdir_flag_spec_F77='-L$libdir'
14164           hardcode_direct_F77=no
14165           hardcode_shlibpath_var_F77=no
14166
14167           # hardcode_minus_L: Not really in the search PATH,
14168           # but as the default location of the library.
14169           hardcode_minus_L_F77=yes
14170           ;;
14171         *)
14172           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14173           hardcode_libdir_separator_F77=:
14174           hardcode_direct_F77=yes
14175           export_dynamic_flag_spec_F77='${wl}-E'
14176
14177           # hardcode_minus_L: Not really in the search PATH,
14178           # but as the default location of the library.
14179           hardcode_minus_L_F77=yes
14180           ;;
14181         esac
14182       fi
14183       ;;
14184
14185     irix5* | irix6* | nonstopux*)
14186       if test "$GCC" = yes; then
14187         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'
14188       else
14189         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'
14190         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14191       fi
14192       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14193       hardcode_libdir_separator_F77=:
14194       link_all_deplibs_F77=yes
14195       ;;
14196
14197     netbsd*)
14198       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14199         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14200       else
14201         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14202       fi
14203       hardcode_libdir_flag_spec_F77='-R$libdir'
14204       hardcode_direct_F77=yes
14205       hardcode_shlibpath_var_F77=no
14206       ;;
14207
14208     newsos6)
14209       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14210       hardcode_direct_F77=yes
14211       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14212       hardcode_libdir_separator_F77=:
14213       hardcode_shlibpath_var_F77=no
14214       ;;
14215
14216     openbsd*)
14217       hardcode_direct_F77=yes
14218       hardcode_shlibpath_var_F77=no
14219       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14220         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14221         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14222         export_dynamic_flag_spec_F77='${wl}-E'
14223       else
14224        case $host_os in
14225          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14226            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14227            hardcode_libdir_flag_spec_F77='-R$libdir'
14228            ;;
14229          *)
14230            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14231            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14232            ;;
14233        esac
14234       fi
14235       ;;
14236
14237     os2*)
14238       hardcode_libdir_flag_spec_F77='-L$libdir'
14239       hardcode_minus_L_F77=yes
14240       allow_undefined_flag_F77=unsupported
14241       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'
14242       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14243       ;;
14244
14245     osf3*)
14246       if test "$GCC" = yes; then
14247         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14248         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'
14249       else
14250         allow_undefined_flag_F77=' -expect_unresolved \*'
14251         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'
14252       fi
14253       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14254       hardcode_libdir_separator_F77=:
14255       ;;
14256
14257     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14258       if test "$GCC" = yes; then
14259         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14260         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'
14261         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14262       else
14263         allow_undefined_flag_F77=' -expect_unresolved \*'
14264         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'
14265         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~
14266         $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'
14267
14268         # Both c and cxx compiler support -rpath directly
14269         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14270       fi
14271       hardcode_libdir_separator_F77=:
14272       ;;
14273
14274     sco3.2v5*)
14275       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276       hardcode_shlibpath_var_F77=no
14277       export_dynamic_flag_spec_F77='${wl}-Bexport'
14278       runpath_var=LD_RUN_PATH
14279       hardcode_runpath_var=yes
14280       ;;
14281
14282     solaris*)
14283       no_undefined_flag_F77=' -z text'
14284       if test "$GCC" = yes; then
14285         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14286         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14287           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14288       else
14289         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14291         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14292       fi
14293       hardcode_libdir_flag_spec_F77='-R$libdir'
14294       hardcode_shlibpath_var_F77=no
14295       case $host_os in
14296       solaris2.[0-5] | solaris2.[0-5].*) ;;
14297       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14298         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14299       esac
14300       link_all_deplibs_F77=yes
14301       ;;
14302
14303     sunos4*)
14304       if test "x$host_vendor" = xsequent; then
14305         # Use $CC to link under sequent, because it throws in some extra .o
14306         # files that make .init and .fini sections work.
14307         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14308       else
14309         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14310       fi
14311       hardcode_libdir_flag_spec_F77='-L$libdir'
14312       hardcode_direct_F77=yes
14313       hardcode_minus_L_F77=yes
14314       hardcode_shlibpath_var_F77=no
14315       ;;
14316
14317     sysv4)
14318       case $host_vendor in
14319         sni)
14320           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14321           hardcode_direct_F77=yes # is this really true???
14322         ;;
14323         siemens)
14324           ## LD is ld it makes a PLAMLIB
14325           ## CC just makes a GrossModule.
14326           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14327           reload_cmds_F77='$CC -r -o $output$reload_objs'
14328           hardcode_direct_F77=no
14329         ;;
14330         motorola)
14331           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14332           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14333         ;;
14334       esac
14335       runpath_var='LD_RUN_PATH'
14336       hardcode_shlibpath_var_F77=no
14337       ;;
14338
14339     sysv4.3*)
14340       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14341       hardcode_shlibpath_var_F77=no
14342       export_dynamic_flag_spec_F77='-Bexport'
14343       ;;
14344
14345     sysv4*MP*)
14346       if test -d /usr/nec; then
14347         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348         hardcode_shlibpath_var_F77=no
14349         runpath_var=LD_RUN_PATH
14350         hardcode_runpath_var=yes
14351         ld_shlibs_F77=yes
14352       fi
14353       ;;
14354
14355     sysv4.2uw2*)
14356       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14357       hardcode_direct_F77=yes
14358       hardcode_minus_L_F77=no
14359       hardcode_shlibpath_var_F77=no
14360       hardcode_runpath_var=yes
14361       runpath_var=LD_RUN_PATH
14362       ;;
14363
14364    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14365       no_undefined_flag_F77='${wl}-z ${wl}text'
14366       if test "$GCC" = yes; then
14367         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14368       else
14369         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14370       fi
14371       runpath_var='LD_RUN_PATH'
14372       hardcode_shlibpath_var_F77=no
14373       ;;
14374
14375     sysv5*)
14376       no_undefined_flag_F77=' -z text'
14377       # $CC -shared without GNU ld will not create a library from C++
14378       # object files and a static libstdc++, better avoid it by now
14379       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14380       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14381                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14382       hardcode_libdir_flag_spec_F77=
14383       hardcode_shlibpath_var_F77=no
14384       runpath_var='LD_RUN_PATH'
14385       ;;
14386
14387     uts4*)
14388       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389       hardcode_libdir_flag_spec_F77='-L$libdir'
14390       hardcode_shlibpath_var_F77=no
14391       ;;
14392
14393     *)
14394       ld_shlibs_F77=no
14395       ;;
14396     esac
14397   fi
14398
14399 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14400 echo "${ECHO_T}$ld_shlibs_F77" >&6
14401 test "$ld_shlibs_F77" = no && can_build_shared=no
14402
14403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14404 if test "$GCC" = yes; then
14405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14406 fi
14407
14408 #
14409 # Do we need to explicitly link libc?
14410 #
14411 case "x$archive_cmds_need_lc_F77" in
14412 x|xyes)
14413   # Assume -lc should be added
14414   archive_cmds_need_lc_F77=yes
14415
14416   if test "$enable_shared" = yes && test "$GCC" = yes; then
14417     case $archive_cmds_F77 in
14418     *'~'*)
14419       # FIXME: we may have to deal with multi-command sequences.
14420       ;;
14421     '$CC '*)
14422       # Test whether the compiler implicitly links with -lc since on some
14423       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14424       # to ld, don't add -lc before -lgcc.
14425       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14426 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14427       $rm conftest*
14428       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14429
14430       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431   (eval $ac_compile) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } 2>conftest.err; then
14435         soname=conftest
14436         lib=conftest
14437         libobjs=conftest.$ac_objext
14438         deplibs=
14439         wl=$lt_prog_compiler_wl_F77
14440         compiler_flags=-v
14441         linker_flags=-v
14442         verstring=
14443         output_objdir=.
14444         libname=conftest
14445         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14446         allow_undefined_flag_F77=
14447         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14448   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }
14452         then
14453           archive_cmds_need_lc_F77=no
14454         else
14455           archive_cmds_need_lc_F77=yes
14456         fi
14457         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14458       else
14459         cat conftest.err 1>&5
14460       fi
14461       $rm conftest*
14462       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14463 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14464       ;;
14465     esac
14466   fi
14467   ;;
14468 esac
14469
14470 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14472 library_names_spec=
14473 libname_spec='lib$name'
14474 soname_spec=
14475 shrext_cmds=".so"
14476 postinstall_cmds=
14477 postuninstall_cmds=
14478 finish_cmds=
14479 finish_eval=
14480 shlibpath_var=
14481 shlibpath_overrides_runpath=unknown
14482 version_type=none
14483 dynamic_linker="$host_os ld.so"
14484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14485 if test "$GCC" = yes; then
14486   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14487   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14488     # if the path contains ";" then we assume it to be the separator
14489     # otherwise default to the standard path separator (i.e. ":") - it is
14490     # assumed that no part of a normal pathname contains ";" but that should
14491     # okay in the real world where ";" in dirpaths is itself problematic.
14492     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14493   else
14494     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14495   fi
14496 else
14497   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14498 fi
14499 need_lib_prefix=unknown
14500 hardcode_into_libs=no
14501
14502 # when you set need_version to no, make sure it does not cause -set_version
14503 # flags to be left without arguments
14504 need_version=unknown
14505
14506 case $host_os in
14507 aix3*)
14508   version_type=linux
14509   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14510   shlibpath_var=LIBPATH
14511
14512   # AIX 3 has no versioning support, so we append a major version to the name.
14513   soname_spec='${libname}${release}${shared_ext}$major'
14514   ;;
14515
14516 aix4* | aix5*)
14517   version_type=linux
14518   need_lib_prefix=no
14519   need_version=no
14520   hardcode_into_libs=yes
14521   if test "$host_cpu" = ia64; then
14522     # AIX 5 supports IA64
14523     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14524     shlibpath_var=LD_LIBRARY_PATH
14525   else
14526     # With GCC up to 2.95.x, collect2 would create an import file
14527     # for dependence libraries.  The import file would start with
14528     # the line `#! .'.  This would cause the generated library to
14529     # depend on `.', always an invalid library.  This was fixed in
14530     # development snapshots of GCC prior to 3.0.
14531     case $host_os in
14532       aix4 | aix4.[01] | aix4.[01].*)
14533       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14534            echo ' yes '
14535            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14536         :
14537       else
14538         can_build_shared=no
14539       fi
14540       ;;
14541     esac
14542     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14543     # soname into executable. Probably we can add versioning support to
14544     # collect2, so additional links can be useful in future.
14545     if test "$aix_use_runtimelinking" = yes; then
14546       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14547       # instead of lib<name>.a to let people know that these are not
14548       # typical AIX shared libraries.
14549       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550     else
14551       # We preserve .a as extension for shared libraries through AIX4.2
14552       # and later when we are not doing run time linking.
14553       library_names_spec='${libname}${release}.a $libname.a'
14554       soname_spec='${libname}${release}${shared_ext}$major'
14555     fi
14556     shlibpath_var=LIBPATH
14557   fi
14558   ;;
14559
14560 amigaos*)
14561   library_names_spec='$libname.ixlibrary $libname.a'
14562   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14563   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'
14564   ;;
14565
14566 beos*)
14567   library_names_spec='${libname}${shared_ext}'
14568   dynamic_linker="$host_os ld.so"
14569   shlibpath_var=LIBRARY_PATH
14570   ;;
14571
14572 bsdi4*)
14573   version_type=linux
14574   need_version=no
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576   soname_spec='${libname}${release}${shared_ext}$major'
14577   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14580   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14581   # the default ld.so.conf also contains /usr/contrib/lib and
14582   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14583   # libtool to hard-code these into programs
14584   ;;
14585
14586 cygwin* | mingw* | pw32*)
14587   version_type=windows
14588   shrext_cmds=".dll"
14589   need_version=no
14590   need_lib_prefix=no
14591
14592   case $GCC,$host_os in
14593   yes,cygwin* | yes,mingw* | yes,pw32*)
14594     library_names_spec='$libname.dll.a'
14595     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14596     postinstall_cmds='base_file=`basename \${file}`~
14597       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14598       dldir=$destdir/`dirname \$dlpath`~
14599       test -d \$dldir || mkdir -p \$dldir~
14600       $install_prog $dir/$dlname \$dldir/$dlname'
14601     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14602       dlpath=$dir/\$dldll~
14603        $rm \$dlpath'
14604     shlibpath_overrides_runpath=yes
14605
14606     case $host_os in
14607     cygwin*)
14608       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14609       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14610       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14611       ;;
14612     mingw*)
14613       # MinGW DLLs use traditional 'lib' prefix
14614       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14615       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14616       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14617         # It is most probably a Windows format PATH printed by
14618         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14619         # path with ; separators, and with drive letters. We can handle the
14620         # drive letters (cygwin fileutils understands them), so leave them,
14621         # especially as we might pass files found there to a mingw objdump,
14622         # which wouldn't understand a cygwinified path. Ahh.
14623         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14624       else
14625         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14626       fi
14627       ;;
14628     pw32*)
14629       # pw32 DLLs use 'pw' prefix rather than 'lib'
14630       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14631       ;;
14632     esac
14633     ;;
14634
14635   *)
14636     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14637     ;;
14638   esac
14639   dynamic_linker='Win32 ld.exe'
14640   # FIXME: first we should search . and the directory the executable is in
14641   shlibpath_var=PATH
14642   ;;
14643
14644 darwin* | rhapsody*)
14645   dynamic_linker="$host_os dyld"
14646   version_type=darwin
14647   need_lib_prefix=no
14648   need_version=no
14649   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14650   soname_spec='${libname}${release}${major}$shared_ext'
14651   shlibpath_overrides_runpath=yes
14652   shlibpath_var=DYLD_LIBRARY_PATH
14653   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14654   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14655   if test "$GCC" = yes; then
14656     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"`
14657   else
14658     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14659   fi
14660   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14661   ;;
14662
14663 dgux*)
14664   version_type=linux
14665   need_lib_prefix=no
14666   need_version=no
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14668   soname_spec='${libname}${release}${shared_ext}$major'
14669   shlibpath_var=LD_LIBRARY_PATH
14670   ;;
14671
14672 freebsd1*)
14673   dynamic_linker=no
14674   ;;
14675
14676 kfreebsd*-gnu)
14677   version_type=linux
14678   need_lib_prefix=no
14679   need_version=no
14680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14681   soname_spec='${libname}${release}${shared_ext}$major'
14682   shlibpath_var=LD_LIBRARY_PATH
14683   shlibpath_overrides_runpath=no
14684   hardcode_into_libs=yes
14685   dynamic_linker='GNU ld.so'
14686   ;;
14687
14688 freebsd*)
14689   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14690   version_type=freebsd-$objformat
14691   case $version_type in
14692     freebsd-elf*)
14693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14694       need_version=no
14695       need_lib_prefix=no
14696       ;;
14697     freebsd-*)
14698       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14699       need_version=yes
14700       ;;
14701   esac
14702   shlibpath_var=LD_LIBRARY_PATH
14703   case $host_os in
14704   freebsd2*)
14705     shlibpath_overrides_runpath=yes
14706     ;;
14707   freebsd3.01* | freebsdelf3.01*)
14708     shlibpath_overrides_runpath=yes
14709     hardcode_into_libs=yes
14710     ;;
14711   *) # from 3.2 on
14712     shlibpath_overrides_runpath=no
14713     hardcode_into_libs=yes
14714     ;;
14715   esac
14716   ;;
14717
14718 gnu*)
14719   version_type=linux
14720   need_lib_prefix=no
14721   need_version=no
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14723   soname_spec='${libname}${release}${shared_ext}$major'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   hardcode_into_libs=yes
14726   ;;
14727
14728 hpux9* | hpux10* | hpux11*)
14729   # Give a soname corresponding to the major version so that dld.sl refuses to
14730   # link against other versions.
14731   version_type=sunos
14732   need_lib_prefix=no
14733   need_version=no
14734   case "$host_cpu" in
14735   ia64*)
14736     shrext_cmds='.so'
14737     hardcode_into_libs=yes
14738     dynamic_linker="$host_os dld.so"
14739     shlibpath_var=LD_LIBRARY_PATH
14740     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742     soname_spec='${libname}${release}${shared_ext}$major'
14743     if test "X$HPUX_IA64_MODE" = X32; then
14744       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14745     else
14746       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14747     fi
14748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14749     ;;
14750    hppa*64*)
14751      shrext_cmds='.sl'
14752      hardcode_into_libs=yes
14753      dynamic_linker="$host_os dld.sl"
14754      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14755      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757      soname_spec='${libname}${release}${shared_ext}$major'
14758      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14759      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14760      ;;
14761    *)
14762     shrext_cmds='.sl'
14763     dynamic_linker="$host_os dld.sl"
14764     shlibpath_var=SHLIB_PATH
14765     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767     soname_spec='${libname}${release}${shared_ext}$major'
14768     ;;
14769   esac
14770   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14771   postinstall_cmds='chmod 555 $lib'
14772   ;;
14773
14774 irix5* | irix6* | nonstopux*)
14775   case $host_os in
14776     nonstopux*) version_type=nonstopux ;;
14777     *)
14778         if test "$lt_cv_prog_gnu_ld" = yes; then
14779                 version_type=linux
14780         else
14781                 version_type=irix
14782         fi ;;
14783   esac
14784   need_lib_prefix=no
14785   need_version=no
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14788   case $host_os in
14789   irix5* | nonstopux*)
14790     libsuff= shlibsuff=
14791     ;;
14792   *)
14793     case $LD in # libtool.m4 will add one of these switches to LD
14794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14795       libsuff= shlibsuff= libmagic=32-bit;;
14796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14797       libsuff=32 shlibsuff=N32 libmagic=N32;;
14798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14800     *) libsuff= shlibsuff= libmagic=never-match;;
14801     esac
14802     ;;
14803   esac
14804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14805   shlibpath_overrides_runpath=no
14806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14808   hardcode_into_libs=yes
14809   ;;
14810
14811 # No shared lib support for Linux oldld, aout, or coff.
14812 linux*oldld* | linux*aout* | linux*coff*)
14813   dynamic_linker=no
14814   ;;
14815
14816 # This must be Linux ELF.
14817 linux*)
14818   version_type=linux
14819   need_lib_prefix=no
14820   need_version=no
14821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822   soname_spec='${libname}${release}${shared_ext}$major'
14823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14824   shlibpath_var=LD_LIBRARY_PATH
14825   shlibpath_overrides_runpath=no
14826   # This implies no fast_install, which is unacceptable.
14827   # Some rework will be needed to allow for fast_install
14828   # before this can be enabled.
14829   hardcode_into_libs=yes
14830
14831   # find out which ABI we are using
14832   libsuff=
14833   case "$host_cpu" in
14834   x86_64*|s390x*|powerpc64*)
14835     echo '#line 14835 "configure"' > conftest.$ac_ext
14836     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837   (eval $ac_compile) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; then
14841       case `/usr/bin/file conftest.$ac_objext` in
14842       *64-bit*)
14843         libsuff=64
14844         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14845         ;;
14846       esac
14847     fi
14848     rm -rf conftest*
14849     ;;
14850   esac
14851
14852   # Append ld.so.conf contents to the search path
14853   if test -f /etc/ld.so.conf; then
14854     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14855     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14856   fi
14857
14858   # We used to test for /lib/ld.so.1 and disable shared libraries on
14859   # powerpc, because MkLinux only supported shared libraries with the
14860   # GNU dynamic linker.  Since this was broken with cross compilers,
14861   # most powerpc-linux boxes support dynamic linking these days and
14862   # people can always --disable-shared, the test was removed, and we
14863   # assume the GNU/Linux dynamic linker is in use.
14864   dynamic_linker='GNU/Linux ld.so'
14865   ;;
14866
14867 knetbsd*-gnu)
14868   version_type=linux
14869   need_lib_prefix=no
14870   need_version=no
14871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14872   soname_spec='${libname}${release}${shared_ext}$major'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   shlibpath_overrides_runpath=no
14875   hardcode_into_libs=yes
14876   dynamic_linker='GNU ld.so'
14877   ;;
14878
14879 netbsd*)
14880   version_type=sunos
14881   need_lib_prefix=no
14882   need_version=no
14883   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14885     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14886     dynamic_linker='NetBSD (a.out) ld.so'
14887   else
14888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14889     soname_spec='${libname}${release}${shared_ext}$major'
14890     dynamic_linker='NetBSD ld.elf_so'
14891   fi
14892   shlibpath_var=LD_LIBRARY_PATH
14893   shlibpath_overrides_runpath=yes
14894   hardcode_into_libs=yes
14895   ;;
14896
14897 newsos6)
14898   version_type=linux
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   shlibpath_overrides_runpath=yes
14902   ;;
14903
14904 nto-qnx*)
14905   version_type=linux
14906   need_lib_prefix=no
14907   need_version=no
14908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909   soname_spec='${libname}${release}${shared_ext}$major'
14910   shlibpath_var=LD_LIBRARY_PATH
14911   shlibpath_overrides_runpath=yes
14912   ;;
14913
14914 openbsd*)
14915   version_type=sunos
14916   need_lib_prefix=no
14917   need_version=yes
14918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14920   shlibpath_var=LD_LIBRARY_PATH
14921   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14922     case $host_os in
14923       openbsd2.[89] | openbsd2.[89].*)
14924         shlibpath_overrides_runpath=no
14925         ;;
14926       *)
14927         shlibpath_overrides_runpath=yes
14928         ;;
14929       esac
14930   else
14931     shlibpath_overrides_runpath=yes
14932   fi
14933   ;;
14934
14935 os2*)
14936   libname_spec='$name'
14937   shrext_cmds=".dll"
14938   need_lib_prefix=no
14939   library_names_spec='$libname${shared_ext} $libname.a'
14940   dynamic_linker='OS/2 ld.exe'
14941   shlibpath_var=LIBPATH
14942   ;;
14943
14944 osf3* | osf4* | osf5*)
14945   version_type=osf
14946   need_lib_prefix=no
14947   need_version=no
14948   soname_spec='${libname}${release}${shared_ext}$major'
14949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14953   ;;
14954
14955 sco3.2v5*)
14956   version_type=osf
14957   soname_spec='${libname}${release}${shared_ext}$major'
14958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959   shlibpath_var=LD_LIBRARY_PATH
14960   ;;
14961
14962 solaris*)
14963   version_type=linux
14964   need_lib_prefix=no
14965   need_version=no
14966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967   soname_spec='${libname}${release}${shared_ext}$major'
14968   shlibpath_var=LD_LIBRARY_PATH
14969   shlibpath_overrides_runpath=yes
14970   hardcode_into_libs=yes
14971   # ldd complains unless libraries are executable
14972   postinstall_cmds='chmod +x $lib'
14973   ;;
14974
14975 sunos4*)
14976   version_type=sunos
14977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14979   shlibpath_var=LD_LIBRARY_PATH
14980   shlibpath_overrides_runpath=yes
14981   if test "$with_gnu_ld" = yes; then
14982     need_lib_prefix=no
14983   fi
14984   need_version=yes
14985   ;;
14986
14987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14988   version_type=linux
14989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990   soname_spec='${libname}${release}${shared_ext}$major'
14991   shlibpath_var=LD_LIBRARY_PATH
14992   case $host_vendor in
14993     sni)
14994       shlibpath_overrides_runpath=no
14995       need_lib_prefix=no
14996       export_dynamic_flag_spec='${wl}-Blargedynsym'
14997       runpath_var=LD_RUN_PATH
14998       ;;
14999     siemens)
15000       need_lib_prefix=no
15001       ;;
15002     motorola)
15003       need_lib_prefix=no
15004       need_version=no
15005       shlibpath_overrides_runpath=no
15006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15007       ;;
15008   esac
15009   ;;
15010
15011 sysv4*MP*)
15012   if test -d /usr/nec ;then
15013     version_type=linux
15014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15015     soname_spec='$libname${shared_ext}.$major'
15016     shlibpath_var=LD_LIBRARY_PATH
15017   fi
15018   ;;
15019
15020 uts4*)
15021   version_type=linux
15022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023   soname_spec='${libname}${release}${shared_ext}$major'
15024   shlibpath_var=LD_LIBRARY_PATH
15025   ;;
15026
15027 *)
15028   dynamic_linker=no
15029   ;;
15030 esac
15031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15032 echo "${ECHO_T}$dynamic_linker" >&6
15033 test "$dynamic_linker" = no && can_build_shared=no
15034
15035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15037 hardcode_action_F77=
15038 if test -n "$hardcode_libdir_flag_spec_F77" || \
15039    test -n "$runpath_var F77" || \
15040    test "X$hardcode_automatic_F77"="Xyes" ; then
15041
15042   # We can hardcode non-existant directories.
15043   if test "$hardcode_direct_F77" != no &&
15044      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15045      # have to relink, otherwise we might link with an installed library
15046      # when we should be linking with a yet-to-be-installed one
15047      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15048      test "$hardcode_minus_L_F77" != no; then
15049     # Linking always hardcodes the temporary library directory.
15050     hardcode_action_F77=relink
15051   else
15052     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15053     hardcode_action_F77=immediate
15054   fi
15055 else
15056   # We cannot hardcode anything, or else we can only hardcode existing
15057   # directories.
15058   hardcode_action_F77=unsupported
15059 fi
15060 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15061 echo "${ECHO_T}$hardcode_action_F77" >&6
15062
15063 if test "$hardcode_action_F77" = relink; then
15064   # Fast installation is not supported
15065   enable_fast_install=no
15066 elif test "$shlibpath_overrides_runpath" = yes ||
15067      test "$enable_shared" = no; then
15068   # Fast installation is not necessary
15069   enable_fast_install=needless
15070 fi
15071
15072 striplib=
15073 old_striplib=
15074 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15075 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15076 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15077   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15078   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15079   echo "$as_me:$LINENO: result: yes" >&5
15080 echo "${ECHO_T}yes" >&6
15081 else
15082 # FIXME - insert some real tests, host_os isn't really good enough
15083   case $host_os in
15084    darwin*)
15085        if test -n "$STRIP" ; then
15086          striplib="$STRIP -x"
15087          echo "$as_me:$LINENO: result: yes" >&5
15088 echo "${ECHO_T}yes" >&6
15089        else
15090   echo "$as_me:$LINENO: result: no" >&5
15091 echo "${ECHO_T}no" >&6
15092 fi
15093        ;;
15094    *)
15095   echo "$as_me:$LINENO: result: no" >&5
15096 echo "${ECHO_T}no" >&6
15097     ;;
15098   esac
15099 fi
15100
15101
15102
15103 # The else clause should only fire when bootstrapping the
15104 # libtool distribution, otherwise you forgot to ship ltmain.sh
15105 # with your package, and you will get complaints that there are
15106 # no rules to generate ltmain.sh.
15107 if test -f "$ltmain"; then
15108   # See if we are running on zsh, and set the options which allow our commands through
15109   # without removal of \ escapes.
15110   if test -n "${ZSH_VERSION+set}" ; then
15111     setopt NO_GLOB_SUBST
15112   fi
15113   # Now quote all the things that may contain metacharacters while being
15114   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15115   # variables and quote the copies for generation of the libtool script.
15116   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15117     SED SHELL STRIP \
15118     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15119     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15120     deplibs_check_method reload_flag reload_cmds need_locks \
15121     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15122     lt_cv_sys_global_symbol_to_c_name_address \
15123     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15124     old_postinstall_cmds old_postuninstall_cmds \
15125     compiler_F77 \
15126     CC_F77 \
15127     LD_F77 \
15128     lt_prog_compiler_wl_F77 \
15129     lt_prog_compiler_pic_F77 \
15130     lt_prog_compiler_static_F77 \
15131     lt_prog_compiler_no_builtin_flag_F77 \
15132     export_dynamic_flag_spec_F77 \
15133     thread_safe_flag_spec_F77 \
15134     whole_archive_flag_spec_F77 \
15135     enable_shared_with_static_runtimes_F77 \
15136     old_archive_cmds_F77 \
15137     old_archive_from_new_cmds_F77 \
15138     predep_objects_F77 \
15139     postdep_objects_F77 \
15140     predeps_F77 \
15141     postdeps_F77 \
15142     compiler_lib_search_path_F77 \
15143     archive_cmds_F77 \
15144     archive_expsym_cmds_F77 \
15145     postinstall_cmds_F77 \
15146     postuninstall_cmds_F77 \
15147     old_archive_from_expsyms_cmds_F77 \
15148     allow_undefined_flag_F77 \
15149     no_undefined_flag_F77 \
15150     export_symbols_cmds_F77 \
15151     hardcode_libdir_flag_spec_F77 \
15152     hardcode_libdir_flag_spec_ld_F77 \
15153     hardcode_libdir_separator_F77 \
15154     hardcode_automatic_F77 \
15155     module_cmds_F77 \
15156     module_expsym_cmds_F77 \
15157     lt_cv_prog_compiler_c_o_F77 \
15158     exclude_expsyms_F77 \
15159     include_expsyms_F77; do
15160
15161     case $var in
15162     old_archive_cmds_F77 | \
15163     old_archive_from_new_cmds_F77 | \
15164     archive_cmds_F77 | \
15165     archive_expsym_cmds_F77 | \
15166     module_cmds_F77 | \
15167     module_expsym_cmds_F77 | \
15168     old_archive_from_expsyms_cmds_F77 | \
15169     export_symbols_cmds_F77 | \
15170     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15171     postinstall_cmds | postuninstall_cmds | \
15172     old_postinstall_cmds | old_postuninstall_cmds | \
15173     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15174       # Double-quote double-evaled strings.
15175       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15176       ;;
15177     *)
15178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15179       ;;
15180     esac
15181   done
15182
15183   case $lt_echo in
15184   *'\$0 --fallback-echo"')
15185     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15186     ;;
15187   esac
15188
15189 cfgfile="$ofile"
15190
15191   cat <<__EOF__ >> "$cfgfile"
15192 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15193
15194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15195
15196 # Shell to use when invoking shell scripts.
15197 SHELL=$lt_SHELL
15198
15199 # Whether or not to build shared libraries.
15200 build_libtool_libs=$enable_shared
15201
15202 # Whether or not to build static libraries.
15203 build_old_libs=$enable_static
15204
15205 # Whether or not to add -lc for building shared libraries.
15206 build_libtool_need_lc=$archive_cmds_need_lc_F77
15207
15208 # Whether or not to disallow shared libs when runtime libs are static
15209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15210
15211 # Whether or not to optimize for fast installation.
15212 fast_install=$enable_fast_install
15213
15214 # The host system.
15215 host_alias=$host_alias
15216 host=$host
15217
15218 # An echo program that does not interpret backslashes.
15219 echo=$lt_echo
15220
15221 # The archiver.
15222 AR=$lt_AR
15223 AR_FLAGS=$lt_AR_FLAGS
15224
15225 # A C compiler.
15226 LTCC=$lt_LTCC
15227
15228 # A language-specific compiler.
15229 CC=$lt_compiler_F77
15230
15231 # Is the compiler the GNU C compiler?
15232 with_gcc=$GCC_F77
15233
15234 # An ERE matcher.
15235 EGREP=$lt_EGREP
15236
15237 # The linker used to build libraries.
15238 LD=$lt_LD_F77
15239
15240 # Whether we need hard or soft links.
15241 LN_S=$lt_LN_S
15242
15243 # A BSD-compatible nm program.
15244 NM=$lt_NM
15245
15246 # A symbol stripping program
15247 STRIP=$lt_STRIP
15248
15249 # Used to examine libraries when file_magic_cmd begins "file"
15250 MAGIC_CMD=$MAGIC_CMD
15251
15252 # Used on cygwin: DLL creation program.
15253 DLLTOOL="$DLLTOOL"
15254
15255 # Used on cygwin: object dumper.
15256 OBJDUMP="$OBJDUMP"
15257
15258 # Used on cygwin: assembler.
15259 AS="$AS"
15260
15261 # The name of the directory that contains temporary libtool files.
15262 objdir=$objdir
15263
15264 # How to create reloadable object files.
15265 reload_flag=$lt_reload_flag
15266 reload_cmds=$lt_reload_cmds
15267
15268 # How to pass a linker flag through the compiler.
15269 wl=$lt_lt_prog_compiler_wl_F77
15270
15271 # Object file suffix (normally "o").
15272 objext="$ac_objext"
15273
15274 # Old archive suffix (normally "a").
15275 libext="$libext"
15276
15277 # Shared library suffix (normally ".so").
15278 shrext_cmds='$shrext_cmds'
15279
15280 # Executable file suffix (normally "").
15281 exeext="$exeext"
15282
15283 # Additional compiler flags for building library objects.
15284 pic_flag=$lt_lt_prog_compiler_pic_F77
15285 pic_mode=$pic_mode
15286
15287 # What is the maximum length of a command?
15288 max_cmd_len=$lt_cv_sys_max_cmd_len
15289
15290 # Does compiler simultaneously support -c and -o options?
15291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15292
15293 # Must we lock files when doing compilation ?
15294 need_locks=$lt_need_locks
15295
15296 # Do we need the lib prefix for modules?
15297 need_lib_prefix=$need_lib_prefix
15298
15299 # Do we need a version for libraries?
15300 need_version=$need_version
15301
15302 # Whether dlopen is supported.
15303 dlopen_support=$enable_dlopen
15304
15305 # Whether dlopen of programs is supported.
15306 dlopen_self=$enable_dlopen_self
15307
15308 # Whether dlopen of statically linked programs is supported.
15309 dlopen_self_static=$enable_dlopen_self_static
15310
15311 # Compiler flag to prevent dynamic linking.
15312 link_static_flag=$lt_lt_prog_compiler_static_F77
15313
15314 # Compiler flag to turn off builtin functions.
15315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15316
15317 # Compiler flag to allow reflexive dlopens.
15318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15319
15320 # Compiler flag to generate shared objects directly from archives.
15321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15322
15323 # Compiler flag to generate thread-safe objects.
15324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15325
15326 # Library versioning type.
15327 version_type=$version_type
15328
15329 # Format of library name prefix.
15330 libname_spec=$lt_libname_spec
15331
15332 # List of archive names.  First name is the real one, the rest are links.
15333 # The last name is the one that the linker finds with -lNAME.
15334 library_names_spec=$lt_library_names_spec
15335
15336 # The coded name of the library, if different from the real name.
15337 soname_spec=$lt_soname_spec
15338
15339 # Commands used to build and install an old-style archive.
15340 RANLIB=$lt_RANLIB
15341 old_archive_cmds=$lt_old_archive_cmds_F77
15342 old_postinstall_cmds=$lt_old_postinstall_cmds
15343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15344
15345 # Create an old-style archive from a shared archive.
15346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15347
15348 # Create a temporary old-style archive to link instead of a shared archive.
15349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15350
15351 # Commands used to build and install a shared archive.
15352 archive_cmds=$lt_archive_cmds_F77
15353 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15354 postinstall_cmds=$lt_postinstall_cmds
15355 postuninstall_cmds=$lt_postuninstall_cmds
15356
15357 # Commands used to build a loadable module (assumed same as above if empty)
15358 module_cmds=$lt_module_cmds_F77
15359 module_expsym_cmds=$lt_module_expsym_cmds_F77
15360
15361 # Commands to strip libraries.
15362 old_striplib=$lt_old_striplib
15363 striplib=$lt_striplib
15364
15365 # Dependencies to place before the objects being linked to create a
15366 # shared library.
15367 predep_objects=$lt_predep_objects_F77
15368
15369 # Dependencies to place after the objects being linked to create a
15370 # shared library.
15371 postdep_objects=$lt_postdep_objects_F77
15372
15373 # Dependencies to place before the objects being linked to create a
15374 # shared library.
15375 predeps=$lt_predeps_F77
15376
15377 # Dependencies to place after the objects being linked to create a
15378 # shared library.
15379 postdeps=$lt_postdeps_F77
15380
15381 # The library search path used internally by the compiler when linking
15382 # a shared library.
15383 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15384
15385 # Method to check whether dependent libraries are shared objects.
15386 deplibs_check_method=$lt_deplibs_check_method
15387
15388 # Command to use when deplibs_check_method == file_magic.
15389 file_magic_cmd=$lt_file_magic_cmd
15390
15391 # Flag that allows shared libraries with undefined symbols to be built.
15392 allow_undefined_flag=$lt_allow_undefined_flag_F77
15393
15394 # Flag that forces no undefined symbols.
15395 no_undefined_flag=$lt_no_undefined_flag_F77
15396
15397 # Commands used to finish a libtool library installation in a directory.
15398 finish_cmds=$lt_finish_cmds
15399
15400 # Same as above, but a single script fragment to be evaled but not shown.
15401 finish_eval=$lt_finish_eval
15402
15403 # Take the output of nm and produce a listing of raw symbols and C names.
15404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15405
15406 # Transform the output of nm in a proper C declaration
15407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15408
15409 # Transform the output of nm in a C name address pair
15410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15411
15412 # This is the shared library runtime path variable.
15413 runpath_var=$runpath_var
15414
15415 # This is the shared library path variable.
15416 shlibpath_var=$shlibpath_var
15417
15418 # Is shlibpath searched before the hard-coded library search path?
15419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15420
15421 # How to hardcode a shared library path into an executable.
15422 hardcode_action=$hardcode_action_F77
15423
15424 # Whether we should hardcode library paths into libraries.
15425 hardcode_into_libs=$hardcode_into_libs
15426
15427 # Flag to hardcode \$libdir into a binary during linking.
15428 # This must work even if \$libdir does not exist.
15429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15430
15431 # If ld is used when linking, flag to hardcode \$libdir into
15432 # a binary during linking. This must work even if \$libdir does
15433 # not exist.
15434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15435
15436 # Whether we need a single -rpath flag with a separated argument.
15437 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15438
15439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15440 # resulting binary.
15441 hardcode_direct=$hardcode_direct_F77
15442
15443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15444 # resulting binary.
15445 hardcode_minus_L=$hardcode_minus_L_F77
15446
15447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15448 # the resulting binary.
15449 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15450
15451 # Set to yes if building a shared library automatically hardcodes DIR into the library
15452 # and all subsequent libraries and executables linked against it.
15453 hardcode_automatic=$hardcode_automatic_F77
15454
15455 # Variables whose values should be saved in libtool wrapper scripts and
15456 # restored at relink time.
15457 variables_saved_for_relink="$variables_saved_for_relink"
15458
15459 # Whether libtool must link a program against all its dependency libraries.
15460 link_all_deplibs=$link_all_deplibs_F77
15461
15462 # Compile-time system search path for libraries
15463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15464
15465 # Run-time system search path for libraries
15466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15467
15468 # Fix the shell variable \$srcfile for the compiler.
15469 fix_srcfile_path="$fix_srcfile_path_F77"
15470
15471 # Set to yes if exported symbols are required.
15472 always_export_symbols=$always_export_symbols_F77
15473
15474 # The commands to list exported symbols.
15475 export_symbols_cmds=$lt_export_symbols_cmds_F77
15476
15477 # The commands to extract the exported symbol list from a shared archive.
15478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15479
15480 # Symbols that should not be listed in the preloaded symbols.
15481 exclude_expsyms=$lt_exclude_expsyms_F77
15482
15483 # Symbols that must always be exported.
15484 include_expsyms=$lt_include_expsyms_F77
15485
15486 # ### END LIBTOOL TAG CONFIG: $tagname
15487
15488 __EOF__
15489
15490
15491 else
15492   # If there is no Makefile yet, we rely on a make rule to execute
15493   # `config.status --recheck' to rerun these tests and create the
15494   # libtool script then.
15495   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15496   if test -f "$ltmain_in"; then
15497     test -f Makefile && make "$ltmain"
15498   fi
15499 fi
15500
15501
15502 ac_ext=c
15503 ac_cpp='$CPP $CPPFLAGS'
15504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15507
15508 CC="$lt_save_CC"
15509
15510         else
15511           tagname=""
15512         fi
15513         ;;
15514
15515       GCJ)
15516         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15517
15518
15519
15520 # Source file extension for Java test sources.
15521 ac_ext=java
15522
15523 # Object file extension for compiled Java test sources.
15524 objext=o
15525 objext_GCJ=$objext
15526
15527 # Code to be used in simple compile tests
15528 lt_simple_compile_test_code="class foo {}\n"
15529
15530 # Code to be used in simple link tests
15531 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15532
15533 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15534
15535 # If no C compiler was specified, use CC.
15536 LTCC=${LTCC-"$CC"}
15537
15538 # Allow CC to be a program name with arguments.
15539 compiler=$CC
15540
15541
15542 # Allow CC to be a program name with arguments.
15543 lt_save_CC="$CC"
15544 CC=${GCJ-"gcj"}
15545 compiler=$CC
15546 compiler_GCJ=$CC
15547
15548 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15549 archive_cmds_need_lc_GCJ=no
15550
15551
15552 lt_prog_compiler_no_builtin_flag_GCJ=
15553
15554 if test "$GCC" = yes; then
15555   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15556
15557
15558 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15559 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15560 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563   lt_cv_prog_compiler_rtti_exceptions=no
15564   ac_outfile=conftest.$ac_objext
15565    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15566    lt_compiler_flag="-fno-rtti -fno-exceptions"
15567    # Insert the option either (1) after the last *FLAGS variable, or
15568    # (2) before a word containing "conftest.", or (3) at the end.
15569    # Note that $ac_compile itself does not contain backslashes and begins
15570    # with a dollar sign (not a hyphen), so the echo should work correctly.
15571    # The option is referenced via a variable to avoid confusing sed.
15572    lt_compile=`echo "$ac_compile" | $SED \
15573    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15574    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15575    -e 's:$: $lt_compiler_flag:'`
15576    (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
15577    (eval "$lt_compile" 2>conftest.err)
15578    ac_status=$?
15579    cat conftest.err >&5
15580    echo "$as_me:15580: \$? = $ac_status" >&5
15581    if (exit $ac_status) && test -s "$ac_outfile"; then
15582      # The compiler can only warn and ignore the option if not recognized
15583      # So say no if there are warnings
15584      if test ! -s conftest.err; then
15585        lt_cv_prog_compiler_rtti_exceptions=yes
15586      fi
15587    fi
15588    $rm conftest*
15589
15590 fi
15591 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15592 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15593
15594 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15595     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15596 else
15597     :
15598 fi
15599
15600 fi
15601
15602 lt_prog_compiler_wl_GCJ=
15603 lt_prog_compiler_pic_GCJ=
15604 lt_prog_compiler_static_GCJ=
15605
15606 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15607 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15608
15609   if test "$GCC" = yes; then
15610     lt_prog_compiler_wl_GCJ='-Wl,'
15611     lt_prog_compiler_static_GCJ='-static'
15612
15613     case $host_os in
15614       aix*)
15615       # All AIX code is PIC.
15616       if test "$host_cpu" = ia64; then
15617         # AIX 5 now supports IA64 processor
15618         lt_prog_compiler_static_GCJ='-Bstatic'
15619       fi
15620       ;;
15621
15622     amigaos*)
15623       # FIXME: we need at least 68020 code to build shared libraries, but
15624       # adding the `-m68020' flag to GCC prevents building anything better,
15625       # like `-m68040'.
15626       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15627       ;;
15628
15629     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15630       # PIC is the default for these OSes.
15631       ;;
15632
15633     mingw* | pw32* | os2*)
15634       # This hack is so that the source file can tell whether it is being
15635       # built for inclusion in a dll (and should export symbols for example).
15636       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15637       ;;
15638
15639     darwin* | rhapsody*)
15640       # PIC is the default on this platform
15641       # Common symbols not allowed in MH_DYLIB files
15642       lt_prog_compiler_pic_GCJ='-fno-common'
15643       ;;
15644
15645     msdosdjgpp*)
15646       # Just because we use GCC doesn't mean we suddenly get shared libraries
15647       # on systems that don't support them.
15648       lt_prog_compiler_can_build_shared_GCJ=no
15649       enable_shared=no
15650       ;;
15651
15652     sysv4*MP*)
15653       if test -d /usr/nec; then
15654         lt_prog_compiler_pic_GCJ=-Kconform_pic
15655       fi
15656       ;;
15657
15658     hpux*)
15659       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15660       # not for PA HP-UX.
15661       case "$host_cpu" in
15662       hppa*64*|ia64*)
15663         # +Z the default
15664         ;;
15665       *)
15666         lt_prog_compiler_pic_GCJ='-fPIC'
15667         ;;
15668       esac
15669       ;;
15670
15671     *)
15672       lt_prog_compiler_pic_GCJ='-fPIC'
15673       ;;
15674     esac
15675   else
15676     # PORTME Check for flag to pass linker flags through the system compiler.
15677     case $host_os in
15678     aix*)
15679       lt_prog_compiler_wl_GCJ='-Wl,'
15680       if test "$host_cpu" = ia64; then
15681         # AIX 5 now supports IA64 processor
15682         lt_prog_compiler_static_GCJ='-Bstatic'
15683       else
15684         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15685       fi
15686       ;;
15687
15688     mingw* | pw32* | os2*)
15689       # This hack is so that the source file can tell whether it is being
15690       # built for inclusion in a dll (and should export symbols for example).
15691       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15692       ;;
15693
15694     hpux9* | hpux10* | hpux11*)
15695       lt_prog_compiler_wl_GCJ='-Wl,'
15696       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15697       # not for PA HP-UX.
15698       case "$host_cpu" in
15699       hppa*64*|ia64*)
15700         # +Z the default
15701         ;;
15702       *)
15703         lt_prog_compiler_pic_GCJ='+Z'
15704         ;;
15705       esac
15706       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15707       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15708       ;;
15709
15710     irix5* | irix6* | nonstopux*)
15711       lt_prog_compiler_wl_GCJ='-Wl,'
15712       # PIC (with -KPIC) is the default.
15713       lt_prog_compiler_static_GCJ='-non_shared'
15714       ;;
15715
15716     newsos6)
15717       lt_prog_compiler_pic_GCJ='-KPIC'
15718       lt_prog_compiler_static_GCJ='-Bstatic'
15719       ;;
15720
15721     linux*)
15722       case $CC in
15723       icc* | ecc*)
15724         lt_prog_compiler_wl_GCJ='-Wl,'
15725         lt_prog_compiler_pic_GCJ='-KPIC'
15726         lt_prog_compiler_static_GCJ='-static'
15727         ;;
15728       ccc*)
15729         lt_prog_compiler_wl_GCJ='-Wl,'
15730         # All Alpha code is PIC.
15731         lt_prog_compiler_static_GCJ='-non_shared'
15732         ;;
15733       esac
15734       ;;
15735
15736     osf3* | osf4* | osf5*)
15737       lt_prog_compiler_wl_GCJ='-Wl,'
15738       # All OSF/1 code is PIC.
15739       lt_prog_compiler_static_GCJ='-non_shared'
15740       ;;
15741
15742     sco3.2v5*)
15743       lt_prog_compiler_pic_GCJ='-Kpic'
15744       lt_prog_compiler_static_GCJ='-dn'
15745       ;;
15746
15747     solaris*)
15748       lt_prog_compiler_wl_GCJ='-Wl,'
15749       lt_prog_compiler_pic_GCJ='-KPIC'
15750       lt_prog_compiler_static_GCJ='-Bstatic'
15751       ;;
15752
15753     sunos4*)
15754       lt_prog_compiler_wl_GCJ='-Qoption ld '
15755       lt_prog_compiler_pic_GCJ='-PIC'
15756       lt_prog_compiler_static_GCJ='-Bstatic'
15757       ;;
15758
15759     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15760       lt_prog_compiler_wl_GCJ='-Wl,'
15761       lt_prog_compiler_pic_GCJ='-KPIC'
15762       lt_prog_compiler_static_GCJ='-Bstatic'
15763       ;;
15764
15765     sysv4*MP*)
15766       if test -d /usr/nec ;then
15767         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15768         lt_prog_compiler_static_GCJ='-Bstatic'
15769       fi
15770       ;;
15771
15772     uts4*)
15773       lt_prog_compiler_pic_GCJ='-pic'
15774       lt_prog_compiler_static_GCJ='-Bstatic'
15775       ;;
15776
15777     *)
15778       lt_prog_compiler_can_build_shared_GCJ=no
15779       ;;
15780     esac
15781   fi
15782
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15785
15786 #
15787 # Check to make sure the PIC flag actually works.
15788 #
15789 if test -n "$lt_prog_compiler_pic_GCJ"; then
15790
15791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15793 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   lt_prog_compiler_pic_works_GCJ=no
15797   ac_outfile=conftest.$ac_objext
15798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15800    # Insert the option either (1) after the last *FLAGS variable, or
15801    # (2) before a word containing "conftest.", or (3) at the end.
15802    # Note that $ac_compile itself does not contain backslashes and begins
15803    # with a dollar sign (not a hyphen), so the echo should work correctly.
15804    # The option is referenced via a variable to avoid confusing sed.
15805    lt_compile=`echo "$ac_compile" | $SED \
15806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808    -e 's:$: $lt_compiler_flag:'`
15809    (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
15810    (eval "$lt_compile" 2>conftest.err)
15811    ac_status=$?
15812    cat conftest.err >&5
15813    echo "$as_me:15813: \$? = $ac_status" >&5
15814    if (exit $ac_status) && test -s "$ac_outfile"; then
15815      # The compiler can only warn and ignore the option if not recognized
15816      # So say no if there are warnings
15817      if test ! -s conftest.err; then
15818        lt_prog_compiler_pic_works_GCJ=yes
15819      fi
15820    fi
15821    $rm conftest*
15822
15823 fi
15824 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15825 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15826
15827 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15828     case $lt_prog_compiler_pic_GCJ in
15829      "" | " "*) ;;
15830      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15831      esac
15832 else
15833     lt_prog_compiler_pic_GCJ=
15834      lt_prog_compiler_can_build_shared_GCJ=no
15835 fi
15836
15837 fi
15838 case "$host_os" in
15839   # For platforms which do not support PIC, -DPIC is meaningless:
15840   *djgpp*)
15841     lt_prog_compiler_pic_GCJ=
15842     ;;
15843   *)
15844     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15845     ;;
15846 esac
15847
15848 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15849 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15850 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15851   echo $ECHO_N "(cached) $ECHO_C" >&6
15852 else
15853   lt_cv_prog_compiler_c_o_GCJ=no
15854    $rm -r conftest 2>/dev/null
15855    mkdir conftest
15856    cd conftest
15857    mkdir out
15858    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15859
15860    lt_compiler_flag="-o out/conftest2.$ac_objext"
15861    # Insert the option either (1) after the last *FLAGS variable, or
15862    # (2) before a word containing "conftest.", or (3) at the end.
15863    # Note that $ac_compile itself does not contain backslashes and begins
15864    # with a dollar sign (not a hyphen), so the echo should work correctly.
15865    lt_compile=`echo "$ac_compile" | $SED \
15866    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15868    -e 's:$: $lt_compiler_flag:'`
15869    (eval echo "\"\$as_me:15869: $lt_compile\"" >&5)
15870    (eval "$lt_compile" 2>out/conftest.err)
15871    ac_status=$?
15872    cat out/conftest.err >&5
15873    echo "$as_me:15873: \$? = $ac_status" >&5
15874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15875    then
15876      # The compiler can only warn and ignore the option if not recognized
15877      # So say no if there are warnings
15878      if test ! -s out/conftest.err; then
15879        lt_cv_prog_compiler_c_o_GCJ=yes
15880      fi
15881    fi
15882    chmod u+w .
15883    $rm conftest*
15884    # SGI C++ compiler will create directory out/ii_files/ for
15885    # template instantiation
15886    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15887    $rm out/* && rmdir out
15888    cd ..
15889    rmdir conftest
15890    $rm conftest*
15891
15892 fi
15893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15895
15896
15897 hard_links="nottested"
15898 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15899   # do not overwrite the value of need_locks provided by the user
15900   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15902   hard_links=yes
15903   $rm conftest*
15904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15905   touch conftest.a
15906   ln conftest.a conftest.b 2>&5 || hard_links=no
15907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15908   echo "$as_me:$LINENO: result: $hard_links" >&5
15909 echo "${ECHO_T}$hard_links" >&6
15910   if test "$hard_links" = no; then
15911     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15913     need_locks=warn
15914   fi
15915 else
15916   need_locks=no
15917 fi
15918
15919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15921
15922   runpath_var=
15923   allow_undefined_flag_GCJ=
15924   enable_shared_with_static_runtimes_GCJ=no
15925   archive_cmds_GCJ=
15926   archive_expsym_cmds_GCJ=
15927   old_archive_From_new_cmds_GCJ=
15928   old_archive_from_expsyms_cmds_GCJ=
15929   export_dynamic_flag_spec_GCJ=
15930   whole_archive_flag_spec_GCJ=
15931   thread_safe_flag_spec_GCJ=
15932   hardcode_libdir_flag_spec_GCJ=
15933   hardcode_libdir_flag_spec_ld_GCJ=
15934   hardcode_libdir_separator_GCJ=
15935   hardcode_direct_GCJ=no
15936   hardcode_minus_L_GCJ=no
15937   hardcode_shlibpath_var_GCJ=unsupported
15938   link_all_deplibs_GCJ=unknown
15939   hardcode_automatic_GCJ=no
15940   module_cmds_GCJ=
15941   module_expsym_cmds_GCJ=
15942   always_export_symbols_GCJ=no
15943   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15944   # include_expsyms should be a list of space-separated symbols to be *always*
15945   # included in the symbol list
15946   include_expsyms_GCJ=
15947   # exclude_expsyms can be an extended regexp of symbols to exclude
15948   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15949   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15950   # as well as any symbol that contains `d'.
15951   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15952   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15953   # platforms (ab)use it in PIC code, but their linkers get confused if
15954   # the symbol is explicitly referenced.  Since portable code cannot
15955   # rely on this symbol name, it's probably fine to never include it in
15956   # preloaded symbol tables.
15957   extract_expsyms_cmds=
15958
15959   case $host_os in
15960   cygwin* | mingw* | pw32*)
15961     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15962     # When not using gcc, we currently assume that we are using
15963     # Microsoft Visual C++.
15964     if test "$GCC" != yes; then
15965       with_gnu_ld=no
15966     fi
15967     ;;
15968   openbsd*)
15969     with_gnu_ld=no
15970     ;;
15971   esac
15972
15973   ld_shlibs_GCJ=yes
15974   if test "$with_gnu_ld" = yes; then
15975     # If archive_cmds runs LD, not CC, wlarc should be empty
15976     wlarc='${wl}'
15977
15978     # See if GNU ld supports shared libraries.
15979     case $host_os in
15980     aix3* | aix4* | aix5*)
15981       # On AIX/PPC, the GNU linker is very broken
15982       if test "$host_cpu" != ia64; then
15983         ld_shlibs_GCJ=no
15984         cat <<EOF 1>&2
15985
15986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15987 *** to be unable to reliably create shared libraries on AIX.
15988 *** Therefore, libtool is disabling shared libraries support.  If you
15989 *** really care for shared libraries, you may want to modify your PATH
15990 *** so that a non-GNU linker is found, and then restart.
15991
15992 EOF
15993       fi
15994       ;;
15995
15996     amigaos*)
15997       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)'
15998       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15999       hardcode_minus_L_GCJ=yes
16000
16001       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16002       # that the semantics of dynamic libraries on AmigaOS, at least up
16003       # to version 4, is to share data among multiple programs linked
16004       # with the same dynamic library.  Since this doesn't match the
16005       # behavior of shared libraries on other platforms, we can't use
16006       # them.
16007       ld_shlibs_GCJ=no
16008       ;;
16009
16010     beos*)
16011       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16012         allow_undefined_flag_GCJ=unsupported
16013         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16014         # support --undefined.  This deserves some investigation.  FIXME
16015         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16016       else
16017         ld_shlibs_GCJ=no
16018       fi
16019       ;;
16020
16021     cygwin* | mingw* | pw32*)
16022       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16023       # as there is no search path for DLLs.
16024       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16025       allow_undefined_flag_GCJ=unsupported
16026       always_export_symbols_GCJ=no
16027       enable_shared_with_static_runtimes_GCJ=yes
16028       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16029
16030       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16031         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16032         # If the export-symbols file already is a .def file (1st line
16033         # is EXPORTS), use it as is; otherwise, prepend...
16034         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16035           cp $export_symbols $output_objdir/$soname.def;
16036         else
16037           echo EXPORTS > $output_objdir/$soname.def;
16038           cat $export_symbols >> $output_objdir/$soname.def;
16039         fi~
16040         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16041       else
16042         ld_shlibs=no
16043       fi
16044       ;;
16045
16046     netbsd*)
16047       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16048         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16049         wlarc=
16050       else
16051         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16052         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16053       fi
16054       ;;
16055
16056     solaris* | sysv5*)
16057       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16058         ld_shlibs_GCJ=no
16059         cat <<EOF 1>&2
16060
16061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16062 *** create shared libraries on Solaris systems.  Therefore, libtool
16063 *** is disabling shared libraries support.  We urge you to upgrade GNU
16064 *** binutils to release 2.9.1 or newer.  Another option is to modify
16065 *** your PATH or compiler configuration so that the native linker is
16066 *** used, and then restart.
16067
16068 EOF
16069       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16070         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16071         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16072       else
16073         ld_shlibs_GCJ=no
16074       fi
16075       ;;
16076
16077     sunos4*)
16078       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16079       wlarc=
16080       hardcode_direct_GCJ=yes
16081       hardcode_shlibpath_var_GCJ=no
16082       ;;
16083
16084   linux*)
16085     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16086         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16087         archive_cmds_GCJ="$tmp_archive_cmds"
16088       supports_anon_versioning=no
16089       case `$LD -v 2>/dev/null` in
16090         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16091         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16092         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16093         *\ 2.11.*) ;; # other 2.11 versions
16094         *) supports_anon_versioning=yes ;;
16095       esac
16096       if test $supports_anon_versioning = yes; then
16097         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16099 $echo "local: *; };" >> $output_objdir/$libname.ver~
16100         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16101       else
16102         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16103       fi
16104     else
16105       ld_shlibs_GCJ=no
16106     fi
16107     ;;
16108
16109     *)
16110       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16111         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16112         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16113       else
16114         ld_shlibs_GCJ=no
16115       fi
16116       ;;
16117     esac
16118
16119     if test "$ld_shlibs_GCJ" = yes; then
16120       runpath_var=LD_RUN_PATH
16121       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16122       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16123       # ancient GNU ld didn't support --whole-archive et. al.
16124       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16125         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16126       else
16127         whole_archive_flag_spec_GCJ=
16128       fi
16129     fi
16130   else
16131     # PORTME fill in a description of your system's linker (not GNU ld)
16132     case $host_os in
16133     aix3*)
16134       allow_undefined_flag_GCJ=unsupported
16135       always_export_symbols_GCJ=yes
16136       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'
16137       # Note: this linker hardcodes the directories in LIBPATH if there
16138       # are no directories specified by -L.
16139       hardcode_minus_L_GCJ=yes
16140       if test "$GCC" = yes && test -z "$link_static_flag"; then
16141         # Neither direct hardcoding nor static linking is supported with a
16142         # broken collect2.
16143         hardcode_direct_GCJ=unsupported
16144       fi
16145       ;;
16146
16147     aix4* | aix5*)
16148       if test "$host_cpu" = ia64; then
16149         # On IA64, the linker does run time linking by default, so we don't
16150         # have to do anything special.
16151         aix_use_runtimelinking=no
16152         exp_sym_flag='-Bexport'
16153         no_entry_flag=""
16154       else
16155         # If we're using GNU nm, then we don't want the "-C" option.
16156         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16157         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16158           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'
16159         else
16160           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'
16161         fi
16162         aix_use_runtimelinking=no
16163
16164         # Test if we are trying to use run time linking or normal
16165         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16166         # need to do runtime linking.
16167         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16168           for ld_flag in $LDFLAGS; do
16169           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16170             aix_use_runtimelinking=yes
16171             break
16172           fi
16173           done
16174         esac
16175
16176         exp_sym_flag='-bexport'
16177         no_entry_flag='-bnoentry'
16178       fi
16179
16180       # When large executables or shared objects are built, AIX ld can
16181       # have problems creating the table of contents.  If linking a library
16182       # or program results in "error TOC overflow" add -mminimal-toc to
16183       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16184       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16185
16186       archive_cmds_GCJ=''
16187       hardcode_direct_GCJ=yes
16188       hardcode_libdir_separator_GCJ=':'
16189       link_all_deplibs_GCJ=yes
16190
16191       if test "$GCC" = yes; then
16192         case $host_os in aix4.012|aix4.012.*)
16193         # We only want to do this on AIX 4.2 and lower, the check
16194         # below for broken collect2 doesn't work under 4.3+
16195           collect2name=`${CC} -print-prog-name=collect2`
16196           if test -f "$collect2name" && \
16197            strings "$collect2name" | grep resolve_lib_name >/dev/null
16198           then
16199           # We have reworked collect2
16200           hardcode_direct_GCJ=yes
16201           else
16202           # We have old collect2
16203           hardcode_direct_GCJ=unsupported
16204           # It fails to find uninstalled libraries when the uninstalled
16205           # path is not listed in the libpath.  Setting hardcode_minus_L
16206           # to unsupported forces relinking
16207           hardcode_minus_L_GCJ=yes
16208           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16209           hardcode_libdir_separator_GCJ=
16210           fi
16211         esac
16212         shared_flag='-shared'
16213       else
16214         # not using gcc
16215         if test "$host_cpu" = ia64; then
16216         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16217         # chokes on -Wl,-G. The following line is correct:
16218           shared_flag='-G'
16219         else
16220         if test "$aix_use_runtimelinking" = yes; then
16221             shared_flag='${wl}-G'
16222           else
16223             shared_flag='${wl}-bM:SRE'
16224         fi
16225         fi
16226       fi
16227
16228       # It seems that -bexpall does not export symbols beginning with
16229       # underscore (_), so it is better to generate a list of symbols to export.
16230       always_export_symbols_GCJ=yes
16231       if test "$aix_use_runtimelinking" = yes; then
16232         # Warning - without using the other runtime loading flags (-brtl),
16233         # -berok will link without error, but may produce a broken library.
16234         allow_undefined_flag_GCJ='-berok'
16235        # Determine the default libpath from the value encoded in an empty executable.
16236        cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242
16243 int
16244 main ()
16245 {
16246
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253   (eval $ac_link) 2>conftest.er1
16254   ac_status=$?
16255   grep -v '^ *+' conftest.er1 >conftest.err
16256   rm -f conftest.er1
16257   cat conftest.err >&5
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); } &&
16260          { ac_try='test -z "$ac_c_werror_flag"
16261                          || test ! -s conftest.err'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; } &&
16267          { ac_try='test -s conftest$ac_exeext'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273
16274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16275 }'`
16276 # Check for a 64-bit object if we didn't find anything.
16277 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; }
16278 }'`; fi
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283 fi
16284 rm -f conftest.err conftest.$ac_objext \
16285       conftest$ac_exeext conftest.$ac_ext
16286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16287
16288        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16289         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"
16290        else
16291         if test "$host_cpu" = ia64; then
16292           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16293           allow_undefined_flag_GCJ="-z nodefs"
16294           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"
16295         else
16296          # Determine the default libpath from the value encoded in an empty executable.
16297          cat >conftest.$ac_ext <<_ACEOF
16298 /* confdefs.h.  */
16299 _ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h.  */
16303
16304 int
16305 main ()
16306 {
16307
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16314   (eval $ac_link) 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } &&
16321          { ac_try='test -z "$ac_c_werror_flag"
16322                          || test ! -s conftest.err'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; } &&
16328          { ac_try='test -s conftest$ac_exeext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334
16335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16336 }'`
16337 # Check for a 64-bit object if we didn't find anything.
16338 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; }
16339 }'`; fi
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 fi
16345 rm -f conftest.err conftest.$ac_objext \
16346       conftest$ac_exeext conftest.$ac_ext
16347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16348
16349          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16350           # Warning - without using the other run time loading flags,
16351           # -berok will link without error, but may produce a broken library.
16352           no_undefined_flag_GCJ=' ${wl}-bernotok'
16353           allow_undefined_flag_GCJ=' ${wl}-berok'
16354           # -bexpall does not export symbols beginning with underscore (_)
16355           always_export_symbols_GCJ=yes
16356           # Exported symbols can be pulled into shared objects from archives
16357           whole_archive_flag_spec_GCJ=' '
16358           archive_cmds_need_lc_GCJ=yes
16359           # This is similar to how AIX traditionally builds it's shared libraries.
16360           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'
16361         fi
16362       fi
16363       ;;
16364
16365     amigaos*)
16366       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)'
16367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368       hardcode_minus_L_GCJ=yes
16369       # see comment about different semantics on the GNU ld section
16370       ld_shlibs_GCJ=no
16371       ;;
16372
16373     bsdi4*)
16374       export_dynamic_flag_spec_GCJ=-rdynamic
16375       ;;
16376
16377     cygwin* | mingw* | pw32*)
16378       # When not using gcc, we currently assume that we are using
16379       # Microsoft Visual C++.
16380       # hardcode_libdir_flag_spec is actually meaningless, as there is
16381       # no search path for DLLs.
16382       hardcode_libdir_flag_spec_GCJ=' '
16383       allow_undefined_flag_GCJ=unsupported
16384       # Tell ltmain to make .lib files, not .a files.
16385       libext=lib
16386       # Tell ltmain to make .dll files, not .so files.
16387       shrext_cmds=".dll"
16388       # FIXME: Setting linknames here is a bad hack.
16389       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16390       # The linker will automatically build a .lib file if we build a DLL.
16391       old_archive_From_new_cmds_GCJ='true'
16392       # FIXME: Should let the user specify the lib program.
16393       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16394       fix_srcfile_path='`cygpath -w "$srcfile"`'
16395       enable_shared_with_static_runtimes_GCJ=yes
16396       ;;
16397
16398     darwin* | rhapsody*)
16399     if test "$GXX" = yes ; then
16400       archive_cmds_need_lc_GCJ=no
16401       case "$host_os" in
16402       rhapsody* | darwin1.[012])
16403         allow_undefined_flag_GCJ='-undefined suppress'
16404         ;;
16405       *) # Darwin 1.3 on
16406       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16407         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16408       else
16409         case ${MACOSX_DEPLOYMENT_TARGET} in
16410           10.[012])
16411             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16412             ;;
16413           10.*)
16414             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16415             ;;
16416         esac
16417       fi
16418         ;;
16419       esac
16420         lt_int_apple_cc_single_mod=no
16421         output_verbose_link_cmd='echo'
16422         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16423           lt_int_apple_cc_single_mod=yes
16424         fi
16425         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16426           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16427         else
16428         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16429       fi
16430       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16431       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16432         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16433           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16434         else
16435           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16436         fi
16437           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}'
16438       hardcode_direct_GCJ=no
16439       hardcode_automatic_GCJ=yes
16440       hardcode_shlibpath_var_GCJ=unsupported
16441       whole_archive_flag_spec_GCJ='-all_load $convenience'
16442       link_all_deplibs_GCJ=yes
16443     else
16444       ld_shlibs_GCJ=no
16445     fi
16446       ;;
16447
16448     dgux*)
16449       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16451       hardcode_shlibpath_var_GCJ=no
16452       ;;
16453
16454     freebsd1*)
16455       ld_shlibs_GCJ=no
16456       ;;
16457
16458     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16459     # support.  Future versions do this automatically, but an explicit c++rt0.o
16460     # does not break anything, and helps significantly (at the cost of a little
16461     # extra space).
16462     freebsd2.2*)
16463       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16464       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16465       hardcode_direct_GCJ=yes
16466       hardcode_shlibpath_var_GCJ=no
16467       ;;
16468
16469     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16470     freebsd2*)
16471       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16472       hardcode_direct_GCJ=yes
16473       hardcode_minus_L_GCJ=yes
16474       hardcode_shlibpath_var_GCJ=no
16475       ;;
16476
16477     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16478     freebsd* | kfreebsd*-gnu)
16479       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16480       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16481       hardcode_direct_GCJ=yes
16482       hardcode_shlibpath_var_GCJ=no
16483       ;;
16484
16485     hpux9*)
16486       if test "$GCC" = yes; then
16487         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'
16488       else
16489         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'
16490       fi
16491       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16492       hardcode_libdir_separator_GCJ=:
16493       hardcode_direct_GCJ=yes
16494
16495       # hardcode_minus_L: Not really in the search PATH,
16496       # but as the default location of the library.
16497       hardcode_minus_L_GCJ=yes
16498       export_dynamic_flag_spec_GCJ='${wl}-E'
16499       ;;
16500
16501     hpux10* | hpux11*)
16502       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16503         case "$host_cpu" in
16504         hppa*64*|ia64*)
16505           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16506           ;;
16507         *)
16508           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16509           ;;
16510         esac
16511       else
16512         case "$host_cpu" in
16513         hppa*64*|ia64*)
16514           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16515           ;;
16516         *)
16517           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16518           ;;
16519         esac
16520       fi
16521       if test "$with_gnu_ld" = no; then
16522         case "$host_cpu" in
16523         hppa*64*)
16524           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16525           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16526           hardcode_libdir_separator_GCJ=:
16527           hardcode_direct_GCJ=no
16528           hardcode_shlibpath_var_GCJ=no
16529           ;;
16530         ia64*)
16531           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16532           hardcode_direct_GCJ=no
16533           hardcode_shlibpath_var_GCJ=no
16534
16535           # hardcode_minus_L: Not really in the search PATH,
16536           # but as the default location of the library.
16537           hardcode_minus_L_GCJ=yes
16538           ;;
16539         *)
16540           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16541           hardcode_libdir_separator_GCJ=:
16542           hardcode_direct_GCJ=yes
16543           export_dynamic_flag_spec_GCJ='${wl}-E'
16544
16545           # hardcode_minus_L: Not really in the search PATH,
16546           # but as the default location of the library.
16547           hardcode_minus_L_GCJ=yes
16548           ;;
16549         esac
16550       fi
16551       ;;
16552
16553     irix5* | irix6* | nonstopux*)
16554       if test "$GCC" = yes; then
16555         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'
16556       else
16557         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'
16558         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16559       fi
16560       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16561       hardcode_libdir_separator_GCJ=:
16562       link_all_deplibs_GCJ=yes
16563       ;;
16564
16565     netbsd*)
16566       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16567         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16568       else
16569         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16570       fi
16571       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16572       hardcode_direct_GCJ=yes
16573       hardcode_shlibpath_var_GCJ=no
16574       ;;
16575
16576     newsos6)
16577       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578       hardcode_direct_GCJ=yes
16579       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16580       hardcode_libdir_separator_GCJ=:
16581       hardcode_shlibpath_var_GCJ=no
16582       ;;
16583
16584     openbsd*)
16585       hardcode_direct_GCJ=yes
16586       hardcode_shlibpath_var_GCJ=no
16587       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16588         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16589         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16590         export_dynamic_flag_spec_GCJ='${wl}-E'
16591       else
16592        case $host_os in
16593          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16594            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16595            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16596            ;;
16597          *)
16598            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16599            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16600            ;;
16601        esac
16602       fi
16603       ;;
16604
16605     os2*)
16606       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16607       hardcode_minus_L_GCJ=yes
16608       allow_undefined_flag_GCJ=unsupported
16609       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'
16610       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16611       ;;
16612
16613     osf3*)
16614       if test "$GCC" = yes; then
16615         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16616         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'
16617       else
16618         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16619         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'
16620       fi
16621       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16622       hardcode_libdir_separator_GCJ=:
16623       ;;
16624
16625     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16626       if test "$GCC" = yes; then
16627         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16628         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'
16629         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16630       else
16631         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16632         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'
16633         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~
16634         $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'
16635
16636         # Both c and cxx compiler support -rpath directly
16637         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16638       fi
16639       hardcode_libdir_separator_GCJ=:
16640       ;;
16641
16642     sco3.2v5*)
16643       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644       hardcode_shlibpath_var_GCJ=no
16645       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16646       runpath_var=LD_RUN_PATH
16647       hardcode_runpath_var=yes
16648       ;;
16649
16650     solaris*)
16651       no_undefined_flag_GCJ=' -z text'
16652       if test "$GCC" = yes; then
16653         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16655           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16656       else
16657         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16660       fi
16661       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16662       hardcode_shlibpath_var_GCJ=no
16663       case $host_os in
16664       solaris2.[0-5] | solaris2.[0-5].*) ;;
16665       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16666         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16667       esac
16668       link_all_deplibs_GCJ=yes
16669       ;;
16670
16671     sunos4*)
16672       if test "x$host_vendor" = xsequent; then
16673         # Use $CC to link under sequent, because it throws in some extra .o
16674         # files that make .init and .fini sections work.
16675         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16676       else
16677         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16678       fi
16679       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16680       hardcode_direct_GCJ=yes
16681       hardcode_minus_L_GCJ=yes
16682       hardcode_shlibpath_var_GCJ=no
16683       ;;
16684
16685     sysv4)
16686       case $host_vendor in
16687         sni)
16688           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689           hardcode_direct_GCJ=yes # is this really true???
16690         ;;
16691         siemens)
16692           ## LD is ld it makes a PLAMLIB
16693           ## CC just makes a GrossModule.
16694           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16695           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16696           hardcode_direct_GCJ=no
16697         ;;
16698         motorola)
16699           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16701         ;;
16702       esac
16703       runpath_var='LD_RUN_PATH'
16704       hardcode_shlibpath_var_GCJ=no
16705       ;;
16706
16707     sysv4.3*)
16708       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709       hardcode_shlibpath_var_GCJ=no
16710       export_dynamic_flag_spec_GCJ='-Bexport'
16711       ;;
16712
16713     sysv4*MP*)
16714       if test -d /usr/nec; then
16715         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716         hardcode_shlibpath_var_GCJ=no
16717         runpath_var=LD_RUN_PATH
16718         hardcode_runpath_var=yes
16719         ld_shlibs_GCJ=yes
16720       fi
16721       ;;
16722
16723     sysv4.2uw2*)
16724       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16725       hardcode_direct_GCJ=yes
16726       hardcode_minus_L_GCJ=no
16727       hardcode_shlibpath_var_GCJ=no
16728       hardcode_runpath_var=yes
16729       runpath_var=LD_RUN_PATH
16730       ;;
16731
16732    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16733       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16734       if test "$GCC" = yes; then
16735         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736       else
16737         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16738       fi
16739       runpath_var='LD_RUN_PATH'
16740       hardcode_shlibpath_var_GCJ=no
16741       ;;
16742
16743     sysv5*)
16744       no_undefined_flag_GCJ=' -z text'
16745       # $CC -shared without GNU ld will not create a library from C++
16746       # object files and a static libstdc++, better avoid it by now
16747       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16749                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16750       hardcode_libdir_flag_spec_GCJ=
16751       hardcode_shlibpath_var_GCJ=no
16752       runpath_var='LD_RUN_PATH'
16753       ;;
16754
16755     uts4*)
16756       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16758       hardcode_shlibpath_var_GCJ=no
16759       ;;
16760
16761     *)
16762       ld_shlibs_GCJ=no
16763       ;;
16764     esac
16765   fi
16766
16767 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16768 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16769 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16770
16771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16772 if test "$GCC" = yes; then
16773   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16774 fi
16775
16776 #
16777 # Do we need to explicitly link libc?
16778 #
16779 case "x$archive_cmds_need_lc_GCJ" in
16780 x|xyes)
16781   # Assume -lc should be added
16782   archive_cmds_need_lc_GCJ=yes
16783
16784   if test "$enable_shared" = yes && test "$GCC" = yes; then
16785     case $archive_cmds_GCJ in
16786     *'~'*)
16787       # FIXME: we may have to deal with multi-command sequences.
16788       ;;
16789     '$CC '*)
16790       # Test whether the compiler implicitly links with -lc since on some
16791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16792       # to ld, don't add -lc before -lgcc.
16793       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16795       $rm conftest*
16796       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16797
16798       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799   (eval $ac_compile) 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); } 2>conftest.err; then
16803         soname=conftest
16804         lib=conftest
16805         libobjs=conftest.$ac_objext
16806         deplibs=
16807         wl=$lt_prog_compiler_wl_GCJ
16808         compiler_flags=-v
16809         linker_flags=-v
16810         verstring=
16811         output_objdir=.
16812         libname=conftest
16813         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16814         allow_undefined_flag_GCJ=
16815         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16816   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }
16820         then
16821           archive_cmds_need_lc_GCJ=no
16822         else
16823           archive_cmds_need_lc_GCJ=yes
16824         fi
16825         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16826       else
16827         cat conftest.err 1>&5
16828       fi
16829       $rm conftest*
16830       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16831 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16832       ;;
16833     esac
16834   fi
16835   ;;
16836 esac
16837
16838 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16839 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16840 library_names_spec=
16841 libname_spec='lib$name'
16842 soname_spec=
16843 shrext_cmds=".so"
16844 postinstall_cmds=
16845 postuninstall_cmds=
16846 finish_cmds=
16847 finish_eval=
16848 shlibpath_var=
16849 shlibpath_overrides_runpath=unknown
16850 version_type=none
16851 dynamic_linker="$host_os ld.so"
16852 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16853 if test "$GCC" = yes; then
16854   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16855   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16856     # if the path contains ";" then we assume it to be the separator
16857     # otherwise default to the standard path separator (i.e. ":") - it is
16858     # assumed that no part of a normal pathname contains ";" but that should
16859     # okay in the real world where ";" in dirpaths is itself problematic.
16860     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16861   else
16862     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16863   fi
16864 else
16865   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16866 fi
16867 need_lib_prefix=unknown
16868 hardcode_into_libs=no
16869
16870 # when you set need_version to no, make sure it does not cause -set_version
16871 # flags to be left without arguments
16872 need_version=unknown
16873
16874 case $host_os in
16875 aix3*)
16876   version_type=linux
16877   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16878   shlibpath_var=LIBPATH
16879
16880   # AIX 3 has no versioning support, so we append a major version to the name.
16881   soname_spec='${libname}${release}${shared_ext}$major'
16882   ;;
16883
16884 aix4* | aix5*)
16885   version_type=linux
16886   need_lib_prefix=no
16887   need_version=no
16888   hardcode_into_libs=yes
16889   if test "$host_cpu" = ia64; then
16890     # AIX 5 supports IA64
16891     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16892     shlibpath_var=LD_LIBRARY_PATH
16893   else
16894     # With GCC up to 2.95.x, collect2 would create an import file
16895     # for dependence libraries.  The import file would start with
16896     # the line `#! .'.  This would cause the generated library to
16897     # depend on `.', always an invalid library.  This was fixed in
16898     # development snapshots of GCC prior to 3.0.
16899     case $host_os in
16900       aix4 | aix4.[01] | aix4.[01].*)
16901       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16902            echo ' yes '
16903            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16904         :
16905       else
16906         can_build_shared=no
16907       fi
16908       ;;
16909     esac
16910     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16911     # soname into executable. Probably we can add versioning support to
16912     # collect2, so additional links can be useful in future.
16913     if test "$aix_use_runtimelinking" = yes; then
16914       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16915       # instead of lib<name>.a to let people know that these are not
16916       # typical AIX shared libraries.
16917       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918     else
16919       # We preserve .a as extension for shared libraries through AIX4.2
16920       # and later when we are not doing run time linking.
16921       library_names_spec='${libname}${release}.a $libname.a'
16922       soname_spec='${libname}${release}${shared_ext}$major'
16923     fi
16924     shlibpath_var=LIBPATH
16925   fi
16926   ;;
16927
16928 amigaos*)
16929   library_names_spec='$libname.ixlibrary $libname.a'
16930   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16931   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'
16932   ;;
16933
16934 beos*)
16935   library_names_spec='${libname}${shared_ext}'
16936   dynamic_linker="$host_os ld.so"
16937   shlibpath_var=LIBRARY_PATH
16938   ;;
16939
16940 bsdi4*)
16941   version_type=linux
16942   need_version=no
16943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944   soname_spec='${libname}${release}${shared_ext}$major'
16945   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16946   shlibpath_var=LD_LIBRARY_PATH
16947   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16948   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16949   # the default ld.so.conf also contains /usr/contrib/lib and
16950   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16951   # libtool to hard-code these into programs
16952   ;;
16953
16954 cygwin* | mingw* | pw32*)
16955   version_type=windows
16956   shrext_cmds=".dll"
16957   need_version=no
16958   need_lib_prefix=no
16959
16960   case $GCC,$host_os in
16961   yes,cygwin* | yes,mingw* | yes,pw32*)
16962     library_names_spec='$libname.dll.a'
16963     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16964     postinstall_cmds='base_file=`basename \${file}`~
16965       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16966       dldir=$destdir/`dirname \$dlpath`~
16967       test -d \$dldir || mkdir -p \$dldir~
16968       $install_prog $dir/$dlname \$dldir/$dlname'
16969     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16970       dlpath=$dir/\$dldll~
16971        $rm \$dlpath'
16972     shlibpath_overrides_runpath=yes
16973
16974     case $host_os in
16975     cygwin*)
16976       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16977       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16978       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16979       ;;
16980     mingw*)
16981       # MinGW DLLs use traditional 'lib' prefix
16982       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16983       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16984       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16985         # It is most probably a Windows format PATH printed by
16986         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16987         # path with ; separators, and with drive letters. We can handle the
16988         # drive letters (cygwin fileutils understands them), so leave them,
16989         # especially as we might pass files found there to a mingw objdump,
16990         # which wouldn't understand a cygwinified path. Ahh.
16991         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16992       else
16993         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16994       fi
16995       ;;
16996     pw32*)
16997       # pw32 DLLs use 'pw' prefix rather than 'lib'
16998       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16999       ;;
17000     esac
17001     ;;
17002
17003   *)
17004     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17005     ;;
17006   esac
17007   dynamic_linker='Win32 ld.exe'
17008   # FIXME: first we should search . and the directory the executable is in
17009   shlibpath_var=PATH
17010   ;;
17011
17012 darwin* | rhapsody*)
17013   dynamic_linker="$host_os dyld"
17014   version_type=darwin
17015   need_lib_prefix=no
17016   need_version=no
17017   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17018   soname_spec='${libname}${release}${major}$shared_ext'
17019   shlibpath_overrides_runpath=yes
17020   shlibpath_var=DYLD_LIBRARY_PATH
17021   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17022   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17023   if test "$GCC" = yes; then
17024     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"`
17025   else
17026     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17027   fi
17028   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17029   ;;
17030
17031 dgux*)
17032   version_type=linux
17033   need_lib_prefix=no
17034   need_version=no
17035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17036   soname_spec='${libname}${release}${shared_ext}$major'
17037   shlibpath_var=LD_LIBRARY_PATH
17038   ;;
17039
17040 freebsd1*)
17041   dynamic_linker=no
17042   ;;
17043
17044 kfreebsd*-gnu)
17045   version_type=linux
17046   need_lib_prefix=no
17047   need_version=no
17048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17049   soname_spec='${libname}${release}${shared_ext}$major'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   shlibpath_overrides_runpath=no
17052   hardcode_into_libs=yes
17053   dynamic_linker='GNU ld.so'
17054   ;;
17055
17056 freebsd*)
17057   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17058   version_type=freebsd-$objformat
17059   case $version_type in
17060     freebsd-elf*)
17061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17062       need_version=no
17063       need_lib_prefix=no
17064       ;;
17065     freebsd-*)
17066       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17067       need_version=yes
17068       ;;
17069   esac
17070   shlibpath_var=LD_LIBRARY_PATH
17071   case $host_os in
17072   freebsd2*)
17073     shlibpath_overrides_runpath=yes
17074     ;;
17075   freebsd3.01* | freebsdelf3.01*)
17076     shlibpath_overrides_runpath=yes
17077     hardcode_into_libs=yes
17078     ;;
17079   *) # from 3.2 on
17080     shlibpath_overrides_runpath=no
17081     hardcode_into_libs=yes
17082     ;;
17083   esac
17084   ;;
17085
17086 gnu*)
17087   version_type=linux
17088   need_lib_prefix=no
17089   need_version=no
17090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17091   soname_spec='${libname}${release}${shared_ext}$major'
17092   shlibpath_var=LD_LIBRARY_PATH
17093   hardcode_into_libs=yes
17094   ;;
17095
17096 hpux9* | hpux10* | hpux11*)
17097   # Give a soname corresponding to the major version so that dld.sl refuses to
17098   # link against other versions.
17099   version_type=sunos
17100   need_lib_prefix=no
17101   need_version=no
17102   case "$host_cpu" in
17103   ia64*)
17104     shrext_cmds='.so'
17105     hardcode_into_libs=yes
17106     dynamic_linker="$host_os dld.so"
17107     shlibpath_var=LD_LIBRARY_PATH
17108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110     soname_spec='${libname}${release}${shared_ext}$major'
17111     if test "X$HPUX_IA64_MODE" = X32; then
17112       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17113     else
17114       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17115     fi
17116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17117     ;;
17118    hppa*64*)
17119      shrext_cmds='.sl'
17120      hardcode_into_libs=yes
17121      dynamic_linker="$host_os dld.sl"
17122      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17123      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125      soname_spec='${libname}${release}${shared_ext}$major'
17126      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17127      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17128      ;;
17129    *)
17130     shrext_cmds='.sl'
17131     dynamic_linker="$host_os dld.sl"
17132     shlibpath_var=SHLIB_PATH
17133     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135     soname_spec='${libname}${release}${shared_ext}$major'
17136     ;;
17137   esac
17138   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17139   postinstall_cmds='chmod 555 $lib'
17140   ;;
17141
17142 irix5* | irix6* | nonstopux*)
17143   case $host_os in
17144     nonstopux*) version_type=nonstopux ;;
17145     *)
17146         if test "$lt_cv_prog_gnu_ld" = yes; then
17147                 version_type=linux
17148         else
17149                 version_type=irix
17150         fi ;;
17151   esac
17152   need_lib_prefix=no
17153   need_version=no
17154   soname_spec='${libname}${release}${shared_ext}$major'
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17156   case $host_os in
17157   irix5* | nonstopux*)
17158     libsuff= shlibsuff=
17159     ;;
17160   *)
17161     case $LD in # libtool.m4 will add one of these switches to LD
17162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163       libsuff= shlibsuff= libmagic=32-bit;;
17164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165       libsuff=32 shlibsuff=N32 libmagic=N32;;
17166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168     *) libsuff= shlibsuff= libmagic=never-match;;
17169     esac
17170     ;;
17171   esac
17172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173   shlibpath_overrides_runpath=no
17174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176   hardcode_into_libs=yes
17177   ;;
17178
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17181   dynamic_linker=no
17182   ;;
17183
17184 # This must be Linux ELF.
17185 linux*)
17186   version_type=linux
17187   need_lib_prefix=no
17188   need_version=no
17189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190   soname_spec='${libname}${release}${shared_ext}$major'
17191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   shlibpath_overrides_runpath=no
17194   # This implies no fast_install, which is unacceptable.
17195   # Some rework will be needed to allow for fast_install
17196   # before this can be enabled.
17197   hardcode_into_libs=yes
17198
17199   # find out which ABI we are using
17200   libsuff=
17201   case "$host_cpu" in
17202   x86_64*|s390x*|powerpc64*)
17203     echo '#line 17203 "configure"' > conftest.$ac_ext
17204     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205   (eval $ac_compile) 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; then
17209       case `/usr/bin/file conftest.$ac_objext` in
17210       *64-bit*)
17211         libsuff=64
17212         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17213         ;;
17214       esac
17215     fi
17216     rm -rf conftest*
17217     ;;
17218   esac
17219
17220   # Append ld.so.conf contents to the search path
17221   if test -f /etc/ld.so.conf; then
17222     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17223     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17224   fi
17225
17226   # We used to test for /lib/ld.so.1 and disable shared libraries on
17227   # powerpc, because MkLinux only supported shared libraries with the
17228   # GNU dynamic linker.  Since this was broken with cross compilers,
17229   # most powerpc-linux boxes support dynamic linking these days and
17230   # people can always --disable-shared, the test was removed, and we
17231   # assume the GNU/Linux dynamic linker is in use.
17232   dynamic_linker='GNU/Linux ld.so'
17233   ;;
17234
17235 knetbsd*-gnu)
17236   version_type=linux
17237   need_lib_prefix=no
17238   need_version=no
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17240   soname_spec='${libname}${release}${shared_ext}$major'
17241   shlibpath_var=LD_LIBRARY_PATH
17242   shlibpath_overrides_runpath=no
17243   hardcode_into_libs=yes
17244   dynamic_linker='GNU ld.so'
17245   ;;
17246
17247 netbsd*)
17248   version_type=sunos
17249   need_lib_prefix=no
17250   need_version=no
17251   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17254     dynamic_linker='NetBSD (a.out) ld.so'
17255   else
17256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17257     soname_spec='${libname}${release}${shared_ext}$major'
17258     dynamic_linker='NetBSD ld.elf_so'
17259   fi
17260   shlibpath_var=LD_LIBRARY_PATH
17261   shlibpath_overrides_runpath=yes
17262   hardcode_into_libs=yes
17263   ;;
17264
17265 newsos6)
17266   version_type=linux
17267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268   shlibpath_var=LD_LIBRARY_PATH
17269   shlibpath_overrides_runpath=yes
17270   ;;
17271
17272 nto-qnx*)
17273   version_type=linux
17274   need_lib_prefix=no
17275   need_version=no
17276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277   soname_spec='${libname}${release}${shared_ext}$major'
17278   shlibpath_var=LD_LIBRARY_PATH
17279   shlibpath_overrides_runpath=yes
17280   ;;
17281
17282 openbsd*)
17283   version_type=sunos
17284   need_lib_prefix=no
17285   need_version=yes
17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17287   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17288   shlibpath_var=LD_LIBRARY_PATH
17289   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17290     case $host_os in
17291       openbsd2.[89] | openbsd2.[89].*)
17292         shlibpath_overrides_runpath=no
17293         ;;
17294       *)
17295         shlibpath_overrides_runpath=yes
17296         ;;
17297       esac
17298   else
17299     shlibpath_overrides_runpath=yes
17300   fi
17301   ;;
17302
17303 os2*)
17304   libname_spec='$name'
17305   shrext_cmds=".dll"
17306   need_lib_prefix=no
17307   library_names_spec='$libname${shared_ext} $libname.a'
17308   dynamic_linker='OS/2 ld.exe'
17309   shlibpath_var=LIBPATH
17310   ;;
17311
17312 osf3* | osf4* | osf5*)
17313   version_type=osf
17314   need_lib_prefix=no
17315   need_version=no
17316   soname_spec='${libname}${release}${shared_ext}$major'
17317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318   shlibpath_var=LD_LIBRARY_PATH
17319   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17320   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17321   ;;
17322
17323 sco3.2v5*)
17324   version_type=osf
17325   soname_spec='${libname}${release}${shared_ext}$major'
17326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   ;;
17329
17330 solaris*)
17331   version_type=linux
17332   need_lib_prefix=no
17333   need_version=no
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335   soname_spec='${libname}${release}${shared_ext}$major'
17336   shlibpath_var=LD_LIBRARY_PATH
17337   shlibpath_overrides_runpath=yes
17338   hardcode_into_libs=yes
17339   # ldd complains unless libraries are executable
17340   postinstall_cmds='chmod +x $lib'
17341   ;;
17342
17343 sunos4*)
17344   version_type=sunos
17345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17347   shlibpath_var=LD_LIBRARY_PATH
17348   shlibpath_overrides_runpath=yes
17349   if test "$with_gnu_ld" = yes; then
17350     need_lib_prefix=no
17351   fi
17352   need_version=yes
17353   ;;
17354
17355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17356   version_type=linux
17357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358   soname_spec='${libname}${release}${shared_ext}$major'
17359   shlibpath_var=LD_LIBRARY_PATH
17360   case $host_vendor in
17361     sni)
17362       shlibpath_overrides_runpath=no
17363       need_lib_prefix=no
17364       export_dynamic_flag_spec='${wl}-Blargedynsym'
17365       runpath_var=LD_RUN_PATH
17366       ;;
17367     siemens)
17368       need_lib_prefix=no
17369       ;;
17370     motorola)
17371       need_lib_prefix=no
17372       need_version=no
17373       shlibpath_overrides_runpath=no
17374       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17375       ;;
17376   esac
17377   ;;
17378
17379 sysv4*MP*)
17380   if test -d /usr/nec ;then
17381     version_type=linux
17382     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17383     soname_spec='$libname${shared_ext}.$major'
17384     shlibpath_var=LD_LIBRARY_PATH
17385   fi
17386   ;;
17387
17388 uts4*)
17389   version_type=linux
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391   soname_spec='${libname}${release}${shared_ext}$major'
17392   shlibpath_var=LD_LIBRARY_PATH
17393   ;;
17394
17395 *)
17396   dynamic_linker=no
17397   ;;
17398 esac
17399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17400 echo "${ECHO_T}$dynamic_linker" >&6
17401 test "$dynamic_linker" = no && can_build_shared=no
17402
17403 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17404 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17405 hardcode_action_GCJ=
17406 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17407    test -n "$runpath_var GCJ" || \
17408    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17409
17410   # We can hardcode non-existant directories.
17411   if test "$hardcode_direct_GCJ" != no &&
17412      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17413      # have to relink, otherwise we might link with an installed library
17414      # when we should be linking with a yet-to-be-installed one
17415      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17416      test "$hardcode_minus_L_GCJ" != no; then
17417     # Linking always hardcodes the temporary library directory.
17418     hardcode_action_GCJ=relink
17419   else
17420     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17421     hardcode_action_GCJ=immediate
17422   fi
17423 else
17424   # We cannot hardcode anything, or else we can only hardcode existing
17425   # directories.
17426   hardcode_action_GCJ=unsupported
17427 fi
17428 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17429 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17430
17431 if test "$hardcode_action_GCJ" = relink; then
17432   # Fast installation is not supported
17433   enable_fast_install=no
17434 elif test "$shlibpath_overrides_runpath" = yes ||
17435      test "$enable_shared" = no; then
17436   # Fast installation is not necessary
17437   enable_fast_install=needless
17438 fi
17439
17440 striplib=
17441 old_striplib=
17442 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17443 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17444 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17445   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17446   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17447   echo "$as_me:$LINENO: result: yes" >&5
17448 echo "${ECHO_T}yes" >&6
17449 else
17450 # FIXME - insert some real tests, host_os isn't really good enough
17451   case $host_os in
17452    darwin*)
17453        if test -n "$STRIP" ; then
17454          striplib="$STRIP -x"
17455          echo "$as_me:$LINENO: result: yes" >&5
17456 echo "${ECHO_T}yes" >&6
17457        else
17458   echo "$as_me:$LINENO: result: no" >&5
17459 echo "${ECHO_T}no" >&6
17460 fi
17461        ;;
17462    *)
17463   echo "$as_me:$LINENO: result: no" >&5
17464 echo "${ECHO_T}no" >&6
17465     ;;
17466   esac
17467 fi
17468
17469 if test "x$enable_dlopen" != xyes; then
17470   enable_dlopen=unknown
17471   enable_dlopen_self=unknown
17472   enable_dlopen_self_static=unknown
17473 else
17474   lt_cv_dlopen=no
17475   lt_cv_dlopen_libs=
17476
17477   case $host_os in
17478   beos*)
17479     lt_cv_dlopen="load_add_on"
17480     lt_cv_dlopen_libs=
17481     lt_cv_dlopen_self=yes
17482     ;;
17483
17484   mingw* | pw32*)
17485     lt_cv_dlopen="LoadLibrary"
17486     lt_cv_dlopen_libs=
17487    ;;
17488
17489   cygwin*)
17490     lt_cv_dlopen="dlopen"
17491     lt_cv_dlopen_libs=
17492    ;;
17493
17494   darwin*)
17495   # if libdl is installed we need to link against it
17496     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-ldl  $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509
17510 /* Override any gcc2 internal prototype to avoid an error.  */
17511 #ifdef __cplusplus
17512 extern "C"
17513 #endif
17514 /* We use char because int might match the return type of a gcc2
17515    builtin and then its argument prototype would still apply.  */
17516 char dlopen ();
17517 int
17518 main ()
17519 {
17520 dlopen ();
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag"
17535                          || test ! -s conftest.err'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest$ac_exeext'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547   ac_cv_lib_dl_dlopen=yes
17548 else
17549   echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ac_cv_lib_dl_dlopen=no
17553 fi
17554 rm -f conftest.err conftest.$ac_objext \
17555       conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17557 fi
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17560 if test $ac_cv_lib_dl_dlopen = yes; then
17561   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17562 else
17563
17564     lt_cv_dlopen="dyld"
17565     lt_cv_dlopen_libs=
17566     lt_cv_dlopen_self=yes
17567
17568 fi
17569
17570    ;;
17571
17572   *)
17573     echo "$as_me:$LINENO: checking for shl_load" >&5
17574 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17575 if test "${ac_cv_func_shl_load+set}" = set; then
17576   echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578   cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h.  */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h.  */
17584 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17586 #define shl_load innocuous_shl_load
17587
17588 /* System header to define __stub macros and hopefully few prototypes,
17589     which can conflict with char shl_load (); below.
17590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591     <limits.h> exists even on freestanding compilers.  */
17592
17593 #ifdef __STDC__
17594 # include <limits.h>
17595 #else
17596 # include <assert.h>
17597 #endif
17598
17599 #undef shl_load
17600
17601 /* Override any gcc2 internal prototype to avoid an error.  */
17602 #ifdef __cplusplus
17603 extern "C"
17604 {
17605 #endif
17606 /* We use char because int might match the return type of a gcc2
17607    builtin and then its argument prototype would still apply.  */
17608 char shl_load ();
17609 /* The GNU C library defines this for functions which it implements
17610     to always fail with ENOSYS.  Some functions are actually named
17611     something starting with __ and the normal name is an alias.  */
17612 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17613 choke me
17614 #else
17615 char (*f) () = shl_load;
17616 #endif
17617 #ifdef __cplusplus
17618 }
17619 #endif
17620
17621 int
17622 main ()
17623 {
17624 return f != shl_load;
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631   (eval $ac_link) 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } &&
17638          { ac_try='test -z "$ac_c_werror_flag"
17639                          || test ! -s conftest.err'
17640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641   (eval $ac_try) 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } &&
17645          { ac_try='test -s conftest$ac_exeext'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651   ac_cv_func_shl_load=yes
17652 else
17653   echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ac_cv_func_shl_load=no
17657 fi
17658 rm -f conftest.err conftest.$ac_objext \
17659       conftest$ac_exeext conftest.$ac_ext
17660 fi
17661 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17662 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17663 if test $ac_cv_func_shl_load = yes; then
17664   lt_cv_dlopen="shl_load"
17665 else
17666   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17667 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17668 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17669   echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671   ac_check_lib_save_LIBS=$LIBS
17672 LIBS="-ldld  $LIBS"
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679
17680 /* Override any gcc2 internal prototype to avoid an error.  */
17681 #ifdef __cplusplus
17682 extern "C"
17683 #endif
17684 /* We use char because int might match the return type of a gcc2
17685    builtin and then its argument prototype would still apply.  */
17686 char shl_load ();
17687 int
17688 main ()
17689 {
17690 shl_load ();
17691   ;
17692   return 0;
17693 }
17694 _ACEOF
17695 rm -f conftest.$ac_objext conftest$ac_exeext
17696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17697   (eval $ac_link) 2>conftest.er1
17698   ac_status=$?
17699   grep -v '^ *+' conftest.er1 >conftest.err
17700   rm -f conftest.er1
17701   cat conftest.err >&5
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); } &&
17704          { ac_try='test -z "$ac_c_werror_flag"
17705                          || test ! -s conftest.err'
17706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707   (eval $ac_try) 2>&5
17708   ac_status=$?
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); }; } &&
17711          { ac_try='test -s conftest$ac_exeext'
17712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713   (eval $ac_try) 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); }; }; then
17717   ac_cv_lib_dld_shl_load=yes
17718 else
17719   echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722 ac_cv_lib_dld_shl_load=no
17723 fi
17724 rm -f conftest.err conftest.$ac_objext \
17725       conftest$ac_exeext conftest.$ac_ext
17726 LIBS=$ac_check_lib_save_LIBS
17727 fi
17728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17729 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17730 if test $ac_cv_lib_dld_shl_load = yes; then
17731   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17732 else
17733   echo "$as_me:$LINENO: checking for dlopen" >&5
17734 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17735 if test "${ac_cv_func_dlopen+set}" = set; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738   cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17744 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17746 #define dlopen innocuous_dlopen
17747
17748 /* System header to define __stub macros and hopefully few prototypes,
17749     which can conflict with char dlopen (); below.
17750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17751     <limits.h> exists even on freestanding compilers.  */
17752
17753 #ifdef __STDC__
17754 # include <limits.h>
17755 #else
17756 # include <assert.h>
17757 #endif
17758
17759 #undef dlopen
17760
17761 /* Override any gcc2 internal prototype to avoid an error.  */
17762 #ifdef __cplusplus
17763 extern "C"
17764 {
17765 #endif
17766 /* We use char because int might match the return type of a gcc2
17767    builtin and then its argument prototype would still apply.  */
17768 char dlopen ();
17769 /* The GNU C library defines this for functions which it implements
17770     to always fail with ENOSYS.  Some functions are actually named
17771     something starting with __ and the normal name is an alias.  */
17772 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17773 choke me
17774 #else
17775 char (*f) () = dlopen;
17776 #endif
17777 #ifdef __cplusplus
17778 }
17779 #endif
17780
17781 int
17782 main ()
17783 {
17784 return f != dlopen;
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 rm -f conftest.$ac_objext conftest$ac_exeext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791   (eval $ac_link) 2>conftest.er1
17792   ac_status=$?
17793   grep -v '^ *+' conftest.er1 >conftest.err
17794   rm -f conftest.er1
17795   cat conftest.err >&5
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } &&
17798          { ac_try='test -z "$ac_c_werror_flag"
17799                          || test ! -s conftest.err'
17800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801   (eval $ac_try) 2>&5
17802   ac_status=$?
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); }; } &&
17805          { ac_try='test -s conftest$ac_exeext'
17806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807   (eval $ac_try) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); }; }; then
17811   ac_cv_func_dlopen=yes
17812 else
17813   echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17815
17816 ac_cv_func_dlopen=no
17817 fi
17818 rm -f conftest.err conftest.$ac_objext \
17819       conftest$ac_exeext conftest.$ac_ext
17820 fi
17821 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17822 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17823 if test $ac_cv_func_dlopen = yes; then
17824   lt_cv_dlopen="dlopen"
17825 else
17826   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17829   echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831   ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-ldl  $LIBS"
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h.  */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h.  */
17839
17840 /* Override any gcc2 internal prototype to avoid an error.  */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 /* We use char because int might match the return type of a gcc2
17845    builtin and then its argument prototype would still apply.  */
17846 char dlopen ();
17847 int
17848 main ()
17849 {
17850 dlopen ();
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857   (eval $ac_link) 2>conftest.er1
17858   ac_status=$?
17859   grep -v '^ *+' conftest.er1 >conftest.err
17860   rm -f conftest.er1
17861   cat conftest.err >&5
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); } &&
17864          { ac_try='test -z "$ac_c_werror_flag"
17865                          || test ! -s conftest.err'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; } &&
17871          { ac_try='test -s conftest$ac_exeext'
17872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873   (eval $ac_try) 2>&5
17874   ac_status=$?
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); }; }; then
17877   ac_cv_lib_dl_dlopen=yes
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 ac_cv_lib_dl_dlopen=no
17883 fi
17884 rm -f conftest.err conftest.$ac_objext \
17885       conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_lib_save_LIBS
17887 fi
17888 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17890 if test $ac_cv_lib_dl_dlopen = yes; then
17891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17892 else
17893   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17894 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17895 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17896   echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898   ac_check_lib_save_LIBS=$LIBS
17899 LIBS="-lsvld  $LIBS"
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906
17907 /* Override any gcc2 internal prototype to avoid an error.  */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 /* We use char because int might match the return type of a gcc2
17912    builtin and then its argument prototype would still apply.  */
17913 char dlopen ();
17914 int
17915 main ()
17916 {
17917 dlopen ();
17918   ;
17919   return 0;
17920 }
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924   (eval $ac_link) 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } &&
17931          { ac_try='test -z "$ac_c_werror_flag"
17932                          || test ! -s conftest.err'
17933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934   (eval $ac_try) 2>&5
17935   ac_status=$?
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); }; } &&
17938          { ac_try='test -s conftest$ac_exeext'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; }; then
17944   ac_cv_lib_svld_dlopen=yes
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 ac_cv_lib_svld_dlopen=no
17950 fi
17951 rm -f conftest.err conftest.$ac_objext \
17952       conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17954 fi
17955 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17957 if test $ac_cv_lib_svld_dlopen = yes; then
17958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17959 else
17960   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965   ac_check_lib_save_LIBS=$LIBS
17966 LIBS="-ldld  $LIBS"
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h.  */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h.  */
17973
17974 /* Override any gcc2 internal prototype to avoid an error.  */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 /* We use char because int might match the return type of a gcc2
17979    builtin and then its argument prototype would still apply.  */
17980 char dld_link ();
17981 int
17982 main ()
17983 {
17984 dld_link ();
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991   (eval $ac_link) 2>conftest.er1
17992   ac_status=$?
17993   grep -v '^ *+' conftest.er1 >conftest.err
17994   rm -f conftest.er1
17995   cat conftest.err >&5
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); } &&
17998          { ac_try='test -z "$ac_c_werror_flag"
17999                          || test ! -s conftest.err'
18000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001   (eval $ac_try) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; } &&
18005          { ac_try='test -s conftest$ac_exeext'
18006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007   (eval $ac_try) 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); }; }; then
18011   ac_cv_lib_dld_dld_link=yes
18012 else
18013   echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 ac_cv_lib_dld_dld_link=no
18017 fi
18018 rm -f conftest.err conftest.$ac_objext \
18019       conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18021 fi
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18023 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18024 if test $ac_cv_lib_dld_dld_link = yes; then
18025   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18026 fi
18027
18028
18029 fi
18030
18031
18032 fi
18033
18034
18035 fi
18036
18037
18038 fi
18039
18040
18041 fi
18042
18043     ;;
18044   esac
18045
18046   if test "x$lt_cv_dlopen" != xno; then
18047     enable_dlopen=yes
18048   else
18049     enable_dlopen=no
18050   fi
18051
18052   case $lt_cv_dlopen in
18053   dlopen)
18054     save_CPPFLAGS="$CPPFLAGS"
18055     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18056
18057     save_LDFLAGS="$LDFLAGS"
18058     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18059
18060     save_LIBS="$LIBS"
18061     LIBS="$lt_cv_dlopen_libs $LIBS"
18062
18063     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18064 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18065 if test "${lt_cv_dlopen_self+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068           if test "$cross_compiling" = yes; then :
18069   lt_cv_dlopen_self=cross
18070 else
18071   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18072   lt_status=$lt_dlunknown
18073   cat > conftest.$ac_ext <<EOF
18074 #line 18074 "configure"
18075 #include "confdefs.h"
18076
18077 #if HAVE_DLFCN_H
18078 #include <dlfcn.h>
18079 #endif
18080
18081 #include <stdio.h>
18082
18083 #ifdef RTLD_GLOBAL
18084 #  define LT_DLGLOBAL           RTLD_GLOBAL
18085 #else
18086 #  ifdef DL_GLOBAL
18087 #    define LT_DLGLOBAL         DL_GLOBAL
18088 #  else
18089 #    define LT_DLGLOBAL         0
18090 #  endif
18091 #endif
18092
18093 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18094    find out it does not work in some platform. */
18095 #ifndef LT_DLLAZY_OR_NOW
18096 #  ifdef RTLD_LAZY
18097 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18098 #  else
18099 #    ifdef DL_LAZY
18100 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18101 #    else
18102 #      ifdef RTLD_NOW
18103 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18104 #      else
18105 #        ifdef DL_NOW
18106 #          define LT_DLLAZY_OR_NOW      DL_NOW
18107 #        else
18108 #          define LT_DLLAZY_OR_NOW      0
18109 #        endif
18110 #      endif
18111 #    endif
18112 #  endif
18113 #endif
18114
18115 #ifdef __cplusplus
18116 extern "C" void exit (int);
18117 #endif
18118
18119 void fnord() { int i=42;}
18120 int main ()
18121 {
18122   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18123   int status = $lt_dlunknown;
18124
18125   if (self)
18126     {
18127       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18128       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18129       /* dlclose (self); */
18130     }
18131
18132     exit (status);
18133 }
18134 EOF
18135   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18136   (eval $ac_link) 2>&5
18137   ac_status=$?
18138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18140     (./conftest; exit; ) 2>/dev/null
18141     lt_status=$?
18142     case x$lt_status in
18143       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18144       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18145       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18146     esac
18147   else :
18148     # compilation failed
18149     lt_cv_dlopen_self=no
18150   fi
18151 fi
18152 rm -fr conftest*
18153
18154
18155 fi
18156 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18157 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18158
18159     if test "x$lt_cv_dlopen_self" = xyes; then
18160       LDFLAGS="$LDFLAGS $link_static_flag"
18161       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18162 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18163 if test "${lt_cv_dlopen_self_static+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166           if test "$cross_compiling" = yes; then :
18167   lt_cv_dlopen_self_static=cross
18168 else
18169   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18170   lt_status=$lt_dlunknown
18171   cat > conftest.$ac_ext <<EOF
18172 #line 18172 "configure"
18173 #include "confdefs.h"
18174
18175 #if HAVE_DLFCN_H
18176 #include <dlfcn.h>
18177 #endif
18178
18179 #include <stdio.h>
18180
18181 #ifdef RTLD_GLOBAL
18182 #  define LT_DLGLOBAL           RTLD_GLOBAL
18183 #else
18184 #  ifdef DL_GLOBAL
18185 #    define LT_DLGLOBAL         DL_GLOBAL
18186 #  else
18187 #    define LT_DLGLOBAL         0
18188 #  endif
18189 #endif
18190
18191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18192    find out it does not work in some platform. */
18193 #ifndef LT_DLLAZY_OR_NOW
18194 #  ifdef RTLD_LAZY
18195 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18196 #  else
18197 #    ifdef DL_LAZY
18198 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18199 #    else
18200 #      ifdef RTLD_NOW
18201 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18202 #      else
18203 #        ifdef DL_NOW
18204 #          define LT_DLLAZY_OR_NOW      DL_NOW
18205 #        else
18206 #          define LT_DLLAZY_OR_NOW      0
18207 #        endif
18208 #      endif
18209 #    endif
18210 #  endif
18211 #endif
18212
18213 #ifdef __cplusplus
18214 extern "C" void exit (int);
18215 #endif
18216
18217 void fnord() { int i=42;}
18218 int main ()
18219 {
18220   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18221   int status = $lt_dlunknown;
18222
18223   if (self)
18224     {
18225       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18226       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18227       /* dlclose (self); */
18228     }
18229
18230     exit (status);
18231 }
18232 EOF
18233   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234   (eval $ac_link) 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18238     (./conftest; exit; ) 2>/dev/null
18239     lt_status=$?
18240     case x$lt_status in
18241       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18242       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18243       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18244     esac
18245   else :
18246     # compilation failed
18247     lt_cv_dlopen_self_static=no
18248   fi
18249 fi
18250 rm -fr conftest*
18251
18252
18253 fi
18254 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18255 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18256     fi
18257
18258     CPPFLAGS="$save_CPPFLAGS"
18259     LDFLAGS="$save_LDFLAGS"
18260     LIBS="$save_LIBS"
18261     ;;
18262   esac
18263
18264   case $lt_cv_dlopen_self in
18265   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18266   *) enable_dlopen_self=unknown ;;
18267   esac
18268
18269   case $lt_cv_dlopen_self_static in
18270   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18271   *) enable_dlopen_self_static=unknown ;;
18272   esac
18273 fi
18274
18275
18276 # The else clause should only fire when bootstrapping the
18277 # libtool distribution, otherwise you forgot to ship ltmain.sh
18278 # with your package, and you will get complaints that there are
18279 # no rules to generate ltmain.sh.
18280 if test -f "$ltmain"; then
18281   # See if we are running on zsh, and set the options which allow our commands through
18282   # without removal of \ escapes.
18283   if test -n "${ZSH_VERSION+set}" ; then
18284     setopt NO_GLOB_SUBST
18285   fi
18286   # Now quote all the things that may contain metacharacters while being
18287   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18288   # variables and quote the copies for generation of the libtool script.
18289   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18290     SED SHELL STRIP \
18291     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18292     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18293     deplibs_check_method reload_flag reload_cmds need_locks \
18294     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18295     lt_cv_sys_global_symbol_to_c_name_address \
18296     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18297     old_postinstall_cmds old_postuninstall_cmds \
18298     compiler_GCJ \
18299     CC_GCJ \
18300     LD_GCJ \
18301     lt_prog_compiler_wl_GCJ \
18302     lt_prog_compiler_pic_GCJ \
18303     lt_prog_compiler_static_GCJ \
18304     lt_prog_compiler_no_builtin_flag_GCJ \
18305     export_dynamic_flag_spec_GCJ \
18306     thread_safe_flag_spec_GCJ \
18307     whole_archive_flag_spec_GCJ \
18308     enable_shared_with_static_runtimes_GCJ \
18309     old_archive_cmds_GCJ \
18310     old_archive_from_new_cmds_GCJ \
18311     predep_objects_GCJ \
18312     postdep_objects_GCJ \
18313     predeps_GCJ \
18314     postdeps_GCJ \
18315     compiler_lib_search_path_GCJ \
18316     archive_cmds_GCJ \
18317     archive_expsym_cmds_GCJ \
18318     postinstall_cmds_GCJ \
18319     postuninstall_cmds_GCJ \
18320     old_archive_from_expsyms_cmds_GCJ \
18321     allow_undefined_flag_GCJ \
18322     no_undefined_flag_GCJ \
18323     export_symbols_cmds_GCJ \
18324     hardcode_libdir_flag_spec_GCJ \
18325     hardcode_libdir_flag_spec_ld_GCJ \
18326     hardcode_libdir_separator_GCJ \
18327     hardcode_automatic_GCJ \
18328     module_cmds_GCJ \
18329     module_expsym_cmds_GCJ \
18330     lt_cv_prog_compiler_c_o_GCJ \
18331     exclude_expsyms_GCJ \
18332     include_expsyms_GCJ; do
18333
18334     case $var in
18335     old_archive_cmds_GCJ | \
18336     old_archive_from_new_cmds_GCJ | \
18337     archive_cmds_GCJ | \
18338     archive_expsym_cmds_GCJ | \
18339     module_cmds_GCJ | \
18340     module_expsym_cmds_GCJ | \
18341     old_archive_from_expsyms_cmds_GCJ | \
18342     export_symbols_cmds_GCJ | \
18343     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18344     postinstall_cmds | postuninstall_cmds | \
18345     old_postinstall_cmds | old_postuninstall_cmds | \
18346     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18347       # Double-quote double-evaled strings.
18348       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18349       ;;
18350     *)
18351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18352       ;;
18353     esac
18354   done
18355
18356   case $lt_echo in
18357   *'\$0 --fallback-echo"')
18358     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18359     ;;
18360   esac
18361
18362 cfgfile="$ofile"
18363
18364   cat <<__EOF__ >> "$cfgfile"
18365 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18366
18367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18368
18369 # Shell to use when invoking shell scripts.
18370 SHELL=$lt_SHELL
18371
18372 # Whether or not to build shared libraries.
18373 build_libtool_libs=$enable_shared
18374
18375 # Whether or not to build static libraries.
18376 build_old_libs=$enable_static
18377
18378 # Whether or not to add -lc for building shared libraries.
18379 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18380
18381 # Whether or not to disallow shared libs when runtime libs are static
18382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18383
18384 # Whether or not to optimize for fast installation.
18385 fast_install=$enable_fast_install
18386
18387 # The host system.
18388 host_alias=$host_alias
18389 host=$host
18390
18391 # An echo program that does not interpret backslashes.
18392 echo=$lt_echo
18393
18394 # The archiver.
18395 AR=$lt_AR
18396 AR_FLAGS=$lt_AR_FLAGS
18397
18398 # A C compiler.
18399 LTCC=$lt_LTCC
18400
18401 # A language-specific compiler.
18402 CC=$lt_compiler_GCJ
18403
18404 # Is the compiler the GNU C compiler?
18405 with_gcc=$GCC_GCJ
18406
18407 # An ERE matcher.
18408 EGREP=$lt_EGREP
18409
18410 # The linker used to build libraries.
18411 LD=$lt_LD_GCJ
18412
18413 # Whether we need hard or soft links.
18414 LN_S=$lt_LN_S
18415
18416 # A BSD-compatible nm program.
18417 NM=$lt_NM
18418
18419 # A symbol stripping program
18420 STRIP=$lt_STRIP
18421
18422 # Used to examine libraries when file_magic_cmd begins "file"
18423 MAGIC_CMD=$MAGIC_CMD
18424
18425 # Used on cygwin: DLL creation program.
18426 DLLTOOL="$DLLTOOL"
18427
18428 # Used on cygwin: object dumper.
18429 OBJDUMP="$OBJDUMP"
18430
18431 # Used on cygwin: assembler.
18432 AS="$AS"
18433
18434 # The name of the directory that contains temporary libtool files.
18435 objdir=$objdir
18436
18437 # How to create reloadable object files.
18438 reload_flag=$lt_reload_flag
18439 reload_cmds=$lt_reload_cmds
18440
18441 # How to pass a linker flag through the compiler.
18442 wl=$lt_lt_prog_compiler_wl_GCJ
18443
18444 # Object file suffix (normally "o").
18445 objext="$ac_objext"
18446
18447 # Old archive suffix (normally "a").
18448 libext="$libext"
18449
18450 # Shared library suffix (normally ".so").
18451 shrext_cmds='$shrext_cmds'
18452
18453 # Executable file suffix (normally "").
18454 exeext="$exeext"
18455
18456 # Additional compiler flags for building library objects.
18457 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18458 pic_mode=$pic_mode
18459
18460 # What is the maximum length of a command?
18461 max_cmd_len=$lt_cv_sys_max_cmd_len
18462
18463 # Does compiler simultaneously support -c and -o options?
18464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18465
18466 # Must we lock files when doing compilation ?
18467 need_locks=$lt_need_locks
18468
18469 # Do we need the lib prefix for modules?
18470 need_lib_prefix=$need_lib_prefix
18471
18472 # Do we need a version for libraries?
18473 need_version=$need_version
18474
18475 # Whether dlopen is supported.
18476 dlopen_support=$enable_dlopen
18477
18478 # Whether dlopen of programs is supported.
18479 dlopen_self=$enable_dlopen_self
18480
18481 # Whether dlopen of statically linked programs is supported.
18482 dlopen_self_static=$enable_dlopen_self_static
18483
18484 # Compiler flag to prevent dynamic linking.
18485 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18486
18487 # Compiler flag to turn off builtin functions.
18488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18489
18490 # Compiler flag to allow reflexive dlopens.
18491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18492
18493 # Compiler flag to generate shared objects directly from archives.
18494 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18495
18496 # Compiler flag to generate thread-safe objects.
18497 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18498
18499 # Library versioning type.
18500 version_type=$version_type
18501
18502 # Format of library name prefix.
18503 libname_spec=$lt_libname_spec
18504
18505 # List of archive names.  First name is the real one, the rest are links.
18506 # The last name is the one that the linker finds with -lNAME.
18507 library_names_spec=$lt_library_names_spec
18508
18509 # The coded name of the library, if different from the real name.
18510 soname_spec=$lt_soname_spec
18511
18512 # Commands used to build and install an old-style archive.
18513 RANLIB=$lt_RANLIB
18514 old_archive_cmds=$lt_old_archive_cmds_GCJ
18515 old_postinstall_cmds=$lt_old_postinstall_cmds
18516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18517
18518 # Create an old-style archive from a shared archive.
18519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18520
18521 # Create a temporary old-style archive to link instead of a shared archive.
18522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18523
18524 # Commands used to build and install a shared archive.
18525 archive_cmds=$lt_archive_cmds_GCJ
18526 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18527 postinstall_cmds=$lt_postinstall_cmds
18528 postuninstall_cmds=$lt_postuninstall_cmds
18529
18530 # Commands used to build a loadable module (assumed same as above if empty)
18531 module_cmds=$lt_module_cmds_GCJ
18532 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18533
18534 # Commands to strip libraries.
18535 old_striplib=$lt_old_striplib
18536 striplib=$lt_striplib
18537
18538 # Dependencies to place before the objects being linked to create a
18539 # shared library.
18540 predep_objects=$lt_predep_objects_GCJ
18541
18542 # Dependencies to place after the objects being linked to create a
18543 # shared library.
18544 postdep_objects=$lt_postdep_objects_GCJ
18545
18546 # Dependencies to place before the objects being linked to create a
18547 # shared library.
18548 predeps=$lt_predeps_GCJ
18549
18550 # Dependencies to place after the objects being linked to create a
18551 # shared library.
18552 postdeps=$lt_postdeps_GCJ
18553
18554 # The library search path used internally by the compiler when linking
18555 # a shared library.
18556 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18557
18558 # Method to check whether dependent libraries are shared objects.
18559 deplibs_check_method=$lt_deplibs_check_method
18560
18561 # Command to use when deplibs_check_method == file_magic.
18562 file_magic_cmd=$lt_file_magic_cmd
18563
18564 # Flag that allows shared libraries with undefined symbols to be built.
18565 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18566
18567 # Flag that forces no undefined symbols.
18568 no_undefined_flag=$lt_no_undefined_flag_GCJ
18569
18570 # Commands used to finish a libtool library installation in a directory.
18571 finish_cmds=$lt_finish_cmds
18572
18573 # Same as above, but a single script fragment to be evaled but not shown.
18574 finish_eval=$lt_finish_eval
18575
18576 # Take the output of nm and produce a listing of raw symbols and C names.
18577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18578
18579 # Transform the output of nm in a proper C declaration
18580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18581
18582 # Transform the output of nm in a C name address pair
18583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18584
18585 # This is the shared library runtime path variable.
18586 runpath_var=$runpath_var
18587
18588 # This is the shared library path variable.
18589 shlibpath_var=$shlibpath_var
18590
18591 # Is shlibpath searched before the hard-coded library search path?
18592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18593
18594 # How to hardcode a shared library path into an executable.
18595 hardcode_action=$hardcode_action_GCJ
18596
18597 # Whether we should hardcode library paths into libraries.
18598 hardcode_into_libs=$hardcode_into_libs
18599
18600 # Flag to hardcode \$libdir into a binary during linking.
18601 # This must work even if \$libdir does not exist.
18602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18603
18604 # If ld is used when linking, flag to hardcode \$libdir into
18605 # a binary during linking. This must work even if \$libdir does
18606 # not exist.
18607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18608
18609 # Whether we need a single -rpath flag with a separated argument.
18610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18611
18612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18613 # resulting binary.
18614 hardcode_direct=$hardcode_direct_GCJ
18615
18616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18617 # resulting binary.
18618 hardcode_minus_L=$hardcode_minus_L_GCJ
18619
18620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18621 # the resulting binary.
18622 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18623
18624 # Set to yes if building a shared library automatically hardcodes DIR into the library
18625 # and all subsequent libraries and executables linked against it.
18626 hardcode_automatic=$hardcode_automatic_GCJ
18627
18628 # Variables whose values should be saved in libtool wrapper scripts and
18629 # restored at relink time.
18630 variables_saved_for_relink="$variables_saved_for_relink"
18631
18632 # Whether libtool must link a program against all its dependency libraries.
18633 link_all_deplibs=$link_all_deplibs_GCJ
18634
18635 # Compile-time system search path for libraries
18636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18637
18638 # Run-time system search path for libraries
18639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18640
18641 # Fix the shell variable \$srcfile for the compiler.
18642 fix_srcfile_path="$fix_srcfile_path_GCJ"
18643
18644 # Set to yes if exported symbols are required.
18645 always_export_symbols=$always_export_symbols_GCJ
18646
18647 # The commands to list exported symbols.
18648 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18649
18650 # The commands to extract the exported symbol list from a shared archive.
18651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18652
18653 # Symbols that should not be listed in the preloaded symbols.
18654 exclude_expsyms=$lt_exclude_expsyms_GCJ
18655
18656 # Symbols that must always be exported.
18657 include_expsyms=$lt_include_expsyms_GCJ
18658
18659 # ### END LIBTOOL TAG CONFIG: $tagname
18660
18661 __EOF__
18662
18663
18664 else
18665   # If there is no Makefile yet, we rely on a make rule to execute
18666   # `config.status --recheck' to rerun these tests and create the
18667   # libtool script then.
18668   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18669   if test -f "$ltmain_in"; then
18670     test -f Makefile && make "$ltmain"
18671   fi
18672 fi
18673
18674
18675 ac_ext=c
18676 ac_cpp='$CPP $CPPFLAGS'
18677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18680
18681 CC="$lt_save_CC"
18682
18683         else
18684           tagname=""
18685         fi
18686         ;;
18687
18688       RC)
18689
18690
18691
18692 # Source file extension for RC test sources.
18693 ac_ext=rc
18694
18695 # Object file extension for compiled RC test sources.
18696 objext=o
18697 objext_RC=$objext
18698
18699 # Code to be used in simple compile tests
18700 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18701
18702 # Code to be used in simple link tests
18703 lt_simple_link_test_code="$lt_simple_compile_test_code"
18704
18705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18706
18707 # If no C compiler was specified, use CC.
18708 LTCC=${LTCC-"$CC"}
18709
18710 # Allow CC to be a program name with arguments.
18711 compiler=$CC
18712
18713
18714 # Allow CC to be a program name with arguments.
18715 lt_save_CC="$CC"
18716 CC=${RC-"windres"}
18717 compiler=$CC
18718 compiler_RC=$CC
18719 lt_cv_prog_compiler_c_o_RC=yes
18720
18721 # The else clause should only fire when bootstrapping the
18722 # libtool distribution, otherwise you forgot to ship ltmain.sh
18723 # with your package, and you will get complaints that there are
18724 # no rules to generate ltmain.sh.
18725 if test -f "$ltmain"; then
18726   # See if we are running on zsh, and set the options which allow our commands through
18727   # without removal of \ escapes.
18728   if test -n "${ZSH_VERSION+set}" ; then
18729     setopt NO_GLOB_SUBST
18730   fi
18731   # Now quote all the things that may contain metacharacters while being
18732   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18733   # variables and quote the copies for generation of the libtool script.
18734   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18735     SED SHELL STRIP \
18736     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18737     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18738     deplibs_check_method reload_flag reload_cmds need_locks \
18739     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18740     lt_cv_sys_global_symbol_to_c_name_address \
18741     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18742     old_postinstall_cmds old_postuninstall_cmds \
18743     compiler_RC \
18744     CC_RC \
18745     LD_RC \
18746     lt_prog_compiler_wl_RC \
18747     lt_prog_compiler_pic_RC \
18748     lt_prog_compiler_static_RC \
18749     lt_prog_compiler_no_builtin_flag_RC \
18750     export_dynamic_flag_spec_RC \
18751     thread_safe_flag_spec_RC \
18752     whole_archive_flag_spec_RC \
18753     enable_shared_with_static_runtimes_RC \
18754     old_archive_cmds_RC \
18755     old_archive_from_new_cmds_RC \
18756     predep_objects_RC \
18757     postdep_objects_RC \
18758     predeps_RC \
18759     postdeps_RC \
18760     compiler_lib_search_path_RC \
18761     archive_cmds_RC \
18762     archive_expsym_cmds_RC \
18763     postinstall_cmds_RC \
18764     postuninstall_cmds_RC \
18765     old_archive_from_expsyms_cmds_RC \
18766     allow_undefined_flag_RC \
18767     no_undefined_flag_RC \
18768     export_symbols_cmds_RC \
18769     hardcode_libdir_flag_spec_RC \
18770     hardcode_libdir_flag_spec_ld_RC \
18771     hardcode_libdir_separator_RC \
18772     hardcode_automatic_RC \
18773     module_cmds_RC \
18774     module_expsym_cmds_RC \
18775     lt_cv_prog_compiler_c_o_RC \
18776     exclude_expsyms_RC \
18777     include_expsyms_RC; do
18778
18779     case $var in
18780     old_archive_cmds_RC | \
18781     old_archive_from_new_cmds_RC | \
18782     archive_cmds_RC | \
18783     archive_expsym_cmds_RC | \
18784     module_cmds_RC | \
18785     module_expsym_cmds_RC | \
18786     old_archive_from_expsyms_cmds_RC | \
18787     export_symbols_cmds_RC | \
18788     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18789     postinstall_cmds | postuninstall_cmds | \
18790     old_postinstall_cmds | old_postuninstall_cmds | \
18791     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18792       # Double-quote double-evaled strings.
18793       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18794       ;;
18795     *)
18796       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18797       ;;
18798     esac
18799   done
18800
18801   case $lt_echo in
18802   *'\$0 --fallback-echo"')
18803     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18804     ;;
18805   esac
18806
18807 cfgfile="$ofile"
18808
18809   cat <<__EOF__ >> "$cfgfile"
18810 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18811
18812 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18813
18814 # Shell to use when invoking shell scripts.
18815 SHELL=$lt_SHELL
18816
18817 # Whether or not to build shared libraries.
18818 build_libtool_libs=$enable_shared
18819
18820 # Whether or not to build static libraries.
18821 build_old_libs=$enable_static
18822
18823 # Whether or not to add -lc for building shared libraries.
18824 build_libtool_need_lc=$archive_cmds_need_lc_RC
18825
18826 # Whether or not to disallow shared libs when runtime libs are static
18827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18828
18829 # Whether or not to optimize for fast installation.
18830 fast_install=$enable_fast_install
18831
18832 # The host system.
18833 host_alias=$host_alias
18834 host=$host
18835
18836 # An echo program that does not interpret backslashes.
18837 echo=$lt_echo
18838
18839 # The archiver.
18840 AR=$lt_AR
18841 AR_FLAGS=$lt_AR_FLAGS
18842
18843 # A C compiler.
18844 LTCC=$lt_LTCC
18845
18846 # A language-specific compiler.
18847 CC=$lt_compiler_RC
18848
18849 # Is the compiler the GNU C compiler?
18850 with_gcc=$GCC_RC
18851
18852 # An ERE matcher.
18853 EGREP=$lt_EGREP
18854
18855 # The linker used to build libraries.
18856 LD=$lt_LD_RC
18857
18858 # Whether we need hard or soft links.
18859 LN_S=$lt_LN_S
18860
18861 # A BSD-compatible nm program.
18862 NM=$lt_NM
18863
18864 # A symbol stripping program
18865 STRIP=$lt_STRIP
18866
18867 # Used to examine libraries when file_magic_cmd begins "file"
18868 MAGIC_CMD=$MAGIC_CMD
18869
18870 # Used on cygwin: DLL creation program.
18871 DLLTOOL="$DLLTOOL"
18872
18873 # Used on cygwin: object dumper.
18874 OBJDUMP="$OBJDUMP"
18875
18876 # Used on cygwin: assembler.
18877 AS="$AS"
18878
18879 # The name of the directory that contains temporary libtool files.
18880 objdir=$objdir
18881
18882 # How to create reloadable object files.
18883 reload_flag=$lt_reload_flag
18884 reload_cmds=$lt_reload_cmds
18885
18886 # How to pass a linker flag through the compiler.
18887 wl=$lt_lt_prog_compiler_wl_RC
18888
18889 # Object file suffix (normally "o").
18890 objext="$ac_objext"
18891
18892 # Old archive suffix (normally "a").
18893 libext="$libext"
18894
18895 # Shared library suffix (normally ".so").
18896 shrext_cmds='$shrext_cmds'
18897
18898 # Executable file suffix (normally "").
18899 exeext="$exeext"
18900
18901 # Additional compiler flags for building library objects.
18902 pic_flag=$lt_lt_prog_compiler_pic_RC
18903 pic_mode=$pic_mode
18904
18905 # What is the maximum length of a command?
18906 max_cmd_len=$lt_cv_sys_max_cmd_len
18907
18908 # Does compiler simultaneously support -c and -o options?
18909 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18910
18911 # Must we lock files when doing compilation ?
18912 need_locks=$lt_need_locks
18913
18914 # Do we need the lib prefix for modules?
18915 need_lib_prefix=$need_lib_prefix
18916
18917 # Do we need a version for libraries?
18918 need_version=$need_version
18919
18920 # Whether dlopen is supported.
18921 dlopen_support=$enable_dlopen
18922
18923 # Whether dlopen of programs is supported.
18924 dlopen_self=$enable_dlopen_self
18925
18926 # Whether dlopen of statically linked programs is supported.
18927 dlopen_self_static=$enable_dlopen_self_static
18928
18929 # Compiler flag to prevent dynamic linking.
18930 link_static_flag=$lt_lt_prog_compiler_static_RC
18931
18932 # Compiler flag to turn off builtin functions.
18933 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18934
18935 # Compiler flag to allow reflexive dlopens.
18936 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18937
18938 # Compiler flag to generate shared objects directly from archives.
18939 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18940
18941 # Compiler flag to generate thread-safe objects.
18942 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18943
18944 # Library versioning type.
18945 version_type=$version_type
18946
18947 # Format of library name prefix.
18948 libname_spec=$lt_libname_spec
18949
18950 # List of archive names.  First name is the real one, the rest are links.
18951 # The last name is the one that the linker finds with -lNAME.
18952 library_names_spec=$lt_library_names_spec
18953
18954 # The coded name of the library, if different from the real name.
18955 soname_spec=$lt_soname_spec
18956
18957 # Commands used to build and install an old-style archive.
18958 RANLIB=$lt_RANLIB
18959 old_archive_cmds=$lt_old_archive_cmds_RC
18960 old_postinstall_cmds=$lt_old_postinstall_cmds
18961 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18962
18963 # Create an old-style archive from a shared archive.
18964 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18965
18966 # Create a temporary old-style archive to link instead of a shared archive.
18967 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18968
18969 # Commands used to build and install a shared archive.
18970 archive_cmds=$lt_archive_cmds_RC
18971 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18972 postinstall_cmds=$lt_postinstall_cmds
18973 postuninstall_cmds=$lt_postuninstall_cmds
18974
18975 # Commands used to build a loadable module (assumed same as above if empty)
18976 module_cmds=$lt_module_cmds_RC
18977 module_expsym_cmds=$lt_module_expsym_cmds_RC
18978
18979 # Commands to strip libraries.
18980 old_striplib=$lt_old_striplib
18981 striplib=$lt_striplib
18982
18983 # Dependencies to place before the objects being linked to create a
18984 # shared library.
18985 predep_objects=$lt_predep_objects_RC
18986
18987 # Dependencies to place after the objects being linked to create a
18988 # shared library.
18989 postdep_objects=$lt_postdep_objects_RC
18990
18991 # Dependencies to place before the objects being linked to create a
18992 # shared library.
18993 predeps=$lt_predeps_RC
18994
18995 # Dependencies to place after the objects being linked to create a
18996 # shared library.
18997 postdeps=$lt_postdeps_RC
18998
18999 # The library search path used internally by the compiler when linking
19000 # a shared library.
19001 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19002
19003 # Method to check whether dependent libraries are shared objects.
19004 deplibs_check_method=$lt_deplibs_check_method
19005
19006 # Command to use when deplibs_check_method == file_magic.
19007 file_magic_cmd=$lt_file_magic_cmd
19008
19009 # Flag that allows shared libraries with undefined symbols to be built.
19010 allow_undefined_flag=$lt_allow_undefined_flag_RC
19011
19012 # Flag that forces no undefined symbols.
19013 no_undefined_flag=$lt_no_undefined_flag_RC
19014
19015 # Commands used to finish a libtool library installation in a directory.
19016 finish_cmds=$lt_finish_cmds
19017
19018 # Same as above, but a single script fragment to be evaled but not shown.
19019 finish_eval=$lt_finish_eval
19020
19021 # Take the output of nm and produce a listing of raw symbols and C names.
19022 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19023
19024 # Transform the output of nm in a proper C declaration
19025 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19026
19027 # Transform the output of nm in a C name address pair
19028 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19029
19030 # This is the shared library runtime path variable.
19031 runpath_var=$runpath_var
19032
19033 # This is the shared library path variable.
19034 shlibpath_var=$shlibpath_var
19035
19036 # Is shlibpath searched before the hard-coded library search path?
19037 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19038
19039 # How to hardcode a shared library path into an executable.
19040 hardcode_action=$hardcode_action_RC
19041
19042 # Whether we should hardcode library paths into libraries.
19043 hardcode_into_libs=$hardcode_into_libs
19044
19045 # Flag to hardcode \$libdir into a binary during linking.
19046 # This must work even if \$libdir does not exist.
19047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19048
19049 # If ld is used when linking, flag to hardcode \$libdir into
19050 # a binary during linking. This must work even if \$libdir does
19051 # not exist.
19052 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19053
19054 # Whether we need a single -rpath flag with a separated argument.
19055 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19056
19057 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19058 # resulting binary.
19059 hardcode_direct=$hardcode_direct_RC
19060
19061 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19062 # resulting binary.
19063 hardcode_minus_L=$hardcode_minus_L_RC
19064
19065 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19066 # the resulting binary.
19067 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19068
19069 # Set to yes if building a shared library automatically hardcodes DIR into the library
19070 # and all subsequent libraries and executables linked against it.
19071 hardcode_automatic=$hardcode_automatic_RC
19072
19073 # Variables whose values should be saved in libtool wrapper scripts and
19074 # restored at relink time.
19075 variables_saved_for_relink="$variables_saved_for_relink"
19076
19077 # Whether libtool must link a program against all its dependency libraries.
19078 link_all_deplibs=$link_all_deplibs_RC
19079
19080 # Compile-time system search path for libraries
19081 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19082
19083 # Run-time system search path for libraries
19084 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19085
19086 # Fix the shell variable \$srcfile for the compiler.
19087 fix_srcfile_path="$fix_srcfile_path_RC"
19088
19089 # Set to yes if exported symbols are required.
19090 always_export_symbols=$always_export_symbols_RC
19091
19092 # The commands to list exported symbols.
19093 export_symbols_cmds=$lt_export_symbols_cmds_RC
19094
19095 # The commands to extract the exported symbol list from a shared archive.
19096 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19097
19098 # Symbols that should not be listed in the preloaded symbols.
19099 exclude_expsyms=$lt_exclude_expsyms_RC
19100
19101 # Symbols that must always be exported.
19102 include_expsyms=$lt_include_expsyms_RC
19103
19104 # ### END LIBTOOL TAG CONFIG: $tagname
19105
19106 __EOF__
19107
19108
19109 else
19110   # If there is no Makefile yet, we rely on a make rule to execute
19111   # `config.status --recheck' to rerun these tests and create the
19112   # libtool script then.
19113   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19114   if test -f "$ltmain_in"; then
19115     test -f Makefile && make "$ltmain"
19116   fi
19117 fi
19118
19119
19120 ac_ext=c
19121 ac_cpp='$CPP $CPPFLAGS'
19122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19125
19126 CC="$lt_save_CC"
19127
19128         ;;
19129
19130       *)
19131         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19132 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19133    { (exit 1); exit 1; }; }
19134         ;;
19135       esac
19136
19137       # Append the new tag name to the list of available tags.
19138       if test -n "$tagname" ; then
19139       available_tags="$available_tags $tagname"
19140     fi
19141     fi
19142   done
19143   IFS="$lt_save_ifs"
19144
19145   # Now substitute the updated list of available tags.
19146   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19147     mv "${ofile}T" "$ofile"
19148     chmod +x "$ofile"
19149   else
19150     rm -f "${ofile}T"
19151     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19152 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19153    { (exit 1); exit 1; }; }
19154   fi
19155 fi
19156
19157
19158
19159 # This can be used to rebuild libtool when needed
19160 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19161
19162 # Always use our own libtool.
19163 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19164
19165 # Prevent multiple expansion
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188 # Check whether --with-mysql or --without-mysql was given.
19189 if test "${with_mysql+set}" = set; then
19190   withval="$with_mysql"
19191
19192 fi;
19193 # Check whether --enable-debug or --disable-debug was given.
19194 if test "${enable_debug+set}" = set; then
19195   enableval="$enable_debug"
19196
19197 cat >>confdefs.h <<\_ACEOF
19198 #define DEBUG 1
19199 _ACEOF
19200
19201 fi;
19202
19203 case "$target_os" in
19204 linux*)
19205     CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19206     LIBVER=2
19207     OS=linux
19208     RENAME=false
19209     test "$prefix" = "NONE" && prefix=
19210     ;;
19211 solaris*)
19212     CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19213     LIBVER=1
19214     OS=solaris
19215     RENAME=true
19216     test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19217     ;;
19218 freebsd*)
19219     CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT"
19220     LIBVER=1
19221     OS=freebsd
19222     RENAME=true
19223     test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19224     ;;
19225 *)  OS=unknown
19226     ;;
19227 esac
19228
19229
19230
19231 if test "$RENAME" = "true"; then
19232   RENAME_TRUE=
19233   RENAME_FALSE='#'
19234 else
19235   RENAME_TRUE='#'
19236   RENAME_FALSE=
19237 fi
19238
19239
19240 echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
19241 echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
19242 if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245
19246     SAVELIBS=$LIBS
19247     LIBS="-Wl,-znodelete $SAVELIBS"
19248     cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254
19255 int
19256 main ()
19257 {
19258
19259   ;
19260   return 0;
19261 }
19262 _ACEOF
19263 rm -f conftest.$ac_objext conftest$ac_exeext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19265   (eval $ac_link) 2>conftest.er1
19266   ac_status=$?
19267   grep -v '^ *+' conftest.er1 >conftest.err
19268   rm -f conftest.er1
19269   cat conftest.err >&5
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); } &&
19272          { ac_try='test -z "$ac_c_werror_flag"
19273                          || test ! -s conftest.err'
19274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275   (eval $ac_try) 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; } &&
19279          { ac_try='test -s conftest$ac_exeext'
19280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281   (eval $ac_try) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); }; }; then
19285   nss_mysql_cv_cc_znodelete=yes
19286 else
19287   echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290 nss_mysql_cv_cc_znodelete=no
19291 fi
19292 rm -f conftest.err conftest.$ac_objext \
19293       conftest$ac_exeext conftest.$ac_ext
19294     LIBS=$SAVELIBS
19295 fi
19296 echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
19297 echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
19298 if test $nss_mysql_cv_cc_znodelete = "yes"; then
19299     LIBS="-Wl,-znodelete $SAVELIBS"
19300 fi
19301
19302
19303
19304
19305
19306
19307 baselist="$with_mysql \
19308           /usr \
19309           /usr/local \
19310           /usr/local/mysql \
19311           /opt/local \
19312           /opt/local/mysql"
19313
19314 echo "$as_me:$LINENO: checking for MySQL headers" >&5
19315 echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
19316 for f in $baselist; do
19317     if test -f "$f/include/mysql/mysql.h"
19318     then
19319         MYSQL_INC_DIR="$f/include/mysql"
19320         break
19321     fi
19322
19323     if test -f "$f/include/mysql.h"
19324     then
19325         MYSQL_INC_DIR="$f/include"
19326         break
19327     fi
19328 done
19329
19330 if test -n "$MYSQL_INC_DIR"
19331 then
19332     echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
19333 echo "${ECHO_T}$MYSQL_INC_DIR" >&6
19334     CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
19335 else
19336     { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
19337 echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
19338    { (exit 1); exit 1; }; }
19339 fi
19340
19341 echo "$as_me:$LINENO: checking for MySQL libraries" >&5
19342 echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
19343 for f in $baselist; do
19344     if test -f "$f/lib/libmysqlclient.so"
19345     then
19346         MYSQL_LIB_DIR="$f/lib"
19347         break
19348     fi
19349
19350     if test -f "$f/lib/mysql/libmysqlclient.so"
19351     then
19352         MYSQL_LIB_DIR="$f/lib/mysql"
19353         break
19354     fi
19355 done
19356
19357 for f in $baselist; do
19358     if test -f "$f/lib/libmysqlclient.a"
19359     then
19360         MYSQL_LIB_DIR="$f/lib"
19361         break
19362     fi
19363
19364     if test -f "$f/lib/mysql/libmysqlclient.a"
19365     then
19366         MYSQL_LIB_DIR="$f/lib/mysql"
19367         break
19368     fi
19369 done
19370
19371 if test -n "$MYSQL_LIB_DIR"
19372 then
19373     echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
19374 echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
19375     LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
19376 else
19377     { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
19378 echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
19379    { (exit 1); exit 1; }; }
19380 fi
19381
19382
19383
19384
19385 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19386 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19387 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-lsocket  $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398
19399 /* Override any gcc2 internal prototype to avoid an error.  */
19400 #ifdef __cplusplus
19401 extern "C"
19402 #endif
19403 /* We use char because int might match the return type of a gcc2
19404    builtin and then its argument prototype would still apply.  */
19405 char getsockname ();
19406 int
19407 main ()
19408 {
19409 getsockname ();
19410   ;
19411   return 0;
19412 }
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416   (eval $ac_link) 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } &&
19423          { ac_try='test -z "$ac_c_werror_flag"
19424                          || test ! -s conftest.err'
19425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426   (eval $ac_try) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; } &&
19430          { ac_try='test -s conftest$ac_exeext'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; }; then
19436   ac_cv_lib_socket_getsockname=yes
19437 else
19438   echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_cv_lib_socket_getsockname=no
19442 fi
19443 rm -f conftest.err conftest.$ac_objext \
19444       conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_check_lib_save_LIBS
19446 fi
19447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19448 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19449 if test $ac_cv_lib_socket_getsockname = yes; then
19450   cat >>confdefs.h <<_ACEOF
19451 #define HAVE_LIBSOCKET 1
19452 _ACEOF
19453
19454   LIBS="-lsocket $LIBS"
19455
19456 fi
19457
19458
19459 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19460 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19461 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464   ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lnsl  $LIBS"
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h.  */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h.  */
19472
19473 /* Override any gcc2 internal prototype to avoid an error.  */
19474 #ifdef __cplusplus
19475 extern "C"
19476 #endif
19477 /* We use char because int might match the return type of a gcc2
19478    builtin and then its argument prototype would still apply.  */
19479 char gethostbyname ();
19480 int
19481 main ()
19482 {
19483 gethostbyname ();
19484   ;
19485   return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19490   (eval $ac_link) 2>conftest.er1
19491   ac_status=$?
19492   grep -v '^ *+' conftest.er1 >conftest.err
19493   rm -f conftest.er1
19494   cat conftest.err >&5
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } &&
19497          { ac_try='test -z "$ac_c_werror_flag"
19498                          || test ! -s conftest.err'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; } &&
19504          { ac_try='test -s conftest$ac_exeext'
19505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506   (eval $ac_try) 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510   ac_cv_lib_nsl_gethostbyname=yes
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 ac_cv_lib_nsl_gethostbyname=no
19516 fi
19517 rm -f conftest.err conftest.$ac_objext \
19518       conftest$ac_exeext conftest.$ac_ext
19519 LIBS=$ac_check_lib_save_LIBS
19520 fi
19521 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19522 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19523 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19524   cat >>confdefs.h <<_ACEOF
19525 #define HAVE_LIBNSL 1
19526 _ACEOF
19527
19528   LIBS="-lnsl $LIBS"
19529
19530 fi
19531
19532
19533 echo "$as_me:$LINENO: checking for floor in -lm" >&5
19534 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
19535 if test "${ac_cv_lib_m_floor+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   ac_check_lib_save_LIBS=$LIBS
19539 LIBS="-lm  $LIBS"
19540 cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546
19547 /* Override any gcc2 internal prototype to avoid an error.  */
19548 #ifdef __cplusplus
19549 extern "C"
19550 #endif
19551 /* We use char because int might match the return type of a gcc2
19552    builtin and then its argument prototype would still apply.  */
19553 char floor ();
19554 int
19555 main ()
19556 {
19557 floor ();
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19564   (eval $ac_link) 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -z "$ac_c_werror_flag"
19572                          || test ! -s conftest.err'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; } &&
19578          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19584   ac_cv_lib_m_floor=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589 ac_cv_lib_m_floor=no
19590 fi
19591 rm -f conftest.err conftest.$ac_objext \
19592       conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19594 fi
19595 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
19596 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
19597 if test $ac_cv_lib_m_floor = yes; then
19598   cat >>confdefs.h <<_ACEOF
19599 #define HAVE_LIBM 1
19600 _ACEOF
19601
19602   LIBS="-lm $LIBS"
19603
19604 fi
19605
19606
19607 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
19608 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
19609 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612   ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-ldl  $LIBS"
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620
19621 /* Override any gcc2 internal prototype to avoid an error.  */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 /* We use char because int might match the return type of a gcc2
19626    builtin and then its argument prototype would still apply.  */
19627 char dlsym ();
19628 int
19629 main ()
19630 {
19631 dlsym ();
19632   ;
19633   return 0;
19634 }
19635 _ACEOF
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19638   (eval $ac_link) 2>conftest.er1
19639   ac_status=$?
19640   grep -v '^ *+' conftest.er1 >conftest.err
19641   rm -f conftest.er1
19642   cat conftest.err >&5
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } &&
19645          { ac_try='test -z "$ac_c_werror_flag"
19646                          || test ! -s conftest.err'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; } &&
19652          { ac_try='test -s conftest$ac_exeext'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; }; then
19658   ac_cv_lib_dl_dlsym=yes
19659 else
19660   echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 ac_cv_lib_dl_dlsym=no
19664 fi
19665 rm -f conftest.err conftest.$ac_objext \
19666       conftest$ac_exeext conftest.$ac_ext
19667 LIBS=$ac_check_lib_save_LIBS
19668 fi
19669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
19670 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
19671 if test $ac_cv_lib_dl_dlsym = yes; then
19672   cat >>confdefs.h <<_ACEOF
19673 #define HAVE_LIBDL 1
19674 _ACEOF
19675
19676   LIBS="-ldl $LIBS"
19677
19678 fi
19679
19680
19681 echo "$as_me:$LINENO: checking for compress in -lz" >&5
19682 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
19683 if test "${ac_cv_lib_z_compress+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   ac_check_lib_save_LIBS=$LIBS
19687 LIBS="-lz  $LIBS"
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h.  */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h.  */
19694
19695 /* Override any gcc2 internal prototype to avoid an error.  */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 /* We use char because int might match the return type of a gcc2
19700    builtin and then its argument prototype would still apply.  */
19701 char compress ();
19702 int
19703 main ()
19704 {
19705 compress ();
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712   (eval $ac_link) 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } &&
19719          { ac_try='test -z "$ac_c_werror_flag"
19720                          || test ! -s conftest.err'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   ac_cv_lib_z_compress=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_cv_lib_z_compress=no
19738 fi
19739 rm -f conftest.err conftest.$ac_objext \
19740       conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19742 fi
19743 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
19744 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
19745 if test $ac_cv_lib_z_compress = yes; then
19746   cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBZ 1
19748 _ACEOF
19749
19750   LIBS="-lz $LIBS"
19751
19752 fi
19753
19754
19755
19756 echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
19757 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
19758 if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   ac_check_lib_save_LIBS=$LIBS
19762 LIBS="-lmysqlclient  $LIBS"
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769
19770
19771 int
19772 main ()
19773 {
19774 main ();
19775   ;
19776   return 0;
19777 }
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781   (eval $ac_link) 2>conftest.er1
19782   ac_status=$?
19783   grep -v '^ *+' conftest.er1 >conftest.err
19784   rm -f conftest.er1
19785   cat conftest.err >&5
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); } &&
19788          { ac_try='test -z "$ac_c_werror_flag"
19789                          || test ! -s conftest.err'
19790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791   (eval $ac_try) 2>&5
19792   ac_status=$?
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); }; } &&
19795          { ac_try='test -s conftest$ac_exeext'
19796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797   (eval $ac_try) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; }; then
19801   ac_cv_lib_mysqlclient_main=yes
19802 else
19803   echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 ac_cv_lib_mysqlclient_main=no
19807 fi
19808 rm -f conftest.err conftest.$ac_objext \
19809       conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19811 fi
19812 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
19813 echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
19814 if test $ac_cv_lib_mysqlclient_main = yes; then
19815   cat >>confdefs.h <<_ACEOF
19816 #define HAVE_LIBMYSQLCLIENT 1
19817 _ACEOF
19818
19819   LIBS="-lmysqlclient $LIBS"
19820
19821 else
19822   { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
19823 echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
19824    { (exit 1); exit 1; }; }
19825 fi
19826
19827
19828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19830 if test "${ac_cv_header_stdc+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 #include <stdlib.h>
19840 #include <stdarg.h>
19841 #include <string.h>
19842 #include <float.h>
19843
19844 int
19845 main ()
19846 {
19847
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19854   (eval $ac_compile) 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } &&
19861          { ac_try='test -z "$ac_c_werror_flag"
19862                          || test ! -s conftest.err'
19863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864   (eval $ac_try) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; } &&
19868          { ac_try='test -s conftest.$ac_objext'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_cv_header_stdc=yes
19875 else
19876   echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 ac_cv_header_stdc=no
19880 fi
19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19882
19883 if test $ac_cv_header_stdc = yes; then
19884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19885   cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891 #include <string.h>
19892
19893 _ACEOF
19894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19895   $EGREP "memchr" >/dev/null 2>&1; then
19896   :
19897 else
19898   ac_cv_header_stdc=no
19899 fi
19900 rm -f conftest*
19901
19902 fi
19903
19904 if test $ac_cv_header_stdc = yes; then
19905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 #include <stdlib.h>
19913
19914 _ACEOF
19915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19916   $EGREP "free" >/dev/null 2>&1; then
19917   :
19918 else
19919   ac_cv_header_stdc=no
19920 fi
19921 rm -f conftest*
19922
19923 fi
19924
19925 if test $ac_cv_header_stdc = yes; then
19926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19927   if test "$cross_compiling" = yes; then
19928   :
19929 else
19930   cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h.  */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h.  */
19936 #include <ctype.h>
19937 #if ((' ' & 0x0FF) == 0x020)
19938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19940 #else
19941 # define ISLOWER(c) \
19942                    (('a' <= (c) && (c) <= 'i') \
19943                      || ('j' <= (c) && (c) <= 'r') \
19944                      || ('s' <= (c) && (c) <= 'z'))
19945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19946 #endif
19947
19948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19949 int
19950 main ()
19951 {
19952   int i;
19953   for (i = 0; i < 256; i++)
19954     if (XOR (islower (i), ISLOWER (i))
19955         || toupper (i) != TOUPPER (i))
19956       exit(2);
19957   exit (0);
19958 }
19959 _ACEOF
19960 rm -f conftest$ac_exeext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19962   (eval $ac_link) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   :
19972 else
19973   echo "$as_me: program exited with status $ac_status" >&5
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ( exit $ac_status )
19978 ac_cv_header_stdc=no
19979 fi
19980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19981 fi
19982 fi
19983 fi
19984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19986 if test $ac_cv_header_stdc = yes; then
19987
19988 cat >>confdefs.h <<\_ACEOF
19989 #define STDC_HEADERS 1
19990 _ACEOF
19991
19992 fi
19993
19994 if test "${ac_cv_header_mysql_h+set}" = set; then
19995   echo "$as_me:$LINENO: checking for mysql.h" >&5
19996 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
19997 if test "${ac_cv_header_mysql_h+set}" = set; then
19998   echo $ECHO_N "(cached) $ECHO_C" >&6
19999 fi
20000 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
20001 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
20002 else
20003   # Is the header compilable?
20004 echo "$as_me:$LINENO: checking mysql.h usability" >&5
20005 echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 $ac_includes_default
20013 #include <mysql.h>
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20017   (eval $ac_compile) 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } &&
20024          { ac_try='test -z "$ac_c_werror_flag"
20025                          || test ! -s conftest.err'
20026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027   (eval $ac_try) 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; } &&
20031          { ac_try='test -s conftest.$ac_objext'
20032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033   (eval $ac_try) 2>&5
20034   ac_status=$?
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); }; }; then
20037   ac_header_compiler=yes
20038 else
20039   echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042 ac_header_compiler=no
20043 fi
20044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20046 echo "${ECHO_T}$ac_header_compiler" >&6
20047
20048 # Is the header present?
20049 echo "$as_me:$LINENO: checking mysql.h presence" >&5
20050 echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 #include <mysql.h>
20058 _ACEOF
20059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } >/dev/null; then
20067   if test -s conftest.err; then
20068     ac_cpp_err=$ac_c_preproc_warn_flag
20069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20070   else
20071     ac_cpp_err=
20072   fi
20073 else
20074   ac_cpp_err=yes
20075 fi
20076 if test -z "$ac_cpp_err"; then
20077   ac_header_preproc=yes
20078 else
20079   echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20081
20082   ac_header_preproc=no
20083 fi
20084 rm -f conftest.err conftest.$ac_ext
20085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20086 echo "${ECHO_T}$ac_header_preproc" >&6
20087
20088 # So?  What about this header?
20089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20090   yes:no: )
20091     { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
20092 echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20093     { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
20094 echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
20095     ac_header_preproc=yes
20096     ;;
20097   no:yes:* )
20098     { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
20099 echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
20101 echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
20103 echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
20104     { echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
20105 echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20106     { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
20107 echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
20108     { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
20109 echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
20110     (
20111       cat <<\_ASBOX
20112 ## ------------------------------------------ ##
20113 ## Report this to the AC_PACKAGE_NAME lists.  ##
20114 ## ------------------------------------------ ##
20115 _ASBOX
20116     ) |
20117       sed "s/^/$as_me: WARNING:     /" >&2
20118     ;;
20119 esac
20120 echo "$as_me:$LINENO: checking for mysql.h" >&5
20121 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
20122 if test "${ac_cv_header_mysql_h+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   ac_cv_header_mysql_h=$ac_header_preproc
20126 fi
20127 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
20128 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
20129
20130 fi
20131 if test $ac_cv_header_mysql_h = yes; then
20132   :
20133 else
20134   { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
20135 echo "$as_me: error: Unable to find mysql.h" >&2;}
20136    { (exit 1); exit 1; }; }
20137 fi
20138
20139
20140
20141
20142
20143
20144
20145 for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
20146 do
20147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20149   echo "$as_me:$LINENO: checking for $ac_header" >&5
20150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 fi
20154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20156 else
20157   # Is the header compilable?
20158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h.  */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h.  */
20166 $ac_includes_default
20167 #include <$ac_header>
20168 _ACEOF
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171   (eval $ac_compile) 2>conftest.er1
20172   ac_status=$?
20173   grep -v '^ *+' conftest.er1 >conftest.err
20174   rm -f conftest.er1
20175   cat conftest.err >&5
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } &&
20178          { ac_try='test -z "$ac_c_werror_flag"
20179                          || test ! -s conftest.err'
20180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181   (eval $ac_try) 2>&5
20182   ac_status=$?
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); }; } &&
20185          { ac_try='test -s conftest.$ac_objext'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }; then
20191   ac_header_compiler=yes
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196 ac_header_compiler=no
20197 fi
20198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20200 echo "${ECHO_T}$ac_header_compiler" >&6
20201
20202 # Is the header present?
20203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211 #include <$ac_header>
20212 _ACEOF
20213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20215   ac_status=$?
20216   grep -v '^ *+' conftest.er1 >conftest.err
20217   rm -f conftest.er1
20218   cat conftest.err >&5
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } >/dev/null; then
20221   if test -s conftest.err; then
20222     ac_cpp_err=$ac_c_preproc_warn_flag
20223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20224   else
20225     ac_cpp_err=
20226   fi
20227 else
20228   ac_cpp_err=yes
20229 fi
20230 if test -z "$ac_cpp_err"; then
20231   ac_header_preproc=yes
20232 else
20233   echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236   ac_header_preproc=no
20237 fi
20238 rm -f conftest.err conftest.$ac_ext
20239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20240 echo "${ECHO_T}$ac_header_preproc" >&6
20241
20242 # So?  What about this header?
20243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20244   yes:no: )
20245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20249     ac_header_preproc=yes
20250     ;;
20251   no:yes:* )
20252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20264     (
20265       cat <<\_ASBOX
20266 ## ------------------------------------------ ##
20267 ## Report this to the AC_PACKAGE_NAME lists.  ##
20268 ## ------------------------------------------ ##
20269 _ASBOX
20270     ) |
20271       sed "s/^/$as_me: WARNING:     /" >&2
20272     ;;
20273 esac
20274 echo "$as_me:$LINENO: checking for $ac_header" >&5
20275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279   eval "$as_ac_Header=\$ac_header_preproc"
20280 fi
20281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20283
20284 fi
20285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20286   cat >>confdefs.h <<_ACEOF
20287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20288 _ACEOF
20289
20290 fi
20291
20292 done
20293
20294
20295 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20296 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20297 if test "${ac_cv_c_const+set}" = set; then
20298   echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300   cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306
20307 int
20308 main ()
20309 {
20310 /* FIXME: Include the comments suggested by Paul. */
20311 #ifndef __cplusplus
20312   /* Ultrix mips cc rejects this.  */
20313   typedef int charset[2];
20314   const charset x;
20315   /* SunOS 4.1.1 cc rejects this.  */
20316   char const *const *ccp;
20317   char **p;
20318   /* NEC SVR4.0.2 mips cc rejects this.  */
20319   struct point {int x, y;};
20320   static struct point const zero = {0,0};
20321   /* AIX XL C 1.02.0.0 rejects this.
20322      It does not let you subtract one const X* pointer from another in
20323      an arm of an if-expression whose if-part is not a constant
20324      expression */
20325   const char *g = "string";
20326   ccp = &g + (g ? g-g : 0);
20327   /* HPUX 7.0 cc rejects these. */
20328   ++ccp;
20329   p = (char**) ccp;
20330   ccp = (char const *const *) p;
20331   { /* SCO 3.2v4 cc rejects this.  */
20332     char *t;
20333     char const *s = 0 ? (char *) 0 : (char const *) 0;
20334
20335     *t++ = 0;
20336   }
20337   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20338     int x[] = {25, 17};
20339     const int *foo = &x[0];
20340     ++foo;
20341   }
20342   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20343     typedef const int *iptr;
20344     iptr p = 0;
20345     ++p;
20346   }
20347   { /* AIX XL C 1.02.0.0 rejects this saying
20348        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20349     struct s { int j; const int *ap[3]; };
20350     struct s *b; b->j = 5;
20351   }
20352   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20353     const int foo = 10;
20354   }
20355 #endif
20356
20357   ;
20358   return 0;
20359 }
20360 _ACEOF
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363   (eval $ac_compile) 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } &&
20370          { ac_try='test -z "$ac_c_werror_flag"
20371                          || test ! -s conftest.err'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; } &&
20377          { ac_try='test -s conftest.$ac_objext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_cv_c_const=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ac_cv_c_const=no
20389 fi
20390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391 fi
20392 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20393 echo "${ECHO_T}$ac_cv_c_const" >&6
20394 if test $ac_cv_c_const = no; then
20395
20396 cat >>confdefs.h <<\_ACEOF
20397 #define const
20398 _ACEOF
20399
20400 fi
20401
20402 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20403 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20404 if test "${ac_cv_type_uid_t+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <sys/types.h>
20414
20415 _ACEOF
20416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20417   $EGREP "uid_t" >/dev/null 2>&1; then
20418   ac_cv_type_uid_t=yes
20419 else
20420   ac_cv_type_uid_t=no
20421 fi
20422 rm -f conftest*
20423
20424 fi
20425 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20426 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20427 if test $ac_cv_type_uid_t = no; then
20428
20429 cat >>confdefs.h <<\_ACEOF
20430 #define uid_t int
20431 _ACEOF
20432
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define gid_t int
20436 _ACEOF
20437
20438 fi
20439
20440 echo "$as_me:$LINENO: checking for size_t" >&5
20441 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20442 if test "${ac_cv_type_size_t+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445   cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 $ac_includes_default
20452 int
20453 main ()
20454 {
20455 if ((size_t *) 0)
20456   return 0;
20457 if (sizeof (size_t))
20458   return 0;
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465   (eval $ac_compile) 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -z "$ac_c_werror_flag"
20473                          || test ! -s conftest.err'
20474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475   (eval $ac_try) 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; } &&
20479          { ac_try='test -s conftest.$ac_objext'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   ac_cv_type_size_t=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_cv_type_size_t=no
20491 fi
20492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20493 fi
20494 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20495 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20496 if test $ac_cv_type_size_t = yes; then
20497   :
20498 else
20499
20500 cat >>confdefs.h <<_ACEOF
20501 #define size_t unsigned
20502 _ACEOF
20503
20504 fi
20505
20506 echo "$as_me:$LINENO: checking for socklen_t" >&5
20507 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20508 if test "${ac_cv_type_socklen_t+set}" = set; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511   cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517
20518 #include <unistd.h>
20519 #include <sys/socket.h>
20520
20521
20522 int
20523 main ()
20524 {
20525 if ((socklen_t *) 0)
20526   return 0;
20527 if (sizeof (socklen_t))
20528   return 0;
20529   ;
20530   return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20535   (eval $ac_compile) 2>conftest.er1
20536   ac_status=$?
20537   grep -v '^ *+' conftest.er1 >conftest.err
20538   rm -f conftest.er1
20539   cat conftest.err >&5
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); } &&
20542          { ac_try='test -z "$ac_c_werror_flag"
20543                          || test ! -s conftest.err'
20544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545   (eval $ac_try) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; } &&
20549          { ac_try='test -s conftest.$ac_objext'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; }; then
20555   ac_cv_type_socklen_t=yes
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_type_socklen_t=no
20561 fi
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563 fi
20564 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20565 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20566 if test $ac_cv_type_socklen_t = yes; then
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_SOCKLEN_T 1
20570 _ACEOF
20571
20572
20573 fi
20574
20575
20576 EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
20577
20578 cat >>confdefs.h <<_ACEOF
20579 #define MAINCFG "$EXPANDED_SYSCONFDIR/libnss-mysql.cfg"
20580 _ACEOF
20581
20582
20583 cat >>confdefs.h <<_ACEOF
20584 #define ROOTCFG "$EXPANDED_SYSCONFDIR/libnss-mysql-root.cfg"
20585 _ACEOF
20586
20587
20588                               ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
20589
20590 cat >confcache <<\_ACEOF
20591 # This file is a shell script that caches the results of configure
20592 # tests run on this system so they can be shared between configure
20593 # scripts and configure runs, see configure's option --config-cache.
20594 # It is not useful on other systems.  If it contains results you don't
20595 # want to keep, you may remove or edit it.
20596 #
20597 # config.status only pays attention to the cache file if you give it
20598 # the --recheck option to rerun configure.
20599 #
20600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20602 # following values.
20603
20604 _ACEOF
20605
20606 # The following way of writing the cache mishandles newlines in values,
20607 # but we know of no workaround that is simple, portable, and efficient.
20608 # So, don't put newlines in cache variables' values.
20609 # Ultrix sh set writes to stderr and can't be redirected directly,
20610 # and sets the high bit in the cache file unless we assign to the vars.
20611 {
20612   (set) 2>&1 |
20613     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20614     *ac_space=\ *)
20615       # `set' does not quote correctly, so add quotes (double-quote
20616       # substitution turns \\\\ into \\, and sed turns \\ into \).
20617       sed -n \
20618         "s/'/'\\\\''/g;
20619           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20620       ;;
20621     *)
20622       # `set' quotes correctly as required by POSIX, so do not add quotes.
20623       sed -n \
20624         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20625       ;;
20626     esac;
20627 } |
20628   sed '
20629      t clear
20630      : clear
20631      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20632      t end
20633      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20634      : end' >>confcache
20635 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20636   if test -w $cache_file; then
20637     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20638     cat confcache >$cache_file
20639   else
20640     echo "not updating unwritable cache $cache_file"
20641   fi
20642 fi
20643 rm -f confcache
20644
20645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20646 # Let make expand exec_prefix.
20647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20648
20649 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20650 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20651 # trailing colons and then remove the whole line if VPATH becomes empty
20652 # (actually we leave an empty line to preserve line numbers).
20653 if test "x$srcdir" = x.; then
20654   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20655 s/:*\$(srcdir):*/:/;
20656 s/:*\${srcdir}:*/:/;
20657 s/:*@srcdir@:*/:/;
20658 s/^\([^=]*=[     ]*\):*/\1/;
20659 s/:*$//;
20660 s/^[^=]*=[       ]*$//;
20661 }'
20662 fi
20663
20664 DEFS=-DHAVE_CONFIG_H
20665
20666 ac_libobjs=
20667 ac_ltlibobjs=
20668 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20669   # 1. Remove the extension, and $U if already installed.
20670   ac_i=`echo "$ac_i" |
20671          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20672   # 2. Add them.
20673   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20674   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20675 done
20676 LIBOBJS=$ac_libobjs
20677
20678 LTLIBOBJS=$ac_ltlibobjs
20679
20680
20681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20682   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20683 Usually this means the macro was only invoked conditionally." >&5
20684 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20685 Usually this means the macro was only invoked conditionally." >&2;}
20686    { (exit 1); exit 1; }; }
20687 fi
20688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20689   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20690 Usually this means the macro was only invoked conditionally." >&5
20691 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20692 Usually this means the macro was only invoked conditionally." >&2;}
20693    { (exit 1); exit 1; }; }
20694 fi
20695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20696   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20697 Usually this means the macro was only invoked conditionally." >&5
20698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20699 Usually this means the macro was only invoked conditionally." >&2;}
20700    { (exit 1); exit 1; }; }
20701 fi
20702 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20703   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20704 Usually this means the macro was only invoked conditionally." >&5
20705 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20706 Usually this means the macro was only invoked conditionally." >&2;}
20707    { (exit 1); exit 1; }; }
20708 fi
20709 if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
20710   { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
20711 Usually this means the macro was only invoked conditionally." >&5
20712 echo "$as_me: error: conditional \"RENAME\" was never defined.
20713 Usually this means the macro was only invoked conditionally." >&2;}
20714    { (exit 1); exit 1; }; }
20715 fi
20716
20717 : ${CONFIG_STATUS=./config.status}
20718 ac_clean_files_save=$ac_clean_files
20719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20722 cat >$CONFIG_STATUS <<_ACEOF
20723 #! $SHELL
20724 # Generated by $as_me.
20725 # Run this file to recreate the current configuration.
20726 # Compiler output produced by configure, useful for debugging
20727 # configure, is in config.log if it exists.
20728
20729 debug=false
20730 ac_cs_recheck=false
20731 ac_cs_silent=false
20732 SHELL=\${CONFIG_SHELL-$SHELL}
20733 _ACEOF
20734
20735 cat >>$CONFIG_STATUS <<\_ACEOF
20736 ## --------------------- ##
20737 ## M4sh Initialization.  ##
20738 ## --------------------- ##
20739
20740 # Be Bourne compatible
20741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20742   emulate sh
20743   NULLCMD=:
20744   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20745   # is contrary to our usage.  Disable this feature.
20746   alias -g '${1+"$@"}'='"$@"'
20747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20748   set -o posix
20749 fi
20750 DUALCASE=1; export DUALCASE # for MKS sh
20751
20752 # Support unset when possible.
20753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20754   as_unset=unset
20755 else
20756   as_unset=false
20757 fi
20758
20759
20760 # Work around bugs in pre-3.0 UWIN ksh.
20761 $as_unset ENV MAIL MAILPATH
20762 PS1='$ '
20763 PS2='> '
20764 PS4='+ '
20765
20766 # NLS nuisances.
20767 for as_var in \
20768   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20769   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20770   LC_TELEPHONE LC_TIME
20771 do
20772   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20773     eval $as_var=C; export $as_var
20774   else
20775     $as_unset $as_var
20776   fi
20777 done
20778
20779 # Required to use basename.
20780 if expr a : '\(a\)' >/dev/null 2>&1; then
20781   as_expr=expr
20782 else
20783   as_expr=false
20784 fi
20785
20786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20787   as_basename=basename
20788 else
20789   as_basename=false
20790 fi
20791
20792
20793 # Name of the executable.
20794 as_me=`$as_basename "$0" ||
20795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20796          X"$0" : 'X\(//\)$' \| \
20797          X"$0" : 'X\(/\)$' \| \
20798          .     : '\(.\)' 2>/dev/null ||
20799 echo X/"$0" |
20800     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20801           /^X\/\(\/\/\)$/{ s//\1/; q; }
20802           /^X\/\(\/\).*/{ s//\1/; q; }
20803           s/.*/./; q'`
20804
20805
20806 # PATH needs CR, and LINENO needs CR and PATH.
20807 # Avoid depending upon Character Ranges.
20808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20811 as_cr_digits='0123456789'
20812 as_cr_alnum=$as_cr_Letters$as_cr_digits
20813
20814 # The user is always right.
20815 if test "${PATH_SEPARATOR+set}" != set; then
20816   echo "#! /bin/sh" >conf$$.sh
20817   echo  "exit 0"   >>conf$$.sh
20818   chmod +x conf$$.sh
20819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20820     PATH_SEPARATOR=';'
20821   else
20822     PATH_SEPARATOR=:
20823   fi
20824   rm -f conf$$.sh
20825 fi
20826
20827
20828   as_lineno_1=$LINENO
20829   as_lineno_2=$LINENO
20830   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20831   test "x$as_lineno_1" != "x$as_lineno_2" &&
20832   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20833   # Find who we are.  Look in the path if we contain no path at all
20834   # relative or not.
20835   case $0 in
20836     *[\\/]* ) as_myself=$0 ;;
20837     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20838 for as_dir in $PATH
20839 do
20840   IFS=$as_save_IFS
20841   test -z "$as_dir" && as_dir=.
20842   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20843 done
20844
20845        ;;
20846   esac
20847   # We did not find ourselves, most probably we were run as `sh COMMAND'
20848   # in which case we are not to be found in the path.
20849   if test "x$as_myself" = x; then
20850     as_myself=$0
20851   fi
20852   if test ! -f "$as_myself"; then
20853     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20855    { (exit 1); exit 1; }; }
20856   fi
20857   case $CONFIG_SHELL in
20858   '')
20859     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20861 do
20862   IFS=$as_save_IFS
20863   test -z "$as_dir" && as_dir=.
20864   for as_base in sh bash ksh sh5; do
20865          case $as_dir in
20866          /*)
20867            if ("$as_dir/$as_base" -c '
20868   as_lineno_1=$LINENO
20869   as_lineno_2=$LINENO
20870   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20871   test "x$as_lineno_1" != "x$as_lineno_2" &&
20872   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20873              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20874              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20875              CONFIG_SHELL=$as_dir/$as_base
20876              export CONFIG_SHELL
20877              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20878            fi;;
20879          esac
20880        done
20881 done
20882 ;;
20883   esac
20884
20885   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20886   # uniformly replaced by the line number.  The first 'sed' inserts a
20887   # line-number line before each line; the second 'sed' does the real
20888   # work.  The second script uses 'N' to pair each line-number line
20889   # with the numbered line, and appends trailing '-' during
20890   # substitution so that $LINENO is not a special case at line end.
20891   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20892   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20893   sed '=' <$as_myself |
20894     sed '
20895       N
20896       s,$,-,
20897       : loop
20898       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20899       t loop
20900       s,-$,,
20901       s,^['$as_cr_digits']*\n,,
20902     ' >$as_me.lineno &&
20903   chmod +x $as_me.lineno ||
20904     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20906    { (exit 1); exit 1; }; }
20907
20908   # Don't try to exec as it changes $[0], causing all sort of problems
20909   # (the dirname of $[0] is not the place where we might find the
20910   # original and so on.  Autoconf is especially sensible to this).
20911   . ./$as_me.lineno
20912   # Exit status is that of the last command.
20913   exit
20914 }
20915
20916
20917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20918   *c*,-n*) ECHO_N= ECHO_C='
20919 ' ECHO_T='      ' ;;
20920   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20921   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20922 esac
20923
20924 if expr a : '\(a\)' >/dev/null 2>&1; then
20925   as_expr=expr
20926 else
20927   as_expr=false
20928 fi
20929
20930 rm -f conf$$ conf$$.exe conf$$.file
20931 echo >conf$$.file
20932 if ln -s conf$$.file conf$$ 2>/dev/null; then
20933   # We could just check for DJGPP; but this test a) works b) is more generic
20934   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20935   if test -f conf$$.exe; then
20936     # Don't use ln at all; we don't have any links
20937     as_ln_s='cp -p'
20938   else
20939     as_ln_s='ln -s'
20940   fi
20941 elif ln conf$$.file conf$$ 2>/dev/null; then
20942   as_ln_s=ln
20943 else
20944   as_ln_s='cp -p'
20945 fi
20946 rm -f conf$$ conf$$.exe conf$$.file
20947
20948 if mkdir -p . 2>/dev/null; then
20949   as_mkdir_p=:
20950 else
20951   test -d ./-p && rmdir ./-p
20952   as_mkdir_p=false
20953 fi
20954
20955 as_executable_p="test -f"
20956
20957 # Sed expression to map a string onto a valid CPP name.
20958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20959
20960 # Sed expression to map a string onto a valid variable name.
20961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20962
20963
20964 # IFS
20965 # We need space, tab and new line, in precisely that order.
20966 as_nl='
20967 '
20968 IFS="   $as_nl"
20969
20970 # CDPATH.
20971 $as_unset CDPATH
20972
20973 exec 6>&1
20974
20975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20976 # report actual input values of CONFIG_FILES etc. instead of their
20977 # values after options handling.  Logging --version etc. is OK.
20978 exec 5>>config.log
20979 {
20980   echo
20981   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20982 ## Running $as_me. ##
20983 _ASBOX
20984 } >&5
20985 cat >&5 <<_CSEOF
20986
20987 This file was extended by $as_me, which was
20988 generated by GNU Autoconf 2.59.  Invocation command line was
20989
20990   CONFIG_FILES    = $CONFIG_FILES
20991   CONFIG_HEADERS  = $CONFIG_HEADERS
20992   CONFIG_LINKS    = $CONFIG_LINKS
20993   CONFIG_COMMANDS = $CONFIG_COMMANDS
20994   $ $0 $@
20995
20996 _CSEOF
20997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20998 echo >&5
20999 _ACEOF
21000
21001 # Files that config.status was made for.
21002 if test -n "$ac_config_files"; then
21003   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21004 fi
21005
21006 if test -n "$ac_config_headers"; then
21007   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21008 fi
21009
21010 if test -n "$ac_config_links"; then
21011   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21012 fi
21013
21014 if test -n "$ac_config_commands"; then
21015   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21016 fi
21017
21018 cat >>$CONFIG_STATUS <<\_ACEOF
21019
21020 ac_cs_usage="\
21021 \`$as_me' instantiates files from templates according to the
21022 current configuration.
21023
21024 Usage: $0 [OPTIONS] [FILE]...
21025
21026   -h, --help       print this help, then exit
21027   -V, --version    print version number, then exit
21028   -q, --quiet      do not print progress messages
21029   -d, --debug      don't remove temporary files
21030       --recheck    update $as_me by reconfiguring in the same conditions
21031   --file=FILE[:TEMPLATE]
21032                    instantiate the configuration file FILE
21033   --header=FILE[:TEMPLATE]
21034                    instantiate the configuration header FILE
21035
21036 Configuration files:
21037 $config_files
21038
21039 Configuration headers:
21040 $config_headers
21041
21042 Configuration commands:
21043 $config_commands
21044
21045 Report bugs to <bug-autoconf@gnu.org>."
21046 _ACEOF
21047
21048 cat >>$CONFIG_STATUS <<_ACEOF
21049 ac_cs_version="\\
21050 config.status
21051 configured by $0, generated by GNU Autoconf 2.59,
21052   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21053
21054 Copyright (C) 2003 Free Software Foundation, Inc.
21055 This config.status script is free software; the Free Software Foundation
21056 gives unlimited permission to copy, distribute and modify it."
21057 srcdir=$srcdir
21058 INSTALL="$INSTALL"
21059 _ACEOF
21060
21061 cat >>$CONFIG_STATUS <<\_ACEOF
21062 # If no file are specified by the user, then we need to provide default
21063 # value.  By we need to know if files were specified by the user.
21064 ac_need_defaults=:
21065 while test $# != 0
21066 do
21067   case $1 in
21068   --*=*)
21069     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21070     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21071     ac_shift=:
21072     ;;
21073   -*)
21074     ac_option=$1
21075     ac_optarg=$2
21076     ac_shift=shift
21077     ;;
21078   *) # This is not an option, so the user has probably given explicit
21079      # arguments.
21080      ac_option=$1
21081      ac_need_defaults=false;;
21082   esac
21083
21084   case $ac_option in
21085   # Handling of the options.
21086 _ACEOF
21087 cat >>$CONFIG_STATUS <<\_ACEOF
21088   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21089     ac_cs_recheck=: ;;
21090   --version | --vers* | -V )
21091     echo "$ac_cs_version"; exit 0 ;;
21092   --he | --h)
21093     # Conflict between --help and --header
21094     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21095 Try \`$0 --help' for more information." >&5
21096 echo "$as_me: error: ambiguous option: $1
21097 Try \`$0 --help' for more information." >&2;}
21098    { (exit 1); exit 1; }; };;
21099   --help | --hel | -h )
21100     echo "$ac_cs_usage"; exit 0 ;;
21101   --debug | --d* | -d )
21102     debug=: ;;
21103   --file | --fil | --fi | --f )
21104     $ac_shift
21105     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21106     ac_need_defaults=false;;
21107   --header | --heade | --head | --hea )
21108     $ac_shift
21109     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21110     ac_need_defaults=false;;
21111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21112   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21113     ac_cs_silent=: ;;
21114
21115   # This is an error.
21116   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21117 Try \`$0 --help' for more information." >&5
21118 echo "$as_me: error: unrecognized option: $1
21119 Try \`$0 --help' for more information." >&2;}
21120    { (exit 1); exit 1; }; } ;;
21121
21122   *) ac_config_targets="$ac_config_targets $1" ;;
21123
21124   esac
21125   shift
21126 done
21127
21128 ac_configure_extra_args=
21129
21130 if $ac_cs_silent; then
21131   exec 6>/dev/null
21132   ac_configure_extra_args="$ac_configure_extra_args --silent"
21133 fi
21134
21135 _ACEOF
21136 cat >>$CONFIG_STATUS <<_ACEOF
21137 if \$ac_cs_recheck; then
21138   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21139   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21140 fi
21141
21142 _ACEOF
21143
21144 cat >>$CONFIG_STATUS <<_ACEOF
21145 #
21146 # INIT-COMMANDS section.
21147 #
21148
21149 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21150
21151 _ACEOF
21152
21153
21154
21155 cat >>$CONFIG_STATUS <<\_ACEOF
21156 for ac_config_target in $ac_config_targets
21157 do
21158   case "$ac_config_target" in
21159   # Handling of arguments.
21160   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21161   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21162   "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
21163   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21164   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21165   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21166 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21167    { (exit 1); exit 1; }; };;
21168   esac
21169 done
21170
21171 # If the user did not use the arguments to specify the items to instantiate,
21172 # then the envvar interface is used.  Set only those that are not.
21173 # We use the long form for the default assignment because of an extremely
21174 # bizarre bug on SunOS 4.1.3.
21175 if $ac_need_defaults; then
21176   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21177   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21178   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21179 fi
21180
21181 # Have a temporary directory for convenience.  Make it in the build tree
21182 # simply because there is no reason to put it here, and in addition,
21183 # creating and moving files from /tmp can sometimes cause problems.
21184 # Create a temporary directory, and hook for its removal unless debugging.
21185 $debug ||
21186 {
21187   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21188   trap '{ (exit 1); exit 1; }' 1 2 13 15
21189 }
21190
21191 # Create a (secure) tmp directory for tmp files.
21192
21193 {
21194   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21195   test -n "$tmp" && test -d "$tmp"
21196 }  ||
21197 {
21198   tmp=./confstat$$-$RANDOM
21199   (umask 077 && mkdir $tmp)
21200 } ||
21201 {
21202    echo "$me: cannot create a temporary directory in ." >&2
21203    { (exit 1); exit 1; }
21204 }
21205
21206 _ACEOF
21207
21208 cat >>$CONFIG_STATUS <<_ACEOF
21209
21210 #
21211 # CONFIG_FILES section.
21212 #
21213
21214 # No need to generate the scripts if there are no CONFIG_FILES.
21215 # This happens for instance when ./config.status config.h
21216 if test -n "\$CONFIG_FILES"; then
21217   # Protect against being on the right side of a sed subst in config.status.
21218   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21219    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21220 s,@SHELL@,$SHELL,;t t
21221 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21222 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21223 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21224 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21225 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21226 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21227 s,@exec_prefix@,$exec_prefix,;t t
21228 s,@prefix@,$prefix,;t t
21229 s,@program_transform_name@,$program_transform_name,;t t
21230 s,@bindir@,$bindir,;t t
21231 s,@sbindir@,$sbindir,;t t
21232 s,@libexecdir@,$libexecdir,;t t
21233 s,@datadir@,$datadir,;t t
21234 s,@sysconfdir@,$sysconfdir,;t t
21235 s,@sharedstatedir@,$sharedstatedir,;t t
21236 s,@localstatedir@,$localstatedir,;t t
21237 s,@libdir@,$libdir,;t t
21238 s,@includedir@,$includedir,;t t
21239 s,@oldincludedir@,$oldincludedir,;t t
21240 s,@infodir@,$infodir,;t t
21241 s,@mandir@,$mandir,;t t
21242 s,@build_alias@,$build_alias,;t t
21243 s,@host_alias@,$host_alias,;t t
21244 s,@target_alias@,$target_alias,;t t
21245 s,@DEFS@,$DEFS,;t t
21246 s,@ECHO_C@,$ECHO_C,;t t
21247 s,@ECHO_N@,$ECHO_N,;t t
21248 s,@ECHO_T@,$ECHO_T,;t t
21249 s,@LIBS@,$LIBS,;t t
21250 s,@build@,$build,;t t
21251 s,@build_cpu@,$build_cpu,;t t
21252 s,@build_vendor@,$build_vendor,;t t
21253 s,@build_os@,$build_os,;t t
21254 s,@host@,$host,;t t
21255 s,@host_cpu@,$host_cpu,;t t
21256 s,@host_vendor@,$host_vendor,;t t
21257 s,@host_os@,$host_os,;t t
21258 s,@target@,$target,;t t
21259 s,@target_cpu@,$target_cpu,;t t
21260 s,@target_vendor@,$target_vendor,;t t
21261 s,@target_os@,$target_os,;t t
21262 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21263 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21264 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21265 s,@CYGPATH_W@,$CYGPATH_W,;t t
21266 s,@PACKAGE@,$PACKAGE,;t t
21267 s,@VERSION@,$VERSION,;t t
21268 s,@ACLOCAL@,$ACLOCAL,;t t
21269 s,@AUTOCONF@,$AUTOCONF,;t t
21270 s,@AUTOMAKE@,$AUTOMAKE,;t t
21271 s,@AUTOHEADER@,$AUTOHEADER,;t t
21272 s,@MAKEINFO@,$MAKEINFO,;t t
21273 s,@install_sh@,$install_sh,;t t
21274 s,@STRIP@,$STRIP,;t t
21275 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21276 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21277 s,@mkdir_p@,$mkdir_p,;t t
21278 s,@AWK@,$AWK,;t t
21279 s,@SET_MAKE@,$SET_MAKE,;t t
21280 s,@am__leading_dot@,$am__leading_dot,;t t
21281 s,@AMTAR@,$AMTAR,;t t
21282 s,@am__tar@,$am__tar,;t t
21283 s,@am__untar@,$am__untar,;t t
21284 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21285 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21286 s,@MAINT@,$MAINT,;t t
21287 s,@CC@,$CC,;t t
21288 s,@CFLAGS@,$CFLAGS,;t t
21289 s,@LDFLAGS@,$LDFLAGS,;t t
21290 s,@CPPFLAGS@,$CPPFLAGS,;t t
21291 s,@ac_ct_CC@,$ac_ct_CC,;t t
21292 s,@EXEEXT@,$EXEEXT,;t t
21293 s,@OBJEXT@,$OBJEXT,;t t
21294 s,@DEPDIR@,$DEPDIR,;t t
21295 s,@am__include@,$am__include,;t t
21296 s,@am__quote@,$am__quote,;t t
21297 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21298 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21299 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21300 s,@CCDEPMODE@,$CCDEPMODE,;t t
21301 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21302 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21303 s,@EGREP@,$EGREP,;t t
21304 s,@LN_S@,$LN_S,;t t
21305 s,@ECHO@,$ECHO,;t t
21306 s,@AR@,$AR,;t t
21307 s,@ac_ct_AR@,$ac_ct_AR,;t t
21308 s,@RANLIB@,$RANLIB,;t t
21309 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21310 s,@CPP@,$CPP,;t t
21311 s,@CXX@,$CXX,;t t
21312 s,@CXXFLAGS@,$CXXFLAGS,;t t
21313 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21314 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21315 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21316 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21317 s,@CXXCPP@,$CXXCPP,;t t
21318 s,@F77@,$F77,;t t
21319 s,@FFLAGS@,$FFLAGS,;t t
21320 s,@ac_ct_F77@,$ac_ct_F77,;t t
21321 s,@LIBTOOL@,$LIBTOOL,;t t
21322 s,@RENAME_TRUE@,$RENAME_TRUE,;t t
21323 s,@RENAME_FALSE@,$RENAME_FALSE,;t t
21324 s,@LIBVER@,$LIBVER,;t t
21325 s,@OS@,$OS,;t t
21326 s,@LIBOBJS@,$LIBOBJS,;t t
21327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21328 CEOF
21329
21330 _ACEOF
21331
21332   cat >>$CONFIG_STATUS <<\_ACEOF
21333   # Split the substitutions into bite-sized pieces for seds with
21334   # small command number limits, like on Digital OSF/1 and HP-UX.
21335   ac_max_sed_lines=48
21336   ac_sed_frag=1 # Number of current file.
21337   ac_beg=1 # First line for current file.
21338   ac_end=$ac_max_sed_lines # Line after last line for current file.
21339   ac_more_lines=:
21340   ac_sed_cmds=
21341   while $ac_more_lines; do
21342     if test $ac_beg -gt 1; then
21343       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21344     else
21345       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21346     fi
21347     if test ! -s $tmp/subs.frag; then
21348       ac_more_lines=false
21349     else
21350       # The purpose of the label and of the branching condition is to
21351       # speed up the sed processing (if there are no `@' at all, there
21352       # is no need to browse any of the substitutions).
21353       # These are the two extra sed commands mentioned above.
21354       (echo ':t
21355   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21356       if test -z "$ac_sed_cmds"; then
21357         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21358       else
21359         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21360       fi
21361       ac_sed_frag=`expr $ac_sed_frag + 1`
21362       ac_beg=$ac_end
21363       ac_end=`expr $ac_end + $ac_max_sed_lines`
21364     fi
21365   done
21366   if test -z "$ac_sed_cmds"; then
21367     ac_sed_cmds=cat
21368   fi
21369 fi # test -n "$CONFIG_FILES"
21370
21371 _ACEOF
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21374   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21375   case $ac_file in
21376   - | *:- | *:-:* ) # input from stdin
21377         cat >$tmp/stdin
21378         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21379         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21380   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21381         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21382   * )   ac_file_in=$ac_file.in ;;
21383   esac
21384
21385   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21386   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21388          X"$ac_file" : 'X\(//\)[^/]' \| \
21389          X"$ac_file" : 'X\(//\)$' \| \
21390          X"$ac_file" : 'X\(/\)' \| \
21391          .     : '\(.\)' 2>/dev/null ||
21392 echo X"$ac_file" |
21393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21394           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21395           /^X\(\/\/\)$/{ s//\1/; q; }
21396           /^X\(\/\).*/{ s//\1/; q; }
21397           s/.*/./; q'`
21398   { if $as_mkdir_p; then
21399     mkdir -p "$ac_dir"
21400   else
21401     as_dir="$ac_dir"
21402     as_dirs=
21403     while test ! -d "$as_dir"; do
21404       as_dirs="$as_dir $as_dirs"
21405       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21407          X"$as_dir" : 'X\(//\)[^/]' \| \
21408          X"$as_dir" : 'X\(//\)$' \| \
21409          X"$as_dir" : 'X\(/\)' \| \
21410          .     : '\(.\)' 2>/dev/null ||
21411 echo X"$as_dir" |
21412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21414           /^X\(\/\/\)$/{ s//\1/; q; }
21415           /^X\(\/\).*/{ s//\1/; q; }
21416           s/.*/./; q'`
21417     done
21418     test ! -n "$as_dirs" || mkdir $as_dirs
21419   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21421    { (exit 1); exit 1; }; }; }
21422
21423   ac_builddir=.
21424
21425 if test "$ac_dir" != .; then
21426   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21427   # A "../" for each directory in $ac_dir_suffix.
21428   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21429 else
21430   ac_dir_suffix= ac_top_builddir=
21431 fi
21432
21433 case $srcdir in
21434   .)  # No --srcdir option.  We are building in place.
21435     ac_srcdir=.
21436     if test -z "$ac_top_builddir"; then
21437        ac_top_srcdir=.
21438     else
21439        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21440     fi ;;
21441   [\\/]* | ?:[\\/]* )  # Absolute path.
21442     ac_srcdir=$srcdir$ac_dir_suffix;
21443     ac_top_srcdir=$srcdir ;;
21444   *) # Relative path.
21445     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21446     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21447 esac
21448
21449 # Do not use `cd foo && pwd` to compute absolute paths, because
21450 # the directories may not exist.
21451 case `pwd` in
21452 .) ac_abs_builddir="$ac_dir";;
21453 *)
21454   case "$ac_dir" in
21455   .) ac_abs_builddir=`pwd`;;
21456   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21457   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21458   esac;;
21459 esac
21460 case $ac_abs_builddir in
21461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21462 *)
21463   case ${ac_top_builddir}. in
21464   .) ac_abs_top_builddir=$ac_abs_builddir;;
21465   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21466   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21467   esac;;
21468 esac
21469 case $ac_abs_builddir in
21470 .) ac_abs_srcdir=$ac_srcdir;;
21471 *)
21472   case $ac_srcdir in
21473   .) ac_abs_srcdir=$ac_abs_builddir;;
21474   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21475   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21476   esac;;
21477 esac
21478 case $ac_abs_builddir in
21479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21480 *)
21481   case $ac_top_srcdir in
21482   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21483   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21484   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21485   esac;;
21486 esac
21487
21488
21489   case $INSTALL in
21490   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21491   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21492   esac
21493
21494   if test x"$ac_file" != x-; then
21495     { echo "$as_me:$LINENO: creating $ac_file" >&5
21496 echo "$as_me: creating $ac_file" >&6;}
21497     rm -f "$ac_file"
21498   fi
21499   # Let's still pretend it is `configure' which instantiates (i.e., don't
21500   # use $as_me), people would be surprised to read:
21501   #    /* config.h.  Generated by config.status.  */
21502   if test x"$ac_file" = x-; then
21503     configure_input=
21504   else
21505     configure_input="$ac_file.  "
21506   fi
21507   configure_input=$configure_input"Generated from `echo $ac_file_in |
21508                                      sed 's,.*/,,'` by configure."
21509
21510   # First look for the input files in the build tree, otherwise in the
21511   # src tree.
21512   ac_file_inputs=`IFS=:
21513     for f in $ac_file_in; do
21514       case $f in
21515       -) echo $tmp/stdin ;;
21516       [\\/$]*)
21517          # Absolute (can't be DOS-style, as IFS=:)
21518          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21519 echo "$as_me: error: cannot find input file: $f" >&2;}
21520    { (exit 1); exit 1; }; }
21521          echo "$f";;
21522       *) # Relative
21523          if test -f "$f"; then
21524            # Build tree
21525            echo "$f"
21526          elif test -f "$srcdir/$f"; then
21527            # Source tree
21528            echo "$srcdir/$f"
21529          else
21530            # /dev/null tree
21531            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21532 echo "$as_me: error: cannot find input file: $f" >&2;}
21533    { (exit 1); exit 1; }; }
21534          fi;;
21535       esac
21536     done` || { (exit 1); exit 1; }
21537 _ACEOF
21538 cat >>$CONFIG_STATUS <<_ACEOF
21539   sed "$ac_vpsub
21540 $extrasub
21541 _ACEOF
21542 cat >>$CONFIG_STATUS <<\_ACEOF
21543 :t
21544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21545 s,@configure_input@,$configure_input,;t t
21546 s,@srcdir@,$ac_srcdir,;t t
21547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21548 s,@top_srcdir@,$ac_top_srcdir,;t t
21549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21550 s,@builddir@,$ac_builddir,;t t
21551 s,@abs_builddir@,$ac_abs_builddir,;t t
21552 s,@top_builddir@,$ac_top_builddir,;t t
21553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21554 s,@INSTALL@,$ac_INSTALL,;t t
21555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21556   rm -f $tmp/stdin
21557   if test x"$ac_file" != x-; then
21558     mv $tmp/out $ac_file
21559   else
21560     cat $tmp/out
21561     rm -f $tmp/out
21562   fi
21563
21564 done
21565 _ACEOF
21566 cat >>$CONFIG_STATUS <<\_ACEOF
21567
21568 #
21569 # CONFIG_HEADER section.
21570 #
21571
21572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21574 #
21575 # ac_d sets the value in "#define NAME VALUE" lines.
21576 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21577 ac_dB='[         ].*$,\1#\2'
21578 ac_dC=' '
21579 ac_dD=',;t'
21580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21581 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21582 ac_uB='$,\1#\2define\3'
21583 ac_uC=' '
21584 ac_uD=',;t'
21585
21586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21587   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21588   case $ac_file in
21589   - | *:- | *:-:* ) # input from stdin
21590         cat >$tmp/stdin
21591         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21592         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21593   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21594         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21595   * )   ac_file_in=$ac_file.in ;;
21596   esac
21597
21598   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21599 echo "$as_me: creating $ac_file" >&6;}
21600
21601   # First look for the input files in the build tree, otherwise in the
21602   # src tree.
21603   ac_file_inputs=`IFS=:
21604     for f in $ac_file_in; do
21605       case $f in
21606       -) echo $tmp/stdin ;;
21607       [\\/$]*)
21608          # Absolute (can't be DOS-style, as IFS=:)
21609          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21610 echo "$as_me: error: cannot find input file: $f" >&2;}
21611    { (exit 1); exit 1; }; }
21612          # Do quote $f, to prevent DOS paths from being IFS'd.
21613          echo "$f";;
21614       *) # Relative
21615          if test -f "$f"; then
21616            # Build tree
21617            echo "$f"
21618          elif test -f "$srcdir/$f"; then
21619            # Source tree
21620            echo "$srcdir/$f"
21621          else
21622            # /dev/null tree
21623            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21624 echo "$as_me: error: cannot find input file: $f" >&2;}
21625    { (exit 1); exit 1; }; }
21626          fi;;
21627       esac
21628     done` || { (exit 1); exit 1; }
21629   # Remove the trailing spaces.
21630   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21631
21632 _ACEOF
21633
21634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21635 # `conftest.undefs', that substitutes the proper values into
21636 # config.h.in to produce config.h.  The first handles `#define'
21637 # templates, and the second `#undef' templates.
21638 # And first: Protect against being on the right side of a sed subst in
21639 # config.status.  Protect against being in an unquoted here document
21640 # in config.status.
21641 rm -f conftest.defines conftest.undefs
21642 # Using a here document instead of a string reduces the quoting nightmare.
21643 # Putting comments in sed scripts is not portable.
21644 #
21645 # `end' is used to avoid that the second main sed command (meant for
21646 # 0-ary CPP macros) applies to n-ary macro definitions.
21647 # See the Autoconf documentation for `clear'.
21648 cat >confdef2sed.sed <<\_ACEOF
21649 s/[\\&,]/\\&/g
21650 s,[\\$`],\\&,g
21651 t clear
21652 : clear
21653 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21654 t end
21655 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21656 : end
21657 _ACEOF
21658 # If some macros were called several times there might be several times
21659 # the same #defines, which is useless.  Nevertheless, we may not want to
21660 # sort them, since we want the *last* AC-DEFINE to be honored.
21661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21663 rm -f confdef2sed.sed
21664
21665 # This sed command replaces #undef with comments.  This is necessary, for
21666 # example, in the case of _POSIX_SOURCE, which is predefined and required
21667 # on some systems where configure will not decide to define it.
21668 cat >>conftest.undefs <<\_ACEOF
21669 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21670 _ACEOF
21671
21672 # Break up conftest.defines because some shells have a limit on the size
21673 # of here documents, and old seds have small limits too (100 cmds).
21674 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21675 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21676 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21677 echo '  :' >>$CONFIG_STATUS
21678 rm -f conftest.tail
21679 while grep . conftest.defines >/dev/null
21680 do
21681   # Write a limited-size here document to $tmp/defines.sed.
21682   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21683   # Speed up: don't consider the non `#define' lines.
21684   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21685   # Work around the forget-to-reset-the-flag bug.
21686   echo 't clr' >>$CONFIG_STATUS
21687   echo ': clr' >>$CONFIG_STATUS
21688   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21689   echo 'CEOF
21690   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21691   rm -f $tmp/in
21692   mv $tmp/out $tmp/in
21693 ' >>$CONFIG_STATUS
21694   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21695   rm -f conftest.defines
21696   mv conftest.tail conftest.defines
21697 done
21698 rm -f conftest.defines
21699 echo '  fi # grep' >>$CONFIG_STATUS
21700 echo >>$CONFIG_STATUS
21701
21702 # Break up conftest.undefs because some shells have a limit on the size
21703 # of here documents, and old seds have small limits too (100 cmds).
21704 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21705 rm -f conftest.tail
21706 while grep . conftest.undefs >/dev/null
21707 do
21708   # Write a limited-size here document to $tmp/undefs.sed.
21709   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21710   # Speed up: don't consider the non `#undef'
21711   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21712   # Work around the forget-to-reset-the-flag bug.
21713   echo 't clr' >>$CONFIG_STATUS
21714   echo ': clr' >>$CONFIG_STATUS
21715   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21716   echo 'CEOF
21717   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21718   rm -f $tmp/in
21719   mv $tmp/out $tmp/in
21720 ' >>$CONFIG_STATUS
21721   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21722   rm -f conftest.undefs
21723   mv conftest.tail conftest.undefs
21724 done
21725 rm -f conftest.undefs
21726
21727 cat >>$CONFIG_STATUS <<\_ACEOF
21728   # Let's still pretend it is `configure' which instantiates (i.e., don't
21729   # use $as_me), people would be surprised to read:
21730   #    /* config.h.  Generated by config.status.  */
21731   if test x"$ac_file" = x-; then
21732     echo "/* Generated by configure.  */" >$tmp/config.h
21733   else
21734     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21735   fi
21736   cat $tmp/in >>$tmp/config.h
21737   rm -f $tmp/in
21738   if test x"$ac_file" != x-; then
21739     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21740       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21741 echo "$as_me: $ac_file is unchanged" >&6;}
21742     else
21743       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21745          X"$ac_file" : 'X\(//\)[^/]' \| \
21746          X"$ac_file" : 'X\(//\)$' \| \
21747          X"$ac_file" : 'X\(/\)' \| \
21748          .     : '\(.\)' 2>/dev/null ||
21749 echo X"$ac_file" |
21750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21751           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21752           /^X\(\/\/\)$/{ s//\1/; q; }
21753           /^X\(\/\).*/{ s//\1/; q; }
21754           s/.*/./; q'`
21755       { if $as_mkdir_p; then
21756     mkdir -p "$ac_dir"
21757   else
21758     as_dir="$ac_dir"
21759     as_dirs=
21760     while test ! -d "$as_dir"; do
21761       as_dirs="$as_dir $as_dirs"
21762       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21764          X"$as_dir" : 'X\(//\)[^/]' \| \
21765          X"$as_dir" : 'X\(//\)$' \| \
21766          X"$as_dir" : 'X\(/\)' \| \
21767          .     : '\(.\)' 2>/dev/null ||
21768 echo X"$as_dir" |
21769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21770           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21771           /^X\(\/\/\)$/{ s//\1/; q; }
21772           /^X\(\/\).*/{ s//\1/; q; }
21773           s/.*/./; q'`
21774     done
21775     test ! -n "$as_dirs" || mkdir $as_dirs
21776   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21778    { (exit 1); exit 1; }; }; }
21779
21780       rm -f $ac_file
21781       mv $tmp/config.h $ac_file
21782     fi
21783   else
21784     cat $tmp/config.h
21785     rm -f $tmp/config.h
21786   fi
21787 # Compute $ac_file's index in $config_headers.
21788 _am_stamp_count=1
21789 for _am_header in $config_headers :; do
21790   case $_am_header in
21791     $ac_file | $ac_file:* )
21792       break ;;
21793     * )
21794       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21795   esac
21796 done
21797 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21798 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21799          X$ac_file : 'X\(//\)[^/]' \| \
21800          X$ac_file : 'X\(//\)$' \| \
21801          X$ac_file : 'X\(/\)' \| \
21802          .     : '\(.\)' 2>/dev/null ||
21803 echo X$ac_file |
21804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21805           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21806           /^X\(\/\/\)$/{ s//\1/; q; }
21807           /^X\(\/\).*/{ s//\1/; q; }
21808           s/.*/./; q'`/stamp-h$_am_stamp_count
21809 done
21810 _ACEOF
21811 cat >>$CONFIG_STATUS <<\_ACEOF
21812
21813 #
21814 # CONFIG_COMMANDS section.
21815 #
21816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21817   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21818   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21819   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21821          X"$ac_dest" : 'X\(//\)[^/]' \| \
21822          X"$ac_dest" : 'X\(//\)$' \| \
21823          X"$ac_dest" : 'X\(/\)' \| \
21824          .     : '\(.\)' 2>/dev/null ||
21825 echo X"$ac_dest" |
21826     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21827           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21828           /^X\(\/\/\)$/{ s//\1/; q; }
21829           /^X\(\/\).*/{ s//\1/; q; }
21830           s/.*/./; q'`
21831   { if $as_mkdir_p; then
21832     mkdir -p "$ac_dir"
21833   else
21834     as_dir="$ac_dir"
21835     as_dirs=
21836     while test ! -d "$as_dir"; do
21837       as_dirs="$as_dir $as_dirs"
21838       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21840          X"$as_dir" : 'X\(//\)[^/]' \| \
21841          X"$as_dir" : 'X\(//\)$' \| \
21842          X"$as_dir" : 'X\(/\)' \| \
21843          .     : '\(.\)' 2>/dev/null ||
21844 echo X"$as_dir" |
21845     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21846           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21847           /^X\(\/\/\)$/{ s//\1/; q; }
21848           /^X\(\/\).*/{ s//\1/; q; }
21849           s/.*/./; q'`
21850     done
21851     test ! -n "$as_dirs" || mkdir $as_dirs
21852   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21854    { (exit 1); exit 1; }; }; }
21855
21856   ac_builddir=.
21857
21858 if test "$ac_dir" != .; then
21859   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21860   # A "../" for each directory in $ac_dir_suffix.
21861   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21862 else
21863   ac_dir_suffix= ac_top_builddir=
21864 fi
21865
21866 case $srcdir in
21867   .)  # No --srcdir option.  We are building in place.
21868     ac_srcdir=.
21869     if test -z "$ac_top_builddir"; then
21870        ac_top_srcdir=.
21871     else
21872        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21873     fi ;;
21874   [\\/]* | ?:[\\/]* )  # Absolute path.
21875     ac_srcdir=$srcdir$ac_dir_suffix;
21876     ac_top_srcdir=$srcdir ;;
21877   *) # Relative path.
21878     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21879     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21880 esac
21881
21882 # Do not use `cd foo && pwd` to compute absolute paths, because
21883 # the directories may not exist.
21884 case `pwd` in
21885 .) ac_abs_builddir="$ac_dir";;
21886 *)
21887   case "$ac_dir" in
21888   .) ac_abs_builddir=`pwd`;;
21889   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21890   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21891   esac;;
21892 esac
21893 case $ac_abs_builddir in
21894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21895 *)
21896   case ${ac_top_builddir}. in
21897   .) ac_abs_top_builddir=$ac_abs_builddir;;
21898   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21899   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21900   esac;;
21901 esac
21902 case $ac_abs_builddir in
21903 .) ac_abs_srcdir=$ac_srcdir;;
21904 *)
21905   case $ac_srcdir in
21906   .) ac_abs_srcdir=$ac_abs_builddir;;
21907   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21908   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21909   esac;;
21910 esac
21911 case $ac_abs_builddir in
21912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21913 *)
21914   case $ac_top_srcdir in
21915   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21916   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21917   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21918   esac;;
21919 esac
21920
21921
21922   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21923 echo "$as_me: executing $ac_dest commands" >&6;}
21924   case $ac_dest in
21925     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21926   # Strip MF so we end up with the name of the file.
21927   mf=`echo "$mf" | sed -e 's/:.*$//'`
21928   # Check whether this is an Automake generated Makefile or not.
21929   # We used to match only the files named `Makefile.in', but
21930   # some people rename them; so instead we look at the file content.
21931   # Grep'ing the first line is not enough: some people post-process
21932   # each Makefile.in and add a new line on top of each file to say so.
21933   # So let's grep whole file.
21934   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21935     dirpart=`(dirname "$mf") 2>/dev/null ||
21936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937          X"$mf" : 'X\(//\)[^/]' \| \
21938          X"$mf" : 'X\(//\)$' \| \
21939          X"$mf" : 'X\(/\)' \| \
21940          .     : '\(.\)' 2>/dev/null ||
21941 echo X"$mf" |
21942     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21943           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21944           /^X\(\/\/\)$/{ s//\1/; q; }
21945           /^X\(\/\).*/{ s//\1/; q; }
21946           s/.*/./; q'`
21947   else
21948     continue
21949   fi
21950   # Extract the definition of DEPDIR, am__include, and am__quote
21951   # from the Makefile without running `make'.
21952   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21953   test -z "$DEPDIR" && continue
21954   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21955   test -z "am__include" && continue
21956   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21957   # When using ansi2knr, U may be empty or an underscore; expand it
21958   U=`sed -n 's/^U = //p' < "$mf"`
21959   # Find all dependency output files, they are included files with
21960   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21961   # simplest approach to changing $(DEPDIR) to its actual value in the
21962   # expansion.
21963   for file in `sed -n "
21964     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21965        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21966     # Make sure the directory exists.
21967     test -f "$dirpart/$file" && continue
21968     fdir=`(dirname "$file") 2>/dev/null ||
21969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970          X"$file" : 'X\(//\)[^/]' \| \
21971          X"$file" : 'X\(//\)$' \| \
21972          X"$file" : 'X\(/\)' \| \
21973          .     : '\(.\)' 2>/dev/null ||
21974 echo X"$file" |
21975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21976           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21977           /^X\(\/\/\)$/{ s//\1/; q; }
21978           /^X\(\/\).*/{ s//\1/; q; }
21979           s/.*/./; q'`
21980     { if $as_mkdir_p; then
21981     mkdir -p $dirpart/$fdir
21982   else
21983     as_dir=$dirpart/$fdir
21984     as_dirs=
21985     while test ! -d "$as_dir"; do
21986       as_dirs="$as_dir $as_dirs"
21987       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21989          X"$as_dir" : 'X\(//\)[^/]' \| \
21990          X"$as_dir" : 'X\(//\)$' \| \
21991          X"$as_dir" : 'X\(/\)' \| \
21992          .     : '\(.\)' 2>/dev/null ||
21993 echo X"$as_dir" |
21994     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21995           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21996           /^X\(\/\/\)$/{ s//\1/; q; }
21997           /^X\(\/\).*/{ s//\1/; q; }
21998           s/.*/./; q'`
21999     done
22000     test ! -n "$as_dirs" || mkdir $as_dirs
22001   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22003    { (exit 1); exit 1; }; }; }
22004
22005     # echo "creating $dirpart/$file"
22006     echo '# dummy' > "$dirpart/$file"
22007   done
22008 done
22009  ;;
22010   esac
22011 done
22012 _ACEOF
22013
22014 cat >>$CONFIG_STATUS <<\_ACEOF
22015
22016 { (exit 0); exit 0; }
22017 _ACEOF
22018 chmod +x $CONFIG_STATUS
22019 ac_clean_files=$ac_clean_files_save
22020
22021
22022 # configure is writing to config.log, and then calls config.status.
22023 # config.status does its own redirection, appending to config.log.
22024 # Unfortunately, on DOS this fails, as config.log is still kept open
22025 # by configure, so config.status won't be able to write to it; its
22026 # output is simply discarded.  So we exec the FD to /dev/null,
22027 # effectively closing config.log, so it can be properly (re)opened and
22028 # appended to by config.status.  When coming back to configure, we
22029 # need to make the FD available again.
22030 if test "$no_create" != yes; then
22031   ac_cs_success=:
22032   ac_config_status_args=
22033   test "$silent" = yes &&
22034     ac_config_status_args="$ac_config_status_args --quiet"
22035   exec 5>/dev/null
22036   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22037   exec 5>>config.log
22038   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22039   # would make configure fail if this is the last instruction.
22040   $ac_cs_success || { (exit 1); exit 1; }
22041 fi
22042