Release tarball for barry-0.4
[barry.git] / autom4te.cache / output.0
blobbc32bbcbb05b7f55bdcfa97186a529a79ab76647
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59 for barry 0.4.
4 @%:@
5 @%:@ Report bugs to <barry-devel@lists.sourceforge.net>.
6 @%:@ 
7 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8 @%:@ This configure script is free software; the Free Software Foundation
9 @%:@ gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
156   esac
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS="   $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
278   exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='barry'
425 PACKAGE_TARNAME='barry'
426 PACKAGE_VERSION='0.4'
427 PACKAGE_STRING='barry 0.4'
428 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
430 ac_unique_file="src/barry.h"
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"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBUSB_LIB_PATH LIBUSB_INC_PATH BOOST_LIB_PATH BOOST_INC_PATH WITH_BOOST_TRUE WITH_BOOST_FALSE LIB@&t@OBJS LTLIBOBJS'
469 ac_subst_files=''
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
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'
509 ac_prev=
510 for ac_option
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
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521   # Accept the important Cygnus configure options, so we can diagnose typos.
523   case $ac_option in
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
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 ;;
542   --config-cache | -C)
543     cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
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 ;;
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
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 ;;
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
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 ;;
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 ;;
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
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 ;;
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 ;;
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
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 ;;
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 ;;
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
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 ;;
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 ;;
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
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'" ;;
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" ;;
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
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 ;;
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 ;;
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
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 ;;
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     ;;
805   esac
806 done
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; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
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
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
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
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
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
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
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
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
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_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
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
951 # Report the --help message.
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 barry 0.4 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
964 Defaults for the options are specified in brackets.
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 \`..']
977 _ACEOF
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]
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'.
991 For better control, use the options below.
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
1008   cat <<\_ACEOF
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
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of barry 0.4:";;
1024    esac
1025   cat <<\_ACEOF
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --disable-dependency-tracking  speeds up one-time build
1031   --enable-dependency-tracking   do not reject slow dependency extractors
1032   --enable-shared@<:@=PKGS@:>@ 
1033                           build shared libraries @<:@default=yes@:>@
1034   --enable-static@<:@=PKGS@:>@ 
1035                           build static libraries @<:@default=yes@:>@
1036   --enable-fast-install@<:@=PKGS@:>@ 
1037                           optimize for fast installation @<:@default=yes@:>@
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1044   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1045                           both@:>@
1046   --with-tags@<:@=TAGS@:>@ 
1047                           include additional configurations @<:@automatic@:>@
1048   --with-libusb=<path>    root path of libusb installation
1049   --with-boost=<path>     root path of boost installation (default=no boost)
1051 Some influential environment variables:
1052   CC          C compiler command
1053   CFLAGS      C compiler flags
1054   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055               nonstandard directory <lib dir>
1056   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057               headers in a nonstandard directory <include dir>
1058   CXX         C++ compiler command
1059   CXXFLAGS    C++ compiler flags
1060   CPP         C preprocessor
1061   CXXCPP      C++ preprocessor
1062   F77         Fortran 77 compiler command
1063   FFLAGS      Fortran 77 compiler flags
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <barry-devel@lists.sourceforge.net>.
1069 _ACEOF
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=.
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=
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
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";;
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}.;;
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;;
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;;
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
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
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163   cat <<\_ACEOF
1164 barry configure 0.4
1165 generated by GNU Autoconf 2.59
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1170 _ACEOF
1171   exit 0
1173 exec 5>config.log
1174 cat >&5 <<_ACEOF
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by barry $as_me 0.4, which was
1179 generated by GNU Autoconf 2.59.  Invocation command line was
1181   $ $0 $@
1183 _ACEOF
1185 cat <<_ASUNAME
1186 @%:@@%:@ --------- @%:@@%:@
1187 @%:@@%:@ Platform. @%:@@%:@
1188 @%:@@%:@ --------- @%:@@%:@
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1199 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1200 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1203 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1204 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1205 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1207 _ASUNAME
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 for as_dir in $PATH
1212   IFS=$as_save_IFS
1213   test -z "$as_dir" && as_dir=.
1214   echo "PATH: $as_dir"
1215 done
1217 } >&5
1219 cat >&5 <<_ACEOF
1222 @%:@@%:@ ----------- @%:@@%:@
1223 @%:@@%:@ Core tests. @%:@@%:@
1224 @%:@@%:@ ----------- @%:@@%:@
1226 _ACEOF
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_configure_args=
1235 ac_configure_args0=
1236 ac_configure_args1=
1237 ac_sep=
1238 ac_must_keep_next=false
1239 for ac_pass in 1 2
1241   for ac_arg
1242   do
1243     case $ac_arg in
1244     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246     | -silent | --silent | --silen | --sile | --sil)
1247       continue ;;
1248     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250     esac
1251     case $ac_pass in
1252     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253     2)
1254       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255       if test $ac_must_keep_next = true; then
1256         ac_must_keep_next=false # Got value, back to normal.
1257       else
1258         case $ac_arg in
1259           *=* | --config-cache | -C | -disable-* | --disable-* \
1260           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262           | -with-* | --with-* | -without-* | --without-* | --x)
1263             case "$ac_configure_args0 " in
1264               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265             esac
1266             ;;
1267           -* ) ac_must_keep_next=true ;;
1268         esac
1269       fi
1270       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271       # Get rid of the leading space.
1272       ac_sep=" "
1273       ;;
1274     esac
1275   done
1276 done
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log.  We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286   # Save into config.log some information that might help in debugging.
1287   {
1288     echo
1290     cat <<\_ASBOX
1291 @%:@@%:@ ---------------- @%:@@%:@
1292 @%:@@%:@ Cache variables. @%:@@%:@
1293 @%:@@%:@ ---------------- @%:@@%:@
1294 _ASBOX
1295     echo
1296     # The following way of writing the cache mishandles newlines in values,
1298   (set) 2>&1 |
1299     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300     *ac_space=\ *)
1301       sed -n \
1302         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304       ;;
1305     *)
1306       sed -n \
1307         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308       ;;
1309     esac;
1311     echo
1313     cat <<\_ASBOX
1314 @%:@@%:@ ----------------- @%:@@%:@
1315 @%:@@%:@ Output variables. @%:@@%:@
1316 @%:@@%:@ ----------------- @%:@@%:@
1317 _ASBOX
1318     echo
1319     for ac_var in $ac_subst_vars
1320     do
1321       eval ac_val=$`echo $ac_var`
1322       echo "$ac_var='"'"'$ac_val'"'"'"
1323     done | sort
1324     echo
1326     if test -n "$ac_subst_files"; then
1327       cat <<\_ASBOX
1328 @%:@@%:@ ------------- @%:@@%:@
1329 @%:@@%:@ Output files. @%:@@%:@
1330 @%:@@%:@ ------------- @%:@@%:@
1331 _ASBOX
1332       echo
1333       for ac_var in $ac_subst_files
1334       do
1335         eval ac_val=$`echo $ac_var`
1336         echo "$ac_var='"'"'$ac_val'"'"'"
1337       done | sort
1338       echo
1339     fi
1341     if test -s confdefs.h; then
1342       cat <<\_ASBOX
1343 @%:@@%:@ ----------- @%:@@%:@
1344 @%:@@%:@ confdefs.h. @%:@@%:@
1345 @%:@@%:@ ----------- @%:@@%:@
1346 _ASBOX
1347       echo
1348       sed "/^$/d" confdefs.h | sort
1349       echo
1350     fi
1351     test "$ac_signal" != 0 &&
1352       echo "$as_me: caught signal $ac_signal"
1353     echo "$as_me: exit $exit_status"
1354   } >&5
1355   rm -f core *.core &&
1356   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357     exit $exit_status
1358      ' 0
1359 for ac_signal in 1 2 13 15; do
1360   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 done
1362 ac_signal=0
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 echo >confdefs.h
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1373 _ACEOF
1376 cat >>confdefs.h <<_ACEOF
1377 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 _ACEOF
1381 cat >>confdefs.h <<_ACEOF
1382 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1388 _ACEOF
1391 cat >>confdefs.h <<_ACEOF
1392 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 _ACEOF
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399   if test "x$prefix" != xNONE; then
1400     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401   else
1402     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403   fi
1405 for ac_site_file in $CONFIG_SITE; do
1406   if test -r "$ac_site_file"; then
1407     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409     sed 's/^/| /' "$ac_site_file" >&5
1410     . "$ac_site_file"
1411   fi
1412 done
1414 if test -r "$cache_file"; then
1415   # Some versions of bash will fail to source /dev/null (special
1416   # files actually), so we avoid doing that.
1417   if test -f "$cache_file"; then
1418     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1420     case $cache_file in
1421       [\\/]* | ?:[\\/]* ) . $cache_file;;
1422       *)                      . ./$cache_file;;
1423     esac
1424   fi
1425 else
1426   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1428   >$cache_file
1431 # Check that the precious variables saved in the cache have kept the same
1432 # value.
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437   eval ac_new_set=\$ac_env_${ac_var}_set
1438   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439   eval ac_new_val="\$ac_env_${ac_var}_value"
1440   case $ac_old_set,$ac_new_set in
1441     set,)
1442       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444       ac_cache_corrupted=: ;;
1445     ,set)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,);;
1450     *)
1451       if test "x$ac_old_val" != "x$ac_new_val"; then
1452         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1455 echo "$as_me:   former value:  $ac_old_val" >&2;}
1456         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1457 echo "$as_me:   current value: $ac_new_val" >&2;}
1458         ac_cache_corrupted=:
1459       fi;;
1460   esac
1461   # Pass precious variables to config.status.
1462   if test "$ac_new_set" = set; then
1463     case $ac_new_val in
1464     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466     *) ac_arg=$ac_var=$ac_new_val ;;
1467     esac
1468     case " $ac_configure_args " in
1469       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1470       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471     esac
1472   fi
1473 done
1474 if $ac_cache_corrupted; then
1475   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479    { (exit 1); exit 1; }; }
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514 #AM_CONFIG_HEADER(config.h)
1516           ac_config_headers="$ac_config_headers config.h:config.h.in"
1518 am__api_version="1.9"
1519 ac_aux_dir=
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521   if test -f $ac_dir/install-sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install-sh -c"
1524     break
1525   elif test -f $ac_dir/install.sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install.sh -c"
1528     break
1529   elif test -f $ac_dir/shtool; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/shtool install -c"
1532     break
1533   fi
1534 done
1535 if test -z "$ac_aux_dir"; then
1536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538    { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544 # Find a good install program.  We prefer a C program (faster),
1545 # so one script is as good as another.  But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1550 # AIX /bin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   # Account for people who put trailing slashes in PATH elements.
1569 case $as_dir/ in
1570   ./ | .// | /cC/* | \
1571   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573   /usr/ucb/* ) ;;
1574   *)
1575     # OSF1 and SCO ODT 3.0 have their own names for install.
1576     # Don't use installbsd from OSF since it installs stuff as root
1577     # by default.
1578     for ac_prog in ginstall scoinst install; do
1579       for ac_exec_ext in '' $ac_executable_extensions; do
1580         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581           if test $ac_prog = install &&
1582             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583             # AIX install.  It has an incompatible calling convention.
1584             :
1585           elif test $ac_prog = install &&
1586             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587             # program-specific install script used by HP pwplus--don't use.
1588             :
1589           else
1590             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591             break 3
1592           fi
1593         fi
1594       done
1595     done
1596     ;;
1597 esac
1598 done
1602   if test "${ac_cv_path_install+set}" = set; then
1603     INSTALL=$ac_cv_path_install
1604   else
1605     # As a last resort, use the slow shell script.  We don't cache a
1606     # path for INSTALL within a source directory, because that will
1607     # break other packages using the cache if that directory is
1608     # removed, or if the path is relative.
1609     INSTALL=$ac_install_sh
1610   fi
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 # Just in case
1626 sleep 1
1627 echo timestamp > conftest.file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments.  Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1632 # directory).
1633 if (
1634    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635    if test "$*" = "X"; then
1636       # -L didn't work.
1637       set X `ls -t $srcdir/configure conftest.file`
1638    fi
1639    rm -f conftest.file
1640    if test "$*" != "X $srcdir/configure conftest.file" \
1641       && test "$*" != "X conftest.file $srcdir/configure"; then
1643       # If neither matched, then we have a broken ls.  This can happen
1644       # if, for instance, CONFIG_SHELL is bash and it inherits a
1645       # broken ls alias from the environment.  This has actually
1646       # happened.  Such a system could not be considered "sane".
1647       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1650 alias in your environment" >&2;}
1651    { (exit 1); exit 1; }; }
1652    fi
1654    test "$2" = conftest.file
1655    )
1656 then
1657    # Ok.
1658    :
1659 else
1660    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664    { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE &&
1669   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE &&
1672   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $.  echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF >conftest.sed
1676 s/[\\$]/&&/g;s/;s,x,x,$//
1677 _ACEOF
1678 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 rm conftest.sed
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687   am_missing_run="$MISSING --run "
1688 else
1689   am_missing_run=
1690   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695   # We used to keeping the `.' as first argument, in order to
1696   # allow $(mkdir_p) to be used without argument.  As in
1697   #   $(mkdir_p) $(somedir)
1698   # where $(somedir) is conditionally defined.  However this is wrong
1699   # for two reasons:
1700   #  1. if the package is installed by a user who cannot write `.'
1701   #     make install will fail,
1702   #  2. the above comment should most certainly read
1703   #     $(mkdir_p) $(DESTDIR)$(somedir)
1704   #     so it does not work when $(somedir) is undefined and
1705   #     $(DESTDIR) is not.
1706   #  To support the latter case, we have to write
1707   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708   #  so the `.' trick is pointless.
1709   mkdir_p='mkdir -p --'
1710 else
1711   # On NextStep and OpenStep, the `mkdir' command does not
1712   # recognize any option.  It will interpret all options as
1713   # directories to create, and then abort because `.' already
1714   # exists.
1715   for d in ./-p ./--version;
1716   do
1717     test -d $d && rmdir $d
1718   done
1719   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720   if test -f "$ac_aux_dir/mkinstalldirs"; then
1721     mkdir_p='$(mkinstalldirs)'
1722   else
1723     mkdir_p='$(install_sh) -d'
1724   fi
1727 for ac_prog in gawk mawk nawk awk
1729   # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$AWK"; then
1737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_AWK="$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1755 AWK=$ac_cv_prog_AWK
1756 if test -n "$AWK"; then
1757   echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764   test -n "$AWK" && break
1765 done
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   cat >conftest.make <<\_ACEOF
1774 all:
1775         @echo 'ac_maketemp="$(MAKE)"'
1776 _ACEOF
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780   eval ac_cv_prog_make_${ac_make}_set=yes
1781 else
1782   eval ac_cv_prog_make_${ac_make}_set=no
1784 rm -f conftest.make
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787   echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1789   SET_MAKE=
1790 else
1791   echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793   SET_MAKE="MAKE=${MAKE-make}"
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1799   am__leading_dot=.
1800 else
1801   am__leading_dot=_
1803 rmdir .tst 2>/dev/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807    test -f $srcdir/config.status; then
1808   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810    { (exit 1); exit 1; }; }
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815   if (cygpath --version) >/dev/null 2>/dev/null; then
1816     CYGPATH_W='cygpath -w'
1817   else
1818     CYGPATH_W=echo
1819   fi
1823 # Define the identity of the package.
1824  PACKAGE='barry'
1825  VERSION='0.4'
1828 cat >>confdefs.h <<_ACEOF
1829 @%:@define PACKAGE "$PACKAGE"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 @%:@define VERSION "$VERSION"
1835 _ACEOF
1837 # Some tools Automake needs.
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'.  However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no; then
1860   if test -n "$ac_tool_prefix"; then
1861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy ${ac_tool_prefix}strip; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   if test -n "$STRIP"; then
1869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876   for ac_exec_ext in '' $ac_executable_extensions; do
1877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880     break 2
1881   fi
1882 done
1883 done
1887 STRIP=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889   echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$ac_cv_prog_STRIP"; then
1898   ac_ct_STRIP=$STRIP
1899   # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   if test -n "$ac_ct_STRIP"; then
1907   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1912   IFS=$as_save_IFS
1913   test -z "$as_dir" && as_dir=.
1914   for ac_exec_ext in '' $ac_executable_extensions; do
1915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916     ac_cv_prog_ac_ct_STRIP="strip"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1923   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1935   STRIP=$ac_ct_STRIP
1936 else
1937   STRIP="$ac_cv_prog_STRIP"
1941 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943 # We need awk for the "check" target.  The system "awk" is bad on
1944 # some platforms.
1945 # Always define AMTAR for backward compatibility.
1947 AMTAR=${AMTAR-"${am_missing_run}tar"}
1949 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956 # Checks for programs.
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CC"; then
1971   ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_CC"; then
2000   ac_ct_CC=$CC
2001   # Extract the first word of "gcc", so it can be a program name with args.
2002 set dummy gcc; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$ac_ct_CC"; then
2009   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_ac_ct_CC="gcc"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2028 if test -n "$ac_ct_CC"; then
2029   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030 echo "${ECHO_T}$ac_ct_CC" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2036   CC=$ac_ct_CC
2037 else
2038   CC="$ac_cv_prog_CC"
2041 if test -z "$CC"; then
2042   if test -n "$ac_tool_prefix"; then
2043   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2044 set dummy ${ac_tool_prefix}cc; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_CC="${ac_tool_prefix}cc"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071   echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2079 if test -z "$ac_cv_prog_CC"; then
2080   ac_ct_CC=$CC
2081   # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc; ac_word=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   if test -n "$ac_ct_CC"; then
2089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2094   IFS=$as_save_IFS
2095   test -z "$as_dir" && as_dir=.
2096   for ac_exec_ext in '' $ac_executable_extensions; do
2097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098     ac_cv_prog_ac_ct_CC="cc"
2099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100     break 2
2101   fi
2102 done
2103 done
2107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2111 else
2112   echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2116   CC=$ac_ct_CC
2117 else
2118   CC="$ac_cv_prog_CC"
2122 if test -z "$CC"; then
2123   # Extract the first word of "cc", so it can be a program name with args.
2124 set dummy cc; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   if test -n "$CC"; then
2131   ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133   ac_prog_rejected=no
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   for ac_exec_ext in '' $ac_executable_extensions; do
2140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2142        ac_prog_rejected=yes
2143        continue
2144      fi
2145     ac_cv_prog_CC="cc"
2146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147     break 2
2148   fi
2149 done
2150 done
2152 if test $ac_prog_rejected = yes; then
2153   # We found a bogon in the path, so make sure we never use it.
2154   set dummy $ac_cv_prog_CC
2155   shift
2156   if test $@%:@ != 0; then
2157     # We chose a different compiler from the bogus one.
2158     # However, it has the same basename, so the bogon will be chosen
2159     # first if we set CC to just the basename; use the full file name.
2160     shift
2161     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2162   fi
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168   echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$CC"; then
2177   if test -n "$ac_tool_prefix"; then
2178   for ac_prog in cl
2179   do
2180     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$CC"; then
2188   ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208   echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211   echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215     test -n "$CC" && break
2216   done
2218 if test -z "$CC"; then
2219   ac_ct_CC=$CC
2220   for ac_prog in cl
2222   # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy $ac_prog; ac_word=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test -n "$ac_ct_CC"; then
2230   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   for ac_exec_ext in '' $ac_executable_extensions; do
2238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239     ac_cv_prog_ac_ct_CC="$ac_prog"
2240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241     break 2
2242   fi
2243 done
2244 done
2248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2249 if test -n "$ac_ct_CC"; then
2250   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2251 echo "${ECHO_T}$ac_ct_CC" >&6
2252 else
2253   echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2257   test -n "$ac_ct_CC" && break
2258 done
2260   CC=$ac_ct_CC
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO:" \
2274      "checking for C compiler version" >&5
2275 ac_compiler=`set X $ac_compile; echo $2`
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2277   (eval $ac_compiler --version </dev/null >&5) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }
2281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2282   (eval $ac_compiler -v </dev/null >&5) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2287   (eval $ac_compiler -V </dev/null >&5) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2300 main ()
2303   ;
2304   return 0;
2306 _ACEOF
2307 ac_clean_files_save=$ac_clean_files
2308 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2309 # Try to create an executable without -o first, disregard a.out.
2310 # It will help us diagnose broken compilers, and finding out an intuition
2311 # of exeext.
2312 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2316   (eval $ac_link_default) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   # Find the output, starting from the most likely.  This scheme is
2321 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2322 # resort.
2324 # Be careful to initialize this variable, since it used to be cached.
2325 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2326 ac_cv_exeext=
2327 # b.out is created by i960 compilers.
2328 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2330   test -f "$ac_file" || continue
2331   case $ac_file in
2332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2333         ;;
2334     conftest.$ac_ext )
2335         # This is the source file.
2336         ;;
2337     [ab].out )
2338         # We found the default executable, but exeext='' is most
2339         # certainly right.
2340         break;;
2341     *.* )
2342         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343         # FIXME: I believe we export ac_cv_exeext for Libtool,
2344         # but it would be cool to find out if it's true.  Does anybody
2345         # maintain Libtool? --akim.
2346         export ac_cv_exeext
2347         break;;
2348     * )
2349         break;;
2350   esac
2351 done
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360    { (exit 77); exit 77; }; }
2363 ac_exeext=$ac_cv_exeext
2364 echo "$as_me:$LINENO: result: $ac_file" >&5
2365 echo "${ECHO_T}$ac_file" >&6
2367 # Check the compiler produces executables we can run.  If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2372 # If not cross compiling, check that we can run a simple program.
2373 if test "$cross_compiling" != yes; then
2374   if { ac_try='./$ac_file'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; }; then
2380     cross_compiling=no
2381   else
2382     if test "$cross_compiling" = maybe; then
2383         cross_compiling=yes
2384     else
2385         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&2;}
2391    { (exit 1); exit 1; }; }
2392     fi
2393   fi
2395 echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2399 ac_clean_files=$ac_clean_files_save
2400 # Check the compiler produces executables we can run.  If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2405 echo "${ECHO_T}$cross_compiling" >&6
2407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2410   (eval $ac_link) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; then
2414   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2417 # `rm'.
2418 for ac_file in conftest.exe conftest conftest.*; do
2419   test -f "$ac_file" || continue
2420   case $ac_file in
2421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2422     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423           export ac_cv_exeext
2424           break;;
2425     * ) break;;
2426   esac
2427 done
2428 else
2429   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&2;}
2433    { (exit 1); exit 1; }; }
2436 rm -f conftest$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2438 echo "${ECHO_T}$ac_cv_exeext" >&6
2440 rm -f conftest.$ac_ext
2441 EXEEXT=$ac_cv_exeext
2442 ac_exeext=$EXEEXT
2443 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2444 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2445 if test "${ac_cv_objext+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2456 main ()
2459   ;
2460   return 0;
2462 _ACEOF
2463 rm -f conftest.o conftest.obj
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465   (eval $ac_compile) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2470   case $ac_file in
2471     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2472     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2473        break;;
2474   esac
2475 done
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&2;}
2484    { (exit 1); exit 1; }; }
2487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2489 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2490 echo "${ECHO_T}$ac_cv_objext" >&6
2491 OBJEXT=$ac_cv_objext
2492 ac_objext=$OBJEXT
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2506 main ()
2508 #ifndef __GNUC__
2509        choke me
2510 #endif
2512   ;
2513   return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_compiler_gnu=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 ac_compiler_gnu=no
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 CFLAGS="-g"
2554 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2567 main ()
2570   ;
2571   return 0;
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>conftest.er1
2577   ac_status=$?
2578   grep -v '^ *+' conftest.er1 >conftest.err
2579   rm -f conftest.er1
2580   cat conftest.err >&5
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; } &&
2589          { ac_try='test -s conftest.$ac_objext'
2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591   (eval $ac_try) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595   ac_cv_prog_cc_g=yes
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 ac_cv_prog_cc_g=no
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2606 if test "$ac_test_CFLAGS" = set; then
2607   CFLAGS=$ac_save_CFLAGS
2608 elif test $ac_cv_prog_cc_g = yes; then
2609   if test "$GCC" = yes; then
2610     CFLAGS="-g -O2"
2611   else
2612     CFLAGS="-g"
2613   fi
2614 else
2615   if test "$GCC" = yes; then
2616     CFLAGS="-O2"
2617   else
2618     CFLAGS=
2619   fi
2621 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2622 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   ac_cv_prog_cc_stdc=no
2627 ac_save_CC=$CC
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 #include <stdarg.h>
2635 #include <stdio.h>
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2642      char **p;
2643      int i;
2645   return p[i];
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2649   char *s;
2650   va_list v;
2651   va_start (v,p);
2652   s = g (p, va_arg (v,int));
2653   va_end (v);
2654   return s;
2657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2658    function prototypes and stuff, but not '\xHH' hex character constants.
2659    These don't provoke an error unfortunately, instead are silently treated
2660    as 'x'.  The following induces an error, until -std1 is added to get
2661    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2662    array size at least.  It's necessary to write '\x00'==0 to get something
2663    that's true only with -std1.  */
2664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2673 main ()
2675 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2676   ;
2677   return 0;
2679 _ACEOF
2680 # Don't try gcc -ansi; that turns off useful extensions and
2681 # breaks some systems' header files.
2682 # AIX                   -qlanglvl=ansi
2683 # Ultrix and OSF/1      -std1
2684 # HP-UX 10.20 and later -Ae
2685 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2686 # SVR4                  -Xc -D__EXTENSIONS__
2687 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689   CC="$ac_save_CC $ac_arg"
2690   rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; } &&
2705          { ac_try='test -s conftest.$ac_objext'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711   ac_cv_prog_cc_stdc=$ac_arg
2712 break
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext 
2719 done
2720 rm -f conftest.$ac_ext conftest.$ac_objext
2721 CC=$ac_save_CC
2725 case "x$ac_cv_prog_cc_stdc" in
2726   x|xno)
2727     echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2729   *)
2730     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732     CC="$CC $ac_cv_prog_cc_stdc" ;;
2733 esac
2735 # Some people use a C++ compiler to compile C.  Since we use `exit',
2736 # in C++ we need to declare it.  In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.$ac_ext <<_ACEOF
2740 @%:@ifndef __cplusplus
2741   choke me
2742 @%:@endif
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   for ac_declaration in \
2766    '' \
2767    'extern "C" void std::exit (int) throw (); using std::exit;' \
2768    'extern "C" void std::exit (int); using std::exit;' \
2769    'extern "C" void exit (int) throw ();' \
2770    'extern "C" void exit (int);' \
2771    'void exit (int);'
2773   cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779 $ac_declaration
2780 @%:@include <stdlib.h>
2782 main ()
2784 exit (42);
2785   ;
2786   return 0;
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791   (eval $ac_compile) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -z "$ac_c_werror_flag"                   || 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   :
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 continue
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 $ac_declaration
2826 main ()
2828 exit (42);
2829   ;
2830   return 0;
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835   (eval $ac_compile) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; } &&
2848          { ac_try='test -s conftest.$ac_objext'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   break
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 done
2862 rm -f conftest*
2863 if test -n "$ac_declaration"; then
2864   echo '#ifdef __cplusplus' >>confdefs.h
2865   echo $ac_declaration      >>confdefs.h
2866   echo '#endif'             >>confdefs.h
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 DEPDIR="${am__leading_dot}deps"
2882           ac_config_commands="$ac_config_commands depfiles"
2885 am_make=${MAKE-make}
2886 cat > confinc << 'END'
2887 am__doit:
2888         @echo done
2889 .PHONY: am__doit
2891 # If we don't find an include directive, just comment out the code.
2892 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2893 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2894 am__include="#"
2895 am__quote=
2896 _am_result=none
2897 # First try GNU make style include.
2898 echo "include confinc" > confmf
2899 # We grep out `Entering directory' and `Leaving directory'
2900 # messages which can occur if `w' ends up in MAKEFLAGS.
2901 # In particular we don't look at `^make:' because GNU make might
2902 # be invoked under some other name (usually "gmake"), in which
2903 # case it prints its new name instead of `make'.
2904 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2905    am__include=include
2906    am__quote=
2907    _am_result=GNU
2909 # Now try BSD make style include.
2910 if test "$am__include" = "#"; then
2911    echo '.include "confinc"' > confmf
2912    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2913       am__include=.include
2914       am__quote="\""
2915       _am_result=BSD
2916    fi
2920 echo "$as_me:$LINENO: result: $_am_result" >&5
2921 echo "${ECHO_T}$_am_result" >&6
2922 rm -f confinc confmf
2924 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2925 if test "${enable_dependency_tracking+set}" = set; then
2926   enableval="$enable_dependency_tracking"
2927   
2928 fi; 
2929 if test "x$enable_dependency_tracking" != xno; then
2930   am_depcomp="$ac_aux_dir/depcomp"
2931   AMDEPBACKSLASH='\'
2935 if test "x$enable_dependency_tracking" != xno; then
2936   AMDEP_TRUE=
2937   AMDEP_FALSE='#'
2938 else
2939   AMDEP_TRUE='#'
2940   AMDEP_FALSE=
2946 depcc="$CC"   am_compiler_list=
2948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2954   # We make a subdir and do the tests there.  Otherwise we can end up
2955   # making bogus files that we don't know about and never remove.  For
2956   # instance it was reported that on HP-UX the gcc test will end up
2957   # making a dummy file named `D' -- because `-MD' means `put the output
2958   # in D'.
2959   mkdir conftest.dir
2960   # Copy depcomp to subdir because otherwise we won't find it if we're
2961   # using a relative directory.
2962   cp "$am_depcomp" conftest.dir
2963   cd conftest.dir
2964   # We will build objects and dependencies in a subdirectory because
2965   # it helps to detect inapplicable dependency modes.  For instance
2966   # both Tru64's cc and ICC support -MD to output dependencies as a
2967   # side effect of compilation, but ICC will put the dependencies in
2968   # the current directory while Tru64 will put them in the object
2969   # directory.
2970   mkdir sub
2972   am_cv_CC_dependencies_compiler_type=none
2973   if test "$am_compiler_list" = ""; then
2974      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2975   fi
2976   for depmode in $am_compiler_list; do
2977     # Setup a source with many dependencies, because some compilers
2978     # like to wrap large dependency lists on column 80 (with \), and
2979     # we should not choose a depcomp mode which is confused by this.
2980     #
2981     # We need to recreate these files for each test, as the compiler may
2982     # overwrite some of them when testing with obscure command lines.
2983     # This happens at least with the AIX C compiler.
2984     : > sub/conftest.c
2985     for i in 1 2 3 4 5 6; do
2986       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2987       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2988       # Solaris 8's {/usr,}/bin/sh.
2989       touch sub/conftst$i.h
2990     done
2991     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2993     case $depmode in
2994     nosideeffect)
2995       # after this tag, mechanisms are not by side-effect, so they'll
2996       # only be used when explicitly requested
2997       if test "x$enable_dependency_tracking" = xyes; then
2998         continue
2999       else
3000         break
3001       fi
3002       ;;
3003     none) break ;;
3004     esac
3005     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006     # mode.  It turns out that the SunPro C++ compiler does not properly
3007     # handle `-M -o', and we need to detect this.
3008     if depmode=$depmode \
3009        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012          >/dev/null 2>conftest.err &&
3013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016       # icc doesn't choke on unknown options, it will just issue warnings
3017       # or remarks (even with -Werror).  So we grep stderr for any message
3018       # that says an option was ignored or not supported.
3019       # When given -MP, icc 7.0 and 7.1 complain thusly:
3020       #   icc: Command line warning: ignoring option '-M'; no argument required
3021       # The diagnosis changed in icc 8.0:
3022       #   icc: Command line remark: option '-MP' not supported
3023       if (grep 'ignoring option' conftest.err ||
3024           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3025         am_cv_CC_dependencies_compiler_type=$depmode
3026         break
3027       fi
3028     fi
3029   done
3031   cd ..
3032   rm -rf conftest.dir
3033 else
3034   am_cv_CC_dependencies_compiler_type=none
3038 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3044 if 
3045   test "x$enable_dependency_tracking" != xno \
3046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3047   am__fastdepCC_TRUE=
3048   am__fastdepCC_FALSE='#'
3049 else
3050   am__fastdepCC_TRUE='#'
3051   am__fastdepCC_FALSE=
3055 ac_ext=cc
3056 ac_cpp='$CXXCPP $CPPFLAGS'
3057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3062   do
3063     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CXX+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   if test -n "$CXX"; then
3071   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078   for ac_exec_ext in '' $ac_executable_extensions; do
3079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085 done
3089 CXX=$ac_cv_prog_CXX
3090 if test -n "$CXX"; then
3091   echo "$as_me:$LINENO: result: $CXX" >&5
3092 echo "${ECHO_T}$CXX" >&6
3093 else
3094   echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3098     test -n "$CXX" && break
3099   done
3101 if test -z "$CXX"; then
3102   ac_ct_CXX=$CXX
3103   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3105   # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   if test -n "$ac_ct_CXX"; then
3113   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120   for ac_exec_ext in '' $ac_executable_extensions; do
3121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122     ac_cv_prog_ac_ct_CXX="$ac_prog"
3123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127 done
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6
3135 else
3136   echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140   test -n "$ac_ct_CXX" && break
3141 done
3142 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3144   CXX=$ac_ct_CXX
3148 # Provide some information about the compiler.
3149 echo "$as_me:$LINENO:" \
3150      "checking for C++ compiler version" >&5
3151 ac_compiler=`set X $ac_compile; echo $2`
3152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3153   (eval $ac_compiler --version </dev/null >&5) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }
3157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3158   (eval $ac_compiler -v </dev/null >&5) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }
3162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3163   (eval $ac_compiler -V </dev/null >&5) 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }
3168 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3169 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3170 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3181 main ()
3183 #ifndef __GNUC__
3184        choke me
3185 #endif
3187   ;
3188   return 0;
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193   (eval $ac_compile) 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } &&
3200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202   (eval $ac_try) 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; } &&
3206          { ac_try='test -s conftest.$ac_objext'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   ac_compiler_gnu=yes
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 ac_compiler_gnu=no
3219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3223 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3225 GXX=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CXXFLAGS=${CXXFLAGS+set}
3227 ac_save_CXXFLAGS=$CXXFLAGS
3228 CXXFLAGS="-g"
3229 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3242 main ()
3245   ;
3246   return 0;
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251   (eval $ac_compile) 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } &&
3258          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; } &&
3264          { ac_try='test -s conftest.$ac_objext'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; }; then
3270   ac_cv_prog_cxx_g=yes
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 ac_cv_prog_cxx_g=no
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282   CXXFLAGS=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284   if test "$GXX" = yes; then
3285     CXXFLAGS="-g -O2"
3286   else
3287     CXXFLAGS="-g"
3288   fi
3289 else
3290   if test "$GXX" = yes; then
3291     CXXFLAGS="-O2"
3292   else
3293     CXXFLAGS=
3294   fi
3296 for ac_declaration in \
3297    '' \
3298    'extern "C" void std::exit (int) throw (); using std::exit;' \
3299    'extern "C" void std::exit (int); using std::exit;' \
3300    'extern "C" void exit (int) throw ();' \
3301    'extern "C" void exit (int);' \
3302    'void exit (int);'
3304   cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 $ac_declaration
3311 @%:@include <stdlib.h>
3313 main ()
3315 exit (42);
3316   ;
3317   return 0;
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322   (eval $ac_compile) 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } &&
3329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331   (eval $ac_try) 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; } &&
3335          { ac_try='test -s conftest.$ac_objext'
3336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337   (eval $ac_try) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341   :
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 continue
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3349   cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 $ac_declaration
3357 main ()
3359 exit (42);
3360   ;
3361   return 0;
3363 _ACEOF
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366   (eval $ac_compile) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest.$ac_objext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385   break
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 done
3393 rm -f conftest*
3394 if test -n "$ac_declaration"; then
3395   echo '#ifdef __cplusplus' >>confdefs.h
3396   echo $ac_declaration      >>confdefs.h
3397   echo '#endif'             >>confdefs.h
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 depcc="$CXX"  am_compiler_list=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414   # We make a subdir and do the tests there.  Otherwise we can end up
3415   # making bogus files that we don't know about and never remove.  For
3416   # instance it was reported that on HP-UX the gcc test will end up
3417   # making a dummy file named `D' -- because `-MD' means `put the output
3418   # in D'.
3419   mkdir conftest.dir
3420   # Copy depcomp to subdir because otherwise we won't find it if we're
3421   # using a relative directory.
3422   cp "$am_depcomp" conftest.dir
3423   cd conftest.dir
3424   # We will build objects and dependencies in a subdirectory because
3425   # it helps to detect inapplicable dependency modes.  For instance
3426   # both Tru64's cc and ICC support -MD to output dependencies as a
3427   # side effect of compilation, but ICC will put the dependencies in
3428   # the current directory while Tru64 will put them in the object
3429   # directory.
3430   mkdir sub
3432   am_cv_CXX_dependencies_compiler_type=none
3433   if test "$am_compiler_list" = ""; then
3434      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435   fi
3436   for depmode in $am_compiler_list; do
3437     # Setup a source with many dependencies, because some compilers
3438     # like to wrap large dependency lists on column 80 (with \), and
3439     # we should not choose a depcomp mode which is confused by this.
3440     #
3441     # We need to recreate these files for each test, as the compiler may
3442     # overwrite some of them when testing with obscure command lines.
3443     # This happens at least with the AIX C compiler.
3444     : > sub/conftest.c
3445     for i in 1 2 3 4 5 6; do
3446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448       # Solaris 8's {/usr,}/bin/sh.
3449       touch sub/conftst$i.h
3450     done
3451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3453     case $depmode in
3454     nosideeffect)
3455       # after this tag, mechanisms are not by side-effect, so they'll
3456       # only be used when explicitly requested
3457       if test "x$enable_dependency_tracking" = xyes; then
3458         continue
3459       else
3460         break
3461       fi
3462       ;;
3463     none) break ;;
3464     esac
3465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466     # mode.  It turns out that the SunPro C++ compiler does not properly
3467     # handle `-M -o', and we need to detect this.
3468     if depmode=$depmode \
3469        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472          >/dev/null 2>conftest.err &&
3473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476       # icc doesn't choke on unknown options, it will just issue warnings
3477       # or remarks (even with -Werror).  So we grep stderr for any message
3478       # that says an option was ignored or not supported.
3479       # When given -MP, icc 7.0 and 7.1 complain thusly:
3480       #   icc: Command line warning: ignoring option '-M'; no argument required
3481       # The diagnosis changed in icc 8.0:
3482       #   icc: Command line remark: option '-MP' not supported
3483       if (grep 'ignoring option' conftest.err ||
3484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485         am_cv_CXX_dependencies_compiler_type=$depmode
3486         break
3487       fi
3488     fi
3489   done
3491   cd ..
3492   rm -rf conftest.dir
3493 else
3494   am_cv_CXX_dependencies_compiler_type=none
3498 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3504 if 
3505   test "x$enable_dependency_tracking" != xno \
3506   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3507   am__fastdepCXX_TRUE=
3508   am__fastdepCXX_FALSE='#'
3509 else
3510   am__fastdepCXX_TRUE='#'
3511   am__fastdepCXX_FALSE=
3515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3517 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3518 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   cat >conftest.make <<\_ACEOF
3522 all:
3523         @echo 'ac_maketemp="$(MAKE)"'
3524 _ACEOF
3525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3526 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3527 if test -n "$ac_maketemp"; then
3528   eval ac_cv_prog_make_${ac_make}_set=yes
3529 else
3530   eval ac_cv_prog_make_${ac_make}_set=no
3532 rm -f conftest.make
3534 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3535   echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537   SET_MAKE=
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541   SET_MAKE="MAKE=${MAKE-make}"
3544 # Check whether --enable-shared or --disable-shared was given.
3545 if test "${enable_shared+set}" = set; then
3546   enableval="$enable_shared"
3547   p=${PACKAGE-default}
3548     case $enableval in
3549     yes) enable_shared=yes ;;
3550     no) enable_shared=no ;;
3551     *)
3552       enable_shared=no
3553       # Look at the argument we got.  We use all the common list separators.
3554       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3555       for pkg in $enableval; do
3556         IFS="$lt_save_ifs"
3557         if test "X$pkg" = "X$p"; then
3558           enable_shared=yes
3559         fi
3560       done
3561       IFS="$lt_save_ifs"
3562       ;;
3563     esac
3564 else
3565   enable_shared=yes
3566 fi; 
3568 # Check whether --enable-static or --disable-static was given.
3569 if test "${enable_static+set}" = set; then
3570   enableval="$enable_static"
3571   p=${PACKAGE-default}
3572     case $enableval in
3573     yes) enable_static=yes ;;
3574     no) enable_static=no ;;
3575     *)
3576      enable_static=no
3577       # Look at the argument we got.  We use all the common list separators.
3578       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3579       for pkg in $enableval; do
3580         IFS="$lt_save_ifs"
3581         if test "X$pkg" = "X$p"; then
3582           enable_static=yes
3583         fi
3584       done
3585       IFS="$lt_save_ifs"
3586       ;;
3587     esac
3588 else
3589   enable_static=yes
3590 fi; 
3592 # Check whether --enable-fast-install or --disable-fast-install was given.
3593 if test "${enable_fast_install+set}" = set; then
3594   enableval="$enable_fast_install"
3595   p=${PACKAGE-default}
3596     case $enableval in
3597     yes) enable_fast_install=yes ;;
3598     no) enable_fast_install=no ;;
3599     *)
3600       enable_fast_install=no
3601       # Look at the argument we got.  We use all the common list separators.
3602       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3603       for pkg in $enableval; do
3604         IFS="$lt_save_ifs"
3605         if test "X$pkg" = "X$p"; then
3606           enable_fast_install=yes
3607         fi
3608       done
3609       IFS="$lt_save_ifs"
3610       ;;
3611     esac
3612 else
3613   enable_fast_install=yes
3614 fi; 
3616 # Make sure we can run config.sub.
3617 $ac_config_sub sun4 >/dev/null 2>&1 ||
3618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3620    { (exit 1); exit 1; }; }
3622 echo "$as_me:$LINENO: checking build system type" >&5
3623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3624 if test "${ac_cv_build+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   ac_cv_build_alias=$build_alias
3628 test -z "$ac_cv_build_alias" &&
3629   ac_cv_build_alias=`$ac_config_guess`
3630 test -z "$ac_cv_build_alias" &&
3631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3633    { (exit 1); exit 1; }; }
3634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3637    { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3641 echo "${ECHO_T}$ac_cv_build" >&6
3642 build=$ac_cv_build
3643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3648 echo "$as_me:$LINENO: checking host system type" >&5
3649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3650 if test "${ac_cv_host+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   ac_cv_host_alias=$host_alias
3654 test -z "$ac_cv_host_alias" &&
3655   ac_cv_host_alias=$ac_cv_build_alias
3656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3659    { (exit 1); exit 1; }; }
3662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3663 echo "${ECHO_T}$ac_cv_host" >&6
3664 host=$ac_cv_host
3665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3670 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672 if test "${lt_cv_path_SED+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   # Loop through the user's path and test for sed and gsed.
3676 # Then use that list of sed's as ones to test for truncation.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680   IFS=$as_save_IFS
3681   test -z "$as_dir" && as_dir=.
3682   for lt_ac_prog in sed gsed; do
3683     for ac_exec_ext in '' $ac_executable_extensions; do
3684       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3686       fi
3687     done
3688   done
3689 done
3690 lt_ac_max=0
3691 lt_ac_count=0
3692 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693 # along with /bin/sed that truncates output.
3694 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3695   test ! -f $lt_ac_sed && break
3696   cat /dev/null > conftest.in
3697   lt_ac_count=0
3698   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3699   # Check for GNU sed and select it if it is found.
3700   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3701     lt_cv_path_SED=$lt_ac_sed
3702     break
3703   fi
3704   while true; do
3705     cat conftest.in conftest.in >conftest.tmp
3706     mv conftest.tmp conftest.in
3707     cp conftest.in conftest.nl
3708     echo >>conftest.nl
3709     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3710     cmp -s conftest.out conftest.nl || break
3711     # 10000 chars as input seems more than enough
3712     test $lt_ac_count -gt 10 && break
3713     lt_ac_count=`expr $lt_ac_count + 1`
3714     if test $lt_ac_count -gt $lt_ac_max; then
3715       lt_ac_max=$lt_ac_count
3716       lt_cv_path_SED=$lt_ac_sed
3717     fi
3718   done
3719 done
3720 SED=$lt_cv_path_SED
3724 echo "$as_me:$LINENO: result: $SED" >&5
3725 echo "${ECHO_T}$SED" >&6
3727 echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3729 if test "${ac_cv_prog_egrep+set}" = set; then
3730   echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3733     then ac_cv_prog_egrep='grep -E'
3734     else ac_cv_prog_egrep='egrep'
3735     fi
3737 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3738 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3739  EGREP=$ac_cv_prog_egrep
3743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3744 if test "${with_gnu_ld+set}" = set; then
3745   withval="$with_gnu_ld"
3746   test "$withval" = no || with_gnu_ld=yes
3747 else
3748   with_gnu_ld=no
3749 fi; 
3750 ac_prog=ld
3751 if test "$GCC" = yes; then
3752   # Check if gcc -print-prog-name=ld gives a path.
3753   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3754 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3755   case $host in
3756   *-*-mingw*)
3757     # gcc leaves a trailing carriage return which upsets mingw
3758     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3759   *)
3760     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3761   esac
3762   case $ac_prog in
3763     # Accept absolute paths.
3764     [\\/]* | ?:[\\/]*)
3765       re_direlt='/[^/][^/]*/\.\./'
3766       # Canonicalize the pathname of ld
3767       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3768       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3769         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3770       done
3771       test -z "$LD" && LD="$ac_prog"
3772       ;;
3773   "")
3774     # If it fails, then pretend we aren't using GCC.
3775     ac_prog=ld
3776     ;;
3777   *)
3778     # If it is relative, then search for the first ld in PATH.
3779     with_gnu_ld=unknown
3780     ;;
3781   esac
3782 elif test "$with_gnu_ld" = yes; then
3783   echo "$as_me:$LINENO: checking for GNU ld" >&5
3784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3785 else
3786   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3789 if test "${lt_cv_path_LD+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -z "$LD"; then
3793   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3794   for ac_dir in $PATH; do
3795     IFS="$lt_save_ifs"
3796     test -z "$ac_dir" && ac_dir=.
3797     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3798       lt_cv_path_LD="$ac_dir/$ac_prog"
3799       # Check to see if the program is GNU ld.  I'd rather use --version,
3800       # but apparently some GNU ld's only accept -v.
3801       # Break only if it was the GNU/non-GNU ld that we prefer.
3802       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3803       *GNU* | *'with BFD'*)
3804         test "$with_gnu_ld" != no && break
3805         ;;
3806       *)
3807         test "$with_gnu_ld" != yes && break
3808         ;;
3809       esac
3810     fi
3811   done
3812   IFS="$lt_save_ifs"
3813 else
3814   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3818 LD="$lt_cv_path_LD"
3819 if test -n "$LD"; then
3820   echo "$as_me:$LINENO: result: $LD" >&5
3821 echo "${ECHO_T}$LD" >&6
3822 else
3823   echo "$as_me:$LINENO: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3826 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3827 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3828    { (exit 1); exit 1; }; }
3829 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3830 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3831 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3835 case `$LD -v 2>&1 </dev/null` in
3836 *GNU* | *'with BFD'*)
3837   lt_cv_prog_gnu_ld=yes
3838   ;;
3840   lt_cv_prog_gnu_ld=no
3841   ;;
3842 esac
3844 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3845 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3846 with_gnu_ld=$lt_cv_prog_gnu_ld
3849 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3850 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3851 if test "${lt_cv_ld_reload_flag+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   lt_cv_ld_reload_flag='-r'
3856 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3857 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3858 reload_flag=$lt_cv_ld_reload_flag
3859 case $reload_flag in
3860 "" | " "*) ;;
3861 *) reload_flag=" $reload_flag" ;;
3862 esac
3863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3865 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3866 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3867 if test "${lt_cv_path_NM+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   if test -n "$NM"; then
3871   # Let the user override the test.
3872   lt_cv_path_NM="$NM"
3873 else
3874   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3875   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3876     IFS="$lt_save_ifs"
3877     test -z "$ac_dir" && ac_dir=.
3878     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3879     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3880       # Check to see if the nm accepts a BSD-compat flag.
3881       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3882       #   nm: unknown option "B" ignored
3883       # Tru64's nm complains that /dev/null is an invalid object file
3884       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3885       */dev/null* | *'Invalid file or object type'*)
3886         lt_cv_path_NM="$tmp_nm -B"
3887         break
3888         ;;
3889       *)
3890         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3891         */dev/null*)
3892           lt_cv_path_NM="$tmp_nm -p"
3893           break
3894           ;;
3895         *)
3896           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3897           continue # so that we can try to find one that supports BSD flags
3898           ;;
3899         esac
3900       esac
3901     fi
3902   done
3903   IFS="$lt_save_ifs"
3904   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3907 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3908 echo "${ECHO_T}$lt_cv_path_NM" >&6
3909 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3912 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3913 LN_S=$as_ln_s
3914 if test "$LN_S" = "ln -s"; then
3915   echo "$as_me:$LINENO: result: yes" >&5
3916 echo "${ECHO_T}yes" >&6
3917 else
3918   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3919 echo "${ECHO_T}no, using $LN_S" >&6
3922 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3923 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3924 if test "${lt_cv_deplibs_check_method+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   lt_cv_file_magic_cmd='$MAGIC_CMD'
3928 lt_cv_file_magic_test_file=
3929 lt_cv_deplibs_check_method='unknown'
3930 # Need to set the preceding variable on all platforms that support
3931 # interlibrary dependencies.
3932 # 'none' -- dependencies not supported.
3933 # `unknown' -- same as none, but documents that we really don't know.
3934 # 'pass_all' -- all dependencies passed with no checks.
3935 # 'test_compile' -- check by making test program.
3936 # 'file_magic [[regex]]' -- check by looking for files in library path
3937 # which responds to the $file_magic_cmd with a given extended regex.
3938 # If you have `file' or equivalent on your system and you're not sure
3939 # whether `pass_all' will *always* work, you probably want this one.
3941 case $host_os in
3942 aix4* | aix5*)
3943   lt_cv_deplibs_check_method=pass_all
3944   ;;
3946 beos*)
3947   lt_cv_deplibs_check_method=pass_all
3948   ;;
3950 bsdi4*)
3951   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3952   lt_cv_file_magic_cmd='/usr/bin/file -L'
3953   lt_cv_file_magic_test_file=/shlib/libc.so
3954   ;;
3956 cygwin*)
3957   # func_win32_libid is a shell function defined in ltmain.sh
3958   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3959   lt_cv_file_magic_cmd='func_win32_libid'
3960   ;;
3962 mingw* | pw32*)
3963   # Base MSYS/MinGW do not provide the 'file' command needed by
3964   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3965   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3966   lt_cv_file_magic_cmd='$OBJDUMP -f'
3967   ;;
3969 darwin* | rhapsody*)
3970   lt_cv_deplibs_check_method=pass_all
3971   ;;
3973 freebsd* | kfreebsd*-gnu)
3974   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3975     case $host_cpu in
3976     i*86 )
3977       # Not sure whether the presence of OpenBSD here was a mistake.
3978       # Let's accept both of them until this is cleared up.
3979       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3980       lt_cv_file_magic_cmd=/usr/bin/file
3981       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3982       ;;
3983     esac
3984   else
3985     lt_cv_deplibs_check_method=pass_all
3986   fi
3987   ;;
3989 gnu*)
3990   lt_cv_deplibs_check_method=pass_all
3991   ;;
3993 hpux10.20* | hpux11*)
3994   lt_cv_file_magic_cmd=/usr/bin/file
3995   case "$host_cpu" in
3996   ia64*)
3997     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3998     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3999     ;;
4000   hppa*64*)
4001     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]'
4002     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4003     ;;
4004   *)
4005     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4006     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4007     ;;
4008   esac
4009   ;;
4011 irix5* | irix6* | nonstopux*)
4012   case $LD in
4013   *-32|*"-32 ") libmagic=32-bit;;
4014   *-n32|*"-n32 ") libmagic=N32;;
4015   *-64|*"-64 ") libmagic=64-bit;;
4016   *) libmagic=never-match;;
4017   esac
4018   lt_cv_deplibs_check_method=pass_all
4019   ;;
4021 # This must be Linux ELF.
4022 linux*)
4023   lt_cv_deplibs_check_method=pass_all
4024   ;;
4026 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4027   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4029   else
4030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4031   fi
4032   ;;
4034 newos6*)
4035   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4036   lt_cv_file_magic_cmd=/usr/bin/file
4037   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4038   ;;
4040 nto-qnx*)
4041   lt_cv_deplibs_check_method=unknown
4042   ;;
4044 openbsd*)
4045   lt_cv_file_magic_cmd=/usr/bin/file
4046   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4047   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4048     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4049   else
4050     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4051   fi
4052   ;;
4054 osf3* | osf4* | osf5*)
4055   lt_cv_deplibs_check_method=pass_all
4056   ;;
4058 sco3.2v5*)
4059   lt_cv_deplibs_check_method=pass_all
4060   ;;
4062 solaris*)
4063   lt_cv_deplibs_check_method=pass_all
4064   ;;
4066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4067   case $host_vendor in
4068   motorola)
4069     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]'
4070     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4071     ;;
4072   ncr)
4073     lt_cv_deplibs_check_method=pass_all
4074     ;;
4075   sequent)
4076     lt_cv_file_magic_cmd='/bin/file'
4077     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4078     ;;
4079   sni)
4080     lt_cv_file_magic_cmd='/bin/file'
4081     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4082     lt_cv_file_magic_test_file=/lib/libc.so
4083     ;;
4084   siemens)
4085     lt_cv_deplibs_check_method=pass_all
4086     ;;
4087   esac
4088   ;;
4090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4091   lt_cv_deplibs_check_method=pass_all
4092   ;;
4093 esac
4096 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4097 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4098 file_magic_cmd=$lt_cv_file_magic_cmd
4099 deplibs_check_method=$lt_cv_deplibs_check_method
4100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4105 # If no C compiler was specified, use CC.
4106 LTCC=${LTCC-"$CC"}
4108 # Allow CC to be a program name with arguments.
4109 compiler=$CC
4112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4113 if test "${enable_libtool_lock+set}" = set; then
4114   enableval="$enable_libtool_lock"
4115   
4116 fi; 
4117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4119 # Some flags need to be propagated to the compiler or linker for good
4120 # libtool support.
4121 case $host in
4122 ia64-*-hpux*)
4123   # Find out which ABI we are using.
4124   echo 'int i;' > conftest.$ac_ext
4125   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126   (eval $ac_compile) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; then
4130     case `/usr/bin/file conftest.$ac_objext` in
4131     *ELF-32*)
4132       HPUX_IA64_MODE="32"
4133       ;;
4134     *ELF-64*)
4135       HPUX_IA64_MODE="64"
4136       ;;
4137     esac
4138   fi
4139   rm -rf conftest*
4140   ;;
4141 *-*-irix6*)
4142   # Find out which ABI we are using.
4143   echo '#line __oline__ "configure"' > conftest.$ac_ext
4144   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145   (eval $ac_compile) 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; then
4149    if test "$lt_cv_prog_gnu_ld" = yes; then
4150     case `/usr/bin/file conftest.$ac_objext` in
4151     *32-bit*)
4152       LD="${LD-ld} -melf32bsmip"
4153       ;;
4154     *N32*)
4155       LD="${LD-ld} -melf32bmipn32"
4156       ;;
4157     *64-bit*)
4158       LD="${LD-ld} -melf64bmip"
4159       ;;
4160     esac
4161    else
4162     case `/usr/bin/file conftest.$ac_objext` in
4163     *32-bit*)
4164       LD="${LD-ld} -32"
4165       ;;
4166     *N32*)
4167       LD="${LD-ld} -n32"
4168       ;;
4169     *64-bit*)
4170       LD="${LD-ld} -64"
4171       ;;
4172     esac
4173    fi
4174   fi
4175   rm -rf conftest*
4176   ;;
4178 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4179   # Find out which ABI we are using.
4180   echo 'int i;' > conftest.$ac_ext
4181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182   (eval $ac_compile) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; then
4186     case "`/usr/bin/file conftest.o`" in
4187     *32-bit*)
4188       case $host in
4189         x86_64-*linux*)
4190           LD="${LD-ld} -m elf_i386"
4191           ;;
4192         ppc64-*linux*|powerpc64-*linux*)
4193           LD="${LD-ld} -m elf32ppclinux"
4194           ;;
4195         s390x-*linux*)
4196           LD="${LD-ld} -m elf_s390"
4197           ;;
4198         sparc64-*linux*)
4199           LD="${LD-ld} -m elf32_sparc"
4200           ;;
4201       esac
4202       ;;
4203     *64-bit*)
4204       case $host in
4205         x86_64-*linux*)
4206           LD="${LD-ld} -m elf_x86_64"
4207           ;;
4208         ppc*-*linux*|powerpc*-*linux*)
4209           LD="${LD-ld} -m elf64ppc"
4210           ;;
4211         s390*-*linux*)
4212           LD="${LD-ld} -m elf64_s390"
4213           ;;
4214         sparc*-*linux*)
4215           LD="${LD-ld} -m elf64_sparc"
4216           ;;
4217       esac
4218       ;;
4219     esac
4220   fi
4221   rm -rf conftest*
4222   ;;
4224 *-*-sco3.2v5*)
4225   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4226   SAVE_CFLAGS="$CFLAGS"
4227   CFLAGS="$CFLAGS -belf"
4228   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4229 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4230 if test "${lt_cv_cc_needs_belf+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239      cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4247 main ()
4250   ;
4251   return 0;
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256   (eval $ac_link) 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest$ac_exeext'
4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271   (eval $ac_try) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   lt_cv_cc_needs_belf=yes
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 lt_cv_cc_needs_belf=no
4282 rm -f conftest.err conftest.$ac_objext \
4283       conftest$ac_exeext conftest.$ac_ext
4284      ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4293   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4294     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295     CFLAGS="$SAVE_CFLAGS"
4296   fi
4297   ;;
4299 esac
4301 need_locks="$enable_libtool_lock"
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4313   CPP=
4315 if test -z "$CPP"; then
4316   if test "${ac_cv_prog_CPP+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319       # Double quotes because CPP needs to be expanded
4320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4321     do
4322       ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4325   # Use a header file that comes with gcc, so configuring glibc
4326   # with a fresh cross-compiler works.
4327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328   # <limits.h> exists even on freestanding compilers.
4329   # On the NeXT, cc -E runs the code through the compiler's parser,
4330   # not just through cpp. "Syntax error" is here to catch this case.
4331   cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h.  */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h.  */
4337 @%:@ifdef __STDC__
4338 @%:@ include <limits.h>
4339 @%:@else
4340 @%:@ include <assert.h>
4341 @%:@endif
4342                      Syntax error
4343 _ACEOF
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } >/dev/null; then
4352   if test -s conftest.err; then
4353     ac_cpp_err=$ac_c_preproc_warn_flag
4354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4355   else
4356     ac_cpp_err=
4357   fi
4358 else
4359   ac_cpp_err=yes
4361 if test -z "$ac_cpp_err"; then
4362   :
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367   # Broken: fails on valid input.
4368 continue
4370 rm -f conftest.err conftest.$ac_ext
4372   # OK, works on sane cases.  Now check whether non-existent headers
4373   # can be detected and how.
4374   cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 @%:@include <ac_nonexistent.h>
4381 _ACEOF
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } >/dev/null; then
4390   if test -s conftest.err; then
4391     ac_cpp_err=$ac_c_preproc_warn_flag
4392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4393   else
4394     ac_cpp_err=
4395   fi
4396 else
4397   ac_cpp_err=yes
4399 if test -z "$ac_cpp_err"; then
4400   # Broken: success on invalid input.
4401 continue
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4410 rm -f conftest.err conftest.$ac_ext
4412 done
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.$ac_ext
4415 if $ac_preproc_ok; then
4416   break
4419     done
4420     ac_cv_prog_CPP=$CPP
4421   
4423   CPP=$ac_cv_prog_CPP
4424 else
4425   ac_cv_prog_CPP=$CPP
4427 echo "$as_me:$LINENO: result: $CPP" >&5
4428 echo "${ECHO_T}$CPP" >&6
4429 ac_preproc_ok=false
4430 for ac_c_preproc_warn_flag in '' yes
4432   # Use a header file that comes with gcc, so configuring glibc
4433   # with a fresh cross-compiler works.
4434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435   # <limits.h> exists even on freestanding compilers.
4436   # On the NeXT, cc -E runs the code through the compiler's parser,
4437   # not just through cpp. "Syntax error" is here to catch this case.
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 @%:@ifdef __STDC__
4445 @%:@ include <limits.h>
4446 @%:@else
4447 @%:@ include <assert.h>
4448 @%:@endif
4449                      Syntax error
4450 _ACEOF
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } >/dev/null; then
4459   if test -s conftest.err; then
4460     ac_cpp_err=$ac_c_preproc_warn_flag
4461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4462   else
4463     ac_cpp_err=
4464   fi
4465 else
4466   ac_cpp_err=yes
4468 if test -z "$ac_cpp_err"; then
4469   :
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474   # Broken: fails on valid input.
4475 continue
4477 rm -f conftest.err conftest.$ac_ext
4479   # OK, works on sane cases.  Now check whether non-existent headers
4480   # can be detected and how.
4481   cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 @%:@include <ac_nonexistent.h>
4488 _ACEOF
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491   ac_status=$?
4492   grep -v '^ *+' conftest.er1 >conftest.err
4493   rm -f conftest.er1
4494   cat conftest.err >&5
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); } >/dev/null; then
4497   if test -s conftest.err; then
4498     ac_cpp_err=$ac_c_preproc_warn_flag
4499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4500   else
4501     ac_cpp_err=
4502   fi
4503 else
4504   ac_cpp_err=yes
4506 if test -z "$ac_cpp_err"; then
4507   # Broken: success on invalid input.
4508 continue
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513   # Passes both tests.
4514 ac_preproc_ok=:
4515 break
4517 rm -f conftest.err conftest.$ac_ext
4519 done
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.$ac_ext
4522 if $ac_preproc_ok; then
4523   :
4524 else
4525   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details." >&2;}
4529    { (exit 1); exit 1; }; }
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550 #include <stdlib.h>
4551 #include <stdarg.h>
4552 #include <string.h>
4553 #include <float.h>
4556 main ()
4559   ;
4560   return 0;
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565   (eval $ac_compile) 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } &&
4572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; } &&
4578          { ac_try='test -s conftest.$ac_objext'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; }; then
4584   ac_cv_header_stdc=yes
4585 else
4586   echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_cv_header_stdc=no
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 if test $ac_cv_header_stdc = yes; then
4594   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595   cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601 #include <string.h>
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605   $EGREP "memchr" >/dev/null 2>&1; then
4606   :
4607 else
4608   ac_cv_header_stdc=no
4610 rm -f conftest*
4614 if test $ac_cv_header_stdc = yes; then
4615   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626   $EGREP "free" >/dev/null 2>&1; then
4627   :
4628 else
4629   ac_cv_header_stdc=no
4631 rm -f conftest*
4635 if test $ac_cv_header_stdc = yes; then
4636   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637   if test "$cross_compiling" = yes; then
4638   :
4639 else
4640   cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646 #include <ctype.h>
4647 #if ((' ' & 0x0FF) == 0x020)
4648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 #else
4651 # define ISLOWER(c) \
4652                    (('a' <= (c) && (c) <= 'i') \
4653                      || ('j' <= (c) && (c) <= 'r') \
4654                      || ('s' <= (c) && (c) <= 'z'))
4655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656 #endif
4658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4660 main ()
4662   int i;
4663   for (i = 0; i < 256; i++)
4664     if (XOR (islower (i), ISLOWER (i))
4665         || toupper (i) != TOUPPER (i))
4666       exit(2);
4667   exit (0);
4669 _ACEOF
4670 rm -f conftest$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672   (eval $ac_link) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; }; then
4681   :
4682 else
4683   echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 ( exit $ac_status )
4688 ac_cv_header_stdc=no
4690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4694 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696 if test $ac_cv_header_stdc = yes; then
4697   
4698 cat >>confdefs.h <<\_ACEOF
4699 @%:@define STDC_HEADERS 1
4700 _ACEOF
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715                   inttypes.h stdint.h unistd.h
4717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718 echo "$as_me:$LINENO: checking for $ac_header" >&5
4719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729 $ac_includes_default
4731 @%:@include <$ac_header>
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   eval "$as_ac_Header=yes"
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 eval "$as_ac_Header=no"
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766   cat >>confdefs.h <<_ACEOF
4767 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768 _ACEOF
4772 done
4776 for ac_header in dlfcn.h
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780   echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 else
4788   # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797 $ac_includes_default
4798 @%:@include <$ac_header>
4799 _ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802   (eval $ac_compile) 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } &&
4809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811   (eval $ac_try) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); }; } &&
4815          { ac_try='test -s conftest.$ac_objext'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; }; then
4821   ac_header_compiler=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_header_compiler=no
4828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 @%:@include <$ac_header>
4842 _ACEOF
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845   ac_status=$?
4846   grep -v '^ *+' conftest.er1 >conftest.err
4847   rm -f conftest.er1
4848   cat conftest.err >&5
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); } >/dev/null; then
4851   if test -s conftest.err; then
4852     ac_cpp_err=$ac_c_preproc_warn_flag
4853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4854   else
4855     ac_cpp_err=
4856   fi
4857 else
4858   ac_cpp_err=yes
4860 if test -z "$ac_cpp_err"; then
4861   ac_header_preproc=yes
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866   ac_header_preproc=no
4868 rm -f conftest.err conftest.$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So?  What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4874   yes:no: )
4875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879     ac_header_preproc=yes
4880     ;;
4881   no:yes:* )
4882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894     (
4895       cat <<\_ASBOX
4896 @%:@@%:@ ------------------------------------------------ @%:@@%:@
4897 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
4898 @%:@@%:@ ------------------------------------------------ @%:@@%:@
4899 _ASBOX
4900     ) |
4901       sed "s/^/$as_me: WARNING:     /" >&2
4902     ;;
4903 esac
4904 echo "$as_me:$LINENO: checking for $ac_header" >&5
4905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   eval "$as_ac_Header=\$ac_header_preproc"
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916   cat >>confdefs.h <<_ACEOF
4917 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918 _ACEOF
4922 done
4924 ac_ext=cc
4925 ac_cpp='$CXXCPP $CPPFLAGS'
4926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931 if test -z "$CXXCPP"; then
4932   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935       # Double quotes because CXXCPP needs to be expanded
4936     for CXXCPP in "$CXX -E" "/lib/cpp"
4937     do
4938       ac_preproc_ok=false
4939 for ac_cxx_preproc_warn_flag in '' yes
4941   # Use a header file that comes with gcc, so configuring glibc
4942   # with a fresh cross-compiler works.
4943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944   # <limits.h> exists even on freestanding compilers.
4945   # On the NeXT, cc -E runs the code through the compiler's parser,
4946   # not just through cpp. "Syntax error" is here to catch this case.
4947   cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953 @%:@ifdef __STDC__
4954 @%:@ include <limits.h>
4955 @%:@else
4956 @%:@ include <assert.h>
4957 @%:@endif
4958                      Syntax error
4959 _ACEOF
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } >/dev/null; then
4968   if test -s conftest.err; then
4969     ac_cpp_err=$ac_cxx_preproc_warn_flag
4970     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4971   else
4972     ac_cpp_err=
4973   fi
4974 else
4975   ac_cpp_err=yes
4977 if test -z "$ac_cpp_err"; then
4978   :
4979 else
4980   echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983   # Broken: fails on valid input.
4984 continue
4986 rm -f conftest.err conftest.$ac_ext
4988   # OK, works on sane cases.  Now check whether non-existent headers
4989   # can be detected and how.
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 @%:@include <ac_nonexistent.h>
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
5015 if test -z "$ac_cpp_err"; then
5016   # Broken: success on invalid input.
5017 continue
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022   # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5026 rm -f conftest.err conftest.$ac_ext
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then
5032   break
5035     done
5036     ac_cv_prog_CXXCPP=$CXXCPP
5037   
5039   CXXCPP=$ac_cv_prog_CXXCPP
5040 else
5041   ac_cv_prog_CXXCPP=$CXXCPP
5043 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044 echo "${ECHO_T}$CXXCPP" >&6
5045 ac_preproc_ok=false
5046 for ac_cxx_preproc_warn_flag in '' yes
5048   # Use a header file that comes with gcc, so configuring glibc
5049   # with a fresh cross-compiler works.
5050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051   # <limits.h> exists even on freestanding compilers.
5052   # On the NeXT, cc -E runs the code through the compiler's parser,
5053   # not just through cpp. "Syntax error" is here to catch this case.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 @%:@ifdef __STDC__
5061 @%:@ include <limits.h>
5062 @%:@else
5063 @%:@ include <assert.h>
5064 @%:@endif
5065                      Syntax error
5066 _ACEOF
5067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069   ac_status=$?
5070   grep -v '^ *+' conftest.er1 >conftest.err
5071   rm -f conftest.er1
5072   cat conftest.err >&5
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } >/dev/null; then
5075   if test -s conftest.err; then
5076     ac_cpp_err=$ac_cxx_preproc_warn_flag
5077     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5078   else
5079     ac_cpp_err=
5080   fi
5081 else
5082   ac_cpp_err=yes
5084 if test -z "$ac_cpp_err"; then
5085   :
5086 else
5087   echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090   # Broken: fails on valid input.
5091 continue
5093 rm -f conftest.err conftest.$ac_ext
5095   # OK, works on sane cases.  Now check whether non-existent headers
5096   # can be detected and how.
5097   cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 @%:@include <ac_nonexistent.h>
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
5122 if test -z "$ac_cpp_err"; then
5123   # Broken: success on invalid input.
5124 continue
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129   # Passes both tests.
5130 ac_preproc_ok=:
5131 break
5133 rm -f conftest.err conftest.$ac_ext
5135 done
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.$ac_ext
5138 if $ac_preproc_ok; then
5139   :
5140 else
5141   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144 See \`config.log' for more details." >&2;}
5145    { (exit 1); exit 1; }; }
5148 ac_ext=cc
5149 ac_cpp='$CXXCPP $CPPFLAGS'
5150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5155 ac_ext=f
5156 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5157 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5159 if test -n "$ac_tool_prefix"; then
5160   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5161   do
5162     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_F77+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   if test -n "$F77"; then
5170   ac_cv_prog_F77="$F77" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177   for ac_exec_ext in '' $ac_executable_extensions; do
5178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184 done
5188 F77=$ac_cv_prog_F77
5189 if test -n "$F77"; then
5190   echo "$as_me:$LINENO: result: $F77" >&5
5191 echo "${ECHO_T}$F77" >&6
5192 else
5193   echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5197     test -n "$F77" && break
5198   done
5200 if test -z "$F77"; then
5201   ac_ct_F77=$F77
5202   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5204   # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   if test -n "$ac_ct_F77"; then
5212   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219   for ac_exec_ext in '' $ac_executable_extensions; do
5220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221     ac_cv_prog_ac_ct_F77="$ac_prog"
5222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226 done
5230 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5231 if test -n "$ac_ct_F77"; then
5232   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5233 echo "${ECHO_T}$ac_ct_F77" >&6
5234 else
5235   echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239   test -n "$ac_ct_F77" && break
5240 done
5242   F77=$ac_ct_F77
5246 # Provide some information about the compiler.
5247 echo "$as_me:__oline__:" \
5248      "checking for Fortran 77 compiler version" >&5
5249 ac_compiler=`set X $ac_compile; echo $2`
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5251   (eval $ac_compiler --version </dev/null >&5) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }
5255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5256   (eval $ac_compiler -v </dev/null >&5) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }
5260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5261   (eval $ac_compiler -V </dev/null >&5) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }
5265 rm -f a.out
5267 # If we don't use `.F' as extension, the preprocessor is not run on the
5268 # input file.  (Note that this only needs to work for GNU compilers.)
5269 ac_save_ext=$ac_ext
5270 ac_ext=F
5271 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5272 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5273 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   cat >conftest.$ac_ext <<_ACEOF
5277       program main
5278 #ifndef __GNUC__
5279        choke me
5280 #endif
5282       end
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286   (eval $ac_compile) 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } &&
5293          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; } &&
5299          { ac_try='test -s conftest.$ac_objext'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; }; then
5305   ac_compiler_gnu=yes
5306 else
5307   echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_compiler_gnu=no
5312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5313 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5316 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5317 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5318 ac_ext=$ac_save_ext
5319 ac_test_FFLAGS=${FFLAGS+set}
5320 ac_save_FFLAGS=$FFLAGS
5321 FFLAGS=
5322 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5323 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5324 if test "${ac_cv_prog_f77_g+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   FFLAGS=-g
5328 cat >conftest.$ac_ext <<_ACEOF
5329       program main
5331       end
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335   (eval $ac_compile) 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } &&
5342          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; } &&
5348          { ac_try='test -s conftest.$ac_objext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_cv_prog_f77_g=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_cv_prog_f77_g=no
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5365 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5366 if test "$ac_test_FFLAGS" = set; then
5367   FFLAGS=$ac_save_FFLAGS
5368 elif test $ac_cv_prog_f77_g = yes; then
5369   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5370     FFLAGS="-g -O2"
5371   else
5372     FFLAGS="-g"
5373   fi
5374 else
5375   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5376     FFLAGS="-O2"
5377   else
5378     FFLAGS=
5379   fi
5382 G77=`test $ac_compiler_gnu = yes && echo yes`
5383 ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5393 # find the maximum length of command line arguments
5394 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399     i=0
5400   teststring="ABCD"
5402   case $build_os in
5403   msdosdjgpp*)
5404     # On DJGPP, this test can blow up pretty badly due to problems in libc
5405     # (any single argument exceeding 2000 bytes causes a buffer overrun
5406     # during glob expansion).  Even if it were fixed, the result of this
5407     # check would be larger than it should be.
5408     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5409     ;;
5411   gnu*)
5412     # Under GNU Hurd, this test is not required because there is
5413     # no limit to the length of command line arguments.
5414     # Libtool will interpret -1 as no limit whatsoever
5415     lt_cv_sys_max_cmd_len=-1;
5416     ;;
5418   cygwin* | mingw*)
5419     # On Win9x/ME, this test blows up -- it succeeds, but takes
5420     # about 5 minutes as the teststring grows exponentially.
5421     # Worse, since 9x/ME are not pre-emptively multitasking,
5422     # you end up with a "frozen" computer, even though with patience
5423     # the test eventually succeeds (with a max line length of 256k).
5424     # Instead, let's just punt: use the minimum linelength reported by
5425     # all of the supported platforms: 8192 (on NT/2K/XP).
5426     lt_cv_sys_max_cmd_len=8192;
5427     ;;
5429   amigaos*)
5430     # On AmigaOS with pdksh, this test takes hours, literally.
5431     # So we just punt and use a minimum line length of 8192.
5432     lt_cv_sys_max_cmd_len=8192;
5433     ;;
5435  *)
5436     # If test is not a shell built-in, we'll probably end up computing a
5437     # maximum length that is only half of the actual maximum length, but
5438     # we can't tell.
5439     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5440                = "XX$teststring") >/dev/null 2>&1 &&
5441             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5442             lt_cv_sys_max_cmd_len=$new_result &&
5443             test $i != 17 # 1/2 MB should be enough
5444     do
5445       i=`expr $i + 1`
5446       teststring=$teststring$teststring
5447     done
5448     teststring=
5449     # Add a significant safety factor because C++ compilers can tack on massive
5450     # amounts of additional arguments before passing them to the linker.
5451     # It appears as though 1/2 is a usable value.
5452     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453     ;;
5454   esac
5458 if test -n $lt_cv_sys_max_cmd_len ; then
5459   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5460 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5461 else
5462   echo "$as_me:$LINENO: result: none" >&5
5463 echo "${ECHO_T}none" >&6
5469 # Check for command to grab the raw symbol name followed by C symbol from nm.
5470 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   
5476 # These are sane defaults that work on at least a few old systems.
5477 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5479 # Character class describing NM global symbol codes.
5480 symcode='[BCDEGRST]'
5482 # Regexp to match symbols that can be accessed directly from C.
5483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5485 # Transform the above into a raw symbol and a C symbol.
5486 symxfrm='\1 \2\3 \3'
5488 # Transform an extracted symbol line into a proper C declaration
5489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 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'"
5494 # Define system-specific variables.
5495 case $host_os in
5496 aix*)
5497   symcode='[BCDT]'
5498   ;;
5499 cygwin* | mingw* | pw32*)
5500   symcode='[ABCDGISTW]'
5501   ;;
5502 hpux*) # Its linker distinguishes data from code symbols
5503   if test "$host_cpu" = ia64; then
5504     symcode='[ABCDEGRST]'
5505   fi
5506   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507   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'"
5508   ;;
5509 irix* | nonstopux*)
5510   symcode='[BCDEGRST]'
5511   ;;
5512 osf*)
5513   symcode='[BCDEGQRST]'
5514   ;;
5515 solaris* | sysv5*)
5516   symcode='[BDRT]'
5517   ;;
5518 sysv4)
5519   symcode='[DFNSTU]'
5520   ;;
5521 esac
5523 # Handle CRLF in mingw tool chain
5524 opt_cr=
5525 case $build_os in
5526 mingw*)
5527   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5528   ;;
5529 esac
5531 # If we're using GNU nm, then use its standard symbol codes.
5532 case `$NM -V 2>&1` in
5533 *GNU* | *'with BFD'*)
5534   symcode='[ABCDGIRSTW]' ;;
5535 esac
5537 # Try without a prefix undercore, then with it.
5538 for ac_symprfx in "" "_"; do
5540   # Write the raw and C identifiers.
5541   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5543   # Check to see that the pipe works correctly.
5544   pipe_works=no
5546   rm -f conftest*
5547   cat > conftest.$ac_ext <<EOF
5548 #ifdef __cplusplus
5549 extern "C" {
5550 #endif
5551 char nm_test_var;
5552 void nm_test_func(){}
5553 #ifdef __cplusplus
5555 #endif
5556 int main(){nm_test_var='a';nm_test_func();return(0);}
5559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560   (eval $ac_compile) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; then
5564     # Now try to grab the symbols.
5565     nlist=conftest.nm
5566     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5567   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && test -s "$nlist"; then
5571       # Try sorting and uniquifying the output.
5572       if sort "$nlist" | uniq > "$nlist"T; then
5573         mv -f "$nlist"T "$nlist"
5574       else
5575         rm -f "$nlist"T
5576       fi
5578       # Make sure that we snagged all the symbols we need.
5579       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5580         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5581           cat <<EOF > conftest.$ac_ext
5582 #ifdef __cplusplus
5583 extern "C" {
5584 #endif
5587           # Now generate the symbol file.
5588           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5590           cat <<EOF >> conftest.$ac_ext
5591 #if defined (__STDC__) && __STDC__
5592 # define lt_ptr_t void *
5593 #else
5594 # define lt_ptr_t char *
5595 # define const
5596 #endif
5598 /* The mapping between symbol names and symbols. */
5599 const struct {
5600   const char *name;
5601   lt_ptr_t address;
5603 lt_preloaded_symbols[] =
5606           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5607           cat <<\EOF >> conftest.$ac_ext
5608   {0, (lt_ptr_t) 0}
5611 #ifdef __cplusplus
5613 #endif
5615           # Now try linking the two files.
5616           mv conftest.$ac_objext conftstm.$ac_objext
5617           lt_save_LIBS="$LIBS"
5618           lt_save_CFLAGS="$CFLAGS"
5619           LIBS="conftstm.$ac_objext"
5620           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5621           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622   (eval $ac_link) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5626             pipe_works=yes
5627           fi
5628           LIBS="$lt_save_LIBS"
5629           CFLAGS="$lt_save_CFLAGS"
5630         else
5631           echo "cannot find nm_test_func in $nlist" >&5
5632         fi
5633       else
5634         echo "cannot find nm_test_var in $nlist" >&5
5635       fi
5636     else
5637       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5638     fi
5639   else
5640     echo "$progname: failed program was:" >&5
5641     cat conftest.$ac_ext >&5
5642   fi
5643   rm -f conftest* conftst*
5645   # Do not use the global_symbol_pipe unless it works.
5646   if test "$pipe_works" = yes; then
5647     break
5648   else
5649     lt_cv_sys_global_symbol_pipe=
5650   fi
5651 done
5655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5656   lt_cv_sys_global_symbol_to_cdecl=
5658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5659   echo "$as_me:$LINENO: result: failed" >&5
5660 echo "${ECHO_T}failed" >&6
5661 else
5662   echo "$as_me:$LINENO: result: ok" >&5
5663 echo "${ECHO_T}ok" >&6
5666 echo "$as_me:$LINENO: checking for objdir" >&5
5667 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5668 if test "${lt_cv_objdir+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   rm -f .libs 2>/dev/null
5672 mkdir .libs 2>/dev/null
5673 if test -d .libs; then
5674   lt_cv_objdir=.libs
5675 else
5676   # MS-DOS does not allow filenames that begin with a dot.
5677   lt_cv_objdir=_libs
5679 rmdir .libs 2>/dev/null
5681 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5682 echo "${ECHO_T}$lt_cv_objdir" >&6
5683 objdir=$lt_cv_objdir
5689 case $host_os in
5690 aix3*)
5691   # AIX sometimes has problems with the GCC collect2 program.  For some
5692   # reason, if we set the COLLECT_NAMES environment variable, the problems
5693   # vanish in a puff of smoke.
5694   if test "X${COLLECT_NAMES+set}" != Xset; then
5695     COLLECT_NAMES=
5696     export COLLECT_NAMES
5697   fi
5698   ;;
5699 esac
5701 # Sed substitution that helps us do robust quoting.  It backslashifies
5702 # metacharacters that are still active within double-quoted strings.
5703 Xsed='sed -e s/^X//'
5704 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5706 # Same as above, but do not quote variable references.
5707 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5709 # Sed substitution to delay expansion of an escaped shell variable in a
5710 # double_quote_subst'ed string.
5711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5713 # Sed substitution to avoid accidental globbing in evaled expressions
5714 no_glob_subst='s/\*/\\\*/g'
5716 # Constants:
5717 rm="rm -f"
5719 # Global variables:
5720 default_ofile=libtool
5721 can_build_shared=yes
5723 # All known linkers require a `.a' archive for static linking (except M$VC,
5724 # which needs '.lib').
5725 libext=a
5726 ltmain="$ac_aux_dir/ltmain.sh"
5727 ofile="$default_ofile"
5728 with_gnu_ld="$lt_cv_prog_gnu_ld"
5730 if test -n "$ac_tool_prefix"; then
5731   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}ar; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_AR+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -n "$AR"; then
5739   ac_cv_prog_AR="$AR" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746   for ac_exec_ext in '' $ac_executable_extensions; do
5747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748     ac_cv_prog_AR="${ac_tool_prefix}ar"
5749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753 done
5757 AR=$ac_cv_prog_AR
5758 if test -n "$AR"; then
5759   echo "$as_me:$LINENO: result: $AR" >&5
5760 echo "${ECHO_T}$AR" >&6
5761 else
5762   echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5767 if test -z "$ac_cv_prog_AR"; then
5768   ac_ct_AR=$AR
5769   # Extract the first word of "ar", so it can be a program name with args.
5770 set dummy ar; ac_word=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   if test -n "$ac_ct_AR"; then
5777   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_exec_ext in '' $ac_executable_extensions; do
5785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786     ac_cv_prog_ac_ct_AR="ar"
5787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791 done
5793   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5797 if test -n "$ac_ct_AR"; then
5798   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5799 echo "${ECHO_T}$ac_ct_AR" >&6
5800 else
5801   echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5805   AR=$ac_ct_AR
5806 else
5807   AR="$ac_cv_prog_AR"
5810 if test -n "$ac_tool_prefix"; then
5811   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$RANLIB"; then
5819   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5837 RANLIB=$ac_cv_prog_RANLIB
5838 if test -n "$RANLIB"; then
5839   echo "$as_me:$LINENO: result: $RANLIB" >&5
5840 echo "${ECHO_T}$RANLIB" >&6
5841 else
5842   echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848   ac_ct_RANLIB=$RANLIB
5849   # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$ac_ct_RANLIB"; then
5857   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_prog_ac_ct_RANLIB="ranlib"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5873   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5880 else
5881   echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5885   RANLIB=$ac_ct_RANLIB
5886 else
5887   RANLIB="$ac_cv_prog_RANLIB"
5890 if test -n "$ac_tool_prefix"; then
5891   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}strip; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_STRIP+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$STRIP"; then
5899   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5917 STRIP=$ac_cv_prog_STRIP
5918 if test -n "$STRIP"; then
5919   echo "$as_me:$LINENO: result: $STRIP" >&5
5920 echo "${ECHO_T}$STRIP" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5927 if test -z "$ac_cv_prog_STRIP"; then
5928   ac_ct_STRIP=$STRIP
5929   # Extract the first word of "strip", so it can be a program name with args.
5930 set dummy strip; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   if test -n "$ac_ct_STRIP"; then
5937   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946     ac_cv_prog_ac_ct_STRIP="strip"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5953   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957 if test -n "$ac_ct_STRIP"; then
5958   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5959 echo "${ECHO_T}$ac_ct_STRIP" >&6
5960 else
5961   echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5965   STRIP=$ac_ct_STRIP
5966 else
5967   STRIP="$ac_cv_prog_STRIP"
5971 old_CC="$CC"
5972 old_CFLAGS="$CFLAGS"
5974 # Set sane defaults for various variables
5975 test -z "$AR" && AR=ar
5976 test -z "$AR_FLAGS" && AR_FLAGS=cru
5977 test -z "$AS" && AS=as
5978 test -z "$CC" && CC=cc
5979 test -z "$LTCC" && LTCC=$CC
5980 test -z "$DLLTOOL" && DLLTOOL=dlltool
5981 test -z "$LD" && LD=ld
5982 test -z "$LN_S" && LN_S="ln -s"
5983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5984 test -z "$NM" && NM=nm
5985 test -z "$SED" && SED=sed
5986 test -z "$OBJDUMP" && OBJDUMP=objdump
5987 test -z "$RANLIB" && RANLIB=:
5988 test -z "$STRIP" && STRIP=:
5989 test -z "$ac_objext" && ac_objext=o
5991 # Determine commands to create old-style static archives.
5992 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5993 old_postinstall_cmds='chmod 644 $oldlib'
5994 old_postuninstall_cmds=
5996 if test -n "$RANLIB"; then
5997   case $host_os in
5998   openbsd*)
5999     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6000     ;;
6001   *)
6002     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6003     ;;
6004   esac
6005   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6010 file_magic*)
6011   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   case $MAGIC_CMD in
6018 [\\/*] |  ?:[\\/]*)
6019   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6020   ;;
6022   lt_save_MAGIC_CMD="$MAGIC_CMD"
6023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025   for ac_dir in $ac_dummy; do
6026     IFS="$lt_save_ifs"
6027     test -z "$ac_dir" && ac_dir=.
6028     if test -f $ac_dir/${ac_tool_prefix}file; then
6029       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030       if test -n "$file_magic_test_file"; then
6031         case $deplibs_check_method in
6032         "file_magic "*)
6033           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036             $EGREP "$file_magic_regex" > /dev/null; then
6037             :
6038           else
6039             cat <<EOF 1>&2
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such.  This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem.  Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6051           fi ;;
6052         esac
6053       fi
6054       break
6055     fi
6056   done
6057   IFS="$lt_save_ifs"
6058   MAGIC_CMD="$lt_save_MAGIC_CMD"
6059   ;;
6060 esac
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6067 else
6068   echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073   if test -n "$ac_tool_prefix"; then
6074     echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   case $MAGIC_CMD in
6080 [\\/*] |  ?:[\\/]*)
6081   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6082   ;;
6084   lt_save_MAGIC_CMD="$MAGIC_CMD"
6085   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087   for ac_dir in $ac_dummy; do
6088     IFS="$lt_save_ifs"
6089     test -z "$ac_dir" && ac_dir=.
6090     if test -f $ac_dir/file; then
6091       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092       if test -n "$file_magic_test_file"; then
6093         case $deplibs_check_method in
6094         "file_magic "*)
6095           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098             $EGREP "$file_magic_regex" > /dev/null; then
6099             :
6100           else
6101             cat <<EOF 1>&2
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such.  This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem.  Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6113           fi ;;
6114         esac
6115       fi
6116       break
6117     fi
6118   done
6119   IFS="$lt_save_ifs"
6120   MAGIC_CMD="$lt_save_MAGIC_CMD"
6121   ;;
6122 esac
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6129 else
6130   echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6134   else
6135     MAGIC_CMD=:
6136   fi
6139   fi
6140   ;;
6141 esac
6143 enable_dlopen=no
6144 enable_win32_dll=no
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148   enableval="$enable_libtool_lock"
6149   
6150 fi; 
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6156   withval="$with_pic"
6157   pic_mode="$withval"
6158 else
6159   pic_mode=default
6160 fi; 
6161 test -z "$pic_mode" && pic_mode=default
6163 # Use C for the default configuration in the libtool script
6164 tagname=
6165 lt_save_CC="$CC"
6166 ac_ext=c
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 # Source file extension for C test sources.
6174 ac_ext=c
6176 # Object file extension for compiled C test sources.
6177 objext=o
6178 objext=$objext
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code="int some_variable = 0;\n"
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code='int main(){return(0);}\n'
6187 # If no C compiler was specified, use CC.
6188 LTCC=${LTCC-"$CC"}
6190 # Allow CC to be a program name with arguments.
6191 compiler=$CC
6195 # Check for any special shared library compilation flags.
6197 lt_prog_cc_shlib=
6198 if test "$GCC" = no; then
6199   case $host_os in
6200   sco3.2v5*)
6201     lt_prog_cc_shlib='-belf'
6202     ;;
6203   esac
6205 if test -n "$lt_prog_cc_shlib"; then
6206   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6209   else
6210     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212     lt_cv_prog_cc_can_build_shared=no
6213   fi
6218 # Check to make sure the static flag actually works.
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   lt_prog_compiler_static_works=no
6226    save_LDFLAGS="$LDFLAGS"
6227    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230      # The compiler can only warn and ignore the option if not recognized
6231      # So say no if there are warnings
6232      if test -s conftest.err; then
6233        # Append any errors to the config.log.
6234        cat conftest.err 1>&5
6235      else
6236        lt_prog_compiler_static_works=yes
6237      fi
6238    fi
6239    $rm conftest*
6240    LDFLAGS="$save_LDFLAGS"
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6246 if test x"$lt_prog_compiler_static_works" = xyes; then
6247     :
6248 else
6249     lt_prog_compiler_static=
6254 ## CAVEAT EMPTOR:
6255 ## There is no encapsulation within the following macros, do not change
6256 ## the running order or otherwise move them around unless you know exactly
6257 ## what you are doing...
6259 lt_prog_compiler_no_builtin_flag=
6261 if test "$GCC" = yes; then
6262   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6264   
6265 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6266 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6267 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   lt_cv_prog_compiler_rtti_exceptions=no
6271   ac_outfile=conftest.$ac_objext
6272    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6273    lt_compiler_flag="-fno-rtti -fno-exceptions"
6274    # Insert the option either (1) after the last *FLAGS variable, or
6275    # (2) before a word containing "conftest.", or (3) at the end.
6276    # Note that $ac_compile itself does not contain backslashes and begins
6277    # with a dollar sign (not a hyphen), so the echo should work correctly.
6278    # The option is referenced via a variable to avoid confusing sed.
6279    lt_compile=`echo "$ac_compile" | $SED \
6280    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6282    -e 's:$: $lt_compiler_flag:'`
6283    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6284    (eval "$lt_compile" 2>conftest.err)
6285    ac_status=$?
6286    cat conftest.err >&5
6287    echo "$as_me:__oline__: \$? = $ac_status" >&5
6288    if (exit $ac_status) && test -s "$ac_outfile"; then
6289      # The compiler can only warn and ignore the option if not recognized
6290      # So say no if there are warnings
6291      if test ! -s conftest.err; then
6292        lt_cv_prog_compiler_rtti_exceptions=yes
6293      fi
6294    fi
6295    $rm conftest*
6298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6299 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6302     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6303 else
6304     :
6309 lt_prog_compiler_wl=
6310 lt_prog_compiler_pic=
6311 lt_prog_compiler_static=
6313 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6316   if test "$GCC" = yes; then
6317     lt_prog_compiler_wl='-Wl,'
6318     lt_prog_compiler_static='-static'
6320     case $host_os in
6321       aix*)
6322       # All AIX code is PIC.
6323       if test "$host_cpu" = ia64; then
6324         # AIX 5 now supports IA64 processor
6325         lt_prog_compiler_static='-Bstatic'
6326       fi
6327       ;;
6329     amigaos*)
6330       # FIXME: we need at least 68020 code to build shared libraries, but
6331       # adding the `-m68020' flag to GCC prevents building anything better,
6332       # like `-m68040'.
6333       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6334       ;;
6336     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6337       # PIC is the default for these OSes.
6338       ;;
6340     mingw* | pw32* | os2*)
6341       # This hack is so that the source file can tell whether it is being
6342       # built for inclusion in a dll (and should export symbols for example).
6343       lt_prog_compiler_pic='-DDLL_EXPORT'
6344       ;;
6346     darwin* | rhapsody*)
6347       # PIC is the default on this platform
6348       # Common symbols not allowed in MH_DYLIB files
6349       lt_prog_compiler_pic='-fno-common'
6350       ;;
6352     msdosdjgpp*)
6353       # Just because we use GCC doesn't mean we suddenly get shared libraries
6354       # on systems that don't support them.
6355       lt_prog_compiler_can_build_shared=no
6356       enable_shared=no
6357       ;;
6359     sysv4*MP*)
6360       if test -d /usr/nec; then
6361         lt_prog_compiler_pic=-Kconform_pic
6362       fi
6363       ;;
6365     hpux*)
6366       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6367       # not for PA HP-UX.
6368       case "$host_cpu" in
6369       hppa*64*|ia64*)
6370         # +Z the default
6371         ;;
6372       *)
6373         lt_prog_compiler_pic='-fPIC'
6374         ;;
6375       esac
6376       ;;
6378     *)
6379       lt_prog_compiler_pic='-fPIC'
6380       ;;
6381     esac
6382   else
6383     # PORTME Check for flag to pass linker flags through the system compiler.
6384     case $host_os in
6385     aix*)
6386       lt_prog_compiler_wl='-Wl,'
6387       if test "$host_cpu" = ia64; then
6388         # AIX 5 now supports IA64 processor
6389         lt_prog_compiler_static='-Bstatic'
6390       else
6391         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6392       fi
6393       ;;
6395     mingw* | pw32* | os2*)
6396       # This hack is so that the source file can tell whether it is being
6397       # built for inclusion in a dll (and should export symbols for example).
6398       lt_prog_compiler_pic='-DDLL_EXPORT'
6399       ;;
6401     hpux9* | hpux10* | hpux11*)
6402       lt_prog_compiler_wl='-Wl,'
6403       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6404       # not for PA HP-UX.
6405       case "$host_cpu" in
6406       hppa*64*|ia64*)
6407         # +Z the default
6408         ;;
6409       *)
6410         lt_prog_compiler_pic='+Z'
6411         ;;
6412       esac
6413       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6414       lt_prog_compiler_static='${wl}-a ${wl}archive'
6415       ;;
6417     irix5* | irix6* | nonstopux*)
6418       lt_prog_compiler_wl='-Wl,'
6419       # PIC (with -KPIC) is the default.
6420       lt_prog_compiler_static='-non_shared'
6421       ;;
6423     newsos6)
6424       lt_prog_compiler_pic='-KPIC'
6425       lt_prog_compiler_static='-Bstatic'
6426       ;;
6428     linux*)
6429       case $CC in
6430       icc* | ecc*)
6431         lt_prog_compiler_wl='-Wl,'
6432         lt_prog_compiler_pic='-KPIC'
6433         lt_prog_compiler_static='-static'
6434         ;;
6435       ccc*)
6436         lt_prog_compiler_wl='-Wl,'
6437         # All Alpha code is PIC.
6438         lt_prog_compiler_static='-non_shared'
6439         ;;
6440       esac
6441       ;;
6443     osf3* | osf4* | osf5*)
6444       lt_prog_compiler_wl='-Wl,'
6445       # All OSF/1 code is PIC.
6446       lt_prog_compiler_static='-non_shared'
6447       ;;
6449     sco3.2v5*)
6450       lt_prog_compiler_pic='-Kpic'
6451       lt_prog_compiler_static='-dn'
6452       ;;
6454     solaris*)
6455       lt_prog_compiler_wl='-Wl,'
6456       lt_prog_compiler_pic='-KPIC'
6457       lt_prog_compiler_static='-Bstatic'
6458       ;;
6460     sunos4*)
6461       lt_prog_compiler_wl='-Qoption ld '
6462       lt_prog_compiler_pic='-PIC'
6463       lt_prog_compiler_static='-Bstatic'
6464       ;;
6466     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6467       lt_prog_compiler_wl='-Wl,'
6468       lt_prog_compiler_pic='-KPIC'
6469       lt_prog_compiler_static='-Bstatic'
6470       ;;
6472     sysv4*MP*)
6473       if test -d /usr/nec ;then
6474         lt_prog_compiler_pic='-Kconform_pic'
6475         lt_prog_compiler_static='-Bstatic'
6476       fi
6477       ;;
6479     uts4*)
6480       lt_prog_compiler_pic='-pic'
6481       lt_prog_compiler_static='-Bstatic'
6482       ;;
6484     *)
6485       lt_prog_compiler_can_build_shared=no
6486       ;;
6487     esac
6488   fi
6490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6491 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6494 # Check to make sure the PIC flag actually works.
6496 if test -n "$lt_prog_compiler_pic"; then
6497   
6498 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6500 if test "${lt_prog_compiler_pic_works+set}" = set; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503   lt_prog_compiler_pic_works=no
6504   ac_outfile=conftest.$ac_objext
6505    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6506    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6507    # Insert the option either (1) after the last *FLAGS variable, or
6508    # (2) before a word containing "conftest.", or (3) at the end.
6509    # Note that $ac_compile itself does not contain backslashes and begins
6510    # with a dollar sign (not a hyphen), so the echo should work correctly.
6511    # The option is referenced via a variable to avoid confusing sed.
6512    lt_compile=`echo "$ac_compile" | $SED \
6513    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6515    -e 's:$: $lt_compiler_flag:'`
6516    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6517    (eval "$lt_compile" 2>conftest.err)
6518    ac_status=$?
6519    cat conftest.err >&5
6520    echo "$as_me:__oline__: \$? = $ac_status" >&5
6521    if (exit $ac_status) && test -s "$ac_outfile"; then
6522      # The compiler can only warn and ignore the option if not recognized
6523      # So say no if there are warnings
6524      if test ! -s conftest.err; then
6525        lt_prog_compiler_pic_works=yes
6526      fi
6527    fi
6528    $rm conftest*
6531 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6532 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6534 if test x"$lt_prog_compiler_pic_works" = xyes; then
6535     case $lt_prog_compiler_pic in
6536      "" | " "*) ;;
6537      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6538      esac
6539 else
6540     lt_prog_compiler_pic=
6541      lt_prog_compiler_can_build_shared=no
6545 case "$host_os" in
6546   # For platforms which do not support PIC, -DPIC is meaningless:
6547   *djgpp*)
6548     lt_prog_compiler_pic=
6549     ;;
6550   *)
6551     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6552     ;;
6553 esac
6555 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   lt_cv_prog_compiler_c_o=no
6561    $rm -r conftest 2>/dev/null
6562    mkdir conftest
6563    cd conftest
6564    mkdir out
6565    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6567    lt_compiler_flag="-o out/conftest2.$ac_objext"
6568    # Insert the option either (1) after the last *FLAGS variable, or
6569    # (2) before a word containing "conftest.", or (3) at the end.
6570    # Note that $ac_compile itself does not contain backslashes and begins
6571    # with a dollar sign (not a hyphen), so the echo should work correctly.
6572    lt_compile=`echo "$ac_compile" | $SED \
6573    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6574    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6575    -e 's:$: $lt_compiler_flag:'`
6576    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6577    (eval "$lt_compile" 2>out/conftest.err)
6578    ac_status=$?
6579    cat out/conftest.err >&5
6580    echo "$as_me:__oline__: \$? = $ac_status" >&5
6581    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6582    then
6583      # The compiler can only warn and ignore the option if not recognized
6584      # So say no if there are warnings
6585      if test ! -s out/conftest.err; then
6586        lt_cv_prog_compiler_c_o=yes
6587      fi
6588    fi
6589    chmod u+w .
6590    $rm conftest*
6591    # SGI C++ compiler will create directory out/ii_files/ for
6592    # template instantiation
6593    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6594    $rm out/* && rmdir out
6595    cd ..
6596    rmdir conftest
6597    $rm conftest*
6600 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6604 hard_links="nottested"
6605 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6606   # do not overwrite the value of need_locks provided by the user
6607   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6609   hard_links=yes
6610   $rm conftest*
6611   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6612   touch conftest.a
6613   ln conftest.a conftest.b 2>&5 || hard_links=no
6614   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6615   echo "$as_me:$LINENO: result: $hard_links" >&5
6616 echo "${ECHO_T}$hard_links" >&6
6617   if test "$hard_links" = no; then
6618     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6620     need_locks=warn
6621   fi
6622 else
6623   need_locks=no
6626 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6629   runpath_var=
6630   allow_undefined_flag=
6631   enable_shared_with_static_runtimes=no
6632   archive_cmds=
6633   archive_expsym_cmds=
6634   old_archive_From_new_cmds=
6635   old_archive_from_expsyms_cmds=
6636   export_dynamic_flag_spec=
6637   whole_archive_flag_spec=
6638   thread_safe_flag_spec=
6639   hardcode_libdir_flag_spec=
6640   hardcode_libdir_flag_spec_ld=
6641   hardcode_libdir_separator=
6642   hardcode_direct=no
6643   hardcode_minus_L=no
6644   hardcode_shlibpath_var=unsupported
6645   link_all_deplibs=unknown
6646   hardcode_automatic=no
6647   module_cmds=
6648   module_expsym_cmds=
6649   always_export_symbols=no
6650   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6651   # include_expsyms should be a list of space-separated symbols to be *always*
6652   # included in the symbol list
6653   include_expsyms=
6654   # exclude_expsyms can be an extended regexp of symbols to exclude
6655   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6656   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6657   # as well as any symbol that contains `d'.
6658   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6659   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6660   # platforms (ab)use it in PIC code, but their linkers get confused if
6661   # the symbol is explicitly referenced.  Since portable code cannot
6662   # rely on this symbol name, it's probably fine to never include it in
6663   # preloaded symbol tables.
6664   extract_expsyms_cmds=
6666   case $host_os in
6667   cygwin* | mingw* | pw32*)
6668     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6669     # When not using gcc, we currently assume that we are using
6670     # Microsoft Visual C++.
6671     if test "$GCC" != yes; then
6672       with_gnu_ld=no
6673     fi
6674     ;;
6675   openbsd*)
6676     with_gnu_ld=no
6677     ;;
6678   esac
6680   ld_shlibs=yes
6681   if test "$with_gnu_ld" = yes; then
6682     # If archive_cmds runs LD, not CC, wlarc should be empty
6683     wlarc='${wl}'
6685     # See if GNU ld supports shared libraries.
6686     case $host_os in
6687     aix3* | aix4* | aix5*)
6688       # On AIX/PPC, the GNU linker is very broken
6689       if test "$host_cpu" != ia64; then
6690         ld_shlibs=no
6691         cat <<EOF 1>&2
6693 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6694 *** to be unable to reliably create shared libraries on AIX.
6695 *** Therefore, libtool is disabling shared libraries support.  If you
6696 *** really care for shared libraries, you may want to modify your PATH
6697 *** so that a non-GNU linker is found, and then restart.
6700       fi
6701       ;;
6703     amigaos*)
6704       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)'
6705       hardcode_libdir_flag_spec='-L$libdir'
6706       hardcode_minus_L=yes
6708       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6709       # that the semantics of dynamic libraries on AmigaOS, at least up
6710       # to version 4, is to share data among multiple programs linked
6711       # with the same dynamic library.  Since this doesn't match the
6712       # behavior of shared libraries on other platforms, we can't use
6713       # them.
6714       ld_shlibs=no
6715       ;;
6717     beos*)
6718       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6719         allow_undefined_flag=unsupported
6720         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6721         # support --undefined.  This deserves some investigation.  FIXME
6722         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723       else
6724         ld_shlibs=no
6725       fi
6726       ;;
6728     cygwin* | mingw* | pw32*)
6729       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6730       # as there is no search path for DLLs.
6731       hardcode_libdir_flag_spec='-L$libdir'
6732       allow_undefined_flag=unsupported
6733       always_export_symbols=no
6734       enable_shared_with_static_runtimes=yes
6735       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6737       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6738         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6739         # If the export-symbols file already is a .def file (1st line
6740         # is EXPORTS), use it as is; otherwise, prepend...
6741         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6742           cp $export_symbols $output_objdir/$soname.def;
6743         else
6744           echo EXPORTS > $output_objdir/$soname.def;
6745           cat $export_symbols >> $output_objdir/$soname.def;
6746         fi~
6747         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6748       else
6749         ld_shlibs=no
6750       fi
6751       ;;
6753     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6754       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6755         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6756         wlarc=
6757       else
6758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6760       fi
6761       ;;
6763     solaris* | sysv5*)
6764       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6765         ld_shlibs=no
6766         cat <<EOF 1>&2
6768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6769 *** create shared libraries on Solaris systems.  Therefore, libtool
6770 *** is disabling shared libraries support.  We urge you to upgrade GNU
6771 *** binutils to release 2.9.1 or newer.  Another option is to modify
6772 *** your PATH or compiler configuration so that the native linker is
6773 *** used, and then restart.
6776       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6779       else
6780         ld_shlibs=no
6781       fi
6782       ;;
6784     sunos4*)
6785       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6786       wlarc=
6787       hardcode_direct=yes
6788       hardcode_shlibpath_var=no
6789       ;;
6791   linux*)
6792     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6793         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6794         archive_cmds="$tmp_archive_cmds"
6795       supports_anon_versioning=no
6796       case `$LD -v 2>/dev/null` in
6797         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6798         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6799         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6800         *\ 2.11.*) ;; # other 2.11 versions
6801         *) supports_anon_versioning=yes ;;
6802       esac
6803       if test $supports_anon_versioning = yes; then
6804         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6806 $echo "local: *; };" >> $output_objdir/$libname.ver~
6807         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6808       else
6809         archive_expsym_cmds="$tmp_archive_cmds"
6810       fi
6811       link_all_deplibs=no
6812     else
6813       ld_shlibs=no
6814     fi
6815     ;;
6817     *)
6818       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6819         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6821       else
6822         ld_shlibs=no
6823       fi
6824       ;;
6825     esac
6827     if test "$ld_shlibs" = yes; then
6828       runpath_var=LD_RUN_PATH
6829       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6830       export_dynamic_flag_spec='${wl}--export-dynamic'
6831       # ancient GNU ld didn't support --whole-archive et. al.
6832       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6833         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6834       else
6835         whole_archive_flag_spec=
6836       fi
6837     fi
6838   else
6839     # PORTME fill in a description of your system's linker (not GNU ld)
6840     case $host_os in
6841     aix3*)
6842       allow_undefined_flag=unsupported
6843       always_export_symbols=yes
6844       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'
6845       # Note: this linker hardcodes the directories in LIBPATH if there
6846       # are no directories specified by -L.
6847       hardcode_minus_L=yes
6848       if test "$GCC" = yes && test -z "$link_static_flag"; then
6849         # Neither direct hardcoding nor static linking is supported with a
6850         # broken collect2.
6851         hardcode_direct=unsupported
6852       fi
6853       ;;
6855     aix4* | aix5*)
6856       if test "$host_cpu" = ia64; then
6857         # On IA64, the linker does run time linking by default, so we don't
6858         # have to do anything special.
6859         aix_use_runtimelinking=no
6860         exp_sym_flag='-Bexport'
6861         no_entry_flag=""
6862       else
6863         # If we're using GNU nm, then we don't want the "-C" option.
6864         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6865         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6866           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'
6867         else
6868           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'
6869         fi
6870         aix_use_runtimelinking=no
6872         # Test if we are trying to use run time linking or normal
6873         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6874         # need to do runtime linking.
6875         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6876           for ld_flag in $LDFLAGS; do
6877           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6878             aix_use_runtimelinking=yes
6879             break
6880           fi
6881           done
6882         esac
6884         exp_sym_flag='-bexport'
6885         no_entry_flag='-bnoentry'
6886       fi
6888       # When large executables or shared objects are built, AIX ld can
6889       # have problems creating the table of contents.  If linking a library
6890       # or program results in "error TOC overflow" add -mminimal-toc to
6891       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6892       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6894       archive_cmds=''
6895       hardcode_direct=yes
6896       hardcode_libdir_separator=':'
6897       link_all_deplibs=yes
6899       if test "$GCC" = yes; then
6900         case $host_os in aix4.012|aix4.012.*)
6901         # We only want to do this on AIX 4.2 and lower, the check
6902         # below for broken collect2 doesn't work under 4.3+
6903           collect2name=`${CC} -print-prog-name=collect2`
6904           if test -f "$collect2name" && \
6905            strings "$collect2name" | grep resolve_lib_name >/dev/null
6906           then
6907           # We have reworked collect2
6908           hardcode_direct=yes
6909           else
6910           # We have old collect2
6911           hardcode_direct=unsupported
6912           # It fails to find uninstalled libraries when the uninstalled
6913           # path is not listed in the libpath.  Setting hardcode_minus_L
6914           # to unsupported forces relinking
6915           hardcode_minus_L=yes
6916           hardcode_libdir_flag_spec='-L$libdir'
6917           hardcode_libdir_separator=
6918           fi
6919         esac
6920         shared_flag='-shared'
6921       else
6922         # not using gcc
6923         if test "$host_cpu" = ia64; then
6924         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925         # chokes on -Wl,-G. The following line is correct:
6926           shared_flag='-G'
6927         else
6928         if test "$aix_use_runtimelinking" = yes; then
6929             shared_flag='${wl}-G'
6930           else
6931             shared_flag='${wl}-bM:SRE'
6932         fi
6933         fi
6934       fi
6936       # It seems that -bexpall does not export symbols beginning with
6937       # underscore (_), so it is better to generate a list of symbols to export.
6938       always_export_symbols=yes
6939       if test "$aix_use_runtimelinking" = yes; then
6940         # Warning - without using the other runtime loading flags (-brtl),
6941         # -berok will link without error, but may produce a broken library.
6942         allow_undefined_flag='-berok'
6943        # Determine the default libpath from the value encoded in an empty executable.
6944        cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h.  */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h.  */
6952 main ()
6955   ;
6956   return 0;
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961   (eval $ac_link) 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } &&
6968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; } &&
6974          { ac_try='test -s conftest$ac_exeext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   
6981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6983 # Check for a 64-bit object if we didn't find anything.
6984 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; }
6985 }'`; fi
6986 else
6987   echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6991 rm -f conftest.err conftest.$ac_objext \
6992       conftest$ac_exeext conftest.$ac_ext
6993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6995        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6996         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"
6997        else
6998         if test "$host_cpu" = ia64; then
6999           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7000           allow_undefined_flag="-z nodefs"
7001           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"
7002         else
7003          # Determine the default libpath from the value encoded in an empty executable.
7004          cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h.  */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h.  */
7012 main ()
7015   ;
7016   return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021   (eval $ac_link) 2>conftest.er1
7022   ac_status=$?
7023   grep -v '^ *+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } &&
7028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; } &&
7034          { ac_try='test -s conftest$ac_exeext'
7035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036   (eval $ac_try) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; }; then
7040   
7041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7043 # Check for a 64-bit object if we didn't find anything.
7044 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; }
7045 }'`; fi
7046 else
7047   echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7051 rm -f conftest.err conftest.$ac_objext \
7052       conftest$ac_exeext conftest.$ac_ext
7053 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7055          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7056           # Warning - without using the other run time loading flags,
7057           # -berok will link without error, but may produce a broken library.
7058           no_undefined_flag=' ${wl}-bernotok'
7059           allow_undefined_flag=' ${wl}-berok'
7060           # -bexpall does not export symbols beginning with underscore (_)
7061           always_export_symbols=yes
7062           # Exported symbols can be pulled into shared objects from archives
7063           whole_archive_flag_spec=' '
7064           archive_cmds_need_lc=yes
7065           # This is similar to how AIX traditionally builds it's shared libraries.
7066           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'
7067         fi
7068       fi
7069       ;;
7071     amigaos*)
7072       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)'
7073       hardcode_libdir_flag_spec='-L$libdir'
7074       hardcode_minus_L=yes
7075       # see comment about different semantics on the GNU ld section
7076       ld_shlibs=no
7077       ;;
7079     bsdi4*)
7080       export_dynamic_flag_spec=-rdynamic
7081       ;;
7083     cygwin* | mingw* | pw32*)
7084       # When not using gcc, we currently assume that we are using
7085       # Microsoft Visual C++.
7086       # hardcode_libdir_flag_spec is actually meaningless, as there is
7087       # no search path for DLLs.
7088       hardcode_libdir_flag_spec=' '
7089       allow_undefined_flag=unsupported
7090       # Tell ltmain to make .lib files, not .a files.
7091       libext=lib
7092       # Tell ltmain to make .dll files, not .so files.
7093       shrext_cmds=".dll"
7094       # FIXME: Setting linknames here is a bad hack.
7095       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7096       # The linker will automatically build a .lib file if we build a DLL.
7097       old_archive_From_new_cmds='true'
7098       # FIXME: Should let the user specify the lib program.
7099       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7100       fix_srcfile_path='`cygpath -w "$srcfile"`'
7101       enable_shared_with_static_runtimes=yes
7102       ;;
7104     darwin* | rhapsody*)
7105     if test "$GXX" = yes ; then
7106       archive_cmds_need_lc=no
7107       case "$host_os" in
7108       rhapsody* | darwin1.[012])
7109         allow_undefined_flag='-undefined suppress'
7110         ;;
7111       *) # Darwin 1.3 on
7112       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7113         allow_undefined_flag='-flat_namespace -undefined suppress'
7114       else
7115         case ${MACOSX_DEPLOYMENT_TARGET} in
7116           10.[012])
7117             allow_undefined_flag='-flat_namespace -undefined suppress'
7118             ;;
7119           10.*)
7120             allow_undefined_flag='-undefined dynamic_lookup'
7121             ;;
7122         esac
7123       fi
7124         ;;
7125       esac
7126         lt_int_apple_cc_single_mod=no
7127         output_verbose_link_cmd='echo'
7128         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7129           lt_int_apple_cc_single_mod=yes
7130         fi
7131         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7132           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7133         else
7134         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'
7135       fi
7136       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7137       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7138         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7139           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}'
7140         else
7141           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}'
7142         fi
7143           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}'
7144       hardcode_direct=no
7145       hardcode_automatic=yes
7146       hardcode_shlibpath_var=unsupported
7147       whole_archive_flag_spec='-all_load $convenience'
7148       link_all_deplibs=yes
7149     else
7150       ld_shlibs=no
7151     fi
7152       ;;
7154     dgux*)
7155       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7156       hardcode_libdir_flag_spec='-L$libdir'
7157       hardcode_shlibpath_var=no
7158       ;;
7160     freebsd1*)
7161       ld_shlibs=no
7162       ;;
7164     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7165     # support.  Future versions do this automatically, but an explicit c++rt0.o
7166     # does not break anything, and helps significantly (at the cost of a little
7167     # extra space).
7168     freebsd2.2*)
7169       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7170       hardcode_libdir_flag_spec='-R$libdir'
7171       hardcode_direct=yes
7172       hardcode_shlibpath_var=no
7173       ;;
7175     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7176     freebsd2*)
7177       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7178       hardcode_direct=yes
7179       hardcode_minus_L=yes
7180       hardcode_shlibpath_var=no
7181       ;;
7183     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7184     freebsd* | kfreebsd*-gnu)
7185       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7186       hardcode_libdir_flag_spec='-R$libdir'
7187       hardcode_direct=yes
7188       hardcode_shlibpath_var=no
7189       ;;
7191     hpux9*)
7192       if test "$GCC" = yes; then
7193         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'
7194       else
7195         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'
7196       fi
7197       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7198       hardcode_libdir_separator=:
7199       hardcode_direct=yes
7201       # hardcode_minus_L: Not really in the search PATH,
7202       # but as the default location of the library.
7203       hardcode_minus_L=yes
7204       export_dynamic_flag_spec='${wl}-E'
7205       ;;
7207     hpux10* | hpux11*)
7208       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7209         case "$host_cpu" in
7210         hppa*64*|ia64*)
7211           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7212           ;;
7213         *)
7214           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7215           ;;
7216         esac
7217       else
7218         case "$host_cpu" in
7219         hppa*64*|ia64*)
7220           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7221           ;;
7222         *)
7223           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7224           ;;
7225         esac
7226       fi
7227       if test "$with_gnu_ld" = no; then
7228         case "$host_cpu" in
7229         hppa*64*)
7230           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7231           hardcode_libdir_flag_spec_ld='+b $libdir'
7232           hardcode_libdir_separator=:
7233           hardcode_direct=no
7234           hardcode_shlibpath_var=no
7235           ;;
7236         ia64*)
7237           hardcode_libdir_flag_spec='-L$libdir'
7238           hardcode_direct=no
7239           hardcode_shlibpath_var=no
7241           # hardcode_minus_L: Not really in the search PATH,
7242           # but as the default location of the library.
7243           hardcode_minus_L=yes
7244           ;;
7245         *)
7246           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7247           hardcode_libdir_separator=:
7248           hardcode_direct=yes
7249           export_dynamic_flag_spec='${wl}-E'
7251           # hardcode_minus_L: Not really in the search PATH,
7252           # but as the default location of the library.
7253           hardcode_minus_L=yes
7254           ;;
7255         esac
7256       fi
7257       ;;
7259     irix5* | irix6* | nonstopux*)
7260       if test "$GCC" = yes; then
7261         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'
7262       else
7263         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'
7264         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7265       fi
7266       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7267       hardcode_libdir_separator=:
7268       link_all_deplibs=yes
7269       ;;
7271     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7272       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7273         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7274       else
7275         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7276       fi
7277       hardcode_libdir_flag_spec='-R$libdir'
7278       hardcode_direct=yes
7279       hardcode_shlibpath_var=no
7280       ;;
7282     newsos6)
7283       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284       hardcode_direct=yes
7285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7286       hardcode_libdir_separator=:
7287       hardcode_shlibpath_var=no
7288       ;;
7290     openbsd*)
7291       hardcode_direct=yes
7292       hardcode_shlibpath_var=no
7293       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7294         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7295         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7296         export_dynamic_flag_spec='${wl}-E'
7297       else
7298        case $host_os in
7299          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7300            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7301            hardcode_libdir_flag_spec='-R$libdir'
7302            ;;
7303          *)
7304            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7305            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7306            ;;
7307        esac
7308       fi
7309       ;;
7311     os2*)
7312       hardcode_libdir_flag_spec='-L$libdir'
7313       hardcode_minus_L=yes
7314       allow_undefined_flag=unsupported
7315       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'
7316       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7317       ;;
7319     osf3*)
7320       if test "$GCC" = yes; then
7321         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7322         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'
7323       else
7324         allow_undefined_flag=' -expect_unresolved \*'
7325         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'
7326       fi
7327       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328       hardcode_libdir_separator=:
7329       ;;
7331     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7332       if test "$GCC" = yes; then
7333         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7334         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'
7335         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7336       else
7337         allow_undefined_flag=' -expect_unresolved \*'
7338         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'
7339         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7340         $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'
7342         # Both c and cxx compiler support -rpath directly
7343         hardcode_libdir_flag_spec='-rpath $libdir'
7344       fi
7345       hardcode_libdir_separator=:
7346       ;;
7348     sco3.2v5*)
7349       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350       hardcode_shlibpath_var=no
7351       export_dynamic_flag_spec='${wl}-Bexport'
7352       runpath_var=LD_RUN_PATH
7353       hardcode_runpath_var=yes
7354       ;;
7356     solaris*)
7357       no_undefined_flag=' -z text'
7358       if test "$GCC" = yes; then
7359         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7360         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7362       else
7363         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7366       fi
7367       hardcode_libdir_flag_spec='-R$libdir'
7368       hardcode_shlibpath_var=no
7369       case $host_os in
7370       solaris2.[0-5] | solaris2.[0-5].*) ;;
7371       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7372         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7373       esac
7374       link_all_deplibs=yes
7375       ;;
7377     sunos4*)
7378       if test "x$host_vendor" = xsequent; then
7379         # Use $CC to link under sequent, because it throws in some extra .o
7380         # files that make .init and .fini sections work.
7381         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7382       else
7383         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7384       fi
7385       hardcode_libdir_flag_spec='-L$libdir'
7386       hardcode_direct=yes
7387       hardcode_minus_L=yes
7388       hardcode_shlibpath_var=no
7389       ;;
7391     sysv4)
7392       case $host_vendor in
7393         sni)
7394           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395           hardcode_direct=yes # is this really true???
7396         ;;
7397         siemens)
7398           ## LD is ld it makes a PLAMLIB
7399           ## CC just makes a GrossModule.
7400           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7401           reload_cmds='$CC -r -o $output$reload_objs'
7402           hardcode_direct=no
7403         ;;
7404         motorola)
7405           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7407         ;;
7408       esac
7409       runpath_var='LD_RUN_PATH'
7410       hardcode_shlibpath_var=no
7411       ;;
7413     sysv4.3*)
7414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7415       hardcode_shlibpath_var=no
7416       export_dynamic_flag_spec='-Bexport'
7417       ;;
7419     sysv4*MP*)
7420       if test -d /usr/nec; then
7421         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422         hardcode_shlibpath_var=no
7423         runpath_var=LD_RUN_PATH
7424         hardcode_runpath_var=yes
7425         ld_shlibs=yes
7426       fi
7427       ;;
7429     sysv4.2uw2*)
7430       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7431       hardcode_direct=yes
7432       hardcode_minus_L=no
7433       hardcode_shlibpath_var=no
7434       hardcode_runpath_var=yes
7435       runpath_var=LD_RUN_PATH
7436       ;;
7438    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7439       no_undefined_flag='${wl}-z ${wl}text'
7440       if test "$GCC" = yes; then
7441         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7442       else
7443         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444       fi
7445       runpath_var='LD_RUN_PATH'
7446       hardcode_shlibpath_var=no
7447       ;;
7449     sysv5*)
7450       no_undefined_flag=' -z text'
7451       # $CC -shared without GNU ld will not create a library from C++
7452       # object files and a static libstdc++, better avoid it by now
7453       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7455                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7456       hardcode_libdir_flag_spec=
7457       hardcode_shlibpath_var=no
7458       runpath_var='LD_RUN_PATH'
7459       ;;
7461     uts4*)
7462       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7463       hardcode_libdir_flag_spec='-L$libdir'
7464       hardcode_shlibpath_var=no
7465       ;;
7467     *)
7468       ld_shlibs=no
7469       ;;
7470     esac
7471   fi
7473 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7474 echo "${ECHO_T}$ld_shlibs" >&6
7475 test "$ld_shlibs" = no && can_build_shared=no
7477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7478 if test "$GCC" = yes; then
7479   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7483 # Do we need to explicitly link libc?
7485 case "x$archive_cmds_need_lc" in
7486 x|xyes)
7487   # Assume -lc should be added
7488   archive_cmds_need_lc=yes
7490   if test "$enable_shared" = yes && test "$GCC" = yes; then
7491     case $archive_cmds in
7492     *'~'*)
7493       # FIXME: we may have to deal with multi-command sequences.
7494       ;;
7495     '$CC '*)
7496       # Test whether the compiler implicitly links with -lc since on some
7497       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7498       # to ld, don't add -lc before -lgcc.
7499       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7500 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7501       $rm conftest*
7502       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7504       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505   (eval $ac_compile) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } 2>conftest.err; then
7509         soname=conftest
7510         lib=conftest
7511         libobjs=conftest.$ac_objext
7512         deplibs=
7513         wl=$lt_prog_compiler_wl
7514         compiler_flags=-v
7515         linker_flags=-v
7516         verstring=
7517         output_objdir=.
7518         libname=conftest
7519         lt_save_allow_undefined_flag=$allow_undefined_flag
7520         allow_undefined_flag=
7521         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7522   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }
7526         then
7527           archive_cmds_need_lc=no
7528         else
7529           archive_cmds_need_lc=yes
7530         fi
7531         allow_undefined_flag=$lt_save_allow_undefined_flag
7532       else
7533         cat conftest.err 1>&5
7534       fi
7535       $rm conftest*
7536       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7537 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7538       ;;
7539     esac
7540   fi
7541   ;;
7542 esac
7544 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7546 library_names_spec=
7547 libname_spec='lib$name'
7548 soname_spec=
7549 shrext_cmds=".so"
7550 postinstall_cmds=
7551 postuninstall_cmds=
7552 finish_cmds=
7553 finish_eval=
7554 shlibpath_var=
7555 shlibpath_overrides_runpath=unknown
7556 version_type=none
7557 dynamic_linker="$host_os ld.so"
7558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7559 if test "$GCC" = yes; then
7560   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7561   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7562     # if the path contains ";" then we assume it to be the separator
7563     # otherwise default to the standard path separator (i.e. ":") - it is
7564     # assumed that no part of a normal pathname contains ";" but that should
7565     # okay in the real world where ";" in dirpaths is itself problematic.
7566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7567   else
7568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7569   fi
7570 else
7571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7573 need_lib_prefix=unknown
7574 hardcode_into_libs=no
7576 # when you set need_version to no, make sure it does not cause -set_version
7577 # flags to be left without arguments
7578 need_version=unknown
7580 case $host_os in
7581 aix3*)
7582   version_type=linux
7583   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7584   shlibpath_var=LIBPATH
7586   # AIX 3 has no versioning support, so we append a major version to the name.
7587   soname_spec='${libname}${release}${shared_ext}$major'
7588   ;;
7590 aix4* | aix5*)
7591   version_type=linux
7592   need_lib_prefix=no
7593   need_version=no
7594   hardcode_into_libs=yes
7595   if test "$host_cpu" = ia64; then
7596     # AIX 5 supports IA64
7597     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7598     shlibpath_var=LD_LIBRARY_PATH
7599   else
7600     # With GCC up to 2.95.x, collect2 would create an import file
7601     # for dependence libraries.  The import file would start with
7602     # the line `#! .'.  This would cause the generated library to
7603     # depend on `.', always an invalid library.  This was fixed in
7604     # development snapshots of GCC prior to 3.0.
7605     case $host_os in
7606       aix4 | aix4.[01] | aix4.[01].*)
7607       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7608            echo ' yes '
7609            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7610         :
7611       else
7612         can_build_shared=no
7613       fi
7614       ;;
7615     esac
7616     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7617     # soname into executable. Probably we can add versioning support to
7618     # collect2, so additional links can be useful in future.
7619     if test "$aix_use_runtimelinking" = yes; then
7620       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7621       # instead of lib<name>.a to let people know that these are not
7622       # typical AIX shared libraries.
7623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7624     else
7625       # We preserve .a as extension for shared libraries through AIX4.2
7626       # and later when we are not doing run time linking.
7627       library_names_spec='${libname}${release}.a $libname.a'
7628       soname_spec='${libname}${release}${shared_ext}$major'
7629     fi
7630     shlibpath_var=LIBPATH
7631   fi
7632   ;;
7634 amigaos*)
7635   library_names_spec='$libname.ixlibrary $libname.a'
7636   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7637   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'
7638   ;;
7640 beos*)
7641   library_names_spec='${libname}${shared_ext}'
7642   dynamic_linker="$host_os ld.so"
7643   shlibpath_var=LIBRARY_PATH
7644   ;;
7646 bsdi4*)
7647   version_type=linux
7648   need_version=no
7649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650   soname_spec='${libname}${release}${shared_ext}$major'
7651   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7652   shlibpath_var=LD_LIBRARY_PATH
7653   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7654   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7655   # the default ld.so.conf also contains /usr/contrib/lib and
7656   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7657   # libtool to hard-code these into programs
7658   ;;
7660 cygwin* | mingw* | pw32*)
7661   version_type=windows
7662   shrext_cmds=".dll"
7663   need_version=no
7664   need_lib_prefix=no
7666   case $GCC,$host_os in
7667   yes,cygwin* | yes,mingw* | yes,pw32*)
7668     library_names_spec='$libname.dll.a'
7669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7670     postinstall_cmds='base_file=`basename \${file}`~
7671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7672       dldir=$destdir/`dirname \$dlpath`~
7673       test -d \$dldir || mkdir -p \$dldir~
7674       $install_prog $dir/$dlname \$dldir/$dlname'
7675     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7676       dlpath=$dir/\$dldll~
7677        $rm \$dlpath'
7678     shlibpath_overrides_runpath=yes
7680     case $host_os in
7681     cygwin*)
7682       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7683       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7684       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7685       ;;
7686     mingw*)
7687       # MinGW DLLs use traditional 'lib' prefix
7688       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7690       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7691         # It is most probably a Windows format PATH printed by
7692         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7693         # path with ; separators, and with drive letters. We can handle the
7694         # drive letters (cygwin fileutils understands them), so leave them,
7695         # especially as we might pass files found there to a mingw objdump,
7696         # which wouldn't understand a cygwinified path. Ahh.
7697         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7698       else
7699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7700       fi
7701       ;;
7702     pw32*)
7703       # pw32 DLLs use 'pw' prefix rather than 'lib'
7704       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7705       ;;
7706     esac
7707     ;;
7709   *)
7710     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7711     ;;
7712   esac
7713   dynamic_linker='Win32 ld.exe'
7714   # FIXME: first we should search . and the directory the executable is in
7715   shlibpath_var=PATH
7716   ;;
7718 darwin* | rhapsody*)
7719   dynamic_linker="$host_os dyld"
7720   version_type=darwin
7721   need_lib_prefix=no
7722   need_version=no
7723   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7724   soname_spec='${libname}${release}${major}$shared_ext'
7725   shlibpath_overrides_runpath=yes
7726   shlibpath_var=DYLD_LIBRARY_PATH
7727   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7728   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7729   if test "$GCC" = yes; then
7730     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"`
7731   else
7732     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7733   fi
7734   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7735   ;;
7737 dgux*)
7738   version_type=linux
7739   need_lib_prefix=no
7740   need_version=no
7741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7742   soname_spec='${libname}${release}${shared_ext}$major'
7743   shlibpath_var=LD_LIBRARY_PATH
7744   ;;
7746 freebsd1*)
7747   dynamic_linker=no
7748   ;;
7750 kfreebsd*-gnu)
7751   version_type=linux
7752   need_lib_prefix=no
7753   need_version=no
7754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7755   soname_spec='${libname}${release}${shared_ext}$major'
7756   shlibpath_var=LD_LIBRARY_PATH
7757   shlibpath_overrides_runpath=no
7758   hardcode_into_libs=yes
7759   dynamic_linker='GNU ld.so'
7760   ;;
7762 freebsd*)
7763   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7764   version_type=freebsd-$objformat
7765   case $version_type in
7766     freebsd-elf*)
7767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7768       need_version=no
7769       need_lib_prefix=no
7770       ;;
7771     freebsd-*)
7772       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7773       need_version=yes
7774       ;;
7775   esac
7776   shlibpath_var=LD_LIBRARY_PATH
7777   case $host_os in
7778   freebsd2*)
7779     shlibpath_overrides_runpath=yes
7780     ;;
7781   freebsd3.01* | freebsdelf3.01*)
7782     shlibpath_overrides_runpath=yes
7783     hardcode_into_libs=yes
7784     ;;
7785   *) # from 3.2 on
7786     shlibpath_overrides_runpath=no
7787     hardcode_into_libs=yes
7788     ;;
7789   esac
7790   ;;
7792 gnu*)
7793   version_type=linux
7794   need_lib_prefix=no
7795   need_version=no
7796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7797   soname_spec='${libname}${release}${shared_ext}$major'
7798   shlibpath_var=LD_LIBRARY_PATH
7799   hardcode_into_libs=yes
7800   ;;
7802 hpux9* | hpux10* | hpux11*)
7803   # Give a soname corresponding to the major version so that dld.sl refuses to
7804   # link against other versions.
7805   version_type=sunos
7806   need_lib_prefix=no
7807   need_version=no
7808   case "$host_cpu" in
7809   ia64*)
7810     shrext_cmds='.so'
7811     hardcode_into_libs=yes
7812     dynamic_linker="$host_os dld.so"
7813     shlibpath_var=LD_LIBRARY_PATH
7814     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816     soname_spec='${libname}${release}${shared_ext}$major'
7817     if test "X$HPUX_IA64_MODE" = X32; then
7818       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7819     else
7820       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7821     fi
7822     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7823     ;;
7824    hppa*64*)
7825      shrext_cmds='.sl'
7826      hardcode_into_libs=yes
7827      dynamic_linker="$host_os dld.sl"
7828      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7829      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7830      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831      soname_spec='${libname}${release}${shared_ext}$major'
7832      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7833      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7834      ;;
7835    *)
7836     shrext_cmds='.sl'
7837     dynamic_linker="$host_os dld.sl"
7838     shlibpath_var=SHLIB_PATH
7839     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841     soname_spec='${libname}${release}${shared_ext}$major'
7842     ;;
7843   esac
7844   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7845   postinstall_cmds='chmod 555 $lib'
7846   ;;
7848 irix5* | irix6* | nonstopux*)
7849   case $host_os in
7850     nonstopux*) version_type=nonstopux ;;
7851     *)
7852         if test "$lt_cv_prog_gnu_ld" = yes; then
7853                 version_type=linux
7854         else
7855                 version_type=irix
7856         fi ;;
7857   esac
7858   need_lib_prefix=no
7859   need_version=no
7860   soname_spec='${libname}${release}${shared_ext}$major'
7861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7862   case $host_os in
7863   irix5* | nonstopux*)
7864     libsuff= shlibsuff=
7865     ;;
7866   *)
7867     case $LD in # libtool.m4 will add one of these switches to LD
7868     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7869       libsuff= shlibsuff= libmagic=32-bit;;
7870     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7871       libsuff=32 shlibsuff=N32 libmagic=N32;;
7872     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7873       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7874     *) libsuff= shlibsuff= libmagic=never-match;;
7875     esac
7876     ;;
7877   esac
7878   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7879   shlibpath_overrides_runpath=no
7880   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7881   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7882   hardcode_into_libs=yes
7883   ;;
7885 # No shared lib support for Linux oldld, aout, or coff.
7886 linux*oldld* | linux*aout* | linux*coff*)
7887   dynamic_linker=no
7888   ;;
7890 # This must be Linux ELF.
7891 linux*)
7892   version_type=linux
7893   need_lib_prefix=no
7894   need_version=no
7895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896   soname_spec='${libname}${release}${shared_ext}$major'
7897   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7898   shlibpath_var=LD_LIBRARY_PATH
7899   shlibpath_overrides_runpath=no
7900   # This implies no fast_install, which is unacceptable.
7901   # Some rework will be needed to allow for fast_install
7902   # before this can be enabled.
7903   hardcode_into_libs=yes
7905   # Append ld.so.conf contents to the search path
7906   if test -f /etc/ld.so.conf; then
7907     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7908     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7909   fi
7911   # We used to test for /lib/ld.so.1 and disable shared libraries on
7912   # powerpc, because MkLinux only supported shared libraries with the
7913   # GNU dynamic linker.  Since this was broken with cross compilers,
7914   # most powerpc-linux boxes support dynamic linking these days and
7915   # people can always --disable-shared, the test was removed, and we
7916   # assume the GNU/Linux dynamic linker is in use.
7917   dynamic_linker='GNU/Linux ld.so'
7918   ;;
7920 netbsdelf*-gnu)
7921   version_type=linux
7922   need_lib_prefix=no
7923   need_version=no
7924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7925   soname_spec='${libname}${release}${shared_ext}$major'
7926   shlibpath_var=LD_LIBRARY_PATH
7927   shlibpath_overrides_runpath=no
7928   hardcode_into_libs=yes
7929   dynamic_linker='NetBSD ld.elf_so'
7930   ;;
7932 knetbsd*-gnu)
7933   version_type=linux
7934   need_lib_prefix=no
7935   need_version=no
7936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7937   soname_spec='${libname}${release}${shared_ext}$major'
7938   shlibpath_var=LD_LIBRARY_PATH
7939   shlibpath_overrides_runpath=no
7940   hardcode_into_libs=yes
7941   dynamic_linker='GNU ld.so'
7942   ;;
7944 netbsd*)
7945   version_type=sunos
7946   need_lib_prefix=no
7947   need_version=no
7948   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7950     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7951     dynamic_linker='NetBSD (a.out) ld.so'
7952   else
7953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7954     soname_spec='${libname}${release}${shared_ext}$major'
7955     dynamic_linker='NetBSD ld.elf_so'
7956   fi
7957   shlibpath_var=LD_LIBRARY_PATH
7958   shlibpath_overrides_runpath=yes
7959   hardcode_into_libs=yes
7960   ;;
7962 newsos6)
7963   version_type=linux
7964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7965   shlibpath_var=LD_LIBRARY_PATH
7966   shlibpath_overrides_runpath=yes
7967   ;;
7969 nto-qnx*)
7970   version_type=linux
7971   need_lib_prefix=no
7972   need_version=no
7973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7974   soname_spec='${libname}${release}${shared_ext}$major'
7975   shlibpath_var=LD_LIBRARY_PATH
7976   shlibpath_overrides_runpath=yes
7977   ;;
7979 openbsd*)
7980   version_type=sunos
7981   need_lib_prefix=no
7982   need_version=yes
7983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7984   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7985   shlibpath_var=LD_LIBRARY_PATH
7986   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7987     case $host_os in
7988       openbsd2.[89] | openbsd2.[89].*)
7989         shlibpath_overrides_runpath=no
7990         ;;
7991       *)
7992         shlibpath_overrides_runpath=yes
7993         ;;
7994       esac
7995   else
7996     shlibpath_overrides_runpath=yes
7997   fi
7998   ;;
8000 os2*)
8001   libname_spec='$name'
8002   shrext_cmds=".dll"
8003   need_lib_prefix=no
8004   library_names_spec='$libname${shared_ext} $libname.a'
8005   dynamic_linker='OS/2 ld.exe'
8006   shlibpath_var=LIBPATH
8007   ;;
8009 osf3* | osf4* | osf5*)
8010   version_type=osf
8011   need_lib_prefix=no
8012   need_version=no
8013   soname_spec='${libname}${release}${shared_ext}$major'
8014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8015   shlibpath_var=LD_LIBRARY_PATH
8016   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8017   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8018   ;;
8020 sco3.2v5*)
8021   version_type=osf
8022   soname_spec='${libname}${release}${shared_ext}$major'
8023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024   shlibpath_var=LD_LIBRARY_PATH
8025   ;;
8027 solaris*)
8028   version_type=linux
8029   need_lib_prefix=no
8030   need_version=no
8031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032   soname_spec='${libname}${release}${shared_ext}$major'
8033   shlibpath_var=LD_LIBRARY_PATH
8034   shlibpath_overrides_runpath=yes
8035   hardcode_into_libs=yes
8036   # ldd complains unless libraries are executable
8037   postinstall_cmds='chmod +x $lib'
8038   ;;
8040 sunos4*)
8041   version_type=sunos
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8043   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8044   shlibpath_var=LD_LIBRARY_PATH
8045   shlibpath_overrides_runpath=yes
8046   if test "$with_gnu_ld" = yes; then
8047     need_lib_prefix=no
8048   fi
8049   need_version=yes
8050   ;;
8052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8053   version_type=linux
8054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055   soname_spec='${libname}${release}${shared_ext}$major'
8056   shlibpath_var=LD_LIBRARY_PATH
8057   case $host_vendor in
8058     sni)
8059       shlibpath_overrides_runpath=no
8060       need_lib_prefix=no
8061       export_dynamic_flag_spec='${wl}-Blargedynsym'
8062       runpath_var=LD_RUN_PATH
8063       ;;
8064     siemens)
8065       need_lib_prefix=no
8066       ;;
8067     motorola)
8068       need_lib_prefix=no
8069       need_version=no
8070       shlibpath_overrides_runpath=no
8071       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8072       ;;
8073   esac
8074   ;;
8076 sysv4*MP*)
8077   if test -d /usr/nec ;then
8078     version_type=linux
8079     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8080     soname_spec='$libname${shared_ext}.$major'
8081     shlibpath_var=LD_LIBRARY_PATH
8082   fi
8083   ;;
8085 uts4*)
8086   version_type=linux
8087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088   soname_spec='${libname}${release}${shared_ext}$major'
8089   shlibpath_var=LD_LIBRARY_PATH
8090   ;;
8093   dynamic_linker=no
8094   ;;
8095 esac
8096 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8097 echo "${ECHO_T}$dynamic_linker" >&6
8098 test "$dynamic_linker" = no && can_build_shared=no
8100 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8102 hardcode_action=
8103 if test -n "$hardcode_libdir_flag_spec" || \
8104    test -n "$runpath_var " || \
8105    test "X$hardcode_automatic"="Xyes" ; then
8107   # We can hardcode non-existant directories.
8108   if test "$hardcode_direct" != no &&
8109      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8110      # have to relink, otherwise we might link with an installed library
8111      # when we should be linking with a yet-to-be-installed one
8112      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8113      test "$hardcode_minus_L" != no; then
8114     # Linking always hardcodes the temporary library directory.
8115     hardcode_action=relink
8116   else
8117     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8118     hardcode_action=immediate
8119   fi
8120 else
8121   # We cannot hardcode anything, or else we can only hardcode existing
8122   # directories.
8123   hardcode_action=unsupported
8125 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8126 echo "${ECHO_T}$hardcode_action" >&6
8128 if test "$hardcode_action" = relink; then
8129   # Fast installation is not supported
8130   enable_fast_install=no
8131 elif test "$shlibpath_overrides_runpath" = yes ||
8132      test "$enable_shared" = no; then
8133   # Fast installation is not necessary
8134   enable_fast_install=needless
8137 striplib=
8138 old_striplib=
8139 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8140 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8141 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8142   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8143   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8144   echo "$as_me:$LINENO: result: yes" >&5
8145 echo "${ECHO_T}yes" >&6
8146 else
8147 # FIXME - insert some real tests, host_os isn't really good enough
8148   case $host_os in
8149    darwin*)
8150        if test -n "$STRIP" ; then
8151          striplib="$STRIP -x"
8152          echo "$as_me:$LINENO: result: yes" >&5
8153 echo "${ECHO_T}yes" >&6
8154        else
8155   echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6
8158        ;;
8159    *)
8160   echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6
8162     ;;
8163   esac
8166 if test "x$enable_dlopen" != xyes; then
8167   enable_dlopen=unknown
8168   enable_dlopen_self=unknown
8169   enable_dlopen_self_static=unknown
8170 else
8171   lt_cv_dlopen=no
8172   lt_cv_dlopen_libs=
8174   case $host_os in
8175   beos*)
8176     lt_cv_dlopen="load_add_on"
8177     lt_cv_dlopen_libs=
8178     lt_cv_dlopen_self=yes
8179     ;;
8181   mingw* | pw32*)
8182     lt_cv_dlopen="LoadLibrary"
8183     lt_cv_dlopen_libs=
8184    ;;
8186   cygwin*)
8187     lt_cv_dlopen="dlopen"
8188     lt_cv_dlopen_libs=
8189    ;;
8191   darwin*)
8192   # if libdl is installed we need to link against it
8193     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8194 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198   ac_check_lib_save_LIBS=$LIBS
8199 LIBS="-ldl  $LIBS"
8200 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h.  */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h.  */
8207 /* Override any gcc2 internal prototype to avoid an error.  */
8208 #ifdef __cplusplus
8209 extern "C"
8210 #endif
8211 /* We use char because int might match the return type of a gcc2
8212    builtin and then its argument prototype would still apply.  */
8213 char dlopen ();
8215 main ()
8217 dlopen ();
8218   ;
8219   return 0;
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224   (eval $ac_link) 2>conftest.er1
8225   ac_status=$?
8226   grep -v '^ *+' conftest.er1 >conftest.err
8227   rm -f conftest.er1
8228   cat conftest.err >&5
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); } &&
8231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; } &&
8237          { ac_try='test -s conftest$ac_exeext'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   ac_cv_lib_dl_dlopen=yes
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_lib_dl_dlopen=no
8250 rm -f conftest.err conftest.$ac_objext \
8251       conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_check_lib_save_LIBS
8254 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8256 if test $ac_cv_lib_dl_dlopen = yes; then
8257   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8258 else
8259   
8260     lt_cv_dlopen="dyld"
8261     lt_cv_dlopen_libs=
8262     lt_cv_dlopen_self=yes
8263     
8266    ;;
8268   *)
8269     echo "$as_me:$LINENO: checking for shl_load" >&5
8270 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8271 if test "${ac_cv_func_shl_load+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8282 #define shl_load innocuous_shl_load
8284 /* System header to define __stub macros and hopefully few prototypes,
8285     which can conflict with char shl_load (); below.
8286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287     <limits.h> exists even on freestanding compilers.  */
8289 #ifdef __STDC__
8290 # include <limits.h>
8291 #else
8292 # include <assert.h>
8293 #endif
8295 #undef shl_load
8297 /* Override any gcc2 internal prototype to avoid an error.  */
8298 #ifdef __cplusplus
8299 extern "C"
8301 #endif
8302 /* We use char because int might match the return type of a gcc2
8303    builtin and then its argument prototype would still apply.  */
8304 char shl_load ();
8305 /* The GNU C library defines this for functions which it implements
8306     to always fail with ENOSYS.  Some functions are actually named
8307     something starting with __ and the normal name is an alias.  */
8308 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8309 choke me
8310 #else
8311 char (*f) () = shl_load;
8312 #endif
8313 #ifdef __cplusplus
8315 #endif
8318 main ()
8320 return f != shl_load;
8321   ;
8322   return 0;
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327   (eval $ac_link) 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336   (eval $ac_try) 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; } &&
8340          { ac_try='test -s conftest$ac_exeext'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; }; then
8346   ac_cv_func_shl_load=yes
8347 else
8348   echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_func_shl_load=no
8353 rm -f conftest.err conftest.$ac_objext \
8354       conftest$ac_exeext conftest.$ac_ext
8356 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8357 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8358 if test $ac_cv_func_shl_load = yes; then
8359   lt_cv_dlopen="shl_load"
8360 else
8361   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8362 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   ac_check_lib_save_LIBS=$LIBS
8367 LIBS="-ldld  $LIBS"
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8375 /* Override any gcc2 internal prototype to avoid an error.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 /* We use char because int might match the return type of a gcc2
8380    builtin and then its argument prototype would still apply.  */
8381 char shl_load ();
8383 main ()
8385 shl_load ();
8386   ;
8387   return 0;
8389 _ACEOF
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392   (eval $ac_link) 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_dld_shl_load=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_dld_shl_load=no
8418 rm -f conftest.err conftest.$ac_objext \
8419       conftest$ac_exeext conftest.$ac_ext
8420 LIBS=$ac_check_lib_save_LIBS
8422 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8423 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8424 if test $ac_cv_lib_dld_shl_load = yes; then
8425   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8426 else
8427   echo "$as_me:$LINENO: checking for dlopen" >&5
8428 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8429 if test "${ac_cv_func_dlopen+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8440 #define dlopen innocuous_dlopen
8442 /* System header to define __stub macros and hopefully few prototypes,
8443     which can conflict with char dlopen (); below.
8444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8445     <limits.h> exists even on freestanding compilers.  */
8447 #ifdef __STDC__
8448 # include <limits.h>
8449 #else
8450 # include <assert.h>
8451 #endif
8453 #undef dlopen
8455 /* Override any gcc2 internal prototype to avoid an error.  */
8456 #ifdef __cplusplus
8457 extern "C"
8459 #endif
8460 /* We use char because int might match the return type of a gcc2
8461    builtin and then its argument prototype would still apply.  */
8462 char dlopen ();
8463 /* The GNU C library defines this for functions which it implements
8464     to always fail with ENOSYS.  Some functions are actually named
8465     something starting with __ and the normal name is an alias.  */
8466 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8467 choke me
8468 #else
8469 char (*f) () = dlopen;
8470 #endif
8471 #ifdef __cplusplus
8473 #endif
8476 main ()
8478 return f != dlopen;
8479   ;
8480   return 0;
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485   (eval $ac_link) 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest$ac_exeext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_func_dlopen=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_func_dlopen=no
8511 rm -f conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8516 if test $ac_cv_func_dlopen = yes; then
8517   lt_cv_dlopen="dlopen"
8518 else
8519   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-ldl  $LIBS"
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char dlopen ();
8541 main ()
8543 dlopen ();
8544   ;
8545   return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550   (eval $ac_link) 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   ac_cv_lib_dl_dlopen=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_cv_lib_dl_dlopen=no
8576 rm -f conftest.err conftest.$ac_objext \
8577       conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8580 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8581 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8582 if test $ac_cv_lib_dl_dlopen = yes; then
8583   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8584 else
8585   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8586 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8587 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   ac_check_lib_save_LIBS=$LIBS
8591 LIBS="-lsvld  $LIBS"
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8599 /* Override any gcc2 internal prototype to avoid an error.  */
8600 #ifdef __cplusplus
8601 extern "C"
8602 #endif
8603 /* We use char because int might match the return type of a gcc2
8604    builtin and then its argument prototype would still apply.  */
8605 char dlopen ();
8607 main ()
8609 dlopen ();
8610   ;
8611   return 0;
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616   (eval $ac_link) 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } &&
8623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625   (eval $ac_try) 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; } &&
8629          { ac_try='test -s conftest$ac_exeext'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_cv_lib_svld_dlopen=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_lib_svld_dlopen=no
8642 rm -f conftest.err conftest.$ac_objext \
8643       conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8647 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8648 if test $ac_cv_lib_svld_dlopen = yes; then
8649   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8650 else
8651   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8652 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8653 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   ac_check_lib_save_LIBS=$LIBS
8657 LIBS="-ldld  $LIBS"
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h.  */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h.  */
8665 /* Override any gcc2 internal prototype to avoid an error.  */
8666 #ifdef __cplusplus
8667 extern "C"
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670    builtin and then its argument prototype would still apply.  */
8671 char dld_link ();
8673 main ()
8675 dld_link ();
8676   ;
8677   return 0;
8679 _ACEOF
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8682   (eval $ac_link) 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest$ac_exeext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   ac_cv_lib_dld_dld_link=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_lib_dld_dld_link=no
8708 rm -f conftest.err conftest.$ac_objext \
8709       conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8714 if test $ac_cv_lib_dld_dld_link = yes; then
8715   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8718               
8721             
8724           
8727         
8730       
8733     ;;
8734   esac
8736   if test "x$lt_cv_dlopen" != xno; then
8737     enable_dlopen=yes
8738   else
8739     enable_dlopen=no
8740   fi
8742   case $lt_cv_dlopen in
8743   dlopen)
8744     save_CPPFLAGS="$CPPFLAGS"
8745     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8747     save_LDFLAGS="$LDFLAGS"
8748     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8750     save_LIBS="$LIBS"
8751     LIBS="$lt_cv_dlopen_libs $LIBS"
8753     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8754 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8755 if test "${lt_cv_dlopen_self+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758           if test "$cross_compiling" = yes; then :
8759   lt_cv_dlopen_self=cross
8760 else
8761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8762   lt_status=$lt_dlunknown
8763   cat > conftest.$ac_ext <<EOF
8764 #line __oline__ "configure"
8765 #include "confdefs.h"
8767 #if HAVE_DLFCN_H
8768 #include <dlfcn.h>
8769 #endif
8771 #include <stdio.h>
8773 #ifdef RTLD_GLOBAL
8774 #  define LT_DLGLOBAL           RTLD_GLOBAL
8775 #else
8776 #  ifdef DL_GLOBAL
8777 #    define LT_DLGLOBAL         DL_GLOBAL
8778 #  else
8779 #    define LT_DLGLOBAL         0
8780 #  endif
8781 #endif
8783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8784    find out it does not work in some platform. */
8785 #ifndef LT_DLLAZY_OR_NOW
8786 #  ifdef RTLD_LAZY
8787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8788 #  else
8789 #    ifdef DL_LAZY
8790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8791 #    else
8792 #      ifdef RTLD_NOW
8793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8794 #      else
8795 #        ifdef DL_NOW
8796 #          define LT_DLLAZY_OR_NOW      DL_NOW
8797 #        else
8798 #          define LT_DLLAZY_OR_NOW      0
8799 #        endif
8800 #      endif
8801 #    endif
8802 #  endif
8803 #endif
8805 #ifdef __cplusplus
8806 extern "C" void exit (int);
8807 #endif
8809 void fnord() { int i=42;}
8810 int main ()
8812   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8813   int status = $lt_dlunknown;
8815   if (self)
8816     {
8817       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8818       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8819       /* dlclose (self); */
8820     }
8822     exit (status);
8825   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826   (eval $ac_link) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8830     (./conftest; exit; ) 2>/dev/null
8831     lt_status=$?
8832     case x$lt_status in
8833       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8834       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8835       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8836     esac
8837   else :
8838     # compilation failed
8839     lt_cv_dlopen_self=no
8840   fi
8842 rm -fr conftest*
8844     
8846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8847 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8849     if test "x$lt_cv_dlopen_self" = xyes; then
8850       LDFLAGS="$LDFLAGS $link_static_flag"
8851       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8852 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8853 if test "${lt_cv_dlopen_self_static+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856           if test "$cross_compiling" = yes; then :
8857   lt_cv_dlopen_self_static=cross
8858 else
8859   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8860   lt_status=$lt_dlunknown
8861   cat > conftest.$ac_ext <<EOF
8862 #line __oline__ "configure"
8863 #include "confdefs.h"
8865 #if HAVE_DLFCN_H
8866 #include <dlfcn.h>
8867 #endif
8869 #include <stdio.h>
8871 #ifdef RTLD_GLOBAL
8872 #  define LT_DLGLOBAL           RTLD_GLOBAL
8873 #else
8874 #  ifdef DL_GLOBAL
8875 #    define LT_DLGLOBAL         DL_GLOBAL
8876 #  else
8877 #    define LT_DLGLOBAL         0
8878 #  endif
8879 #endif
8881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8882    find out it does not work in some platform. */
8883 #ifndef LT_DLLAZY_OR_NOW
8884 #  ifdef RTLD_LAZY
8885 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8886 #  else
8887 #    ifdef DL_LAZY
8888 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8889 #    else
8890 #      ifdef RTLD_NOW
8891 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8892 #      else
8893 #        ifdef DL_NOW
8894 #          define LT_DLLAZY_OR_NOW      DL_NOW
8895 #        else
8896 #          define LT_DLLAZY_OR_NOW      0
8897 #        endif
8898 #      endif
8899 #    endif
8900 #  endif
8901 #endif
8903 #ifdef __cplusplus
8904 extern "C" void exit (int);
8905 #endif
8907 void fnord() { int i=42;}
8908 int main ()
8910   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8911   int status = $lt_dlunknown;
8913   if (self)
8914     {
8915       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8916       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8917       /* dlclose (self); */
8918     }
8920     exit (status);
8923   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924   (eval $ac_link) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8928     (./conftest; exit; ) 2>/dev/null
8929     lt_status=$?
8930     case x$lt_status in
8931       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8932       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8933       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8934     esac
8935   else :
8936     # compilation failed
8937     lt_cv_dlopen_self_static=no
8938   fi
8940 rm -fr conftest*
8942       
8944 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8946     fi
8948     CPPFLAGS="$save_CPPFLAGS"
8949     LDFLAGS="$save_LDFLAGS"
8950     LIBS="$save_LIBS"
8951     ;;
8952   esac
8954   case $lt_cv_dlopen_self in
8955   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8956   *) enable_dlopen_self=unknown ;;
8957   esac
8959   case $lt_cv_dlopen_self_static in
8960   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8961   *) enable_dlopen_self_static=unknown ;;
8962   esac
8966 # Report which librarie types wil actually be built
8967 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8969 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8970 echo "${ECHO_T}$can_build_shared" >&6
8972 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8974 test "$can_build_shared" = "no" && enable_shared=no
8976 # On AIX, shared libraries and static libraries use the same namespace, and
8977 # are all built from PIC.
8978 case "$host_os" in
8979 aix3*)
8980   test "$enable_shared" = yes && enable_static=no
8981   if test -n "$RANLIB"; then
8982     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8983     postinstall_cmds='$RANLIB $lib'
8984   fi
8985   ;;
8987 aix4* | aix5*)
8988   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8989     test "$enable_shared" = yes && enable_static=no
8990   fi
8991   ;;
8992   darwin* | rhapsody*)
8993   if test "$GCC" = yes; then
8994     archive_cmds_need_lc=no
8995     case "$host_os" in
8996     rhapsody* | darwin1.[012])
8997       allow_undefined_flag='-undefined suppress'
8998       ;;
8999     *) # Darwin 1.3 on
9000       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9001         allow_undefined_flag='-flat_namespace -undefined suppress'
9002       else
9003         case ${MACOSX_DEPLOYMENT_TARGET} in
9004           10.[012])
9005             allow_undefined_flag='-flat_namespace -undefined suppress'
9006             ;;
9007           10.*)
9008             allow_undefined_flag='-undefined dynamic_lookup'
9009             ;;
9010         esac
9011       fi
9012       ;;
9013     esac
9014     output_verbose_link_cmd='echo'
9015     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9016     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9017     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9018     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}'
9019     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}'
9020     hardcode_direct=no
9021     hardcode_automatic=yes
9022     hardcode_shlibpath_var=unsupported
9023     whole_archive_flag_spec='-all_load $convenience'
9024     link_all_deplibs=yes
9025   else
9026     ld_shlibs=no
9027   fi
9028     ;;
9029 esac
9030 echo "$as_me:$LINENO: result: $enable_shared" >&5
9031 echo "${ECHO_T}$enable_shared" >&6
9033 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9034 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9035 # Make sure either enable_shared or enable_static is yes.
9036 test "$enable_shared" = yes || enable_static=yes
9037 echo "$as_me:$LINENO: result: $enable_static" >&5
9038 echo "${ECHO_T}$enable_static" >&6
9040 # The else clause should only fire when bootstrapping the
9041 # libtool distribution, otherwise you forgot to ship ltmain.sh
9042 # with your package, and you will get complaints that there are
9043 # no rules to generate ltmain.sh.
9044 if test -f "$ltmain"; then
9045   # See if we are running on zsh, and set the options which allow our commands through
9046   # without removal of \ escapes.
9047   if test -n "${ZSH_VERSION+set}" ; then
9048     setopt NO_GLOB_SUBST
9049   fi
9050   # Now quote all the things that may contain metacharacters while being
9051   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9052   # variables and quote the copies for generation of the libtool script.
9053   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9054     SED SHELL STRIP \
9055     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9056     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9057     deplibs_check_method reload_flag reload_cmds need_locks \
9058     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9059     lt_cv_sys_global_symbol_to_c_name_address \
9060     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9061     old_postinstall_cmds old_postuninstall_cmds \
9062     compiler \
9063     CC \
9064     LD \
9065     lt_prog_compiler_wl \
9066     lt_prog_compiler_pic \
9067     lt_prog_compiler_static \
9068     lt_prog_compiler_no_builtin_flag \
9069     export_dynamic_flag_spec \
9070     thread_safe_flag_spec \
9071     whole_archive_flag_spec \
9072     enable_shared_with_static_runtimes \
9073     old_archive_cmds \
9074     old_archive_from_new_cmds \
9075     predep_objects \
9076     postdep_objects \
9077     predeps \
9078     postdeps \
9079     compiler_lib_search_path \
9080     archive_cmds \
9081     archive_expsym_cmds \
9082     postinstall_cmds \
9083     postuninstall_cmds \
9084     old_archive_from_expsyms_cmds \
9085     allow_undefined_flag \
9086     no_undefined_flag \
9087     export_symbols_cmds \
9088     hardcode_libdir_flag_spec \
9089     hardcode_libdir_flag_spec_ld \
9090     hardcode_libdir_separator \
9091     hardcode_automatic \
9092     module_cmds \
9093     module_expsym_cmds \
9094     lt_cv_prog_compiler_c_o \
9095     exclude_expsyms \
9096     include_expsyms; do
9098     case $var in
9099     old_archive_cmds | \
9100     old_archive_from_new_cmds | \
9101     archive_cmds | \
9102     archive_expsym_cmds | \
9103     module_cmds | \
9104     module_expsym_cmds | \
9105     old_archive_from_expsyms_cmds | \
9106     export_symbols_cmds | \
9107     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9108     postinstall_cmds | postuninstall_cmds | \
9109     old_postinstall_cmds | old_postuninstall_cmds | \
9110     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9111       # Double-quote double-evaled strings.
9112       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9113       ;;
9114     *)
9115       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9116       ;;
9117     esac
9118   done
9120   case $lt_echo in
9121   *'\$0 --fallback-echo"')
9122     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9123     ;;
9124   esac
9126 cfgfile="${ofile}T"
9127   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9128   $rm -f "$cfgfile"
9129   { echo "$as_me:$LINENO: creating $ofile" >&5
9130 echo "$as_me: creating $ofile" >&6;}
9132   cat <<__EOF__ >> "$cfgfile"
9133 #! $SHELL
9135 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9136 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9140 # Free Software Foundation, Inc.
9142 # This file is part of GNU Libtool:
9143 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9145 # This program is free software; you can redistribute it and/or modify
9146 # it under the terms of the GNU General Public License as published by
9147 # the Free Software Foundation; either version 2 of the License, or
9148 # (at your option) any later version.
9150 # This program is distributed in the hope that it will be useful, but
9151 # WITHOUT ANY WARRANTY; without even the implied warranty of
9152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9153 # General Public License for more details.
9155 # You should have received a copy of the GNU General Public License
9156 # along with this program; if not, write to the Free Software
9157 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9159 # As a special exception to the GNU General Public License, if you
9160 # distribute this file as part of a program that contains a
9161 # configuration script generated by Autoconf, you may include it under
9162 # the same distribution terms that you use for the rest of that program.
9164 # A sed program that does not truncate output.
9165 SED=$lt_SED
9167 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9168 Xsed="$SED -e s/^X//"
9170 # The HP-UX ksh and POSIX shell print the target directory to stdout
9171 # if CDPATH is set.
9172 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9174 # The names of the tagged configurations supported by this script.
9175 available_tags=
9177 # ### BEGIN LIBTOOL CONFIG
9179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9181 # Shell to use when invoking shell scripts.
9182 SHELL=$lt_SHELL
9184 # Whether or not to build shared libraries.
9185 build_libtool_libs=$enable_shared
9187 # Whether or not to build static libraries.
9188 build_old_libs=$enable_static
9190 # Whether or not to add -lc for building shared libraries.
9191 build_libtool_need_lc=$archive_cmds_need_lc
9193 # Whether or not to disallow shared libs when runtime libs are static
9194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9196 # Whether or not to optimize for fast installation.
9197 fast_install=$enable_fast_install
9199 # The host system.
9200 host_alias=$host_alias
9201 host=$host
9203 # An echo program that does not interpret backslashes.
9204 echo=$lt_echo
9206 # The archiver.
9207 AR=$lt_AR
9208 AR_FLAGS=$lt_AR_FLAGS
9210 # A C compiler.
9211 LTCC=$lt_LTCC
9213 # A language-specific compiler.
9214 CC=$lt_compiler
9216 # Is the compiler the GNU C compiler?
9217 with_gcc=$GCC
9219 # An ERE matcher.
9220 EGREP=$lt_EGREP
9222 # The linker used to build libraries.
9223 LD=$lt_LD
9225 # Whether we need hard or soft links.
9226 LN_S=$lt_LN_S
9228 # A BSD-compatible nm program.
9229 NM=$lt_NM
9231 # A symbol stripping program
9232 STRIP=$lt_STRIP
9234 # Used to examine libraries when file_magic_cmd begins "file"
9235 MAGIC_CMD=$MAGIC_CMD
9237 # Used on cygwin: DLL creation program.
9238 DLLTOOL="$DLLTOOL"
9240 # Used on cygwin: object dumper.
9241 OBJDUMP="$OBJDUMP"
9243 # Used on cygwin: assembler.
9244 AS="$AS"
9246 # The name of the directory that contains temporary libtool files.
9247 objdir=$objdir
9249 # How to create reloadable object files.
9250 reload_flag=$lt_reload_flag
9251 reload_cmds=$lt_reload_cmds
9253 # How to pass a linker flag through the compiler.
9254 wl=$lt_lt_prog_compiler_wl
9256 # Object file suffix (normally "o").
9257 objext="$ac_objext"
9259 # Old archive suffix (normally "a").
9260 libext="$libext"
9262 # Shared library suffix (normally ".so").
9263 shrext_cmds='$shrext_cmds'
9265 # Executable file suffix (normally "").
9266 exeext="$exeext"
9268 # Additional compiler flags for building library objects.
9269 pic_flag=$lt_lt_prog_compiler_pic
9270 pic_mode=$pic_mode
9272 # What is the maximum length of a command?
9273 max_cmd_len=$lt_cv_sys_max_cmd_len
9275 # Does compiler simultaneously support -c and -o options?
9276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9278 # Must we lock files when doing compilation ?
9279 need_locks=$lt_need_locks
9281 # Do we need the lib prefix for modules?
9282 need_lib_prefix=$need_lib_prefix
9284 # Do we need a version for libraries?
9285 need_version=$need_version
9287 # Whether dlopen is supported.
9288 dlopen_support=$enable_dlopen
9290 # Whether dlopen of programs is supported.
9291 dlopen_self=$enable_dlopen_self
9293 # Whether dlopen of statically linked programs is supported.
9294 dlopen_self_static=$enable_dlopen_self_static
9296 # Compiler flag to prevent dynamic linking.
9297 link_static_flag=$lt_lt_prog_compiler_static
9299 # Compiler flag to turn off builtin functions.
9300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9302 # Compiler flag to allow reflexive dlopens.
9303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9305 # Compiler flag to generate shared objects directly from archives.
9306 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9308 # Compiler flag to generate thread-safe objects.
9309 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9311 # Library versioning type.
9312 version_type=$version_type
9314 # Format of library name prefix.
9315 libname_spec=$lt_libname_spec
9317 # List of archive names.  First name is the real one, the rest are links.
9318 # The last name is the one that the linker finds with -lNAME.
9319 library_names_spec=$lt_library_names_spec
9321 # The coded name of the library, if different from the real name.
9322 soname_spec=$lt_soname_spec
9324 # Commands used to build and install an old-style archive.
9325 RANLIB=$lt_RANLIB
9326 old_archive_cmds=$lt_old_archive_cmds
9327 old_postinstall_cmds=$lt_old_postinstall_cmds
9328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9330 # Create an old-style archive from a shared archive.
9331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9333 # Create a temporary old-style archive to link instead of a shared archive.
9334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9336 # Commands used to build and install a shared archive.
9337 archive_cmds=$lt_archive_cmds
9338 archive_expsym_cmds=$lt_archive_expsym_cmds
9339 postinstall_cmds=$lt_postinstall_cmds
9340 postuninstall_cmds=$lt_postuninstall_cmds
9342 # Commands used to build a loadable module (assumed same as above if empty)
9343 module_cmds=$lt_module_cmds
9344 module_expsym_cmds=$lt_module_expsym_cmds
9346 # Commands to strip libraries.
9347 old_striplib=$lt_old_striplib
9348 striplib=$lt_striplib
9350 # Dependencies to place before the objects being linked to create a
9351 # shared library.
9352 predep_objects=$lt_predep_objects
9354 # Dependencies to place after the objects being linked to create a
9355 # shared library.
9356 postdep_objects=$lt_postdep_objects
9358 # Dependencies to place before the objects being linked to create a
9359 # shared library.
9360 predeps=$lt_predeps
9362 # Dependencies to place after the objects being linked to create a
9363 # shared library.
9364 postdeps=$lt_postdeps
9366 # The library search path used internally by the compiler when linking
9367 # a shared library.
9368 compiler_lib_search_path=$lt_compiler_lib_search_path
9370 # Method to check whether dependent libraries are shared objects.
9371 deplibs_check_method=$lt_deplibs_check_method
9373 # Command to use when deplibs_check_method == file_magic.
9374 file_magic_cmd=$lt_file_magic_cmd
9376 # Flag that allows shared libraries with undefined symbols to be built.
9377 allow_undefined_flag=$lt_allow_undefined_flag
9379 # Flag that forces no undefined symbols.
9380 no_undefined_flag=$lt_no_undefined_flag
9382 # Commands used to finish a libtool library installation in a directory.
9383 finish_cmds=$lt_finish_cmds
9385 # Same as above, but a single script fragment to be evaled but not shown.
9386 finish_eval=$lt_finish_eval
9388 # Take the output of nm and produce a listing of raw symbols and C names.
9389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9391 # Transform the output of nm in a proper C declaration
9392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9394 # Transform the output of nm in a C name address pair
9395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9397 # This is the shared library runtime path variable.
9398 runpath_var=$runpath_var
9400 # This is the shared library path variable.
9401 shlibpath_var=$shlibpath_var
9403 # Is shlibpath searched before the hard-coded library search path?
9404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9406 # How to hardcode a shared library path into an executable.
9407 hardcode_action=$hardcode_action
9409 # Whether we should hardcode library paths into libraries.
9410 hardcode_into_libs=$hardcode_into_libs
9412 # Flag to hardcode \$libdir into a binary during linking.
9413 # This must work even if \$libdir does not exist.
9414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9416 # If ld is used when linking, flag to hardcode \$libdir into
9417 # a binary during linking. This must work even if \$libdir does
9418 # not exist.
9419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9421 # Whether we need a single -rpath flag with a separated argument.
9422 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9425 # resulting binary.
9426 hardcode_direct=$hardcode_direct
9428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9429 # resulting binary.
9430 hardcode_minus_L=$hardcode_minus_L
9432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9433 # the resulting binary.
9434 hardcode_shlibpath_var=$hardcode_shlibpath_var
9436 # Set to yes if building a shared library automatically hardcodes DIR into the library
9437 # and all subsequent libraries and executables linked against it.
9438 hardcode_automatic=$hardcode_automatic
9440 # Variables whose values should be saved in libtool wrapper scripts and
9441 # restored at relink time.
9442 variables_saved_for_relink="$variables_saved_for_relink"
9444 # Whether libtool must link a program against all its dependency libraries.
9445 link_all_deplibs=$link_all_deplibs
9447 # Compile-time system search path for libraries
9448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9450 # Run-time system search path for libraries
9451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9453 # Fix the shell variable \$srcfile for the compiler.
9454 fix_srcfile_path="$fix_srcfile_path"
9456 # Set to yes if exported symbols are required.
9457 always_export_symbols=$always_export_symbols
9459 # The commands to list exported symbols.
9460 export_symbols_cmds=$lt_export_symbols_cmds
9462 # The commands to extract the exported symbol list from a shared archive.
9463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9465 # Symbols that should not be listed in the preloaded symbols.
9466 exclude_expsyms=$lt_exclude_expsyms
9468 # Symbols that must always be exported.
9469 include_expsyms=$lt_include_expsyms
9471 # ### END LIBTOOL CONFIG
9473 __EOF__
9476   case $host_os in
9477   aix3*)
9478     cat <<\EOF >> "$cfgfile"
9480 # AIX sometimes has problems with the GCC collect2 program.  For some
9481 # reason, if we set the COLLECT_NAMES environment variable, the problems
9482 # vanish in a puff of smoke.
9483 if test "X${COLLECT_NAMES+set}" != Xset; then
9484   COLLECT_NAMES=
9485   export COLLECT_NAMES
9488     ;;
9489   esac
9491   # We use sed instead of cat because bash on DJGPP gets confused if
9492   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9493   # text mode, it properly converts lines to CR/LF.  This bash problem
9494   # is reportedly fixed, but why not run on old versions too?
9495   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9497   mv -f "$cfgfile" "$ofile" || \
9498     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9499   chmod +x "$ofile"
9501 else
9502   # If there is no Makefile yet, we rely on a make rule to execute
9503   # `config.status --recheck' to rerun these tests and create the
9504   # libtool script then.
9505   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9506   if test -f "$ltmain_in"; then
9507     test -f Makefile && make "$ltmain"
9508   fi
9512 ac_ext=c
9513 ac_cpp='$CPP $CPPFLAGS'
9514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9518 CC="$lt_save_CC"
9521 # Check whether --with-tags or --without-tags was given.
9522 if test "${with_tags+set}" = set; then
9523   withval="$with_tags"
9524   tagnames="$withval"
9525 fi; 
9527 if test -f "$ltmain" && test -n "$tagnames"; then
9528   if test ! -f "${ofile}"; then
9529     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9530 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9531   fi
9533   if test -z "$LTCC"; then
9534     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9535     if test -z "$LTCC"; then
9536       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9537 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9538     else
9539       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9540 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9541     fi
9542   fi
9544   # Extract list of available tagged configurations in $ofile.
9545   # Note that this assumes the entire list is on one line.
9546   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9548   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9549   for tagname in $tagnames; do
9550     IFS="$lt_save_ifs"
9551     # Check whether tagname contains only valid characters
9552     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9553     "") ;;
9554     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9556    { (exit 1); exit 1; }; }
9557         ;;
9558     esac
9560     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9561     then
9562       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9564    { (exit 1); exit 1; }; }
9565     fi
9567     # Update the list of available tags.
9568     if test -n "$tagname"; then
9569       echo appending configuration tag \"$tagname\" to $ofile
9571       case $tagname in
9572       CXX)
9573         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9574           ac_ext=cc
9575 ac_cpp='$CXXCPP $CPPFLAGS'
9576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9583 archive_cmds_need_lc_CXX=no
9584 allow_undefined_flag_CXX=
9585 always_export_symbols_CXX=no
9586 archive_expsym_cmds_CXX=
9587 export_dynamic_flag_spec_CXX=
9588 hardcode_direct_CXX=no
9589 hardcode_libdir_flag_spec_CXX=
9590 hardcode_libdir_flag_spec_ld_CXX=
9591 hardcode_libdir_separator_CXX=
9592 hardcode_minus_L_CXX=no
9593 hardcode_automatic_CXX=no
9594 module_cmds_CXX=
9595 module_expsym_cmds_CXX=
9596 link_all_deplibs_CXX=unknown
9597 old_archive_cmds_CXX=$old_archive_cmds
9598 no_undefined_flag_CXX=
9599 whole_archive_flag_spec_CXX=
9600 enable_shared_with_static_runtimes_CXX=no
9602 # Dependencies to place before and after the object being linked:
9603 predep_objects_CXX=
9604 postdep_objects_CXX=
9605 predeps_CXX=
9606 postdeps_CXX=
9607 compiler_lib_search_path_CXX=
9609 # Source file extension for C++ test sources.
9610 ac_ext=cc
9612 # Object file extension for compiled C++ test sources.
9613 objext=o
9614 objext_CXX=$objext
9616 # Code to be used in simple compile tests
9617 lt_simple_compile_test_code="int some_variable = 0;\n"
9619 # Code to be used in simple link tests
9620 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9624 # If no C compiler was specified, use CC.
9625 LTCC=${LTCC-"$CC"}
9627 # Allow CC to be a program name with arguments.
9628 compiler=$CC
9631 # Allow CC to be a program name with arguments.
9632 lt_save_CC=$CC
9633 lt_save_LD=$LD
9634 lt_save_GCC=$GCC
9635 GCC=$GXX
9636 lt_save_with_gnu_ld=$with_gnu_ld
9637 lt_save_path_LD=$lt_cv_path_LD
9638 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9639   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9640 else
9641   unset lt_cv_prog_gnu_ld
9643 if test -n "${lt_cv_path_LDCXX+set}"; then
9644   lt_cv_path_LD=$lt_cv_path_LDCXX
9645 else
9646   unset lt_cv_path_LD
9648 test -z "${LDCXX+set}" || LD=$LDCXX
9649 CC=${CXX-"c++"}
9650 compiler=$CC
9651 compiler_CXX=$CC
9652 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9654 # We don't want -fno-exception wen compiling C++ code, so set the
9655 # no_builtin_flag separately
9656 if test "$GXX" = yes; then
9657   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9658 else
9659   lt_prog_compiler_no_builtin_flag_CXX=
9662 if test "$GXX" = yes; then
9663   # Set up default GNU C++ configuration
9665   
9666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9667 if test "${with_gnu_ld+set}" = set; then
9668   withval="$with_gnu_ld"
9669   test "$withval" = no || with_gnu_ld=yes
9670 else
9671   with_gnu_ld=no
9672 fi; 
9673 ac_prog=ld
9674 if test "$GCC" = yes; then
9675   # Check if gcc -print-prog-name=ld gives a path.
9676   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9677 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9678   case $host in
9679   *-*-mingw*)
9680     # gcc leaves a trailing carriage return which upsets mingw
9681     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9682   *)
9683     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9684   esac
9685   case $ac_prog in
9686     # Accept absolute paths.
9687     [\\/]* | ?:[\\/]*)
9688       re_direlt='/[^/][^/]*/\.\./'
9689       # Canonicalize the pathname of ld
9690       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9691       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9692         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9693       done
9694       test -z "$LD" && LD="$ac_prog"
9695       ;;
9696   "")
9697     # If it fails, then pretend we aren't using GCC.
9698     ac_prog=ld
9699     ;;
9700   *)
9701     # If it is relative, then search for the first ld in PATH.
9702     with_gnu_ld=unknown
9703     ;;
9704   esac
9705 elif test "$with_gnu_ld" = yes; then
9706   echo "$as_me:$LINENO: checking for GNU ld" >&5
9707 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9708 else
9709   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9710 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9712 if test "${lt_cv_path_LD+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   if test -z "$LD"; then
9716   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9717   for ac_dir in $PATH; do
9718     IFS="$lt_save_ifs"
9719     test -z "$ac_dir" && ac_dir=.
9720     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9721       lt_cv_path_LD="$ac_dir/$ac_prog"
9722       # Check to see if the program is GNU ld.  I'd rather use --version,
9723       # but apparently some GNU ld's only accept -v.
9724       # Break only if it was the GNU/non-GNU ld that we prefer.
9725       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9726       *GNU* | *'with BFD'*)
9727         test "$with_gnu_ld" != no && break
9728         ;;
9729       *)
9730         test "$with_gnu_ld" != yes && break
9731         ;;
9732       esac
9733     fi
9734   done
9735   IFS="$lt_save_ifs"
9736 else
9737   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9741 LD="$lt_cv_path_LD"
9742 if test -n "$LD"; then
9743   echo "$as_me:$LINENO: result: $LD" >&5
9744 echo "${ECHO_T}$LD" >&6
9745 else
9746   echo "$as_me:$LINENO: result: no" >&5
9747 echo "${ECHO_T}no" >&6
9749 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9750 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9751    { (exit 1); exit 1; }; }
9752 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9753 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9754 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9758 case `$LD -v 2>&1 </dev/null` in
9759 *GNU* | *'with BFD'*)
9760   lt_cv_prog_gnu_ld=yes
9761   ;;
9763   lt_cv_prog_gnu_ld=no
9764   ;;
9765 esac
9767 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9768 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9769 with_gnu_ld=$lt_cv_prog_gnu_ld
9773   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9774   # archiving commands below assume that GNU ld is being used.
9775   if test "$with_gnu_ld" = yes; then
9776     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777     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'
9779     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9780     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9782     # If archive_cmds runs LD, not CC, wlarc should be empty
9783     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9784     #     investigate it a little bit more. (MM)
9785     wlarc='${wl}'
9787     # ancient GNU ld didn't support --whole-archive et. al.
9788     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9789         grep 'no-whole-archive' > /dev/null; then
9790       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9791     else
9792       whole_archive_flag_spec_CXX=
9793     fi
9794   else
9795     with_gnu_ld=no
9796     wlarc=
9798     # A generic and very simple default shared library creation
9799     # command for GNU C++ for the case where it uses the native
9800     # linker, instead of GNU ld.  If possible, this setting should
9801     # overridden to take advantage of the native linker features on
9802     # the platform it is being used on.
9803     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9804   fi
9806   # Commands to make compiler produce verbose output that lists
9807   # what "hidden" libraries, object files and flags are used when
9808   # linking a shared library.
9809   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9811 else
9812   GXX=no
9813   with_gnu_ld=no
9814   wlarc=
9817 # PORTME: fill in a description of your system's C++ link characteristics
9818 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9819 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9820 ld_shlibs_CXX=yes
9821 case $host_os in
9822   aix3*)
9823     # FIXME: insert proper C++ library support
9824     ld_shlibs_CXX=no
9825     ;;
9826   aix4* | aix5*)
9827     if test "$host_cpu" = ia64; then
9828       # On IA64, the linker does run time linking by default, so we don't
9829       # have to do anything special.
9830       aix_use_runtimelinking=no
9831       exp_sym_flag='-Bexport'
9832       no_entry_flag=""
9833     else
9834       aix_use_runtimelinking=no
9836       # Test if we are trying to use run time linking or normal
9837       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9838       # need to do runtime linking.
9839       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9840         for ld_flag in $LDFLAGS; do
9841           case $ld_flag in
9842           *-brtl*)
9843             aix_use_runtimelinking=yes
9844             break
9845             ;;
9846           esac
9847         done
9848       esac
9850       exp_sym_flag='-bexport'
9851       no_entry_flag='-bnoentry'
9852     fi
9854     # When large executables or shared objects are built, AIX ld can
9855     # have problems creating the table of contents.  If linking a library
9856     # or program results in "error TOC overflow" add -mminimal-toc to
9857     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9858     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9860     archive_cmds_CXX=''
9861     hardcode_direct_CXX=yes
9862     hardcode_libdir_separator_CXX=':'
9863     link_all_deplibs_CXX=yes
9865     if test "$GXX" = yes; then
9866       case $host_os in aix4.012|aix4.012.*)
9867       # We only want to do this on AIX 4.2 and lower, the check
9868       # below for broken collect2 doesn't work under 4.3+
9869         collect2name=`${CC} -print-prog-name=collect2`
9870         if test -f "$collect2name" && \
9871            strings "$collect2name" | grep resolve_lib_name >/dev/null
9872         then
9873           # We have reworked collect2
9874           hardcode_direct_CXX=yes
9875         else
9876           # We have old collect2
9877           hardcode_direct_CXX=unsupported
9878           # It fails to find uninstalled libraries when the uninstalled
9879           # path is not listed in the libpath.  Setting hardcode_minus_L
9880           # to unsupported forces relinking
9881           hardcode_minus_L_CXX=yes
9882           hardcode_libdir_flag_spec_CXX='-L$libdir'
9883           hardcode_libdir_separator_CXX=
9884         fi
9885       esac
9886       shared_flag='-shared'
9887     else
9888       # not using gcc
9889       if test "$host_cpu" = ia64; then
9890         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9891         # chokes on -Wl,-G. The following line is correct:
9892         shared_flag='-G'
9893       else
9894         if test "$aix_use_runtimelinking" = yes; then
9895           shared_flag='${wl}-G'
9896         else
9897           shared_flag='${wl}-bM:SRE'
9898         fi
9899       fi
9900     fi
9902     # It seems that -bexpall does not export symbols beginning with
9903     # underscore (_), so it is better to generate a list of symbols to export.
9904     always_export_symbols_CXX=yes
9905     if test "$aix_use_runtimelinking" = yes; then
9906       # Warning - without using the other runtime loading flags (-brtl),
9907       # -berok will link without error, but may produce a broken library.
9908       allow_undefined_flag_CXX='-berok'
9909       # Determine the default libpath from the value encoded in an empty executable.
9910       cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9918 main ()
9921   ;
9922   return 0;
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927   (eval $ac_link) 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } &&
9934          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; } &&
9940          { ac_try='test -s conftest$ac_exeext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   
9947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9949 # Check for a 64-bit object if we didn't find anything.
9950 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; }
9951 }'`; fi
9952 else
9953   echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9957 rm -f conftest.err conftest.$ac_objext \
9958       conftest$ac_exeext conftest.$ac_ext
9959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9963       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"
9964      else
9965       if test "$host_cpu" = ia64; then
9966         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9967         allow_undefined_flag_CXX="-z nodefs"
9968         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"
9969       else
9970         # Determine the default libpath from the value encoded in an empty executable.
9971         cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9979 main ()
9982   ;
9983   return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988   (eval $ac_link) 2>conftest.er1
9989   ac_status=$?
9990   grep -v '^ *+' conftest.er1 >conftest.err
9991   rm -f conftest.er1
9992   cat conftest.err >&5
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest$ac_exeext'
10002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003   (eval $ac_try) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; }; then
10007   
10008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10010 # Check for a 64-bit object if we didn't find anything.
10011 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; }
10012 }'`; fi
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10018 rm -f conftest.err conftest.$ac_objext \
10019       conftest$ac_exeext conftest.$ac_ext
10020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10022         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10023         # Warning - without using the other run time loading flags,
10024         # -berok will link without error, but may produce a broken library.
10025         no_undefined_flag_CXX=' ${wl}-bernotok'
10026         allow_undefined_flag_CXX=' ${wl}-berok'
10027         # -bexpall does not export symbols beginning with underscore (_)
10028         always_export_symbols_CXX=yes
10029         # Exported symbols can be pulled into shared objects from archives
10030         whole_archive_flag_spec_CXX=' '
10031         archive_cmds_need_lc_CXX=yes
10032         # This is similar to how AIX traditionally builds it's shared libraries.
10033         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'
10034       fi
10035     fi
10036     ;;
10037   chorus*)
10038     case $cc_basename in
10039       *)
10040         # FIXME: insert proper C++ library support
10041         ld_shlibs_CXX=no
10042         ;;
10043     esac
10044     ;;
10046   cygwin* | mingw* | pw32*)
10047     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10048     # as there is no search path for DLLs.
10049     hardcode_libdir_flag_spec_CXX='-L$libdir'
10050     allow_undefined_flag_CXX=unsupported
10051     always_export_symbols_CXX=no
10052     enable_shared_with_static_runtimes_CXX=yes
10054     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10055       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'
10056       # If the export-symbols file already is a .def file (1st line
10057       # is EXPORTS), use it as is; otherwise, prepend...
10058       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10059         cp $export_symbols $output_objdir/$soname.def;
10060       else
10061         echo EXPORTS > $output_objdir/$soname.def;
10062         cat $export_symbols >> $output_objdir/$soname.def;
10063       fi~
10064       $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'
10065     else
10066       ld_shlibs_CXX=no
10067     fi
10068   ;;
10070   darwin* | rhapsody*)
10071   if test "$GXX" = yes; then
10072     archive_cmds_need_lc_CXX=no
10073     case "$host_os" in
10074     rhapsody* | darwin1.[012])
10075       allow_undefined_flag_CXX='-undefined suppress'
10076       ;;
10077     *) # Darwin 1.3 on
10078       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10079         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10080       else
10081         case ${MACOSX_DEPLOYMENT_TARGET} in
10082           10.[012])
10083             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10084             ;;
10085           10.*)
10086             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10087             ;;
10088         esac
10089       fi
10090       ;;
10091     esac
10092     lt_int_apple_cc_single_mod=no
10093     output_verbose_link_cmd='echo'
10094     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10095       lt_int_apple_cc_single_mod=yes
10096     fi
10097     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10098       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10099     else
10100       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'
10101     fi
10102     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10104     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10105     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10106       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}'
10107     else
10108       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}'
10109     fi
10110     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}'
10111     hardcode_direct_CXX=no
10112     hardcode_automatic_CXX=yes
10113     hardcode_shlibpath_var_CXX=unsupported
10114     whole_archive_flag_spec_CXX='-all_load $convenience'
10115     link_all_deplibs_CXX=yes
10116   else
10117     ld_shlibs_CXX=no
10118   fi
10119     ;;
10121   dgux*)
10122     case $cc_basename in
10123       ec++)
10124         # FIXME: insert proper C++ library support
10125         ld_shlibs_CXX=no
10126         ;;
10127       ghcx)
10128         # Green Hills C++ Compiler
10129         # FIXME: insert proper C++ library support
10130         ld_shlibs_CXX=no
10131         ;;
10132       *)
10133         # FIXME: insert proper C++ library support
10134         ld_shlibs_CXX=no
10135         ;;
10136     esac
10137     ;;
10138   freebsd12*)
10139     # C++ shared libraries reported to be fairly broken before switch to ELF
10140     ld_shlibs_CXX=no
10141     ;;
10142   freebsd-elf*)
10143     archive_cmds_need_lc_CXX=no
10144     ;;
10145   freebsd* | kfreebsd*-gnu)
10146     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10147     # conventions
10148     ld_shlibs_CXX=yes
10149     ;;
10150   gnu*)
10151     ;;
10152   hpux9*)
10153     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10154     hardcode_libdir_separator_CXX=:
10155     export_dynamic_flag_spec_CXX='${wl}-E'
10156     hardcode_direct_CXX=yes
10157     hardcode_minus_L_CXX=yes # Not in the search PATH,
10158                                 # but as the default
10159                                 # location of the library.
10161     case $cc_basename in
10162     CC)
10163       # FIXME: insert proper C++ library support
10164       ld_shlibs_CXX=no
10165       ;;
10166     aCC)
10167       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'
10168       # Commands to make compiler produce verbose output that lists
10169       # what "hidden" libraries, object files and flags are used when
10170       # linking a shared library.
10171       #
10172       # There doesn't appear to be a way to prevent this compiler from
10173       # explicitly linking system object files so we need to strip them
10174       # from the output so that they don't get included in the library
10175       # dependencies.
10176       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'
10177       ;;
10178     *)
10179       if test "$GXX" = yes; then
10180         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'
10181       else
10182         # FIXME: insert proper C++ library support
10183         ld_shlibs_CXX=no
10184       fi
10185       ;;
10186     esac
10187     ;;
10188   hpux10*|hpux11*)
10189     if test $with_gnu_ld = no; then
10190       case "$host_cpu" in
10191       hppa*64*)
10192         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10194         hardcode_libdir_separator_CXX=:
10195         ;;
10196       ia64*)
10197         hardcode_libdir_flag_spec_CXX='-L$libdir'
10198         ;;
10199       *)
10200         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10201         hardcode_libdir_separator_CXX=:
10202         export_dynamic_flag_spec_CXX='${wl}-E'
10203         ;;
10204       esac
10205     fi
10206     case "$host_cpu" in
10207     hppa*64*)
10208       hardcode_direct_CXX=no
10209       hardcode_shlibpath_var_CXX=no
10210       ;;
10211     ia64*)
10212       hardcode_direct_CXX=no
10213       hardcode_shlibpath_var_CXX=no
10214       hardcode_minus_L_CXX=yes # Not in the search PATH,
10215                                               # but as the default
10216                                               # location of the library.
10217       ;;
10218     *)
10219       hardcode_direct_CXX=yes
10220       hardcode_minus_L_CXX=yes # Not in the search PATH,
10221                                               # but as the default
10222                                               # location of the library.
10223       ;;
10224     esac
10226     case $cc_basename in
10227       CC)
10228         # FIXME: insert proper C++ library support
10229         ld_shlibs_CXX=no
10230         ;;
10231       aCC)
10232         case "$host_cpu" in
10233         hppa*64*|ia64*)
10234           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10235           ;;
10236         *)
10237           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10238           ;;
10239         esac
10240         # Commands to make compiler produce verbose output that lists
10241         # what "hidden" libraries, object files and flags are used when
10242         # linking a shared library.
10243         #
10244         # There doesn't appear to be a way to prevent this compiler from
10245         # explicitly linking system object files so we need to strip them
10246         # from the output so that they don't get included in the library
10247         # dependencies.
10248         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'
10249         ;;
10250       *)
10251         if test "$GXX" = yes; then
10252           if test $with_gnu_ld = no; then
10253             case "$host_cpu" in
10254             ia64*|hppa*64*)
10255               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10256               ;;
10257             *)
10258               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'
10259               ;;
10260             esac
10261           fi
10262         else
10263           # FIXME: insert proper C++ library support
10264           ld_shlibs_CXX=no
10265         fi
10266         ;;
10267     esac
10268     ;;
10269   irix5* | irix6*)
10270     case $cc_basename in
10271       CC)
10272         # SGI C++
10273         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'
10275         # Archives containing C++ object files must be created using
10276         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10277         # necessary to make sure instantiated templates are included
10278         # in the archive.
10279         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10280         ;;
10281       *)
10282         if test "$GXX" = yes; then
10283           if test "$with_gnu_ld" = no; then
10284             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'
10285           else
10286             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'
10287           fi
10288         fi
10289         link_all_deplibs_CXX=yes
10290         ;;
10291     esac
10292     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10293     hardcode_libdir_separator_CXX=:
10294     ;;
10295   linux*)
10296     case $cc_basename in
10297       KCC)
10298         # Kuck and Associates, Inc. (KAI) C++ Compiler
10300         # KCC will only create a shared library if the output file
10301         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10302         # to its proper name (with version) after linking.
10303         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'
10304         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'
10305         # Commands to make compiler produce verbose output that lists
10306         # what "hidden" libraries, object files and flags are used when
10307         # linking a shared library.
10308         #
10309         # There doesn't appear to be a way to prevent this compiler from
10310         # explicitly linking system object files so we need to strip them
10311         # from the output so that they don't get included in the library
10312         # dependencies.
10313         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'
10315         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10316         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10318         # Archives containing C++ object files must be created using
10319         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10320         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10321         ;;
10322       icpc)
10323         # Intel C++
10324         with_gnu_ld=yes
10325         archive_cmds_need_lc_CXX=no
10326         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327         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'
10328         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10329         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10330         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10331         ;;
10332       cxx)
10333         # Compaq C++
10334         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10335         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'
10337         runpath_var=LD_RUN_PATH
10338         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10339         hardcode_libdir_separator_CXX=:
10341         # Commands to make compiler produce verbose output that lists
10342         # what "hidden" libraries, object files and flags are used when
10343         # linking a shared library.
10344         #
10345         # There doesn't appear to be a way to prevent this compiler from
10346         # explicitly linking system object files so we need to strip them
10347         # from the output so that they don't get included in the library
10348         # dependencies.
10349         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'
10350         ;;
10351     esac
10352     ;;
10353   lynxos*)
10354     # FIXME: insert proper C++ library support
10355     ld_shlibs_CXX=no
10356     ;;
10357   m88k*)
10358     # FIXME: insert proper C++ library support
10359     ld_shlibs_CXX=no
10360     ;;
10361   mvs*)
10362     case $cc_basename in
10363       cxx)
10364         # FIXME: insert proper C++ library support
10365         ld_shlibs_CXX=no
10366         ;;
10367       *)
10368         # FIXME: insert proper C++ library support
10369         ld_shlibs_CXX=no
10370         ;;
10371     esac
10372     ;;
10373   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10374     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10375       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10376       wlarc=
10377       hardcode_libdir_flag_spec_CXX='-R$libdir'
10378       hardcode_direct_CXX=yes
10379       hardcode_shlibpath_var_CXX=no
10380     fi
10381     # Workaround some broken pre-1.5 toolchains
10382     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10383     ;;
10384   osf3*)
10385     case $cc_basename in
10386       KCC)
10387         # Kuck and Associates, Inc. (KAI) C++ Compiler
10389         # KCC will only create a shared library if the output file
10390         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10391         # to its proper name (with version) after linking.
10392         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'
10394         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10395         hardcode_libdir_separator_CXX=:
10397         # Archives containing C++ object files must be created using
10398         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10399         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10401         ;;
10402       RCC)
10403         # Rational C++ 2.4.1
10404         # FIXME: insert proper C++ library support
10405         ld_shlibs_CXX=no
10406         ;;
10407       cxx)
10408         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10409         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'
10411         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10412         hardcode_libdir_separator_CXX=:
10414         # Commands to make compiler produce verbose output that lists
10415         # what "hidden" libraries, object files and flags are used when
10416         # linking a shared library.
10417         #
10418         # There doesn't appear to be a way to prevent this compiler from
10419         # explicitly linking system object files so we need to strip them
10420         # from the output so that they don't get included in the library
10421         # dependencies.
10422         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'
10423         ;;
10424       *)
10425         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10426           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10427           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'
10429           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10430           hardcode_libdir_separator_CXX=:
10432           # Commands to make compiler produce verbose output that lists
10433           # what "hidden" libraries, object files and flags are used when
10434           # linking a shared library.
10435           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10437         else
10438           # FIXME: insert proper C++ library support
10439           ld_shlibs_CXX=no
10440         fi
10441         ;;
10442     esac
10443     ;;
10444   osf4* | osf5*)
10445     case $cc_basename in
10446       KCC)
10447         # Kuck and Associates, Inc. (KAI) C++ Compiler
10449         # KCC will only create a shared library if the output file
10450         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10451         # to its proper name (with version) after linking.
10452         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'
10454         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10455         hardcode_libdir_separator_CXX=:
10457         # Archives containing C++ object files must be created using
10458         # the KAI C++ compiler.
10459         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10460         ;;
10461       RCC)
10462         # Rational C++ 2.4.1
10463         # FIXME: insert proper C++ library support
10464         ld_shlibs_CXX=no
10465         ;;
10466       cxx)
10467         allow_undefined_flag_CXX=' -expect_unresolved \*'
10468         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'
10469         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10470           echo "-hidden">> $lib.exp~
10471           $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~
10472           $rm $lib.exp'
10474         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10475         hardcode_libdir_separator_CXX=:
10477         # Commands to make compiler produce verbose output that lists
10478         # what "hidden" libraries, object files and flags are used when
10479         # linking a shared library.
10480         #
10481         # There doesn't appear to be a way to prevent this compiler from
10482         # explicitly linking system object files so we need to strip them
10483         # from the output so that they don't get included in the library
10484         # dependencies.
10485         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'
10486         ;;
10487       *)
10488         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10489           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10490          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'
10492           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10493           hardcode_libdir_separator_CXX=:
10495           # Commands to make compiler produce verbose output that lists
10496           # what "hidden" libraries, object files and flags are used when
10497           # linking a shared library.
10498           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10500         else
10501           # FIXME: insert proper C++ library support
10502           ld_shlibs_CXX=no
10503         fi
10504         ;;
10505     esac
10506     ;;
10507   psos*)
10508     # FIXME: insert proper C++ library support
10509     ld_shlibs_CXX=no
10510     ;;
10511   sco*)
10512     archive_cmds_need_lc_CXX=no
10513     case $cc_basename in
10514       CC)
10515         # FIXME: insert proper C++ library support
10516         ld_shlibs_CXX=no
10517         ;;
10518       *)
10519         # FIXME: insert proper C++ library support
10520         ld_shlibs_CXX=no
10521         ;;
10522     esac
10523     ;;
10524   sunos4*)
10525     case $cc_basename in
10526       CC)
10527         # Sun C++ 4.x
10528         # FIXME: insert proper C++ library support
10529         ld_shlibs_CXX=no
10530         ;;
10531       lcc)
10532         # Lucid
10533         # FIXME: insert proper C++ library support
10534         ld_shlibs_CXX=no
10535         ;;
10536       *)
10537         # FIXME: insert proper C++ library support
10538         ld_shlibs_CXX=no
10539         ;;
10540     esac
10541     ;;
10542   solaris*)
10543     case $cc_basename in
10544       CC)
10545         # Sun C++ 4.2, 5.x and Centerline C++
10546         no_undefined_flag_CXX=' -zdefs'
10547         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10548         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10549         $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'
10551         hardcode_libdir_flag_spec_CXX='-R$libdir'
10552         hardcode_shlibpath_var_CXX=no
10553         case $host_os in
10554           solaris2.0-5 | solaris2.0-5.*) ;;
10555           *)
10556             # The C++ compiler is used as linker so we must use $wl
10557             # flag to pass the commands to the underlying system
10558             # linker.
10559             # Supported since Solaris 2.6 (maybe 2.5.1?)
10560             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10561             ;;
10562         esac
10563         link_all_deplibs_CXX=yes
10565         # Commands to make compiler produce verbose output that lists
10566         # what "hidden" libraries, object files and flags are used when
10567         # linking a shared library.
10568         #
10569         # There doesn't appear to be a way to prevent this compiler from
10570         # explicitly linking system object files so we need to strip them
10571         # from the output so that they don't get included in the library
10572         # dependencies.
10573         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'
10575         # Archives containing C++ object files must be created using
10576         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10577         # necessary to make sure instantiated templates are included
10578         # in the archive.
10579         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10580         ;;
10581       gcx)
10582         # Green Hills C++ Compiler
10583         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10585         # The C++ compiler must be used to create the archive.
10586         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10587         ;;
10588       *)
10589         # GNU C++ compiler with Solaris linker
10590         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10591           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10592           if $CC --version | grep -v '^2\.7' > /dev/null; then
10593             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10594             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10595                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10597             # Commands to make compiler produce verbose output that lists
10598             # what "hidden" libraries, object files and flags are used when
10599             # linking a shared library.
10600             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10601           else
10602             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10603             # platform.
10604             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10605             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10606                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10608             # Commands to make compiler produce verbose output that lists
10609             # what "hidden" libraries, object files and flags are used when
10610             # linking a shared library.
10611             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10612           fi
10614           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10615         fi
10616         ;;
10617     esac
10618     ;;
10619   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10620     archive_cmds_need_lc_CXX=no
10621     ;;
10622   tandem*)
10623     case $cc_basename in
10624       NCC)
10625         # NonStop-UX NCC 3.20
10626         # FIXME: insert proper C++ library support
10627         ld_shlibs_CXX=no
10628         ;;
10629       *)
10630         # FIXME: insert proper C++ library support
10631         ld_shlibs_CXX=no
10632         ;;
10633     esac
10634     ;;
10635   vxworks*)
10636     # FIXME: insert proper C++ library support
10637     ld_shlibs_CXX=no
10638     ;;
10639   *)
10640     # FIXME: insert proper C++ library support
10641     ld_shlibs_CXX=no
10642     ;;
10643 esac
10644 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10645 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10646 test "$ld_shlibs_CXX" = no && can_build_shared=no
10648 GCC_CXX="$GXX"
10649 LD_CXX="$LD"
10651 ## CAVEAT EMPTOR:
10652 ## There is no encapsulation within the following macros, do not change
10653 ## the running order or otherwise move them around unless you know exactly
10654 ## what you are doing...
10656 cat > conftest.$ac_ext <<EOF
10657 class Foo
10659 public:
10660   Foo (void) { a = 0; }
10661 private:
10662   int a;
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667   (eval $ac_compile) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; then
10671   # Parse the compiler output and extract the necessary
10672   # objects, libraries and library flags.
10674   # Sentinel used to keep track of whether or not we are before
10675   # the conftest object file.
10676   pre_test_object_deps_done=no
10678   # The `*' in the case matches for architectures that use `case' in
10679   # $output_verbose_cmd can trigger glob expansion during the loop
10680   # eval without this substitution.
10681   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10683   for p in `eval $output_verbose_link_cmd`; do
10684     case $p in
10686     -L* | -R* | -l*)
10687        # Some compilers place space between "-{L,R}" and the path.
10688        # Remove the space.
10689        if test $p = "-L" \
10690           || test $p = "-R"; then
10691          prev=$p
10692          continue
10693        else
10694          prev=
10695        fi
10697        if test "$pre_test_object_deps_done" = no; then
10698          case $p in
10699          -L* | -R*)
10700            # Internal compiler library paths should come after those
10701            # provided the user.  The postdeps already come after the
10702            # user supplied libs so there is no need to process them.
10703            if test -z "$compiler_lib_search_path_CXX"; then
10704              compiler_lib_search_path_CXX="${prev}${p}"
10705            else
10706              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10707            fi
10708            ;;
10709          # The "-l" case would never come before the object being
10710          # linked, so don't bother handling this case.
10711          esac
10712        else
10713          if test -z "$postdeps_CXX"; then
10714            postdeps_CXX="${prev}${p}"
10715          else
10716            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10717          fi
10718        fi
10719        ;;
10721     *.$objext)
10722        # This assumes that the test object file only shows up
10723        # once in the compiler output.
10724        if test "$p" = "conftest.$objext"; then
10725          pre_test_object_deps_done=yes
10726          continue
10727        fi
10729        if test "$pre_test_object_deps_done" = no; then
10730          if test -z "$predep_objects_CXX"; then
10731            predep_objects_CXX="$p"
10732          else
10733            predep_objects_CXX="$predep_objects_CXX $p"
10734          fi
10735        else
10736          if test -z "$postdep_objects_CXX"; then
10737            postdep_objects_CXX="$p"
10738          else
10739            postdep_objects_CXX="$postdep_objects_CXX $p"
10740          fi
10741        fi
10742        ;;
10744     *) ;; # Ignore the rest.
10746     esac
10747   done
10749   # Clean up.
10750   rm -f a.out a.exe
10751 else
10752   echo "libtool.m4: error: problem compiling CXX test program"
10755 $rm -f confest.$objext
10757 case " $postdeps_CXX " in
10758 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10759 esac
10761 lt_prog_compiler_wl_CXX=
10762 lt_prog_compiler_pic_CXX=
10763 lt_prog_compiler_static_CXX=
10765 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10768   # C++ specific cases for pic, static, wl, etc.
10769   if test "$GXX" = yes; then
10770     lt_prog_compiler_wl_CXX='-Wl,'
10771     lt_prog_compiler_static_CXX='-static'
10773     case $host_os in
10774     aix*)
10775       # All AIX code is PIC.
10776       if test "$host_cpu" = ia64; then
10777         # AIX 5 now supports IA64 processor
10778         lt_prog_compiler_static_CXX='-Bstatic'
10779       fi
10780       ;;
10781     amigaos*)
10782       # FIXME: we need at least 68020 code to build shared libraries, but
10783       # adding the `-m68020' flag to GCC prevents building anything better,
10784       # like `-m68040'.
10785       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10786       ;;
10787     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10788       # PIC is the default for these OSes.
10789       ;;
10790     mingw* | os2* | pw32*)
10791       # This hack is so that the source file can tell whether it is being
10792       # built for inclusion in a dll (and should export symbols for example).
10793       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10794       ;;
10795     darwin* | rhapsody*)
10796       # PIC is the default on this platform
10797       # Common symbols not allowed in MH_DYLIB files
10798       lt_prog_compiler_pic_CXX='-fno-common'
10799       ;;
10800     *djgpp*)
10801       # DJGPP does not support shared libraries at all
10802       lt_prog_compiler_pic_CXX=
10803       ;;
10804     sysv4*MP*)
10805       if test -d /usr/nec; then
10806         lt_prog_compiler_pic_CXX=-Kconform_pic
10807       fi
10808       ;;
10809     hpux*)
10810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10811       # not for PA HP-UX.
10812       case "$host_cpu" in
10813       hppa*64*|ia64*)
10814         ;;
10815       *)
10816         lt_prog_compiler_pic_CXX='-fPIC'
10817         ;;
10818       esac
10819       ;;
10820     *)
10821       lt_prog_compiler_pic_CXX='-fPIC'
10822       ;;
10823     esac
10824   else
10825     case $host_os in
10826       aix4* | aix5*)
10827         # All AIX code is PIC.
10828         if test "$host_cpu" = ia64; then
10829           # AIX 5 now supports IA64 processor
10830           lt_prog_compiler_static_CXX='-Bstatic'
10831         else
10832           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10833         fi
10834         ;;
10835       chorus*)
10836         case $cc_basename in
10837         cxch68)
10838           # Green Hills C++ Compiler
10839           # _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"
10840           ;;
10841         esac
10842         ;;
10843       dgux*)
10844         case $cc_basename in
10845           ec++)
10846             lt_prog_compiler_pic_CXX='-KPIC'
10847             ;;
10848           ghcx)
10849             # Green Hills C++ Compiler
10850             lt_prog_compiler_pic_CXX='-pic'
10851             ;;
10852           *)
10853             ;;
10854         esac
10855         ;;
10856       freebsd* | kfreebsd*-gnu)
10857         # FreeBSD uses GNU C++
10858         ;;
10859       hpux9* | hpux10* | hpux11*)
10860         case $cc_basename in
10861           CC)
10862             lt_prog_compiler_wl_CXX='-Wl,'
10863             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10864             if test "$host_cpu" != ia64; then
10865               lt_prog_compiler_pic_CXX='+Z'
10866             fi
10867             ;;
10868           aCC)
10869             lt_prog_compiler_wl_CXX='-Wl,'
10870             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10871             case "$host_cpu" in
10872             hppa*64*|ia64*)
10873               # +Z the default
10874               ;;
10875             *)
10876               lt_prog_compiler_pic_CXX='+Z'
10877               ;;
10878             esac
10879             ;;
10880           *)
10881             ;;
10882         esac
10883         ;;
10884       irix5* | irix6* | nonstopux*)
10885         case $cc_basename in
10886           CC)
10887             lt_prog_compiler_wl_CXX='-Wl,'
10888             lt_prog_compiler_static_CXX='-non_shared'
10889             # CC pic flag -KPIC is the default.
10890             ;;
10891           *)
10892             ;;
10893         esac
10894         ;;
10895       linux*)
10896         case $cc_basename in
10897           KCC)
10898             # KAI C++ Compiler
10899             lt_prog_compiler_wl_CXX='--backend -Wl,'
10900             lt_prog_compiler_pic_CXX='-fPIC'
10901             ;;
10902           icpc)
10903             # Intel C++
10904             lt_prog_compiler_wl_CXX='-Wl,'
10905             lt_prog_compiler_pic_CXX='-KPIC'
10906             lt_prog_compiler_static_CXX='-static'
10907             ;;
10908           cxx)
10909             # Compaq C++
10910             # Make sure the PIC flag is empty.  It appears that all Alpha
10911             # Linux and Compaq Tru64 Unix objects are PIC.
10912             lt_prog_compiler_pic_CXX=
10913             lt_prog_compiler_static_CXX='-non_shared'
10914             ;;
10915           *)
10916             ;;
10917         esac
10918         ;;
10919       lynxos*)
10920         ;;
10921       m88k*)
10922         ;;
10923       mvs*)
10924         case $cc_basename in
10925           cxx)
10926             lt_prog_compiler_pic_CXX='-W c,exportall'
10927             ;;
10928           *)
10929             ;;
10930         esac
10931         ;;
10932       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10933         ;;
10934       osf3* | osf4* | osf5*)
10935         case $cc_basename in
10936           KCC)
10937             lt_prog_compiler_wl_CXX='--backend -Wl,'
10938             ;;
10939           RCC)
10940             # Rational C++ 2.4.1
10941             lt_prog_compiler_pic_CXX='-pic'
10942             ;;
10943           cxx)
10944             # Digital/Compaq C++
10945             lt_prog_compiler_wl_CXX='-Wl,'
10946             # Make sure the PIC flag is empty.  It appears that all Alpha
10947             # Linux and Compaq Tru64 Unix objects are PIC.
10948             lt_prog_compiler_pic_CXX=
10949             lt_prog_compiler_static_CXX='-non_shared'
10950             ;;
10951           *)
10952             ;;
10953         esac
10954         ;;
10955       psos*)
10956         ;;
10957       sco*)
10958         case $cc_basename in
10959           CC)
10960             lt_prog_compiler_pic_CXX='-fPIC'
10961             ;;
10962           *)
10963             ;;
10964         esac
10965         ;;
10966       solaris*)
10967         case $cc_basename in
10968           CC)
10969             # Sun C++ 4.2, 5.x and Centerline C++
10970             lt_prog_compiler_pic_CXX='-KPIC'
10971             lt_prog_compiler_static_CXX='-Bstatic'
10972             lt_prog_compiler_wl_CXX='-Qoption ld '
10973             ;;
10974           gcx)
10975             # Green Hills C++ Compiler
10976             lt_prog_compiler_pic_CXX='-PIC'
10977             ;;
10978           *)
10979             ;;
10980         esac
10981         ;;
10982       sunos4*)
10983         case $cc_basename in
10984           CC)
10985             # Sun C++ 4.x
10986             lt_prog_compiler_pic_CXX='-pic'
10987             lt_prog_compiler_static_CXX='-Bstatic'
10988             ;;
10989           lcc)
10990             # Lucid
10991             lt_prog_compiler_pic_CXX='-pic'
10992             ;;
10993           *)
10994             ;;
10995         esac
10996         ;;
10997       tandem*)
10998         case $cc_basename in
10999           NCC)
11000             # NonStop-UX NCC 3.20
11001             lt_prog_compiler_pic_CXX='-KPIC'
11002             ;;
11003           *)
11004             ;;
11005         esac
11006         ;;
11007       unixware*)
11008         ;;
11009       vxworks*)
11010         ;;
11011       *)
11012         lt_prog_compiler_can_build_shared_CXX=no
11013         ;;
11014     esac
11015   fi
11017 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11018 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11021 # Check to make sure the PIC flag actually works.
11023 if test -n "$lt_prog_compiler_pic_CXX"; then
11024   
11025 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11026 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11027 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   lt_prog_compiler_pic_works_CXX=no
11031   ac_outfile=conftest.$ac_objext
11032    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11033    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11034    # Insert the option either (1) after the last *FLAGS variable, or
11035    # (2) before a word containing "conftest.", or (3) at the end.
11036    # Note that $ac_compile itself does not contain backslashes and begins
11037    # with a dollar sign (not a hyphen), so the echo should work correctly.
11038    # The option is referenced via a variable to avoid confusing sed.
11039    lt_compile=`echo "$ac_compile" | $SED \
11040    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11042    -e 's:$: $lt_compiler_flag:'`
11043    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11044    (eval "$lt_compile" 2>conftest.err)
11045    ac_status=$?
11046    cat conftest.err >&5
11047    echo "$as_me:__oline__: \$? = $ac_status" >&5
11048    if (exit $ac_status) && test -s "$ac_outfile"; then
11049      # The compiler can only warn and ignore the option if not recognized
11050      # So say no if there are warnings
11051      if test ! -s conftest.err; then
11052        lt_prog_compiler_pic_works_CXX=yes
11053      fi
11054    fi
11055    $rm conftest*
11058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11059 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11061 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11062     case $lt_prog_compiler_pic_CXX in
11063      "" | " "*) ;;
11064      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11065      esac
11066 else
11067     lt_prog_compiler_pic_CXX=
11068      lt_prog_compiler_can_build_shared_CXX=no
11072 case "$host_os" in
11073   # For platforms which do not support PIC, -DPIC is meaningless:
11074   *djgpp*)
11075     lt_prog_compiler_pic_CXX=
11076     ;;
11077   *)
11078     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11079     ;;
11080 esac
11082 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11083 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11084 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   lt_cv_prog_compiler_c_o_CXX=no
11088    $rm -r conftest 2>/dev/null
11089    mkdir conftest
11090    cd conftest
11091    mkdir out
11092    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11094    lt_compiler_flag="-o out/conftest2.$ac_objext"
11095    # Insert the option either (1) after the last *FLAGS variable, or
11096    # (2) before a word containing "conftest.", or (3) at the end.
11097    # Note that $ac_compile itself does not contain backslashes and begins
11098    # with a dollar sign (not a hyphen), so the echo should work correctly.
11099    lt_compile=`echo "$ac_compile" | $SED \
11100    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11101    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11102    -e 's:$: $lt_compiler_flag:'`
11103    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11104    (eval "$lt_compile" 2>out/conftest.err)
11105    ac_status=$?
11106    cat out/conftest.err >&5
11107    echo "$as_me:__oline__: \$? = $ac_status" >&5
11108    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11109    then
11110      # The compiler can only warn and ignore the option if not recognized
11111      # So say no if there are warnings
11112      if test ! -s out/conftest.err; then
11113        lt_cv_prog_compiler_c_o_CXX=yes
11114      fi
11115    fi
11116    chmod u+w .
11117    $rm conftest*
11118    # SGI C++ compiler will create directory out/ii_files/ for
11119    # template instantiation
11120    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11121    $rm out/* && rmdir out
11122    cd ..
11123    rmdir conftest
11124    $rm conftest*
11127 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11128 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11131 hard_links="nottested"
11132 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11133   # do not overwrite the value of need_locks provided by the user
11134   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11135 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11136   hard_links=yes
11137   $rm conftest*
11138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11139   touch conftest.a
11140   ln conftest.a conftest.b 2>&5 || hard_links=no
11141   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11142   echo "$as_me:$LINENO: result: $hard_links" >&5
11143 echo "${ECHO_T}$hard_links" >&6
11144   if test "$hard_links" = no; then
11145     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11146 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11147     need_locks=warn
11148   fi
11149 else
11150   need_locks=no
11153 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11154 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11156   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11157   case $host_os in
11158   aix4* | aix5*)
11159     # If we're using GNU nm, then we don't want the "-C" option.
11160     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11161     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11162       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'
11163     else
11164       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'
11165     fi
11166     ;;
11167   pw32*)
11168     export_symbols_cmds_CXX="$ltdll_cmds"
11169   ;;
11170   cygwin* | mingw*)
11171     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11172   ;;
11173   linux*)
11174     link_all_deplibs_CXX=no
11175   ;;
11176   *)
11177     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11178   ;;
11179   esac
11181 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11182 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11183 test "$ld_shlibs_CXX" = no && can_build_shared=no
11185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11186 if test "$GCC" = yes; then
11187   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11191 # Do we need to explicitly link libc?
11193 case "x$archive_cmds_need_lc_CXX" in
11194 x|xyes)
11195   # Assume -lc should be added
11196   archive_cmds_need_lc_CXX=yes
11198   if test "$enable_shared" = yes && test "$GCC" = yes; then
11199     case $archive_cmds_CXX in
11200     *'~'*)
11201       # FIXME: we may have to deal with multi-command sequences.
11202       ;;
11203     '$CC '*)
11204       # Test whether the compiler implicitly links with -lc since on some
11205       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11206       # to ld, don't add -lc before -lgcc.
11207       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11208 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11209       $rm conftest*
11210       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11212       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213   (eval $ac_compile) 2>&5
11214   ac_status=$?
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } 2>conftest.err; then
11217         soname=conftest
11218         lib=conftest
11219         libobjs=conftest.$ac_objext
11220         deplibs=
11221         wl=$lt_prog_compiler_wl_CXX
11222         compiler_flags=-v
11223         linker_flags=-v
11224         verstring=
11225         output_objdir=.
11226         libname=conftest
11227         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11228         allow_undefined_flag_CXX=
11229         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11230   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }
11234         then
11235           archive_cmds_need_lc_CXX=no
11236         else
11237           archive_cmds_need_lc_CXX=yes
11238         fi
11239         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11240       else
11241         cat conftest.err 1>&5
11242       fi
11243       $rm conftest*
11244       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11245 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11246       ;;
11247     esac
11248   fi
11249   ;;
11250 esac
11252 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11253 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11254 library_names_spec=
11255 libname_spec='lib$name'
11256 soname_spec=
11257 shrext_cmds=".so"
11258 postinstall_cmds=
11259 postuninstall_cmds=
11260 finish_cmds=
11261 finish_eval=
11262 shlibpath_var=
11263 shlibpath_overrides_runpath=unknown
11264 version_type=none
11265 dynamic_linker="$host_os ld.so"
11266 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11267 if test "$GCC" = yes; then
11268   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11269   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11270     # if the path contains ";" then we assume it to be the separator
11271     # otherwise default to the standard path separator (i.e. ":") - it is
11272     # assumed that no part of a normal pathname contains ";" but that should
11273     # okay in the real world where ";" in dirpaths is itself problematic.
11274     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11275   else
11276     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11277   fi
11278 else
11279   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11281 need_lib_prefix=unknown
11282 hardcode_into_libs=no
11284 # when you set need_version to no, make sure it does not cause -set_version
11285 # flags to be left without arguments
11286 need_version=unknown
11288 case $host_os in
11289 aix3*)
11290   version_type=linux
11291   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11292   shlibpath_var=LIBPATH
11294   # AIX 3 has no versioning support, so we append a major version to the name.
11295   soname_spec='${libname}${release}${shared_ext}$major'
11296   ;;
11298 aix4* | aix5*)
11299   version_type=linux
11300   need_lib_prefix=no
11301   need_version=no
11302   hardcode_into_libs=yes
11303   if test "$host_cpu" = ia64; then
11304     # AIX 5 supports IA64
11305     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11306     shlibpath_var=LD_LIBRARY_PATH
11307   else
11308     # With GCC up to 2.95.x, collect2 would create an import file
11309     # for dependence libraries.  The import file would start with
11310     # the line `#! .'.  This would cause the generated library to
11311     # depend on `.', always an invalid library.  This was fixed in
11312     # development snapshots of GCC prior to 3.0.
11313     case $host_os in
11314       aix4 | aix4.[01] | aix4.[01].*)
11315       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11316            echo ' yes '
11317            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11318         :
11319       else
11320         can_build_shared=no
11321       fi
11322       ;;
11323     esac
11324     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11325     # soname into executable. Probably we can add versioning support to
11326     # collect2, so additional links can be useful in future.
11327     if test "$aix_use_runtimelinking" = yes; then
11328       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11329       # instead of lib<name>.a to let people know that these are not
11330       # typical AIX shared libraries.
11331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332     else
11333       # We preserve .a as extension for shared libraries through AIX4.2
11334       # and later when we are not doing run time linking.
11335       library_names_spec='${libname}${release}.a $libname.a'
11336       soname_spec='${libname}${release}${shared_ext}$major'
11337     fi
11338     shlibpath_var=LIBPATH
11339   fi
11340   ;;
11342 amigaos*)
11343   library_names_spec='$libname.ixlibrary $libname.a'
11344   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11345   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'
11346   ;;
11348 beos*)
11349   library_names_spec='${libname}${shared_ext}'
11350   dynamic_linker="$host_os ld.so"
11351   shlibpath_var=LIBRARY_PATH
11352   ;;
11354 bsdi4*)
11355   version_type=linux
11356   need_version=no
11357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358   soname_spec='${libname}${release}${shared_ext}$major'
11359   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11360   shlibpath_var=LD_LIBRARY_PATH
11361   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11362   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11363   # the default ld.so.conf also contains /usr/contrib/lib and
11364   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11365   # libtool to hard-code these into programs
11366   ;;
11368 cygwin* | mingw* | pw32*)
11369   version_type=windows
11370   shrext_cmds=".dll"
11371   need_version=no
11372   need_lib_prefix=no
11374   case $GCC,$host_os in
11375   yes,cygwin* | yes,mingw* | yes,pw32*)
11376     library_names_spec='$libname.dll.a'
11377     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11378     postinstall_cmds='base_file=`basename \${file}`~
11379       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11380       dldir=$destdir/`dirname \$dlpath`~
11381       test -d \$dldir || mkdir -p \$dldir~
11382       $install_prog $dir/$dlname \$dldir/$dlname'
11383     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11384       dlpath=$dir/\$dldll~
11385        $rm \$dlpath'
11386     shlibpath_overrides_runpath=yes
11388     case $host_os in
11389     cygwin*)
11390       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11391       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11392       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11393       ;;
11394     mingw*)
11395       # MinGW DLLs use traditional 'lib' prefix
11396       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11397       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11398       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11399         # It is most probably a Windows format PATH printed by
11400         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11401         # path with ; separators, and with drive letters. We can handle the
11402         # drive letters (cygwin fileutils understands them), so leave them,
11403         # especially as we might pass files found there to a mingw objdump,
11404         # which wouldn't understand a cygwinified path. Ahh.
11405         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11406       else
11407         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11408       fi
11409       ;;
11410     pw32*)
11411       # pw32 DLLs use 'pw' prefix rather than 'lib'
11412       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11413       ;;
11414     esac
11415     ;;
11417   *)
11418     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11419     ;;
11420   esac
11421   dynamic_linker='Win32 ld.exe'
11422   # FIXME: first we should search . and the directory the executable is in
11423   shlibpath_var=PATH
11424   ;;
11426 darwin* | rhapsody*)
11427   dynamic_linker="$host_os dyld"
11428   version_type=darwin
11429   need_lib_prefix=no
11430   need_version=no
11431   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11432   soname_spec='${libname}${release}${major}$shared_ext'
11433   shlibpath_overrides_runpath=yes
11434   shlibpath_var=DYLD_LIBRARY_PATH
11435   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11436   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11437   if test "$GCC" = yes; then
11438     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"`
11439   else
11440     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11441   fi
11442   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11443   ;;
11445 dgux*)
11446   version_type=linux
11447   need_lib_prefix=no
11448   need_version=no
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11450   soname_spec='${libname}${release}${shared_ext}$major'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   ;;
11454 freebsd1*)
11455   dynamic_linker=no
11456   ;;
11458 kfreebsd*-gnu)
11459   version_type=linux
11460   need_lib_prefix=no
11461   need_version=no
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11463   soname_spec='${libname}${release}${shared_ext}$major'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=no
11466   hardcode_into_libs=yes
11467   dynamic_linker='GNU ld.so'
11468   ;;
11470 freebsd*)
11471   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11472   version_type=freebsd-$objformat
11473   case $version_type in
11474     freebsd-elf*)
11475       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11476       need_version=no
11477       need_lib_prefix=no
11478       ;;
11479     freebsd-*)
11480       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11481       need_version=yes
11482       ;;
11483   esac
11484   shlibpath_var=LD_LIBRARY_PATH
11485   case $host_os in
11486   freebsd2*)
11487     shlibpath_overrides_runpath=yes
11488     ;;
11489   freebsd3.01* | freebsdelf3.01*)
11490     shlibpath_overrides_runpath=yes
11491     hardcode_into_libs=yes
11492     ;;
11493   *) # from 3.2 on
11494     shlibpath_overrides_runpath=no
11495     hardcode_into_libs=yes
11496     ;;
11497   esac
11498   ;;
11500 gnu*)
11501   version_type=linux
11502   need_lib_prefix=no
11503   need_version=no
11504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11505   soname_spec='${libname}${release}${shared_ext}$major'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   hardcode_into_libs=yes
11508   ;;
11510 hpux9* | hpux10* | hpux11*)
11511   # Give a soname corresponding to the major version so that dld.sl refuses to
11512   # link against other versions.
11513   version_type=sunos
11514   need_lib_prefix=no
11515   need_version=no
11516   case "$host_cpu" in
11517   ia64*)
11518     shrext_cmds='.so'
11519     hardcode_into_libs=yes
11520     dynamic_linker="$host_os dld.so"
11521     shlibpath_var=LD_LIBRARY_PATH
11522     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524     soname_spec='${libname}${release}${shared_ext}$major'
11525     if test "X$HPUX_IA64_MODE" = X32; then
11526       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11527     else
11528       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11529     fi
11530     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11531     ;;
11532    hppa*64*)
11533      shrext_cmds='.sl'
11534      hardcode_into_libs=yes
11535      dynamic_linker="$host_os dld.sl"
11536      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11537      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539      soname_spec='${libname}${release}${shared_ext}$major'
11540      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11541      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11542      ;;
11543    *)
11544     shrext_cmds='.sl'
11545     dynamic_linker="$host_os dld.sl"
11546     shlibpath_var=SHLIB_PATH
11547     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549     soname_spec='${libname}${release}${shared_ext}$major'
11550     ;;
11551   esac
11552   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11553   postinstall_cmds='chmod 555 $lib'
11554   ;;
11556 irix5* | irix6* | nonstopux*)
11557   case $host_os in
11558     nonstopux*) version_type=nonstopux ;;
11559     *)
11560         if test "$lt_cv_prog_gnu_ld" = yes; then
11561                 version_type=linux
11562         else
11563                 version_type=irix
11564         fi ;;
11565   esac
11566   need_lib_prefix=no
11567   need_version=no
11568   soname_spec='${libname}${release}${shared_ext}$major'
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11570   case $host_os in
11571   irix5* | nonstopux*)
11572     libsuff= shlibsuff=
11573     ;;
11574   *)
11575     case $LD in # libtool.m4 will add one of these switches to LD
11576     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11577       libsuff= shlibsuff= libmagic=32-bit;;
11578     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11579       libsuff=32 shlibsuff=N32 libmagic=N32;;
11580     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11581       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11582     *) libsuff= shlibsuff= libmagic=never-match;;
11583     esac
11584     ;;
11585   esac
11586   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11587   shlibpath_overrides_runpath=no
11588   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11589   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11590   hardcode_into_libs=yes
11591   ;;
11593 # No shared lib support for Linux oldld, aout, or coff.
11594 linux*oldld* | linux*aout* | linux*coff*)
11595   dynamic_linker=no
11596   ;;
11598 # This must be Linux ELF.
11599 linux*)
11600   version_type=linux
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604   soname_spec='${libname}${release}${shared_ext}$major'
11605   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11606   shlibpath_var=LD_LIBRARY_PATH
11607   shlibpath_overrides_runpath=no
11608   # This implies no fast_install, which is unacceptable.
11609   # Some rework will be needed to allow for fast_install
11610   # before this can be enabled.
11611   hardcode_into_libs=yes
11613   # Append ld.so.conf contents to the search path
11614   if test -f /etc/ld.so.conf; then
11615     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11616     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11617   fi
11619   # We used to test for /lib/ld.so.1 and disable shared libraries on
11620   # powerpc, because MkLinux only supported shared libraries with the
11621   # GNU dynamic linker.  Since this was broken with cross compilers,
11622   # most powerpc-linux boxes support dynamic linking these days and
11623   # people can always --disable-shared, the test was removed, and we
11624   # assume the GNU/Linux dynamic linker is in use.
11625   dynamic_linker='GNU/Linux ld.so'
11626   ;;
11628 netbsdelf*-gnu)
11629   version_type=linux
11630   need_lib_prefix=no
11631   need_version=no
11632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633   soname_spec='${libname}${release}${shared_ext}$major'
11634   shlibpath_var=LD_LIBRARY_PATH
11635   shlibpath_overrides_runpath=no
11636   hardcode_into_libs=yes
11637   dynamic_linker='NetBSD ld.elf_so'
11638   ;;
11640 knetbsd*-gnu)
11641   version_type=linux
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   shlibpath_overrides_runpath=no
11648   hardcode_into_libs=yes
11649   dynamic_linker='GNU ld.so'
11650   ;;
11652 netbsd*)
11653   version_type=sunos
11654   need_lib_prefix=no
11655   need_version=no
11656   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659     dynamic_linker='NetBSD (a.out) ld.so'
11660   else
11661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662     soname_spec='${libname}${release}${shared_ext}$major'
11663     dynamic_linker='NetBSD ld.elf_so'
11664   fi
11665   shlibpath_var=LD_LIBRARY_PATH
11666   shlibpath_overrides_runpath=yes
11667   hardcode_into_libs=yes
11668   ;;
11670 newsos6)
11671   version_type=linux
11672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   shlibpath_overrides_runpath=yes
11675   ;;
11677 nto-qnx*)
11678   version_type=linux
11679   need_lib_prefix=no
11680   need_version=no
11681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682   soname_spec='${libname}${release}${shared_ext}$major'
11683   shlibpath_var=LD_LIBRARY_PATH
11684   shlibpath_overrides_runpath=yes
11685   ;;
11687 openbsd*)
11688   version_type=sunos
11689   need_lib_prefix=no
11690   need_version=yes
11691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11693   shlibpath_var=LD_LIBRARY_PATH
11694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11695     case $host_os in
11696       openbsd2.[89] | openbsd2.[89].*)
11697         shlibpath_overrides_runpath=no
11698         ;;
11699       *)
11700         shlibpath_overrides_runpath=yes
11701         ;;
11702       esac
11703   else
11704     shlibpath_overrides_runpath=yes
11705   fi
11706   ;;
11708 os2*)
11709   libname_spec='$name'
11710   shrext_cmds=".dll"
11711   need_lib_prefix=no
11712   library_names_spec='$libname${shared_ext} $libname.a'
11713   dynamic_linker='OS/2 ld.exe'
11714   shlibpath_var=LIBPATH
11715   ;;
11717 osf3* | osf4* | osf5*)
11718   version_type=osf
11719   need_lib_prefix=no
11720   need_version=no
11721   soname_spec='${libname}${release}${shared_ext}$major'
11722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723   shlibpath_var=LD_LIBRARY_PATH
11724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11726   ;;
11728 sco3.2v5*)
11729   version_type=osf
11730   soname_spec='${libname}${release}${shared_ext}$major'
11731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732   shlibpath_var=LD_LIBRARY_PATH
11733   ;;
11735 solaris*)
11736   version_type=linux
11737   need_lib_prefix=no
11738   need_version=no
11739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740   soname_spec='${libname}${release}${shared_ext}$major'
11741   shlibpath_var=LD_LIBRARY_PATH
11742   shlibpath_overrides_runpath=yes
11743   hardcode_into_libs=yes
11744   # ldd complains unless libraries are executable
11745   postinstall_cmds='chmod +x $lib'
11746   ;;
11748 sunos4*)
11749   version_type=sunos
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=yes
11754   if test "$with_gnu_ld" = yes; then
11755     need_lib_prefix=no
11756   fi
11757   need_version=yes
11758   ;;
11760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11761   version_type=linux
11762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763   soname_spec='${libname}${release}${shared_ext}$major'
11764   shlibpath_var=LD_LIBRARY_PATH
11765   case $host_vendor in
11766     sni)
11767       shlibpath_overrides_runpath=no
11768       need_lib_prefix=no
11769       export_dynamic_flag_spec='${wl}-Blargedynsym'
11770       runpath_var=LD_RUN_PATH
11771       ;;
11772     siemens)
11773       need_lib_prefix=no
11774       ;;
11775     motorola)
11776       need_lib_prefix=no
11777       need_version=no
11778       shlibpath_overrides_runpath=no
11779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11780       ;;
11781   esac
11782   ;;
11784 sysv4*MP*)
11785   if test -d /usr/nec ;then
11786     version_type=linux
11787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11788     soname_spec='$libname${shared_ext}.$major'
11789     shlibpath_var=LD_LIBRARY_PATH
11790   fi
11791   ;;
11793 uts4*)
11794   version_type=linux
11795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796   soname_spec='${libname}${release}${shared_ext}$major'
11797   shlibpath_var=LD_LIBRARY_PATH
11798   ;;
11801   dynamic_linker=no
11802   ;;
11803 esac
11804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11805 echo "${ECHO_T}$dynamic_linker" >&6
11806 test "$dynamic_linker" = no && can_build_shared=no
11808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11810 hardcode_action_CXX=
11811 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11812    test -n "$runpath_var CXX" || \
11813    test "X$hardcode_automatic_CXX"="Xyes" ; then
11815   # We can hardcode non-existant directories.
11816   if test "$hardcode_direct_CXX" != no &&
11817      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818      # have to relink, otherwise we might link with an installed library
11819      # when we should be linking with a yet-to-be-installed one
11820      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11821      test "$hardcode_minus_L_CXX" != no; then
11822     # Linking always hardcodes the temporary library directory.
11823     hardcode_action_CXX=relink
11824   else
11825     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826     hardcode_action_CXX=immediate
11827   fi
11828 else
11829   # We cannot hardcode anything, or else we can only hardcode existing
11830   # directories.
11831   hardcode_action_CXX=unsupported
11833 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11834 echo "${ECHO_T}$hardcode_action_CXX" >&6
11836 if test "$hardcode_action_CXX" = relink; then
11837   # Fast installation is not supported
11838   enable_fast_install=no
11839 elif test "$shlibpath_overrides_runpath" = yes ||
11840      test "$enable_shared" = no; then
11841   # Fast installation is not necessary
11842   enable_fast_install=needless
11845 striplib=
11846 old_striplib=
11847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11850   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11851   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11852   echo "$as_me:$LINENO: result: yes" >&5
11853 echo "${ECHO_T}yes" >&6
11854 else
11855 # FIXME - insert some real tests, host_os isn't really good enough
11856   case $host_os in
11857    darwin*)
11858        if test -n "$STRIP" ; then
11859          striplib="$STRIP -x"
11860          echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11862        else
11863   echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6
11866        ;;
11867    *)
11868   echo "$as_me:$LINENO: result: no" >&5
11869 echo "${ECHO_T}no" >&6
11870     ;;
11871   esac
11874 if test "x$enable_dlopen" != xyes; then
11875   enable_dlopen=unknown
11876   enable_dlopen_self=unknown
11877   enable_dlopen_self_static=unknown
11878 else
11879   lt_cv_dlopen=no
11880   lt_cv_dlopen_libs=
11882   case $host_os in
11883   beos*)
11884     lt_cv_dlopen="load_add_on"
11885     lt_cv_dlopen_libs=
11886     lt_cv_dlopen_self=yes
11887     ;;
11889   mingw* | pw32*)
11890     lt_cv_dlopen="LoadLibrary"
11891     lt_cv_dlopen_libs=
11892    ;;
11894   cygwin*)
11895     lt_cv_dlopen="dlopen"
11896     lt_cv_dlopen_libs=
11897    ;;
11899   darwin*)
11900   # if libdl is installed we need to link against it
11901     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-ldl  $LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11915 /* Override any gcc2 internal prototype to avoid an error.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 /* We use char because int might match the return type of a gcc2
11920    builtin and then its argument prototype would still apply.  */
11921 char dlopen ();
11923 main ()
11925 dlopen ();
11926   ;
11927   return 0;
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932   (eval $ac_link) 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; } &&
11945          { ac_try='test -s conftest$ac_exeext'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   ac_cv_lib_dl_dlopen=yes
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ac_cv_lib_dl_dlopen=no
11958 rm -f conftest.err conftest.$ac_objext \
11959       conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11964 if test $ac_cv_lib_dl_dlopen = yes; then
11965   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11966 else
11967   
11968     lt_cv_dlopen="dyld"
11969     lt_cv_dlopen_libs=
11970     lt_cv_dlopen_self=yes
11971     
11974    ;;
11976   *)
11977     echo "$as_me:$LINENO: checking for shl_load" >&5
11978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11979 if test "${ac_cv_func_shl_load+set}" = set; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982   cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11990 #define shl_load innocuous_shl_load
11992 /* System header to define __stub macros and hopefully few prototypes,
11993     which can conflict with char shl_load (); below.
11994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11995     <limits.h> exists even on freestanding compilers.  */
11997 #ifdef __STDC__
11998 # include <limits.h>
11999 #else
12000 # include <assert.h>
12001 #endif
12003 #undef shl_load
12005 /* Override any gcc2 internal prototype to avoid an error.  */
12006 #ifdef __cplusplus
12007 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011    builtin and then its argument prototype would still apply.  */
12012 char shl_load ();
12013 /* The GNU C library defines this for functions which it implements
12014     to always fail with ENOSYS.  Some functions are actually named
12015     something starting with __ and the normal name is an alias.  */
12016 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12017 choke me
12018 #else
12019 char (*f) () = shl_load;
12020 #endif
12021 #ifdef __cplusplus
12023 #endif
12026 main ()
12028 return f != shl_load;
12029   ;
12030   return 0;
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035   (eval $ac_link) 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_func_shl_load=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_func_shl_load=no
12061 rm -f conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12065 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12066 if test $ac_cv_func_shl_load = yes; then
12067   lt_cv_dlopen="shl_load"
12068 else
12069   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12070 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12071 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-ldld  $LIBS"
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12083 /* Override any gcc2 internal prototype to avoid an error.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 /* We use char because int might match the return type of a gcc2
12088    builtin and then its argument prototype would still apply.  */
12089 char shl_load ();
12091 main ()
12093 shl_load ();
12094   ;
12095   return 0;
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100   (eval $ac_link) 2>conftest.er1
12101   ac_status=$?
12102   grep -v '^ *+' conftest.er1 >conftest.err
12103   rm -f conftest.er1
12104   cat conftest.err >&5
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
12113          { ac_try='test -s conftest$ac_exeext'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; }; then
12119   ac_cv_lib_dld_shl_load=yes
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_lib_dld_shl_load=no
12126 rm -f conftest.err conftest.$ac_objext \
12127       conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12131 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12132 if test $ac_cv_lib_dld_shl_load = yes; then
12133   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12134 else
12135   echo "$as_me:$LINENO: checking for dlopen" >&5
12136 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12137 if test "${ac_cv_func_dlopen+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12148 #define dlopen innocuous_dlopen
12150 /* System header to define __stub macros and hopefully few prototypes,
12151     which can conflict with char dlopen (); below.
12152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12153     <limits.h> exists even on freestanding compilers.  */
12155 #ifdef __STDC__
12156 # include <limits.h>
12157 #else
12158 # include <assert.h>
12159 #endif
12161 #undef dlopen
12163 /* Override any gcc2 internal prototype to avoid an error.  */
12164 #ifdef __cplusplus
12165 extern "C"
12167 #endif
12168 /* We use char because int might match the return type of a gcc2
12169    builtin and then its argument prototype would still apply.  */
12170 char dlopen ();
12171 /* The GNU C library defines this for functions which it implements
12172     to always fail with ENOSYS.  Some functions are actually named
12173     something starting with __ and the normal name is an alias.  */
12174 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12175 choke me
12176 #else
12177 char (*f) () = dlopen;
12178 #endif
12179 #ifdef __cplusplus
12181 #endif
12184 main ()
12186 return f != dlopen;
12187   ;
12188   return 0;
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193   (eval $ac_link) 2>conftest.er1
12194   ac_status=$?
12195   grep -v '^ *+' conftest.er1 >conftest.err
12196   rm -f conftest.er1
12197   cat conftest.err >&5
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   ac_cv_func_dlopen=yes
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_func_dlopen=no
12219 rm -f conftest.err conftest.$ac_objext \
12220       conftest$ac_exeext conftest.$ac_ext
12222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224 if test $ac_cv_func_dlopen = yes; then
12225   lt_cv_dlopen="dlopen"
12226 else
12227   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-ldl  $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h.  */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h.  */
12241 /* Override any gcc2 internal prototype to avoid an error.  */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 /* We use char because int might match the return type of a gcc2
12246    builtin and then its argument prototype would still apply.  */
12247 char dlopen ();
12249 main ()
12251 dlopen ();
12252   ;
12253   return 0;
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258   (eval $ac_link) 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } &&
12265          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267   (eval $ac_try) 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; } &&
12271          { ac_try='test -s conftest$ac_exeext'
12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273   (eval $ac_try) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   ac_cv_lib_dl_dlopen=yes
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_lib_dl_dlopen=no
12284 rm -f conftest.err conftest.$ac_objext \
12285       conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12290 if test $ac_cv_lib_dl_dlopen = yes; then
12291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12292 else
12293   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12294 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12295 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298   ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-lsvld  $LIBS"
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12307 /* Override any gcc2 internal prototype to avoid an error.  */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 /* We use char because int might match the return type of a gcc2
12312    builtin and then its argument prototype would still apply.  */
12313 char dlopen ();
12315 main ()
12317 dlopen ();
12318   ;
12319   return 0;
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324   (eval $ac_link) 2>conftest.er1
12325   ac_status=$?
12326   grep -v '^ *+' conftest.er1 >conftest.err
12327   rm -f conftest.er1
12328   cat conftest.err >&5
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } &&
12331          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; } &&
12337          { ac_try='test -s conftest$ac_exeext'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_cv_lib_svld_dlopen=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_lib_svld_dlopen=no
12350 rm -f conftest.err conftest.$ac_objext \
12351       conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12354 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12355 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12356 if test $ac_cv_lib_svld_dlopen = yes; then
12357   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12358 else
12359   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12360 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12361 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-ldld  $LIBS"
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h.  */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h.  */
12373 /* Override any gcc2 internal prototype to avoid an error.  */
12374 #ifdef __cplusplus
12375 extern "C"
12376 #endif
12377 /* We use char because int might match the return type of a gcc2
12378    builtin and then its argument prototype would still apply.  */
12379 char dld_link ();
12381 main ()
12383 dld_link ();
12384   ;
12385   return 0;
12387 _ACEOF
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390   (eval $ac_link) 2>conftest.er1
12391   ac_status=$?
12392   grep -v '^ *+' conftest.er1 >conftest.err
12393   rm -f conftest.er1
12394   cat conftest.err >&5
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } &&
12397          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; } &&
12403          { ac_try='test -s conftest$ac_exeext'
12404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405   (eval $ac_try) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); }; }; then
12409   ac_cv_lib_dld_dld_link=yes
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_lib_dld_dld_link=no
12416 rm -f conftest.err conftest.$ac_objext \
12417       conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12422 if test $ac_cv_lib_dld_dld_link = yes; then
12423   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12426               
12429             
12432           
12435         
12438       
12441     ;;
12442   esac
12444   if test "x$lt_cv_dlopen" != xno; then
12445     enable_dlopen=yes
12446   else
12447     enable_dlopen=no
12448   fi
12450   case $lt_cv_dlopen in
12451   dlopen)
12452     save_CPPFLAGS="$CPPFLAGS"
12453     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12455     save_LDFLAGS="$LDFLAGS"
12456     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12458     save_LIBS="$LIBS"
12459     LIBS="$lt_cv_dlopen_libs $LIBS"
12461     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12463 if test "${lt_cv_dlopen_self+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466           if test "$cross_compiling" = yes; then :
12467   lt_cv_dlopen_self=cross
12468 else
12469   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12470   lt_status=$lt_dlunknown
12471   cat > conftest.$ac_ext <<EOF
12472 #line __oline__ "configure"
12473 #include "confdefs.h"
12475 #if HAVE_DLFCN_H
12476 #include <dlfcn.h>
12477 #endif
12479 #include <stdio.h>
12481 #ifdef RTLD_GLOBAL
12482 #  define LT_DLGLOBAL           RTLD_GLOBAL
12483 #else
12484 #  ifdef DL_GLOBAL
12485 #    define LT_DLGLOBAL         DL_GLOBAL
12486 #  else
12487 #    define LT_DLGLOBAL         0
12488 #  endif
12489 #endif
12491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12492    find out it does not work in some platform. */
12493 #ifndef LT_DLLAZY_OR_NOW
12494 #  ifdef RTLD_LAZY
12495 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12496 #  else
12497 #    ifdef DL_LAZY
12498 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12499 #    else
12500 #      ifdef RTLD_NOW
12501 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12502 #      else
12503 #        ifdef DL_NOW
12504 #          define LT_DLLAZY_OR_NOW      DL_NOW
12505 #        else
12506 #          define LT_DLLAZY_OR_NOW      0
12507 #        endif
12508 #      endif
12509 #    endif
12510 #  endif
12511 #endif
12513 #ifdef __cplusplus
12514 extern "C" void exit (int);
12515 #endif
12517 void fnord() { int i=42;}
12518 int main ()
12520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521   int status = $lt_dlunknown;
12523   if (self)
12524     {
12525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12526       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12527       /* dlclose (self); */
12528     }
12530     exit (status);
12533   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534   (eval $ac_link) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12538     (./conftest; exit; ) 2>/dev/null
12539     lt_status=$?
12540     case x$lt_status in
12541       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12542       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12543       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12544     esac
12545   else :
12546     # compilation failed
12547     lt_cv_dlopen_self=no
12548   fi
12550 rm -fr conftest*
12552     
12554 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12557     if test "x$lt_cv_dlopen_self" = xyes; then
12558       LDFLAGS="$LDFLAGS $link_static_flag"
12559       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12561 if test "${lt_cv_dlopen_self_static+set}" = set; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564           if test "$cross_compiling" = yes; then :
12565   lt_cv_dlopen_self_static=cross
12566 else
12567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12568   lt_status=$lt_dlunknown
12569   cat > conftest.$ac_ext <<EOF
12570 #line __oline__ "configure"
12571 #include "confdefs.h"
12573 #if HAVE_DLFCN_H
12574 #include <dlfcn.h>
12575 #endif
12577 #include <stdio.h>
12579 #ifdef RTLD_GLOBAL
12580 #  define LT_DLGLOBAL           RTLD_GLOBAL
12581 #else
12582 #  ifdef DL_GLOBAL
12583 #    define LT_DLGLOBAL         DL_GLOBAL
12584 #  else
12585 #    define LT_DLGLOBAL         0
12586 #  endif
12587 #endif
12589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12590    find out it does not work in some platform. */
12591 #ifndef LT_DLLAZY_OR_NOW
12592 #  ifdef RTLD_LAZY
12593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12594 #  else
12595 #    ifdef DL_LAZY
12596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12597 #    else
12598 #      ifdef RTLD_NOW
12599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12600 #      else
12601 #        ifdef DL_NOW
12602 #          define LT_DLLAZY_OR_NOW      DL_NOW
12603 #        else
12604 #          define LT_DLLAZY_OR_NOW      0
12605 #        endif
12606 #      endif
12607 #    endif
12608 #  endif
12609 #endif
12611 #ifdef __cplusplus
12612 extern "C" void exit (int);
12613 #endif
12615 void fnord() { int i=42;}
12616 int main ()
12618   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12619   int status = $lt_dlunknown;
12621   if (self)
12622     {
12623       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12624       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12625       /* dlclose (self); */
12626     }
12628     exit (status);
12631   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632   (eval $ac_link) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12636     (./conftest; exit; ) 2>/dev/null
12637     lt_status=$?
12638     case x$lt_status in
12639       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12640       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12641       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12642     esac
12643   else :
12644     # compilation failed
12645     lt_cv_dlopen_self_static=no
12646   fi
12648 rm -fr conftest*
12650       
12652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12654     fi
12656     CPPFLAGS="$save_CPPFLAGS"
12657     LDFLAGS="$save_LDFLAGS"
12658     LIBS="$save_LIBS"
12659     ;;
12660   esac
12662   case $lt_cv_dlopen_self in
12663   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12664   *) enable_dlopen_self=unknown ;;
12665   esac
12667   case $lt_cv_dlopen_self_static in
12668   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12669   *) enable_dlopen_self_static=unknown ;;
12670   esac
12674 # The else clause should only fire when bootstrapping the
12675 # libtool distribution, otherwise you forgot to ship ltmain.sh
12676 # with your package, and you will get complaints that there are
12677 # no rules to generate ltmain.sh.
12678 if test -f "$ltmain"; then
12679   # See if we are running on zsh, and set the options which allow our commands through
12680   # without removal of \ escapes.
12681   if test -n "${ZSH_VERSION+set}" ; then
12682     setopt NO_GLOB_SUBST
12683   fi
12684   # Now quote all the things that may contain metacharacters while being
12685   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12686   # variables and quote the copies for generation of the libtool script.
12687   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12688     SED SHELL STRIP \
12689     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12690     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12691     deplibs_check_method reload_flag reload_cmds need_locks \
12692     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12693     lt_cv_sys_global_symbol_to_c_name_address \
12694     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12695     old_postinstall_cmds old_postuninstall_cmds \
12696     compiler_CXX \
12697     CC_CXX \
12698     LD_CXX \
12699     lt_prog_compiler_wl_CXX \
12700     lt_prog_compiler_pic_CXX \
12701     lt_prog_compiler_static_CXX \
12702     lt_prog_compiler_no_builtin_flag_CXX \
12703     export_dynamic_flag_spec_CXX \
12704     thread_safe_flag_spec_CXX \
12705     whole_archive_flag_spec_CXX \
12706     enable_shared_with_static_runtimes_CXX \
12707     old_archive_cmds_CXX \
12708     old_archive_from_new_cmds_CXX \
12709     predep_objects_CXX \
12710     postdep_objects_CXX \
12711     predeps_CXX \
12712     postdeps_CXX \
12713     compiler_lib_search_path_CXX \
12714     archive_cmds_CXX \
12715     archive_expsym_cmds_CXX \
12716     postinstall_cmds_CXX \
12717     postuninstall_cmds_CXX \
12718     old_archive_from_expsyms_cmds_CXX \
12719     allow_undefined_flag_CXX \
12720     no_undefined_flag_CXX \
12721     export_symbols_cmds_CXX \
12722     hardcode_libdir_flag_spec_CXX \
12723     hardcode_libdir_flag_spec_ld_CXX \
12724     hardcode_libdir_separator_CXX \
12725     hardcode_automatic_CXX \
12726     module_cmds_CXX \
12727     module_expsym_cmds_CXX \
12728     lt_cv_prog_compiler_c_o_CXX \
12729     exclude_expsyms_CXX \
12730     include_expsyms_CXX; do
12732     case $var in
12733     old_archive_cmds_CXX | \
12734     old_archive_from_new_cmds_CXX | \
12735     archive_cmds_CXX | \
12736     archive_expsym_cmds_CXX | \
12737     module_cmds_CXX | \
12738     module_expsym_cmds_CXX | \
12739     old_archive_from_expsyms_cmds_CXX | \
12740     export_symbols_cmds_CXX | \
12741     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12742     postinstall_cmds | postuninstall_cmds | \
12743     old_postinstall_cmds | old_postuninstall_cmds | \
12744     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12745       # Double-quote double-evaled strings.
12746       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12747       ;;
12748     *)
12749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12750       ;;
12751     esac
12752   done
12754   case $lt_echo in
12755   *'\$0 --fallback-echo"')
12756     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12757     ;;
12758   esac
12760 cfgfile="$ofile"
12762   cat <<__EOF__ >> "$cfgfile"
12763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12767 # Shell to use when invoking shell scripts.
12768 SHELL=$lt_SHELL
12770 # Whether or not to build shared libraries.
12771 build_libtool_libs=$enable_shared
12773 # Whether or not to build static libraries.
12774 build_old_libs=$enable_static
12776 # Whether or not to add -lc for building shared libraries.
12777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12779 # Whether or not to disallow shared libs when runtime libs are static
12780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12782 # Whether or not to optimize for fast installation.
12783 fast_install=$enable_fast_install
12785 # The host system.
12786 host_alias=$host_alias
12787 host=$host
12789 # An echo program that does not interpret backslashes.
12790 echo=$lt_echo
12792 # The archiver.
12793 AR=$lt_AR
12794 AR_FLAGS=$lt_AR_FLAGS
12796 # A C compiler.
12797 LTCC=$lt_LTCC
12799 # A language-specific compiler.
12800 CC=$lt_compiler_CXX
12802 # Is the compiler the GNU C compiler?
12803 with_gcc=$GCC_CXX
12805 # An ERE matcher.
12806 EGREP=$lt_EGREP
12808 # The linker used to build libraries.
12809 LD=$lt_LD_CXX
12811 # Whether we need hard or soft links.
12812 LN_S=$lt_LN_S
12814 # A BSD-compatible nm program.
12815 NM=$lt_NM
12817 # A symbol stripping program
12818 STRIP=$lt_STRIP
12820 # Used to examine libraries when file_magic_cmd begins "file"
12821 MAGIC_CMD=$MAGIC_CMD
12823 # Used on cygwin: DLL creation program.
12824 DLLTOOL="$DLLTOOL"
12826 # Used on cygwin: object dumper.
12827 OBJDUMP="$OBJDUMP"
12829 # Used on cygwin: assembler.
12830 AS="$AS"
12832 # The name of the directory that contains temporary libtool files.
12833 objdir=$objdir
12835 # How to create reloadable object files.
12836 reload_flag=$lt_reload_flag
12837 reload_cmds=$lt_reload_cmds
12839 # How to pass a linker flag through the compiler.
12840 wl=$lt_lt_prog_compiler_wl_CXX
12842 # Object file suffix (normally "o").
12843 objext="$ac_objext"
12845 # Old archive suffix (normally "a").
12846 libext="$libext"
12848 # Shared library suffix (normally ".so").
12849 shrext_cmds='$shrext_cmds'
12851 # Executable file suffix (normally "").
12852 exeext="$exeext"
12854 # Additional compiler flags for building library objects.
12855 pic_flag=$lt_lt_prog_compiler_pic_CXX
12856 pic_mode=$pic_mode
12858 # What is the maximum length of a command?
12859 max_cmd_len=$lt_cv_sys_max_cmd_len
12861 # Does compiler simultaneously support -c and -o options?
12862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12864 # Must we lock files when doing compilation ?
12865 need_locks=$lt_need_locks
12867 # Do we need the lib prefix for modules?
12868 need_lib_prefix=$need_lib_prefix
12870 # Do we need a version for libraries?
12871 need_version=$need_version
12873 # Whether dlopen is supported.
12874 dlopen_support=$enable_dlopen
12876 # Whether dlopen of programs is supported.
12877 dlopen_self=$enable_dlopen_self
12879 # Whether dlopen of statically linked programs is supported.
12880 dlopen_self_static=$enable_dlopen_self_static
12882 # Compiler flag to prevent dynamic linking.
12883 link_static_flag=$lt_lt_prog_compiler_static_CXX
12885 # Compiler flag to turn off builtin functions.
12886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12888 # Compiler flag to allow reflexive dlopens.
12889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12891 # Compiler flag to generate shared objects directly from archives.
12892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12894 # Compiler flag to generate thread-safe objects.
12895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12897 # Library versioning type.
12898 version_type=$version_type
12900 # Format of library name prefix.
12901 libname_spec=$lt_libname_spec
12903 # List of archive names.  First name is the real one, the rest are links.
12904 # The last name is the one that the linker finds with -lNAME.
12905 library_names_spec=$lt_library_names_spec
12907 # The coded name of the library, if different from the real name.
12908 soname_spec=$lt_soname_spec
12910 # Commands used to build and install an old-style archive.
12911 RANLIB=$lt_RANLIB
12912 old_archive_cmds=$lt_old_archive_cmds_CXX
12913 old_postinstall_cmds=$lt_old_postinstall_cmds
12914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12916 # Create an old-style archive from a shared archive.
12917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12919 # Create a temporary old-style archive to link instead of a shared archive.
12920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12922 # Commands used to build and install a shared archive.
12923 archive_cmds=$lt_archive_cmds_CXX
12924 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12925 postinstall_cmds=$lt_postinstall_cmds
12926 postuninstall_cmds=$lt_postuninstall_cmds
12928 # Commands used to build a loadable module (assumed same as above if empty)
12929 module_cmds=$lt_module_cmds_CXX
12930 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12932 # Commands to strip libraries.
12933 old_striplib=$lt_old_striplib
12934 striplib=$lt_striplib
12936 # Dependencies to place before the objects being linked to create a
12937 # shared library.
12938 predep_objects=$lt_predep_objects_CXX
12940 # Dependencies to place after the objects being linked to create a
12941 # shared library.
12942 postdep_objects=$lt_postdep_objects_CXX
12944 # Dependencies to place before the objects being linked to create a
12945 # shared library.
12946 predeps=$lt_predeps_CXX
12948 # Dependencies to place after the objects being linked to create a
12949 # shared library.
12950 postdeps=$lt_postdeps_CXX
12952 # The library search path used internally by the compiler when linking
12953 # a shared library.
12954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12956 # Method to check whether dependent libraries are shared objects.
12957 deplibs_check_method=$lt_deplibs_check_method
12959 # Command to use when deplibs_check_method == file_magic.
12960 file_magic_cmd=$lt_file_magic_cmd
12962 # Flag that allows shared libraries with undefined symbols to be built.
12963 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12965 # Flag that forces no undefined symbols.
12966 no_undefined_flag=$lt_no_undefined_flag_CXX
12968 # Commands used to finish a libtool library installation in a directory.
12969 finish_cmds=$lt_finish_cmds
12971 # Same as above, but a single script fragment to be evaled but not shown.
12972 finish_eval=$lt_finish_eval
12974 # Take the output of nm and produce a listing of raw symbols and C names.
12975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12977 # Transform the output of nm in a proper C declaration
12978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12980 # Transform the output of nm in a C name address pair
12981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12983 # This is the shared library runtime path variable.
12984 runpath_var=$runpath_var
12986 # This is the shared library path variable.
12987 shlibpath_var=$shlibpath_var
12989 # Is shlibpath searched before the hard-coded library search path?
12990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12992 # How to hardcode a shared library path into an executable.
12993 hardcode_action=$hardcode_action_CXX
12995 # Whether we should hardcode library paths into libraries.
12996 hardcode_into_libs=$hardcode_into_libs
12998 # Flag to hardcode \$libdir into a binary during linking.
12999 # This must work even if \$libdir does not exist.
13000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13002 # If ld is used when linking, flag to hardcode \$libdir into
13003 # a binary during linking. This must work even if \$libdir does
13004 # not exist.
13005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13007 # Whether we need a single -rpath flag with a separated argument.
13008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13011 # resulting binary.
13012 hardcode_direct=$hardcode_direct_CXX
13014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13015 # resulting binary.
13016 hardcode_minus_L=$hardcode_minus_L_CXX
13018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13019 # the resulting binary.
13020 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13022 # Set to yes if building a shared library automatically hardcodes DIR into the library
13023 # and all subsequent libraries and executables linked against it.
13024 hardcode_automatic=$hardcode_automatic_CXX
13026 # Variables whose values should be saved in libtool wrapper scripts and
13027 # restored at relink time.
13028 variables_saved_for_relink="$variables_saved_for_relink"
13030 # Whether libtool must link a program against all its dependency libraries.
13031 link_all_deplibs=$link_all_deplibs_CXX
13033 # Compile-time system search path for libraries
13034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13036 # Run-time system search path for libraries
13037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13039 # Fix the shell variable \$srcfile for the compiler.
13040 fix_srcfile_path="$fix_srcfile_path_CXX"
13042 # Set to yes if exported symbols are required.
13043 always_export_symbols=$always_export_symbols_CXX
13045 # The commands to list exported symbols.
13046 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13048 # The commands to extract the exported symbol list from a shared archive.
13049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13051 # Symbols that should not be listed in the preloaded symbols.
13052 exclude_expsyms=$lt_exclude_expsyms_CXX
13054 # Symbols that must always be exported.
13055 include_expsyms=$lt_include_expsyms_CXX
13057 # ### END LIBTOOL TAG CONFIG: $tagname
13059 __EOF__
13062 else
13063   # If there is no Makefile yet, we rely on a make rule to execute
13064   # `config.status --recheck' to rerun these tests and create the
13065   # libtool script then.
13066   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13067   if test -f "$ltmain_in"; then
13068     test -f Makefile && make "$ltmain"
13069   fi
13073 ac_ext=c
13074 ac_cpp='$CPP $CPPFLAGS'
13075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13079 CC=$lt_save_CC
13080 LDCXX=$LD
13081 LD=$lt_save_LD
13082 GCC=$lt_save_GCC
13083 with_gnu_ldcxx=$with_gnu_ld
13084 with_gnu_ld=$lt_save_with_gnu_ld
13085 lt_cv_path_LDCXX=$lt_cv_path_LD
13086 lt_cv_path_LD=$lt_save_path_LD
13087 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13088 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13090         else
13091           tagname=""
13092         fi
13093         ;;
13095       F77)
13096         if test -n "$F77" && test "X$F77" != "Xno"; then
13097           
13098 ac_ext=f
13099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13104 archive_cmds_need_lc_F77=no
13105 allow_undefined_flag_F77=
13106 always_export_symbols_F77=no
13107 archive_expsym_cmds_F77=
13108 export_dynamic_flag_spec_F77=
13109 hardcode_direct_F77=no
13110 hardcode_libdir_flag_spec_F77=
13111 hardcode_libdir_flag_spec_ld_F77=
13112 hardcode_libdir_separator_F77=
13113 hardcode_minus_L_F77=no
13114 hardcode_automatic_F77=no
13115 module_cmds_F77=
13116 module_expsym_cmds_F77=
13117 link_all_deplibs_F77=unknown
13118 old_archive_cmds_F77=$old_archive_cmds
13119 no_undefined_flag_F77=
13120 whole_archive_flag_spec_F77=
13121 enable_shared_with_static_runtimes_F77=no
13123 # Source file extension for f77 test sources.
13124 ac_ext=f
13126 # Object file extension for compiled f77 test sources.
13127 objext=o
13128 objext_F77=$objext
13130 # Code to be used in simple compile tests
13131 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13133 # Code to be used in simple link tests
13134 lt_simple_link_test_code="      program t\n      end\n"
13136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13138 # If no C compiler was specified, use CC.
13139 LTCC=${LTCC-"$CC"}
13141 # Allow CC to be a program name with arguments.
13142 compiler=$CC
13145 # Allow CC to be a program name with arguments.
13146 lt_save_CC="$CC"
13147 CC=${F77-"f77"}
13148 compiler=$CC
13149 compiler_F77=$CC
13150 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13152 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13154 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13155 echo "${ECHO_T}$can_build_shared" >&6
13157 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13159 test "$can_build_shared" = "no" && enable_shared=no
13161 # On AIX, shared libraries and static libraries use the same namespace, and
13162 # are all built from PIC.
13163 case "$host_os" in
13164 aix3*)
13165   test "$enable_shared" = yes && enable_static=no
13166   if test -n "$RANLIB"; then
13167     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13168     postinstall_cmds='$RANLIB $lib'
13169   fi
13170   ;;
13171 aix4* | aix5*)
13172   test "$enable_shared" = yes && enable_static=no
13173   ;;
13174 esac
13175 echo "$as_me:$LINENO: result: $enable_shared" >&5
13176 echo "${ECHO_T}$enable_shared" >&6
13178 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13179 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13180 # Make sure either enable_shared or enable_static is yes.
13181 test "$enable_shared" = yes || enable_static=yes
13182 echo "$as_me:$LINENO: result: $enable_static" >&5
13183 echo "${ECHO_T}$enable_static" >&6
13185 test "$ld_shlibs_F77" = no && can_build_shared=no
13187 GCC_F77="$G77"
13188 LD_F77="$LD"
13190 lt_prog_compiler_wl_F77=
13191 lt_prog_compiler_pic_F77=
13192 lt_prog_compiler_static_F77=
13194 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13197   if test "$GCC" = yes; then
13198     lt_prog_compiler_wl_F77='-Wl,'
13199     lt_prog_compiler_static_F77='-static'
13201     case $host_os in
13202       aix*)
13203       # All AIX code is PIC.
13204       if test "$host_cpu" = ia64; then
13205         # AIX 5 now supports IA64 processor
13206         lt_prog_compiler_static_F77='-Bstatic'
13207       fi
13208       ;;
13210     amigaos*)
13211       # FIXME: we need at least 68020 code to build shared libraries, but
13212       # adding the `-m68020' flag to GCC prevents building anything better,
13213       # like `-m68040'.
13214       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13215       ;;
13217     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13218       # PIC is the default for these OSes.
13219       ;;
13221     mingw* | pw32* | os2*)
13222       # This hack is so that the source file can tell whether it is being
13223       # built for inclusion in a dll (and should export symbols for example).
13224       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13225       ;;
13227     darwin* | rhapsody*)
13228       # PIC is the default on this platform
13229       # Common symbols not allowed in MH_DYLIB files
13230       lt_prog_compiler_pic_F77='-fno-common'
13231       ;;
13233     msdosdjgpp*)
13234       # Just because we use GCC doesn't mean we suddenly get shared libraries
13235       # on systems that don't support them.
13236       lt_prog_compiler_can_build_shared_F77=no
13237       enable_shared=no
13238       ;;
13240     sysv4*MP*)
13241       if test -d /usr/nec; then
13242         lt_prog_compiler_pic_F77=-Kconform_pic
13243       fi
13244       ;;
13246     hpux*)
13247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248       # not for PA HP-UX.
13249       case "$host_cpu" in
13250       hppa*64*|ia64*)
13251         # +Z the default
13252         ;;
13253       *)
13254         lt_prog_compiler_pic_F77='-fPIC'
13255         ;;
13256       esac
13257       ;;
13259     *)
13260       lt_prog_compiler_pic_F77='-fPIC'
13261       ;;
13262     esac
13263   else
13264     # PORTME Check for flag to pass linker flags through the system compiler.
13265     case $host_os in
13266     aix*)
13267       lt_prog_compiler_wl_F77='-Wl,'
13268       if test "$host_cpu" = ia64; then
13269         # AIX 5 now supports IA64 processor
13270         lt_prog_compiler_static_F77='-Bstatic'
13271       else
13272         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13273       fi
13274       ;;
13276     mingw* | pw32* | os2*)
13277       # This hack is so that the source file can tell whether it is being
13278       # built for inclusion in a dll (and should export symbols for example).
13279       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13280       ;;
13282     hpux9* | hpux10* | hpux11*)
13283       lt_prog_compiler_wl_F77='-Wl,'
13284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13285       # not for PA HP-UX.
13286       case "$host_cpu" in
13287       hppa*64*|ia64*)
13288         # +Z the default
13289         ;;
13290       *)
13291         lt_prog_compiler_pic_F77='+Z'
13292         ;;
13293       esac
13294       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13295       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13296       ;;
13298     irix5* | irix6* | nonstopux*)
13299       lt_prog_compiler_wl_F77='-Wl,'
13300       # PIC (with -KPIC) is the default.
13301       lt_prog_compiler_static_F77='-non_shared'
13302       ;;
13304     newsos6)
13305       lt_prog_compiler_pic_F77='-KPIC'
13306       lt_prog_compiler_static_F77='-Bstatic'
13307       ;;
13309     linux*)
13310       case $CC in
13311       icc* | ecc*)
13312         lt_prog_compiler_wl_F77='-Wl,'
13313         lt_prog_compiler_pic_F77='-KPIC'
13314         lt_prog_compiler_static_F77='-static'
13315         ;;
13316       ccc*)
13317         lt_prog_compiler_wl_F77='-Wl,'
13318         # All Alpha code is PIC.
13319         lt_prog_compiler_static_F77='-non_shared'
13320         ;;
13321       esac
13322       ;;
13324     osf3* | osf4* | osf5*)
13325       lt_prog_compiler_wl_F77='-Wl,'
13326       # All OSF/1 code is PIC.
13327       lt_prog_compiler_static_F77='-non_shared'
13328       ;;
13330     sco3.2v5*)
13331       lt_prog_compiler_pic_F77='-Kpic'
13332       lt_prog_compiler_static_F77='-dn'
13333       ;;
13335     solaris*)
13336       lt_prog_compiler_wl_F77='-Wl,'
13337       lt_prog_compiler_pic_F77='-KPIC'
13338       lt_prog_compiler_static_F77='-Bstatic'
13339       ;;
13341     sunos4*)
13342       lt_prog_compiler_wl_F77='-Qoption ld '
13343       lt_prog_compiler_pic_F77='-PIC'
13344       lt_prog_compiler_static_F77='-Bstatic'
13345       ;;
13347     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13348       lt_prog_compiler_wl_F77='-Wl,'
13349       lt_prog_compiler_pic_F77='-KPIC'
13350       lt_prog_compiler_static_F77='-Bstatic'
13351       ;;
13353     sysv4*MP*)
13354       if test -d /usr/nec ;then
13355         lt_prog_compiler_pic_F77='-Kconform_pic'
13356         lt_prog_compiler_static_F77='-Bstatic'
13357       fi
13358       ;;
13360     uts4*)
13361       lt_prog_compiler_pic_F77='-pic'
13362       lt_prog_compiler_static_F77='-Bstatic'
13363       ;;
13365     *)
13366       lt_prog_compiler_can_build_shared_F77=no
13367       ;;
13368     esac
13369   fi
13371 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13372 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13375 # Check to make sure the PIC flag actually works.
13377 if test -n "$lt_prog_compiler_pic_F77"; then
13378   
13379 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13381 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   lt_prog_compiler_pic_works_F77=no
13385   ac_outfile=conftest.$ac_objext
13386    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13388    # Insert the option either (1) after the last *FLAGS variable, or
13389    # (2) before a word containing "conftest.", or (3) at the end.
13390    # Note that $ac_compile itself does not contain backslashes and begins
13391    # with a dollar sign (not a hyphen), so the echo should work correctly.
13392    # The option is referenced via a variable to avoid confusing sed.
13393    lt_compile=`echo "$ac_compile" | $SED \
13394    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396    -e 's:$: $lt_compiler_flag:'`
13397    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13398    (eval "$lt_compile" 2>conftest.err)
13399    ac_status=$?
13400    cat conftest.err >&5
13401    echo "$as_me:__oline__: \$? = $ac_status" >&5
13402    if (exit $ac_status) && test -s "$ac_outfile"; then
13403      # The compiler can only warn and ignore the option if not recognized
13404      # So say no if there are warnings
13405      if test ! -s conftest.err; then
13406        lt_prog_compiler_pic_works_F77=yes
13407      fi
13408    fi
13409    $rm conftest*
13412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13413 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13415 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13416     case $lt_prog_compiler_pic_F77 in
13417      "" | " "*) ;;
13418      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13419      esac
13420 else
13421     lt_prog_compiler_pic_F77=
13422      lt_prog_compiler_can_build_shared_F77=no
13426 case "$host_os" in
13427   # For platforms which do not support PIC, -DPIC is meaningless:
13428   *djgpp*)
13429     lt_prog_compiler_pic_F77=
13430     ;;
13431   *)
13432     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13433     ;;
13434 esac
13436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   lt_cv_prog_compiler_c_o_F77=no
13442    $rm -r conftest 2>/dev/null
13443    mkdir conftest
13444    cd conftest
13445    mkdir out
13446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13448    lt_compiler_flag="-o out/conftest2.$ac_objext"
13449    # Insert the option either (1) after the last *FLAGS variable, or
13450    # (2) before a word containing "conftest.", or (3) at the end.
13451    # Note that $ac_compile itself does not contain backslashes and begins
13452    # with a dollar sign (not a hyphen), so the echo should work correctly.
13453    lt_compile=`echo "$ac_compile" | $SED \
13454    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456    -e 's:$: $lt_compiler_flag:'`
13457    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13458    (eval "$lt_compile" 2>out/conftest.err)
13459    ac_status=$?
13460    cat out/conftest.err >&5
13461    echo "$as_me:__oline__: \$? = $ac_status" >&5
13462    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13463    then
13464      # The compiler can only warn and ignore the option if not recognized
13465      # So say no if there are warnings
13466      if test ! -s out/conftest.err; then
13467        lt_cv_prog_compiler_c_o_F77=yes
13468      fi
13469    fi
13470    chmod u+w .
13471    $rm conftest*
13472    # SGI C++ compiler will create directory out/ii_files/ for
13473    # template instantiation
13474    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13475    $rm out/* && rmdir out
13476    cd ..
13477    rmdir conftest
13478    $rm conftest*
13481 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13485 hard_links="nottested"
13486 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13487   # do not overwrite the value of need_locks provided by the user
13488   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13490   hard_links=yes
13491   $rm conftest*
13492   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13493   touch conftest.a
13494   ln conftest.a conftest.b 2>&5 || hard_links=no
13495   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496   echo "$as_me:$LINENO: result: $hard_links" >&5
13497 echo "${ECHO_T}$hard_links" >&6
13498   if test "$hard_links" = no; then
13499     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13501     need_locks=warn
13502   fi
13503 else
13504   need_locks=no
13507 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13510   runpath_var=
13511   allow_undefined_flag_F77=
13512   enable_shared_with_static_runtimes_F77=no
13513   archive_cmds_F77=
13514   archive_expsym_cmds_F77=
13515   old_archive_From_new_cmds_F77=
13516   old_archive_from_expsyms_cmds_F77=
13517   export_dynamic_flag_spec_F77=
13518   whole_archive_flag_spec_F77=
13519   thread_safe_flag_spec_F77=
13520   hardcode_libdir_flag_spec_F77=
13521   hardcode_libdir_flag_spec_ld_F77=
13522   hardcode_libdir_separator_F77=
13523   hardcode_direct_F77=no
13524   hardcode_minus_L_F77=no
13525   hardcode_shlibpath_var_F77=unsupported
13526   link_all_deplibs_F77=unknown
13527   hardcode_automatic_F77=no
13528   module_cmds_F77=
13529   module_expsym_cmds_F77=
13530   always_export_symbols_F77=no
13531   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532   # include_expsyms should be a list of space-separated symbols to be *always*
13533   # included in the symbol list
13534   include_expsyms_F77=
13535   # exclude_expsyms can be an extended regexp of symbols to exclude
13536   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13537   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13538   # as well as any symbol that contains `d'.
13539   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13540   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13541   # platforms (ab)use it in PIC code, but their linkers get confused if
13542   # the symbol is explicitly referenced.  Since portable code cannot
13543   # rely on this symbol name, it's probably fine to never include it in
13544   # preloaded symbol tables.
13545   extract_expsyms_cmds=
13547   case $host_os in
13548   cygwin* | mingw* | pw32*)
13549     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13550     # When not using gcc, we currently assume that we are using
13551     # Microsoft Visual C++.
13552     if test "$GCC" != yes; then
13553       with_gnu_ld=no
13554     fi
13555     ;;
13556   openbsd*)
13557     with_gnu_ld=no
13558     ;;
13559   esac
13561   ld_shlibs_F77=yes
13562   if test "$with_gnu_ld" = yes; then
13563     # If archive_cmds runs LD, not CC, wlarc should be empty
13564     wlarc='${wl}'
13566     # See if GNU ld supports shared libraries.
13567     case $host_os in
13568     aix3* | aix4* | aix5*)
13569       # On AIX/PPC, the GNU linker is very broken
13570       if test "$host_cpu" != ia64; then
13571         ld_shlibs_F77=no
13572         cat <<EOF 1>&2
13574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13575 *** to be unable to reliably create shared libraries on AIX.
13576 *** Therefore, libtool is disabling shared libraries support.  If you
13577 *** really care for shared libraries, you may want to modify your PATH
13578 *** so that a non-GNU linker is found, and then restart.
13581       fi
13582       ;;
13584     amigaos*)
13585       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)'
13586       hardcode_libdir_flag_spec_F77='-L$libdir'
13587       hardcode_minus_L_F77=yes
13589       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13590       # that the semantics of dynamic libraries on AmigaOS, at least up
13591       # to version 4, is to share data among multiple programs linked
13592       # with the same dynamic library.  Since this doesn't match the
13593       # behavior of shared libraries on other platforms, we can't use
13594       # them.
13595       ld_shlibs_F77=no
13596       ;;
13598     beos*)
13599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13600         allow_undefined_flag_F77=unsupported
13601         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13602         # support --undefined.  This deserves some investigation.  FIXME
13603         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604       else
13605         ld_shlibs_F77=no
13606       fi
13607       ;;
13609     cygwin* | mingw* | pw32*)
13610       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13611       # as there is no search path for DLLs.
13612       hardcode_libdir_flag_spec_F77='-L$libdir'
13613       allow_undefined_flag_F77=unsupported
13614       always_export_symbols_F77=no
13615       enable_shared_with_static_runtimes_F77=yes
13616       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13618       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13619         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13620         # If the export-symbols file already is a .def file (1st line
13621         # is EXPORTS), use it as is; otherwise, prepend...
13622         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13623           cp $export_symbols $output_objdir/$soname.def;
13624         else
13625           echo EXPORTS > $output_objdir/$soname.def;
13626           cat $export_symbols >> $output_objdir/$soname.def;
13627         fi~
13628         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13629       else
13630         ld_shlibs=no
13631       fi
13632       ;;
13634     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13635       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13636         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13637         wlarc=
13638       else
13639         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13641       fi
13642       ;;
13644     solaris* | sysv5*)
13645       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13646         ld_shlibs_F77=no
13647         cat <<EOF 1>&2
13649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13650 *** create shared libraries on Solaris systems.  Therefore, libtool
13651 *** is disabling shared libraries support.  We urge you to upgrade GNU
13652 *** binutils to release 2.9.1 or newer.  Another option is to modify
13653 *** your PATH or compiler configuration so that the native linker is
13654 *** used, and then restart.
13657       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13658         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13660       else
13661         ld_shlibs_F77=no
13662       fi
13663       ;;
13665     sunos4*)
13666       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13667       wlarc=
13668       hardcode_direct_F77=yes
13669       hardcode_shlibpath_var_F77=no
13670       ;;
13672   linux*)
13673     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13674         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13675         archive_cmds_F77="$tmp_archive_cmds"
13676       supports_anon_versioning=no
13677       case `$LD -v 2>/dev/null` in
13678         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13679         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13680         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13681         *\ 2.11.*) ;; # other 2.11 versions
13682         *) supports_anon_versioning=yes ;;
13683       esac
13684       if test $supports_anon_versioning = yes; then
13685         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13687 $echo "local: *; };" >> $output_objdir/$libname.ver~
13688         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13689       else
13690         archive_expsym_cmds_F77="$tmp_archive_cmds"
13691       fi
13692       link_all_deplibs_F77=no
13693     else
13694       ld_shlibs_F77=no
13695     fi
13696     ;;
13698     *)
13699       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13700         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13701         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13702       else
13703         ld_shlibs_F77=no
13704       fi
13705       ;;
13706     esac
13708     if test "$ld_shlibs_F77" = yes; then
13709       runpath_var=LD_RUN_PATH
13710       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13711       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13712       # ancient GNU ld didn't support --whole-archive et. al.
13713       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13714         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13715       else
13716         whole_archive_flag_spec_F77=
13717       fi
13718     fi
13719   else
13720     # PORTME fill in a description of your system's linker (not GNU ld)
13721     case $host_os in
13722     aix3*)
13723       allow_undefined_flag_F77=unsupported
13724       always_export_symbols_F77=yes
13725       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'
13726       # Note: this linker hardcodes the directories in LIBPATH if there
13727       # are no directories specified by -L.
13728       hardcode_minus_L_F77=yes
13729       if test "$GCC" = yes && test -z "$link_static_flag"; then
13730         # Neither direct hardcoding nor static linking is supported with a
13731         # broken collect2.
13732         hardcode_direct_F77=unsupported
13733       fi
13734       ;;
13736     aix4* | aix5*)
13737       if test "$host_cpu" = ia64; then
13738         # On IA64, the linker does run time linking by default, so we don't
13739         # have to do anything special.
13740         aix_use_runtimelinking=no
13741         exp_sym_flag='-Bexport'
13742         no_entry_flag=""
13743       else
13744         # If we're using GNU nm, then we don't want the "-C" option.
13745         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13746         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13747           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'
13748         else
13749           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'
13750         fi
13751         aix_use_runtimelinking=no
13753         # Test if we are trying to use run time linking or normal
13754         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13755         # need to do runtime linking.
13756         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13757           for ld_flag in $LDFLAGS; do
13758           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13759             aix_use_runtimelinking=yes
13760             break
13761           fi
13762           done
13763         esac
13765         exp_sym_flag='-bexport'
13766         no_entry_flag='-bnoentry'
13767       fi
13769       # When large executables or shared objects are built, AIX ld can
13770       # have problems creating the table of contents.  If linking a library
13771       # or program results in "error TOC overflow" add -mminimal-toc to
13772       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13773       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13775       archive_cmds_F77=''
13776       hardcode_direct_F77=yes
13777       hardcode_libdir_separator_F77=':'
13778       link_all_deplibs_F77=yes
13780       if test "$GCC" = yes; then
13781         case $host_os in aix4.012|aix4.012.*)
13782         # We only want to do this on AIX 4.2 and lower, the check
13783         # below for broken collect2 doesn't work under 4.3+
13784           collect2name=`${CC} -print-prog-name=collect2`
13785           if test -f "$collect2name" && \
13786            strings "$collect2name" | grep resolve_lib_name >/dev/null
13787           then
13788           # We have reworked collect2
13789           hardcode_direct_F77=yes
13790           else
13791           # We have old collect2
13792           hardcode_direct_F77=unsupported
13793           # It fails to find uninstalled libraries when the uninstalled
13794           # path is not listed in the libpath.  Setting hardcode_minus_L
13795           # to unsupported forces relinking
13796           hardcode_minus_L_F77=yes
13797           hardcode_libdir_flag_spec_F77='-L$libdir'
13798           hardcode_libdir_separator_F77=
13799           fi
13800         esac
13801         shared_flag='-shared'
13802       else
13803         # not using gcc
13804         if test "$host_cpu" = ia64; then
13805         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13806         # chokes on -Wl,-G. The following line is correct:
13807           shared_flag='-G'
13808         else
13809         if test "$aix_use_runtimelinking" = yes; then
13810             shared_flag='${wl}-G'
13811           else
13812             shared_flag='${wl}-bM:SRE'
13813         fi
13814         fi
13815       fi
13817       # It seems that -bexpall does not export symbols beginning with
13818       # underscore (_), so it is better to generate a list of symbols to export.
13819       always_export_symbols_F77=yes
13820       if test "$aix_use_runtimelinking" = yes; then
13821         # Warning - without using the other runtime loading flags (-brtl),
13822         # -berok will link without error, but may produce a broken library.
13823         allow_undefined_flag_F77='-berok'
13824        # Determine the default libpath from the value encoded in an empty executable.
13825        cat >conftest.$ac_ext <<_ACEOF
13826       program main
13828       end
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832   (eval $ac_link) 2>conftest.er1
13833   ac_status=$?
13834   grep -v '^ *+' conftest.er1 >conftest.err
13835   rm -f conftest.er1
13836   cat conftest.err >&5
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; } &&
13845          { ac_try='test -s conftest$ac_exeext'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }; then
13851   
13852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13854 # Check for a 64-bit object if we didn't find anything.
13855 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; }
13856 }'`; fi
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f conftest.err conftest.$ac_objext \
13863       conftest$ac_exeext conftest.$ac_ext
13864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13866        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13867         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"
13868        else
13869         if test "$host_cpu" = ia64; then
13870           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13871           allow_undefined_flag_F77="-z nodefs"
13872           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"
13873         else
13874          # Determine the default libpath from the value encoded in an empty executable.
13875          cat >conftest.$ac_ext <<_ACEOF
13876       program main
13878       end
13879 _ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882   (eval $ac_link) 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; } &&
13895          { ac_try='test -s conftest$ac_exeext'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901   
13902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13904 # Check for a 64-bit object if we didn't find anything.
13905 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; }
13906 }'`; fi
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13912 rm -f conftest.err conftest.$ac_objext \
13913       conftest$ac_exeext conftest.$ac_ext
13914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13916          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13917           # Warning - without using the other run time loading flags,
13918           # -berok will link without error, but may produce a broken library.
13919           no_undefined_flag_F77=' ${wl}-bernotok'
13920           allow_undefined_flag_F77=' ${wl}-berok'
13921           # -bexpall does not export symbols beginning with underscore (_)
13922           always_export_symbols_F77=yes
13923           # Exported symbols can be pulled into shared objects from archives
13924           whole_archive_flag_spec_F77=' '
13925           archive_cmds_need_lc_F77=yes
13926           # This is similar to how AIX traditionally builds it's shared libraries.
13927           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'
13928         fi
13929       fi
13930       ;;
13932     amigaos*)
13933       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)'
13934       hardcode_libdir_flag_spec_F77='-L$libdir'
13935       hardcode_minus_L_F77=yes
13936       # see comment about different semantics on the GNU ld section
13937       ld_shlibs_F77=no
13938       ;;
13940     bsdi4*)
13941       export_dynamic_flag_spec_F77=-rdynamic
13942       ;;
13944     cygwin* | mingw* | pw32*)
13945       # When not using gcc, we currently assume that we are using
13946       # Microsoft Visual C++.
13947       # hardcode_libdir_flag_spec is actually meaningless, as there is
13948       # no search path for DLLs.
13949       hardcode_libdir_flag_spec_F77=' '
13950       allow_undefined_flag_F77=unsupported
13951       # Tell ltmain to make .lib files, not .a files.
13952       libext=lib
13953       # Tell ltmain to make .dll files, not .so files.
13954       shrext_cmds=".dll"
13955       # FIXME: Setting linknames here is a bad hack.
13956       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13957       # The linker will automatically build a .lib file if we build a DLL.
13958       old_archive_From_new_cmds_F77='true'
13959       # FIXME: Should let the user specify the lib program.
13960       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13961       fix_srcfile_path='`cygpath -w "$srcfile"`'
13962       enable_shared_with_static_runtimes_F77=yes
13963       ;;
13965     darwin* | rhapsody*)
13966     if test "$GXX" = yes ; then
13967       archive_cmds_need_lc_F77=no
13968       case "$host_os" in
13969       rhapsody* | darwin1.[012])
13970         allow_undefined_flag_F77='-undefined suppress'
13971         ;;
13972       *) # Darwin 1.3 on
13973       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13974         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13975       else
13976         case ${MACOSX_DEPLOYMENT_TARGET} in
13977           10.[012])
13978             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13979             ;;
13980           10.*)
13981             allow_undefined_flag_F77='-undefined dynamic_lookup'
13982             ;;
13983         esac
13984       fi
13985         ;;
13986       esac
13987         lt_int_apple_cc_single_mod=no
13988         output_verbose_link_cmd='echo'
13989         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13990           lt_int_apple_cc_single_mod=yes
13991         fi
13992         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13993           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13994         else
13995         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'
13996       fi
13997       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13998       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13999         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14000           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}'
14001         else
14002           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}'
14003         fi
14004           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}'
14005       hardcode_direct_F77=no
14006       hardcode_automatic_F77=yes
14007       hardcode_shlibpath_var_F77=unsupported
14008       whole_archive_flag_spec_F77='-all_load $convenience'
14009       link_all_deplibs_F77=yes
14010     else
14011       ld_shlibs_F77=no
14012     fi
14013       ;;
14015     dgux*)
14016       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017       hardcode_libdir_flag_spec_F77='-L$libdir'
14018       hardcode_shlibpath_var_F77=no
14019       ;;
14021     freebsd1*)
14022       ld_shlibs_F77=no
14023       ;;
14025     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14026     # support.  Future versions do this automatically, but an explicit c++rt0.o
14027     # does not break anything, and helps significantly (at the cost of a little
14028     # extra space).
14029     freebsd2.2*)
14030       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14031       hardcode_libdir_flag_spec_F77='-R$libdir'
14032       hardcode_direct_F77=yes
14033       hardcode_shlibpath_var_F77=no
14034       ;;
14036     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14037     freebsd2*)
14038       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14039       hardcode_direct_F77=yes
14040       hardcode_minus_L_F77=yes
14041       hardcode_shlibpath_var_F77=no
14042       ;;
14044     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14045     freebsd* | kfreebsd*-gnu)
14046       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14047       hardcode_libdir_flag_spec_F77='-R$libdir'
14048       hardcode_direct_F77=yes
14049       hardcode_shlibpath_var_F77=no
14050       ;;
14052     hpux9*)
14053       if test "$GCC" = yes; then
14054         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'
14055       else
14056         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'
14057       fi
14058       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14059       hardcode_libdir_separator_F77=:
14060       hardcode_direct_F77=yes
14062       # hardcode_minus_L: Not really in the search PATH,
14063       # but as the default location of the library.
14064       hardcode_minus_L_F77=yes
14065       export_dynamic_flag_spec_F77='${wl}-E'
14066       ;;
14068     hpux10* | hpux11*)
14069       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14070         case "$host_cpu" in
14071         hppa*64*|ia64*)
14072           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14073           ;;
14074         *)
14075           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14076           ;;
14077         esac
14078       else
14079         case "$host_cpu" in
14080         hppa*64*|ia64*)
14081           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14082           ;;
14083         *)
14084           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14085           ;;
14086         esac
14087       fi
14088       if test "$with_gnu_ld" = no; then
14089         case "$host_cpu" in
14090         hppa*64*)
14091           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14092           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14093           hardcode_libdir_separator_F77=:
14094           hardcode_direct_F77=no
14095           hardcode_shlibpath_var_F77=no
14096           ;;
14097         ia64*)
14098           hardcode_libdir_flag_spec_F77='-L$libdir'
14099           hardcode_direct_F77=no
14100           hardcode_shlibpath_var_F77=no
14102           # hardcode_minus_L: Not really in the search PATH,
14103           # but as the default location of the library.
14104           hardcode_minus_L_F77=yes
14105           ;;
14106         *)
14107           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14108           hardcode_libdir_separator_F77=:
14109           hardcode_direct_F77=yes
14110           export_dynamic_flag_spec_F77='${wl}-E'
14112           # hardcode_minus_L: Not really in the search PATH,
14113           # but as the default location of the library.
14114           hardcode_minus_L_F77=yes
14115           ;;
14116         esac
14117       fi
14118       ;;
14120     irix5* | irix6* | nonstopux*)
14121       if test "$GCC" = yes; then
14122         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'
14123       else
14124         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'
14125         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14126       fi
14127       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14128       hardcode_libdir_separator_F77=:
14129       link_all_deplibs_F77=yes
14130       ;;
14132     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14133       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14134         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14135       else
14136         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14137       fi
14138       hardcode_libdir_flag_spec_F77='-R$libdir'
14139       hardcode_direct_F77=yes
14140       hardcode_shlibpath_var_F77=no
14141       ;;
14143     newsos6)
14144       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145       hardcode_direct_F77=yes
14146       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14147       hardcode_libdir_separator_F77=:
14148       hardcode_shlibpath_var_F77=no
14149       ;;
14151     openbsd*)
14152       hardcode_direct_F77=yes
14153       hardcode_shlibpath_var_F77=no
14154       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14155         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14156         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14157         export_dynamic_flag_spec_F77='${wl}-E'
14158       else
14159        case $host_os in
14160          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14161            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162            hardcode_libdir_flag_spec_F77='-R$libdir'
14163            ;;
14164          *)
14165            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14166            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14167            ;;
14168        esac
14169       fi
14170       ;;
14172     os2*)
14173       hardcode_libdir_flag_spec_F77='-L$libdir'
14174       hardcode_minus_L_F77=yes
14175       allow_undefined_flag_F77=unsupported
14176       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'
14177       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14178       ;;
14180     osf3*)
14181       if test "$GCC" = yes; then
14182         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14183         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'
14184       else
14185         allow_undefined_flag_F77=' -expect_unresolved \*'
14186         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'
14187       fi
14188       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14189       hardcode_libdir_separator_F77=:
14190       ;;
14192     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14193       if test "$GCC" = yes; then
14194         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14195         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'
14196         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14197       else
14198         allow_undefined_flag_F77=' -expect_unresolved \*'
14199         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'
14200         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~
14201         $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'
14203         # Both c and cxx compiler support -rpath directly
14204         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14205       fi
14206       hardcode_libdir_separator_F77=:
14207       ;;
14209     sco3.2v5*)
14210       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211       hardcode_shlibpath_var_F77=no
14212       export_dynamic_flag_spec_F77='${wl}-Bexport'
14213       runpath_var=LD_RUN_PATH
14214       hardcode_runpath_var=yes
14215       ;;
14217     solaris*)
14218       no_undefined_flag_F77=' -z text'
14219       if test "$GCC" = yes; then
14220         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14223       else
14224         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14225         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14226         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14227       fi
14228       hardcode_libdir_flag_spec_F77='-R$libdir'
14229       hardcode_shlibpath_var_F77=no
14230       case $host_os in
14231       solaris2.[0-5] | solaris2.[0-5].*) ;;
14232       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14233         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14234       esac
14235       link_all_deplibs_F77=yes
14236       ;;
14238     sunos4*)
14239       if test "x$host_vendor" = xsequent; then
14240         # Use $CC to link under sequent, because it throws in some extra .o
14241         # files that make .init and .fini sections work.
14242         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14243       else
14244         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14245       fi
14246       hardcode_libdir_flag_spec_F77='-L$libdir'
14247       hardcode_direct_F77=yes
14248       hardcode_minus_L_F77=yes
14249       hardcode_shlibpath_var_F77=no
14250       ;;
14252     sysv4)
14253       case $host_vendor in
14254         sni)
14255           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14256           hardcode_direct_F77=yes # is this really true???
14257         ;;
14258         siemens)
14259           ## LD is ld it makes a PLAMLIB
14260           ## CC just makes a GrossModule.
14261           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14262           reload_cmds_F77='$CC -r -o $output$reload_objs'
14263           hardcode_direct_F77=no
14264         ;;
14265         motorola)
14266           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14267           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14268         ;;
14269       esac
14270       runpath_var='LD_RUN_PATH'
14271       hardcode_shlibpath_var_F77=no
14272       ;;
14274     sysv4.3*)
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='-Bexport'
14278       ;;
14280     sysv4*MP*)
14281       if test -d /usr/nec; then
14282         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283         hardcode_shlibpath_var_F77=no
14284         runpath_var=LD_RUN_PATH
14285         hardcode_runpath_var=yes
14286         ld_shlibs_F77=yes
14287       fi
14288       ;;
14290     sysv4.2uw2*)
14291       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14292       hardcode_direct_F77=yes
14293       hardcode_minus_L_F77=no
14294       hardcode_shlibpath_var_F77=no
14295       hardcode_runpath_var=yes
14296       runpath_var=LD_RUN_PATH
14297       ;;
14299    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14300       no_undefined_flag_F77='${wl}-z ${wl}text'
14301       if test "$GCC" = yes; then
14302         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14303       else
14304         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14305       fi
14306       runpath_var='LD_RUN_PATH'
14307       hardcode_shlibpath_var_F77=no
14308       ;;
14310     sysv5*)
14311       no_undefined_flag_F77=' -z text'
14312       # $CC -shared without GNU ld will not create a library from C++
14313       # object files and a static libstdc++, better avoid it by now
14314       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14316                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14317       hardcode_libdir_flag_spec_F77=
14318       hardcode_shlibpath_var_F77=no
14319       runpath_var='LD_RUN_PATH'
14320       ;;
14322     uts4*)
14323       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324       hardcode_libdir_flag_spec_F77='-L$libdir'
14325       hardcode_shlibpath_var_F77=no
14326       ;;
14328     *)
14329       ld_shlibs_F77=no
14330       ;;
14331     esac
14332   fi
14334 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14335 echo "${ECHO_T}$ld_shlibs_F77" >&6
14336 test "$ld_shlibs_F77" = no && can_build_shared=no
14338 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14339 if test "$GCC" = yes; then
14340   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14344 # Do we need to explicitly link libc?
14346 case "x$archive_cmds_need_lc_F77" in
14347 x|xyes)
14348   # Assume -lc should be added
14349   archive_cmds_need_lc_F77=yes
14351   if test "$enable_shared" = yes && test "$GCC" = yes; then
14352     case $archive_cmds_F77 in
14353     *'~'*)
14354       # FIXME: we may have to deal with multi-command sequences.
14355       ;;
14356     '$CC '*)
14357       # Test whether the compiler implicitly links with -lc since on some
14358       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14359       # to ld, don't add -lc before -lgcc.
14360       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14361 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14362       $rm conftest*
14363       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14365       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366   (eval $ac_compile) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } 2>conftest.err; then
14370         soname=conftest
14371         lib=conftest
14372         libobjs=conftest.$ac_objext
14373         deplibs=
14374         wl=$lt_prog_compiler_wl_F77
14375         compiler_flags=-v
14376         linker_flags=-v
14377         verstring=
14378         output_objdir=.
14379         libname=conftest
14380         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14381         allow_undefined_flag_F77=
14382         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14383   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }
14387         then
14388           archive_cmds_need_lc_F77=no
14389         else
14390           archive_cmds_need_lc_F77=yes
14391         fi
14392         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14393       else
14394         cat conftest.err 1>&5
14395       fi
14396       $rm conftest*
14397       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14398 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14399       ;;
14400     esac
14401   fi
14402   ;;
14403 esac
14405 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14406 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14407 library_names_spec=
14408 libname_spec='lib$name'
14409 soname_spec=
14410 shrext_cmds=".so"
14411 postinstall_cmds=
14412 postuninstall_cmds=
14413 finish_cmds=
14414 finish_eval=
14415 shlibpath_var=
14416 shlibpath_overrides_runpath=unknown
14417 version_type=none
14418 dynamic_linker="$host_os ld.so"
14419 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14420 if test "$GCC" = yes; then
14421   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14422   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14423     # if the path contains ";" then we assume it to be the separator
14424     # otherwise default to the standard path separator (i.e. ":") - it is
14425     # assumed that no part of a normal pathname contains ";" but that should
14426     # okay in the real world where ";" in dirpaths is itself problematic.
14427     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14428   else
14429     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14430   fi
14431 else
14432   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14434 need_lib_prefix=unknown
14435 hardcode_into_libs=no
14437 # when you set need_version to no, make sure it does not cause -set_version
14438 # flags to be left without arguments
14439 need_version=unknown
14441 case $host_os in
14442 aix3*)
14443   version_type=linux
14444   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14445   shlibpath_var=LIBPATH
14447   # AIX 3 has no versioning support, so we append a major version to the name.
14448   soname_spec='${libname}${release}${shared_ext}$major'
14449   ;;
14451 aix4* | aix5*)
14452   version_type=linux
14453   need_lib_prefix=no
14454   need_version=no
14455   hardcode_into_libs=yes
14456   if test "$host_cpu" = ia64; then
14457     # AIX 5 supports IA64
14458     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14459     shlibpath_var=LD_LIBRARY_PATH
14460   else
14461     # With GCC up to 2.95.x, collect2 would create an import file
14462     # for dependence libraries.  The import file would start with
14463     # the line `#! .'.  This would cause the generated library to
14464     # depend on `.', always an invalid library.  This was fixed in
14465     # development snapshots of GCC prior to 3.0.
14466     case $host_os in
14467       aix4 | aix4.[01] | aix4.[01].*)
14468       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14469            echo ' yes '
14470            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14471         :
14472       else
14473         can_build_shared=no
14474       fi
14475       ;;
14476     esac
14477     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14478     # soname into executable. Probably we can add versioning support to
14479     # collect2, so additional links can be useful in future.
14480     if test "$aix_use_runtimelinking" = yes; then
14481       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14482       # instead of lib<name>.a to let people know that these are not
14483       # typical AIX shared libraries.
14484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485     else
14486       # We preserve .a as extension for shared libraries through AIX4.2
14487       # and later when we are not doing run time linking.
14488       library_names_spec='${libname}${release}.a $libname.a'
14489       soname_spec='${libname}${release}${shared_ext}$major'
14490     fi
14491     shlibpath_var=LIBPATH
14492   fi
14493   ;;
14495 amigaos*)
14496   library_names_spec='$libname.ixlibrary $libname.a'
14497   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14498   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'
14499   ;;
14501 beos*)
14502   library_names_spec='${libname}${shared_ext}'
14503   dynamic_linker="$host_os ld.so"
14504   shlibpath_var=LIBRARY_PATH
14505   ;;
14507 bsdi4*)
14508   version_type=linux
14509   need_version=no
14510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511   soname_spec='${libname}${release}${shared_ext}$major'
14512   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14515   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14516   # the default ld.so.conf also contains /usr/contrib/lib and
14517   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14518   # libtool to hard-code these into programs
14519   ;;
14521 cygwin* | mingw* | pw32*)
14522   version_type=windows
14523   shrext_cmds=".dll"
14524   need_version=no
14525   need_lib_prefix=no
14527   case $GCC,$host_os in
14528   yes,cygwin* | yes,mingw* | yes,pw32*)
14529     library_names_spec='$libname.dll.a'
14530     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14531     postinstall_cmds='base_file=`basename \${file}`~
14532       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14533       dldir=$destdir/`dirname \$dlpath`~
14534       test -d \$dldir || mkdir -p \$dldir~
14535       $install_prog $dir/$dlname \$dldir/$dlname'
14536     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14537       dlpath=$dir/\$dldll~
14538        $rm \$dlpath'
14539     shlibpath_overrides_runpath=yes
14541     case $host_os in
14542     cygwin*)
14543       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14544       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14545       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14546       ;;
14547     mingw*)
14548       # MinGW DLLs use traditional 'lib' prefix
14549       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14550       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14552         # It is most probably a Windows format PATH printed by
14553         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14554         # path with ; separators, and with drive letters. We can handle the
14555         # drive letters (cygwin fileutils understands them), so leave them,
14556         # especially as we might pass files found there to a mingw objdump,
14557         # which wouldn't understand a cygwinified path. Ahh.
14558         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14559       else
14560         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14561       fi
14562       ;;
14563     pw32*)
14564       # pw32 DLLs use 'pw' prefix rather than 'lib'
14565       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14566       ;;
14567     esac
14568     ;;
14570   *)
14571     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14572     ;;
14573   esac
14574   dynamic_linker='Win32 ld.exe'
14575   # FIXME: first we should search . and the directory the executable is in
14576   shlibpath_var=PATH
14577   ;;
14579 darwin* | rhapsody*)
14580   dynamic_linker="$host_os dyld"
14581   version_type=darwin
14582   need_lib_prefix=no
14583   need_version=no
14584   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14585   soname_spec='${libname}${release}${major}$shared_ext'
14586   shlibpath_overrides_runpath=yes
14587   shlibpath_var=DYLD_LIBRARY_PATH
14588   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14589   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14590   if test "$GCC" = yes; then
14591     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"`
14592   else
14593     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14594   fi
14595   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14596   ;;
14598 dgux*)
14599   version_type=linux
14600   need_lib_prefix=no
14601   need_version=no
14602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14603   soname_spec='${libname}${release}${shared_ext}$major'
14604   shlibpath_var=LD_LIBRARY_PATH
14605   ;;
14607 freebsd1*)
14608   dynamic_linker=no
14609   ;;
14611 kfreebsd*-gnu)
14612   version_type=linux
14613   need_lib_prefix=no
14614   need_version=no
14615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616   soname_spec='${libname}${release}${shared_ext}$major'
14617   shlibpath_var=LD_LIBRARY_PATH
14618   shlibpath_overrides_runpath=no
14619   hardcode_into_libs=yes
14620   dynamic_linker='GNU ld.so'
14621   ;;
14623 freebsd*)
14624   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14625   version_type=freebsd-$objformat
14626   case $version_type in
14627     freebsd-elf*)
14628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629       need_version=no
14630       need_lib_prefix=no
14631       ;;
14632     freebsd-*)
14633       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14634       need_version=yes
14635       ;;
14636   esac
14637   shlibpath_var=LD_LIBRARY_PATH
14638   case $host_os in
14639   freebsd2*)
14640     shlibpath_overrides_runpath=yes
14641     ;;
14642   freebsd3.01* | freebsdelf3.01*)
14643     shlibpath_overrides_runpath=yes
14644     hardcode_into_libs=yes
14645     ;;
14646   *) # from 3.2 on
14647     shlibpath_overrides_runpath=no
14648     hardcode_into_libs=yes
14649     ;;
14650   esac
14651   ;;
14653 gnu*)
14654   version_type=linux
14655   need_lib_prefix=no
14656   need_version=no
14657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14658   soname_spec='${libname}${release}${shared_ext}$major'
14659   shlibpath_var=LD_LIBRARY_PATH
14660   hardcode_into_libs=yes
14661   ;;
14663 hpux9* | hpux10* | hpux11*)
14664   # Give a soname corresponding to the major version so that dld.sl refuses to
14665   # link against other versions.
14666   version_type=sunos
14667   need_lib_prefix=no
14668   need_version=no
14669   case "$host_cpu" in
14670   ia64*)
14671     shrext_cmds='.so'
14672     hardcode_into_libs=yes
14673     dynamic_linker="$host_os dld.so"
14674     shlibpath_var=LD_LIBRARY_PATH
14675     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677     soname_spec='${libname}${release}${shared_ext}$major'
14678     if test "X$HPUX_IA64_MODE" = X32; then
14679       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14680     else
14681       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14682     fi
14683     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14684     ;;
14685    hppa*64*)
14686      shrext_cmds='.sl'
14687      hardcode_into_libs=yes
14688      dynamic_linker="$host_os dld.sl"
14689      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14690      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692      soname_spec='${libname}${release}${shared_ext}$major'
14693      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14694      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14695      ;;
14696    *)
14697     shrext_cmds='.sl'
14698     dynamic_linker="$host_os dld.sl"
14699     shlibpath_var=SHLIB_PATH
14700     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702     soname_spec='${libname}${release}${shared_ext}$major'
14703     ;;
14704   esac
14705   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14706   postinstall_cmds='chmod 555 $lib'
14707   ;;
14709 irix5* | irix6* | nonstopux*)
14710   case $host_os in
14711     nonstopux*) version_type=nonstopux ;;
14712     *)
14713         if test "$lt_cv_prog_gnu_ld" = yes; then
14714                 version_type=linux
14715         else
14716                 version_type=irix
14717         fi ;;
14718   esac
14719   need_lib_prefix=no
14720   need_version=no
14721   soname_spec='${libname}${release}${shared_ext}$major'
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14723   case $host_os in
14724   irix5* | nonstopux*)
14725     libsuff= shlibsuff=
14726     ;;
14727   *)
14728     case $LD in # libtool.m4 will add one of these switches to LD
14729     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14730       libsuff= shlibsuff= libmagic=32-bit;;
14731     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14732       libsuff=32 shlibsuff=N32 libmagic=N32;;
14733     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14734       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14735     *) libsuff= shlibsuff= libmagic=never-match;;
14736     esac
14737     ;;
14738   esac
14739   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14740   shlibpath_overrides_runpath=no
14741   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14742   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14743   hardcode_into_libs=yes
14744   ;;
14746 # No shared lib support for Linux oldld, aout, or coff.
14747 linux*oldld* | linux*aout* | linux*coff*)
14748   dynamic_linker=no
14749   ;;
14751 # This must be Linux ELF.
14752 linux*)
14753   version_type=linux
14754   need_lib_prefix=no
14755   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14759   shlibpath_var=LD_LIBRARY_PATH
14760   shlibpath_overrides_runpath=no
14761   # This implies no fast_install, which is unacceptable.
14762   # Some rework will be needed to allow for fast_install
14763   # before this can be enabled.
14764   hardcode_into_libs=yes
14766   # Append ld.so.conf contents to the search path
14767   if test -f /etc/ld.so.conf; then
14768     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14769     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14770   fi
14772   # We used to test for /lib/ld.so.1 and disable shared libraries on
14773   # powerpc, because MkLinux only supported shared libraries with the
14774   # GNU dynamic linker.  Since this was broken with cross compilers,
14775   # most powerpc-linux boxes support dynamic linking these days and
14776   # people can always --disable-shared, the test was removed, and we
14777   # assume the GNU/Linux dynamic linker is in use.
14778   dynamic_linker='GNU/Linux ld.so'
14779   ;;
14781 netbsdelf*-gnu)
14782   version_type=linux
14783   need_lib_prefix=no
14784   need_version=no
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   shlibpath_overrides_runpath=no
14789   hardcode_into_libs=yes
14790   dynamic_linker='NetBSD ld.elf_so'
14791   ;;
14793 knetbsd*-gnu)
14794   version_type=linux
14795   need_lib_prefix=no
14796   need_version=no
14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798   soname_spec='${libname}${release}${shared_ext}$major'
14799   shlibpath_var=LD_LIBRARY_PATH
14800   shlibpath_overrides_runpath=no
14801   hardcode_into_libs=yes
14802   dynamic_linker='GNU ld.so'
14803   ;;
14805 netbsd*)
14806   version_type=sunos
14807   need_lib_prefix=no
14808   need_version=no
14809   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14811     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14812     dynamic_linker='NetBSD (a.out) ld.so'
14813   else
14814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14815     soname_spec='${libname}${release}${shared_ext}$major'
14816     dynamic_linker='NetBSD ld.elf_so'
14817   fi
14818   shlibpath_var=LD_LIBRARY_PATH
14819   shlibpath_overrides_runpath=yes
14820   hardcode_into_libs=yes
14821   ;;
14823 newsos6)
14824   version_type=linux
14825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826   shlibpath_var=LD_LIBRARY_PATH
14827   shlibpath_overrides_runpath=yes
14828   ;;
14830 nto-qnx*)
14831   version_type=linux
14832   need_lib_prefix=no
14833   need_version=no
14834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835   soname_spec='${libname}${release}${shared_ext}$major'
14836   shlibpath_var=LD_LIBRARY_PATH
14837   shlibpath_overrides_runpath=yes
14838   ;;
14840 openbsd*)
14841   version_type=sunos
14842   need_lib_prefix=no
14843   need_version=yes
14844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846   shlibpath_var=LD_LIBRARY_PATH
14847   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14848     case $host_os in
14849       openbsd2.[89] | openbsd2.[89].*)
14850         shlibpath_overrides_runpath=no
14851         ;;
14852       *)
14853         shlibpath_overrides_runpath=yes
14854         ;;
14855       esac
14856   else
14857     shlibpath_overrides_runpath=yes
14858   fi
14859   ;;
14861 os2*)
14862   libname_spec='$name'
14863   shrext_cmds=".dll"
14864   need_lib_prefix=no
14865   library_names_spec='$libname${shared_ext} $libname.a'
14866   dynamic_linker='OS/2 ld.exe'
14867   shlibpath_var=LIBPATH
14868   ;;
14870 osf3* | osf4* | osf5*)
14871   version_type=osf
14872   need_lib_prefix=no
14873   need_version=no
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876   shlibpath_var=LD_LIBRARY_PATH
14877   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14878   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14879   ;;
14881 sco3.2v5*)
14882   version_type=osf
14883   soname_spec='${libname}${release}${shared_ext}$major'
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885   shlibpath_var=LD_LIBRARY_PATH
14886   ;;
14888 solaris*)
14889   version_type=linux
14890   need_lib_prefix=no
14891   need_version=no
14892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893   soname_spec='${libname}${release}${shared_ext}$major'
14894   shlibpath_var=LD_LIBRARY_PATH
14895   shlibpath_overrides_runpath=yes
14896   hardcode_into_libs=yes
14897   # ldd complains unless libraries are executable
14898   postinstall_cmds='chmod +x $lib'
14899   ;;
14901 sunos4*)
14902   version_type=sunos
14903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14904   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14905   shlibpath_var=LD_LIBRARY_PATH
14906   shlibpath_overrides_runpath=yes
14907   if test "$with_gnu_ld" = yes; then
14908     need_lib_prefix=no
14909   fi
14910   need_version=yes
14911   ;;
14913 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14914   version_type=linux
14915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916   soname_spec='${libname}${release}${shared_ext}$major'
14917   shlibpath_var=LD_LIBRARY_PATH
14918   case $host_vendor in
14919     sni)
14920       shlibpath_overrides_runpath=no
14921       need_lib_prefix=no
14922       export_dynamic_flag_spec='${wl}-Blargedynsym'
14923       runpath_var=LD_RUN_PATH
14924       ;;
14925     siemens)
14926       need_lib_prefix=no
14927       ;;
14928     motorola)
14929       need_lib_prefix=no
14930       need_version=no
14931       shlibpath_overrides_runpath=no
14932       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14933       ;;
14934   esac
14935   ;;
14937 sysv4*MP*)
14938   if test -d /usr/nec ;then
14939     version_type=linux
14940     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14941     soname_spec='$libname${shared_ext}.$major'
14942     shlibpath_var=LD_LIBRARY_PATH
14943   fi
14944   ;;
14946 uts4*)
14947   version_type=linux
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   ;;
14954   dynamic_linker=no
14955   ;;
14956 esac
14957 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14958 echo "${ECHO_T}$dynamic_linker" >&6
14959 test "$dynamic_linker" = no && can_build_shared=no
14961 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14962 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14963 hardcode_action_F77=
14964 if test -n "$hardcode_libdir_flag_spec_F77" || \
14965    test -n "$runpath_var F77" || \
14966    test "X$hardcode_automatic_F77"="Xyes" ; then
14968   # We can hardcode non-existant directories.
14969   if test "$hardcode_direct_F77" != no &&
14970      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14971      # have to relink, otherwise we might link with an installed library
14972      # when we should be linking with a yet-to-be-installed one
14973      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14974      test "$hardcode_minus_L_F77" != no; then
14975     # Linking always hardcodes the temporary library directory.
14976     hardcode_action_F77=relink
14977   else
14978     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14979     hardcode_action_F77=immediate
14980   fi
14981 else
14982   # We cannot hardcode anything, or else we can only hardcode existing
14983   # directories.
14984   hardcode_action_F77=unsupported
14986 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14987 echo "${ECHO_T}$hardcode_action_F77" >&6
14989 if test "$hardcode_action_F77" = relink; then
14990   # Fast installation is not supported
14991   enable_fast_install=no
14992 elif test "$shlibpath_overrides_runpath" = yes ||
14993      test "$enable_shared" = no; then
14994   # Fast installation is not necessary
14995   enable_fast_install=needless
14998 striplib=
14999 old_striplib=
15000 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15001 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15002 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15003   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15004   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15005   echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15007 else
15008 # FIXME - insert some real tests, host_os isn't really good enough
15009   case $host_os in
15010    darwin*)
15011        if test -n "$STRIP" ; then
15012          striplib="$STRIP -x"
15013          echo "$as_me:$LINENO: result: yes" >&5
15014 echo "${ECHO_T}yes" >&6
15015        else
15016   echo "$as_me:$LINENO: result: no" >&5
15017 echo "${ECHO_T}no" >&6
15019        ;;
15020    *)
15021   echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15023     ;;
15024   esac
15029 # The else clause should only fire when bootstrapping the
15030 # libtool distribution, otherwise you forgot to ship ltmain.sh
15031 # with your package, and you will get complaints that there are
15032 # no rules to generate ltmain.sh.
15033 if test -f "$ltmain"; then
15034   # See if we are running on zsh, and set the options which allow our commands through
15035   # without removal of \ escapes.
15036   if test -n "${ZSH_VERSION+set}" ; then
15037     setopt NO_GLOB_SUBST
15038   fi
15039   # Now quote all the things that may contain metacharacters while being
15040   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15041   # variables and quote the copies for generation of the libtool script.
15042   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15043     SED SHELL STRIP \
15044     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15045     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15046     deplibs_check_method reload_flag reload_cmds need_locks \
15047     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15048     lt_cv_sys_global_symbol_to_c_name_address \
15049     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15050     old_postinstall_cmds old_postuninstall_cmds \
15051     compiler_F77 \
15052     CC_F77 \
15053     LD_F77 \
15054     lt_prog_compiler_wl_F77 \
15055     lt_prog_compiler_pic_F77 \
15056     lt_prog_compiler_static_F77 \
15057     lt_prog_compiler_no_builtin_flag_F77 \
15058     export_dynamic_flag_spec_F77 \
15059     thread_safe_flag_spec_F77 \
15060     whole_archive_flag_spec_F77 \
15061     enable_shared_with_static_runtimes_F77 \
15062     old_archive_cmds_F77 \
15063     old_archive_from_new_cmds_F77 \
15064     predep_objects_F77 \
15065     postdep_objects_F77 \
15066     predeps_F77 \
15067     postdeps_F77 \
15068     compiler_lib_search_path_F77 \
15069     archive_cmds_F77 \
15070     archive_expsym_cmds_F77 \
15071     postinstall_cmds_F77 \
15072     postuninstall_cmds_F77 \
15073     old_archive_from_expsyms_cmds_F77 \
15074     allow_undefined_flag_F77 \
15075     no_undefined_flag_F77 \
15076     export_symbols_cmds_F77 \
15077     hardcode_libdir_flag_spec_F77 \
15078     hardcode_libdir_flag_spec_ld_F77 \
15079     hardcode_libdir_separator_F77 \
15080     hardcode_automatic_F77 \
15081     module_cmds_F77 \
15082     module_expsym_cmds_F77 \
15083     lt_cv_prog_compiler_c_o_F77 \
15084     exclude_expsyms_F77 \
15085     include_expsyms_F77; do
15087     case $var in
15088     old_archive_cmds_F77 | \
15089     old_archive_from_new_cmds_F77 | \
15090     archive_cmds_F77 | \
15091     archive_expsym_cmds_F77 | \
15092     module_cmds_F77 | \
15093     module_expsym_cmds_F77 | \
15094     old_archive_from_expsyms_cmds_F77 | \
15095     export_symbols_cmds_F77 | \
15096     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15097     postinstall_cmds | postuninstall_cmds | \
15098     old_postinstall_cmds | old_postuninstall_cmds | \
15099     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15100       # Double-quote double-evaled strings.
15101       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15102       ;;
15103     *)
15104       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15105       ;;
15106     esac
15107   done
15109   case $lt_echo in
15110   *'\$0 --fallback-echo"')
15111     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15112     ;;
15113   esac
15115 cfgfile="$ofile"
15117   cat <<__EOF__ >> "$cfgfile"
15118 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15122 # Shell to use when invoking shell scripts.
15123 SHELL=$lt_SHELL
15125 # Whether or not to build shared libraries.
15126 build_libtool_libs=$enable_shared
15128 # Whether or not to build static libraries.
15129 build_old_libs=$enable_static
15131 # Whether or not to add -lc for building shared libraries.
15132 build_libtool_need_lc=$archive_cmds_need_lc_F77
15134 # Whether or not to disallow shared libs when runtime libs are static
15135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15137 # Whether or not to optimize for fast installation.
15138 fast_install=$enable_fast_install
15140 # The host system.
15141 host_alias=$host_alias
15142 host=$host
15144 # An echo program that does not interpret backslashes.
15145 echo=$lt_echo
15147 # The archiver.
15148 AR=$lt_AR
15149 AR_FLAGS=$lt_AR_FLAGS
15151 # A C compiler.
15152 LTCC=$lt_LTCC
15154 # A language-specific compiler.
15155 CC=$lt_compiler_F77
15157 # Is the compiler the GNU C compiler?
15158 with_gcc=$GCC_F77
15160 # An ERE matcher.
15161 EGREP=$lt_EGREP
15163 # The linker used to build libraries.
15164 LD=$lt_LD_F77
15166 # Whether we need hard or soft links.
15167 LN_S=$lt_LN_S
15169 # A BSD-compatible nm program.
15170 NM=$lt_NM
15172 # A symbol stripping program
15173 STRIP=$lt_STRIP
15175 # Used to examine libraries when file_magic_cmd begins "file"
15176 MAGIC_CMD=$MAGIC_CMD
15178 # Used on cygwin: DLL creation program.
15179 DLLTOOL="$DLLTOOL"
15181 # Used on cygwin: object dumper.
15182 OBJDUMP="$OBJDUMP"
15184 # Used on cygwin: assembler.
15185 AS="$AS"
15187 # The name of the directory that contains temporary libtool files.
15188 objdir=$objdir
15190 # How to create reloadable object files.
15191 reload_flag=$lt_reload_flag
15192 reload_cmds=$lt_reload_cmds
15194 # How to pass a linker flag through the compiler.
15195 wl=$lt_lt_prog_compiler_wl_F77
15197 # Object file suffix (normally "o").
15198 objext="$ac_objext"
15200 # Old archive suffix (normally "a").
15201 libext="$libext"
15203 # Shared library suffix (normally ".so").
15204 shrext_cmds='$shrext_cmds'
15206 # Executable file suffix (normally "").
15207 exeext="$exeext"
15209 # Additional compiler flags for building library objects.
15210 pic_flag=$lt_lt_prog_compiler_pic_F77
15211 pic_mode=$pic_mode
15213 # What is the maximum length of a command?
15214 max_cmd_len=$lt_cv_sys_max_cmd_len
15216 # Does compiler simultaneously support -c and -o options?
15217 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15219 # Must we lock files when doing compilation ?
15220 need_locks=$lt_need_locks
15222 # Do we need the lib prefix for modules?
15223 need_lib_prefix=$need_lib_prefix
15225 # Do we need a version for libraries?
15226 need_version=$need_version
15228 # Whether dlopen is supported.
15229 dlopen_support=$enable_dlopen
15231 # Whether dlopen of programs is supported.
15232 dlopen_self=$enable_dlopen_self
15234 # Whether dlopen of statically linked programs is supported.
15235 dlopen_self_static=$enable_dlopen_self_static
15237 # Compiler flag to prevent dynamic linking.
15238 link_static_flag=$lt_lt_prog_compiler_static_F77
15240 # Compiler flag to turn off builtin functions.
15241 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15243 # Compiler flag to allow reflexive dlopens.
15244 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15246 # Compiler flag to generate shared objects directly from archives.
15247 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15249 # Compiler flag to generate thread-safe objects.
15250 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15252 # Library versioning type.
15253 version_type=$version_type
15255 # Format of library name prefix.
15256 libname_spec=$lt_libname_spec
15258 # List of archive names.  First name is the real one, the rest are links.
15259 # The last name is the one that the linker finds with -lNAME.
15260 library_names_spec=$lt_library_names_spec
15262 # The coded name of the library, if different from the real name.
15263 soname_spec=$lt_soname_spec
15265 # Commands used to build and install an old-style archive.
15266 RANLIB=$lt_RANLIB
15267 old_archive_cmds=$lt_old_archive_cmds_F77
15268 old_postinstall_cmds=$lt_old_postinstall_cmds
15269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15271 # Create an old-style archive from a shared archive.
15272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15274 # Create a temporary old-style archive to link instead of a shared archive.
15275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15277 # Commands used to build and install a shared archive.
15278 archive_cmds=$lt_archive_cmds_F77
15279 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15280 postinstall_cmds=$lt_postinstall_cmds
15281 postuninstall_cmds=$lt_postuninstall_cmds
15283 # Commands used to build a loadable module (assumed same as above if empty)
15284 module_cmds=$lt_module_cmds_F77
15285 module_expsym_cmds=$lt_module_expsym_cmds_F77
15287 # Commands to strip libraries.
15288 old_striplib=$lt_old_striplib
15289 striplib=$lt_striplib
15291 # Dependencies to place before the objects being linked to create a
15292 # shared library.
15293 predep_objects=$lt_predep_objects_F77
15295 # Dependencies to place after the objects being linked to create a
15296 # shared library.
15297 postdep_objects=$lt_postdep_objects_F77
15299 # Dependencies to place before the objects being linked to create a
15300 # shared library.
15301 predeps=$lt_predeps_F77
15303 # Dependencies to place after the objects being linked to create a
15304 # shared library.
15305 postdeps=$lt_postdeps_F77
15307 # The library search path used internally by the compiler when linking
15308 # a shared library.
15309 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15311 # Method to check whether dependent libraries are shared objects.
15312 deplibs_check_method=$lt_deplibs_check_method
15314 # Command to use when deplibs_check_method == file_magic.
15315 file_magic_cmd=$lt_file_magic_cmd
15317 # Flag that allows shared libraries with undefined symbols to be built.
15318 allow_undefined_flag=$lt_allow_undefined_flag_F77
15320 # Flag that forces no undefined symbols.
15321 no_undefined_flag=$lt_no_undefined_flag_F77
15323 # Commands used to finish a libtool library installation in a directory.
15324 finish_cmds=$lt_finish_cmds
15326 # Same as above, but a single script fragment to be evaled but not shown.
15327 finish_eval=$lt_finish_eval
15329 # Take the output of nm and produce a listing of raw symbols and C names.
15330 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15332 # Transform the output of nm in a proper C declaration
15333 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15335 # Transform the output of nm in a C name address pair
15336 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15338 # This is the shared library runtime path variable.
15339 runpath_var=$runpath_var
15341 # This is the shared library path variable.
15342 shlibpath_var=$shlibpath_var
15344 # Is shlibpath searched before the hard-coded library search path?
15345 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15347 # How to hardcode a shared library path into an executable.
15348 hardcode_action=$hardcode_action_F77
15350 # Whether we should hardcode library paths into libraries.
15351 hardcode_into_libs=$hardcode_into_libs
15353 # Flag to hardcode \$libdir into a binary during linking.
15354 # This must work even if \$libdir does not exist.
15355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15357 # If ld is used when linking, flag to hardcode \$libdir into
15358 # a binary during linking. This must work even if \$libdir does
15359 # not exist.
15360 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15362 # Whether we need a single -rpath flag with a separated argument.
15363 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15365 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15366 # resulting binary.
15367 hardcode_direct=$hardcode_direct_F77
15369 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15370 # resulting binary.
15371 hardcode_minus_L=$hardcode_minus_L_F77
15373 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15374 # the resulting binary.
15375 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15377 # Set to yes if building a shared library automatically hardcodes DIR into the library
15378 # and all subsequent libraries and executables linked against it.
15379 hardcode_automatic=$hardcode_automatic_F77
15381 # Variables whose values should be saved in libtool wrapper scripts and
15382 # restored at relink time.
15383 variables_saved_for_relink="$variables_saved_for_relink"
15385 # Whether libtool must link a program against all its dependency libraries.
15386 link_all_deplibs=$link_all_deplibs_F77
15388 # Compile-time system search path for libraries
15389 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15391 # Run-time system search path for libraries
15392 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15394 # Fix the shell variable \$srcfile for the compiler.
15395 fix_srcfile_path="$fix_srcfile_path_F77"
15397 # Set to yes if exported symbols are required.
15398 always_export_symbols=$always_export_symbols_F77
15400 # The commands to list exported symbols.
15401 export_symbols_cmds=$lt_export_symbols_cmds_F77
15403 # The commands to extract the exported symbol list from a shared archive.
15404 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15406 # Symbols that should not be listed in the preloaded symbols.
15407 exclude_expsyms=$lt_exclude_expsyms_F77
15409 # Symbols that must always be exported.
15410 include_expsyms=$lt_include_expsyms_F77
15412 # ### END LIBTOOL TAG CONFIG: $tagname
15414 __EOF__
15417 else
15418   # If there is no Makefile yet, we rely on a make rule to execute
15419   # `config.status --recheck' to rerun these tests and create the
15420   # libtool script then.
15421   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15422   if test -f "$ltmain_in"; then
15423     test -f Makefile && make "$ltmain"
15424   fi
15428 ac_ext=c
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15434 CC="$lt_save_CC"
15436         else
15437           tagname=""
15438         fi
15439         ;;
15441       GCJ)
15442         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15443           
15446 # Source file extension for Java test sources.
15447 ac_ext=java
15449 # Object file extension for compiled Java test sources.
15450 objext=o
15451 objext_GCJ=$objext
15453 # Code to be used in simple compile tests
15454 lt_simple_compile_test_code="class foo {}\n"
15456 # Code to be used in simple link tests
15457 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15459 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15461 # If no C compiler was specified, use CC.
15462 LTCC=${LTCC-"$CC"}
15464 # Allow CC to be a program name with arguments.
15465 compiler=$CC
15468 # Allow CC to be a program name with arguments.
15469 lt_save_CC="$CC"
15470 CC=${GCJ-"gcj"}
15471 compiler=$CC
15472 compiler_GCJ=$CC
15474 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15475 archive_cmds_need_lc_GCJ=no
15477 ## CAVEAT EMPTOR:
15478 ## There is no encapsulation within the following macros, do not change
15479 ## the running order or otherwise move them around unless you know exactly
15480 ## what you are doing...
15482 lt_prog_compiler_no_builtin_flag_GCJ=
15484 if test "$GCC" = yes; then
15485   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15487   
15488 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15489 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15490 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   lt_cv_prog_compiler_rtti_exceptions=no
15494   ac_outfile=conftest.$ac_objext
15495    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496    lt_compiler_flag="-fno-rtti -fno-exceptions"
15497    # Insert the option either (1) after the last *FLAGS variable, or
15498    # (2) before a word containing "conftest.", or (3) at the end.
15499    # Note that $ac_compile itself does not contain backslashes and begins
15500    # with a dollar sign (not a hyphen), so the echo should work correctly.
15501    # The option is referenced via a variable to avoid confusing sed.
15502    lt_compile=`echo "$ac_compile" | $SED \
15503    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505    -e 's:$: $lt_compiler_flag:'`
15506    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15507    (eval "$lt_compile" 2>conftest.err)
15508    ac_status=$?
15509    cat conftest.err >&5
15510    echo "$as_me:__oline__: \$? = $ac_status" >&5
15511    if (exit $ac_status) && test -s "$ac_outfile"; then
15512      # The compiler can only warn and ignore the option if not recognized
15513      # So say no if there are warnings
15514      if test ! -s conftest.err; then
15515        lt_cv_prog_compiler_rtti_exceptions=yes
15516      fi
15517    fi
15518    $rm conftest*
15521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15522 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15525     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15526 else
15527     :
15532 lt_prog_compiler_wl_GCJ=
15533 lt_prog_compiler_pic_GCJ=
15534 lt_prog_compiler_static_GCJ=
15536 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15537 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15539   if test "$GCC" = yes; then
15540     lt_prog_compiler_wl_GCJ='-Wl,'
15541     lt_prog_compiler_static_GCJ='-static'
15543     case $host_os in
15544       aix*)
15545       # All AIX code is PIC.
15546       if test "$host_cpu" = ia64; then
15547         # AIX 5 now supports IA64 processor
15548         lt_prog_compiler_static_GCJ='-Bstatic'
15549       fi
15550       ;;
15552     amigaos*)
15553       # FIXME: we need at least 68020 code to build shared libraries, but
15554       # adding the `-m68020' flag to GCC prevents building anything better,
15555       # like `-m68040'.
15556       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15557       ;;
15559     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15560       # PIC is the default for these OSes.
15561       ;;
15563     mingw* | pw32* | os2*)
15564       # This hack is so that the source file can tell whether it is being
15565       # built for inclusion in a dll (and should export symbols for example).
15566       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15567       ;;
15569     darwin* | rhapsody*)
15570       # PIC is the default on this platform
15571       # Common symbols not allowed in MH_DYLIB files
15572       lt_prog_compiler_pic_GCJ='-fno-common'
15573       ;;
15575     msdosdjgpp*)
15576       # Just because we use GCC doesn't mean we suddenly get shared libraries
15577       # on systems that don't support them.
15578       lt_prog_compiler_can_build_shared_GCJ=no
15579       enable_shared=no
15580       ;;
15582     sysv4*MP*)
15583       if test -d /usr/nec; then
15584         lt_prog_compiler_pic_GCJ=-Kconform_pic
15585       fi
15586       ;;
15588     hpux*)
15589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15590       # not for PA HP-UX.
15591       case "$host_cpu" in
15592       hppa*64*|ia64*)
15593         # +Z the default
15594         ;;
15595       *)
15596         lt_prog_compiler_pic_GCJ='-fPIC'
15597         ;;
15598       esac
15599       ;;
15601     *)
15602       lt_prog_compiler_pic_GCJ='-fPIC'
15603       ;;
15604     esac
15605   else
15606     # PORTME Check for flag to pass linker flags through the system compiler.
15607     case $host_os in
15608     aix*)
15609       lt_prog_compiler_wl_GCJ='-Wl,'
15610       if test "$host_cpu" = ia64; then
15611         # AIX 5 now supports IA64 processor
15612         lt_prog_compiler_static_GCJ='-Bstatic'
15613       else
15614         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15615       fi
15616       ;;
15618     mingw* | pw32* | os2*)
15619       # This hack is so that the source file can tell whether it is being
15620       # built for inclusion in a dll (and should export symbols for example).
15621       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15622       ;;
15624     hpux9* | hpux10* | hpux11*)
15625       lt_prog_compiler_wl_GCJ='-Wl,'
15626       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15627       # not for PA HP-UX.
15628       case "$host_cpu" in
15629       hppa*64*|ia64*)
15630         # +Z the default
15631         ;;
15632       *)
15633         lt_prog_compiler_pic_GCJ='+Z'
15634         ;;
15635       esac
15636       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15637       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15638       ;;
15640     irix5* | irix6* | nonstopux*)
15641       lt_prog_compiler_wl_GCJ='-Wl,'
15642       # PIC (with -KPIC) is the default.
15643       lt_prog_compiler_static_GCJ='-non_shared'
15644       ;;
15646     newsos6)
15647       lt_prog_compiler_pic_GCJ='-KPIC'
15648       lt_prog_compiler_static_GCJ='-Bstatic'
15649       ;;
15651     linux*)
15652       case $CC in
15653       icc* | ecc*)
15654         lt_prog_compiler_wl_GCJ='-Wl,'
15655         lt_prog_compiler_pic_GCJ='-KPIC'
15656         lt_prog_compiler_static_GCJ='-static'
15657         ;;
15658       ccc*)
15659         lt_prog_compiler_wl_GCJ='-Wl,'
15660         # All Alpha code is PIC.
15661         lt_prog_compiler_static_GCJ='-non_shared'
15662         ;;
15663       esac
15664       ;;
15666     osf3* | osf4* | osf5*)
15667       lt_prog_compiler_wl_GCJ='-Wl,'
15668       # All OSF/1 code is PIC.
15669       lt_prog_compiler_static_GCJ='-non_shared'
15670       ;;
15672     sco3.2v5*)
15673       lt_prog_compiler_pic_GCJ='-Kpic'
15674       lt_prog_compiler_static_GCJ='-dn'
15675       ;;
15677     solaris*)
15678       lt_prog_compiler_wl_GCJ='-Wl,'
15679       lt_prog_compiler_pic_GCJ='-KPIC'
15680       lt_prog_compiler_static_GCJ='-Bstatic'
15681       ;;
15683     sunos4*)
15684       lt_prog_compiler_wl_GCJ='-Qoption ld '
15685       lt_prog_compiler_pic_GCJ='-PIC'
15686       lt_prog_compiler_static_GCJ='-Bstatic'
15687       ;;
15689     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15690       lt_prog_compiler_wl_GCJ='-Wl,'
15691       lt_prog_compiler_pic_GCJ='-KPIC'
15692       lt_prog_compiler_static_GCJ='-Bstatic'
15693       ;;
15695     sysv4*MP*)
15696       if test -d /usr/nec ;then
15697         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15698         lt_prog_compiler_static_GCJ='-Bstatic'
15699       fi
15700       ;;
15702     uts4*)
15703       lt_prog_compiler_pic_GCJ='-pic'
15704       lt_prog_compiler_static_GCJ='-Bstatic'
15705       ;;
15707     *)
15708       lt_prog_compiler_can_build_shared_GCJ=no
15709       ;;
15710     esac
15711   fi
15713 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15714 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15717 # Check to make sure the PIC flag actually works.
15719 if test -n "$lt_prog_compiler_pic_GCJ"; then
15720   
15721 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15723 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15724   echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726   lt_prog_compiler_pic_works_GCJ=no
15727   ac_outfile=conftest.$ac_objext
15728    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15729    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15730    # Insert the option either (1) after the last *FLAGS variable, or
15731    # (2) before a word containing "conftest.", or (3) at the end.
15732    # Note that $ac_compile itself does not contain backslashes and begins
15733    # with a dollar sign (not a hyphen), so the echo should work correctly.
15734    # The option is referenced via a variable to avoid confusing sed.
15735    lt_compile=`echo "$ac_compile" | $SED \
15736    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15738    -e 's:$: $lt_compiler_flag:'`
15739    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15740    (eval "$lt_compile" 2>conftest.err)
15741    ac_status=$?
15742    cat conftest.err >&5
15743    echo "$as_me:__oline__: \$? = $ac_status" >&5
15744    if (exit $ac_status) && test -s "$ac_outfile"; then
15745      # The compiler can only warn and ignore the option if not recognized
15746      # So say no if there are warnings
15747      if test ! -s conftest.err; then
15748        lt_prog_compiler_pic_works_GCJ=yes
15749      fi
15750    fi
15751    $rm conftest*
15754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15757 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15758     case $lt_prog_compiler_pic_GCJ in
15759      "" | " "*) ;;
15760      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15761      esac
15762 else
15763     lt_prog_compiler_pic_GCJ=
15764      lt_prog_compiler_can_build_shared_GCJ=no
15768 case "$host_os" in
15769   # For platforms which do not support PIC, -DPIC is meaningless:
15770   *djgpp*)
15771     lt_prog_compiler_pic_GCJ=
15772     ;;
15773   *)
15774     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15775     ;;
15776 esac
15778 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15780 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   lt_cv_prog_compiler_c_o_GCJ=no
15784    $rm -r conftest 2>/dev/null
15785    mkdir conftest
15786    cd conftest
15787    mkdir out
15788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15790    lt_compiler_flag="-o out/conftest2.$ac_objext"
15791    # Insert the option either (1) after the last *FLAGS variable, or
15792    # (2) before a word containing "conftest.", or (3) at the end.
15793    # Note that $ac_compile itself does not contain backslashes and begins
15794    # with a dollar sign (not a hyphen), so the echo should work correctly.
15795    lt_compile=`echo "$ac_compile" | $SED \
15796    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798    -e 's:$: $lt_compiler_flag:'`
15799    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15800    (eval "$lt_compile" 2>out/conftest.err)
15801    ac_status=$?
15802    cat out/conftest.err >&5
15803    echo "$as_me:__oline__: \$? = $ac_status" >&5
15804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15805    then
15806      # The compiler can only warn and ignore the option if not recognized
15807      # So say no if there are warnings
15808      if test ! -s out/conftest.err; then
15809        lt_cv_prog_compiler_c_o_GCJ=yes
15810      fi
15811    fi
15812    chmod u+w .
15813    $rm conftest*
15814    # SGI C++ compiler will create directory out/ii_files/ for
15815    # template instantiation
15816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15817    $rm out/* && rmdir out
15818    cd ..
15819    rmdir conftest
15820    $rm conftest*
15823 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15827 hard_links="nottested"
15828 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15829   # do not overwrite the value of need_locks provided by the user
15830   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15832   hard_links=yes
15833   $rm conftest*
15834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15835   touch conftest.a
15836   ln conftest.a conftest.b 2>&5 || hard_links=no
15837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838   echo "$as_me:$LINENO: result: $hard_links" >&5
15839 echo "${ECHO_T}$hard_links" >&6
15840   if test "$hard_links" = no; then
15841     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15843     need_locks=warn
15844   fi
15845 else
15846   need_locks=no
15849 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15852   runpath_var=
15853   allow_undefined_flag_GCJ=
15854   enable_shared_with_static_runtimes_GCJ=no
15855   archive_cmds_GCJ=
15856   archive_expsym_cmds_GCJ=
15857   old_archive_From_new_cmds_GCJ=
15858   old_archive_from_expsyms_cmds_GCJ=
15859   export_dynamic_flag_spec_GCJ=
15860   whole_archive_flag_spec_GCJ=
15861   thread_safe_flag_spec_GCJ=
15862   hardcode_libdir_flag_spec_GCJ=
15863   hardcode_libdir_flag_spec_ld_GCJ=
15864   hardcode_libdir_separator_GCJ=
15865   hardcode_direct_GCJ=no
15866   hardcode_minus_L_GCJ=no
15867   hardcode_shlibpath_var_GCJ=unsupported
15868   link_all_deplibs_GCJ=unknown
15869   hardcode_automatic_GCJ=no
15870   module_cmds_GCJ=
15871   module_expsym_cmds_GCJ=
15872   always_export_symbols_GCJ=no
15873   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15874   # include_expsyms should be a list of space-separated symbols to be *always*
15875   # included in the symbol list
15876   include_expsyms_GCJ=
15877   # exclude_expsyms can be an extended regexp of symbols to exclude
15878   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15879   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15880   # as well as any symbol that contains `d'.
15881   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15882   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15883   # platforms (ab)use it in PIC code, but their linkers get confused if
15884   # the symbol is explicitly referenced.  Since portable code cannot
15885   # rely on this symbol name, it's probably fine to never include it in
15886   # preloaded symbol tables.
15887   extract_expsyms_cmds=
15889   case $host_os in
15890   cygwin* | mingw* | pw32*)
15891     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15892     # When not using gcc, we currently assume that we are using
15893     # Microsoft Visual C++.
15894     if test "$GCC" != yes; then
15895       with_gnu_ld=no
15896     fi
15897     ;;
15898   openbsd*)
15899     with_gnu_ld=no
15900     ;;
15901   esac
15903   ld_shlibs_GCJ=yes
15904   if test "$with_gnu_ld" = yes; then
15905     # If archive_cmds runs LD, not CC, wlarc should be empty
15906     wlarc='${wl}'
15908     # See if GNU ld supports shared libraries.
15909     case $host_os in
15910     aix3* | aix4* | aix5*)
15911       # On AIX/PPC, the GNU linker is very broken
15912       if test "$host_cpu" != ia64; then
15913         ld_shlibs_GCJ=no
15914         cat <<EOF 1>&2
15916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15917 *** to be unable to reliably create shared libraries on AIX.
15918 *** Therefore, libtool is disabling shared libraries support.  If you
15919 *** really care for shared libraries, you may want to modify your PATH
15920 *** so that a non-GNU linker is found, and then restart.
15923       fi
15924       ;;
15926     amigaos*)
15927       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)'
15928       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15929       hardcode_minus_L_GCJ=yes
15931       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15932       # that the semantics of dynamic libraries on AmigaOS, at least up
15933       # to version 4, is to share data among multiple programs linked
15934       # with the same dynamic library.  Since this doesn't match the
15935       # behavior of shared libraries on other platforms, we can't use
15936       # them.
15937       ld_shlibs_GCJ=no
15938       ;;
15940     beos*)
15941       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15942         allow_undefined_flag_GCJ=unsupported
15943         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15944         # support --undefined.  This deserves some investigation.  FIXME
15945         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946       else
15947         ld_shlibs_GCJ=no
15948       fi
15949       ;;
15951     cygwin* | mingw* | pw32*)
15952       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15953       # as there is no search path for DLLs.
15954       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955       allow_undefined_flag_GCJ=unsupported
15956       always_export_symbols_GCJ=no
15957       enable_shared_with_static_runtimes_GCJ=yes
15958       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15960       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15961         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15962         # If the export-symbols file already is a .def file (1st line
15963         # is EXPORTS), use it as is; otherwise, prepend...
15964         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15965           cp $export_symbols $output_objdir/$soname.def;
15966         else
15967           echo EXPORTS > $output_objdir/$soname.def;
15968           cat $export_symbols >> $output_objdir/$soname.def;
15969         fi~
15970         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15971       else
15972         ld_shlibs=no
15973       fi
15974       ;;
15976     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15977       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15979         wlarc=
15980       else
15981         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983       fi
15984       ;;
15986     solaris* | sysv5*)
15987       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15988         ld_shlibs_GCJ=no
15989         cat <<EOF 1>&2
15991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15992 *** create shared libraries on Solaris systems.  Therefore, libtool
15993 *** is disabling shared libraries support.  We urge you to upgrade GNU
15994 *** binutils to release 2.9.1 or newer.  Another option is to modify
15995 *** your PATH or compiler configuration so that the native linker is
15996 *** used, and then restart.
15999       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16000         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16002       else
16003         ld_shlibs_GCJ=no
16004       fi
16005       ;;
16007     sunos4*)
16008       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16009       wlarc=
16010       hardcode_direct_GCJ=yes
16011       hardcode_shlibpath_var_GCJ=no
16012       ;;
16014   linux*)
16015     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16016         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017         archive_cmds_GCJ="$tmp_archive_cmds"
16018       supports_anon_versioning=no
16019       case `$LD -v 2>/dev/null` in
16020         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16021         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16022         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16023         *\ 2.11.*) ;; # other 2.11 versions
16024         *) supports_anon_versioning=yes ;;
16025       esac
16026       if test $supports_anon_versioning = yes; then
16027         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16029 $echo "local: *; };" >> $output_objdir/$libname.ver~
16030         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16031       else
16032         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16033       fi
16034       link_all_deplibs_GCJ=no
16035     else
16036       ld_shlibs_GCJ=no
16037     fi
16038     ;;
16040     *)
16041       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16042         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16043         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16044       else
16045         ld_shlibs_GCJ=no
16046       fi
16047       ;;
16048     esac
16050     if test "$ld_shlibs_GCJ" = yes; then
16051       runpath_var=LD_RUN_PATH
16052       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16053       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16054       # ancient GNU ld didn't support --whole-archive et. al.
16055       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16056         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16057       else
16058         whole_archive_flag_spec_GCJ=
16059       fi
16060     fi
16061   else
16062     # PORTME fill in a description of your system's linker (not GNU ld)
16063     case $host_os in
16064     aix3*)
16065       allow_undefined_flag_GCJ=unsupported
16066       always_export_symbols_GCJ=yes
16067       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'
16068       # Note: this linker hardcodes the directories in LIBPATH if there
16069       # are no directories specified by -L.
16070       hardcode_minus_L_GCJ=yes
16071       if test "$GCC" = yes && test -z "$link_static_flag"; then
16072         # Neither direct hardcoding nor static linking is supported with a
16073         # broken collect2.
16074         hardcode_direct_GCJ=unsupported
16075       fi
16076       ;;
16078     aix4* | aix5*)
16079       if test "$host_cpu" = ia64; then
16080         # On IA64, the linker does run time linking by default, so we don't
16081         # have to do anything special.
16082         aix_use_runtimelinking=no
16083         exp_sym_flag='-Bexport'
16084         no_entry_flag=""
16085       else
16086         # If we're using GNU nm, then we don't want the "-C" option.
16087         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16088         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16089           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'
16090         else
16091           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'
16092         fi
16093         aix_use_runtimelinking=no
16095         # Test if we are trying to use run time linking or normal
16096         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16097         # need to do runtime linking.
16098         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16099           for ld_flag in $LDFLAGS; do
16100           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16101             aix_use_runtimelinking=yes
16102             break
16103           fi
16104           done
16105         esac
16107         exp_sym_flag='-bexport'
16108         no_entry_flag='-bnoentry'
16109       fi
16111       # When large executables or shared objects are built, AIX ld can
16112       # have problems creating the table of contents.  If linking a library
16113       # or program results in "error TOC overflow" add -mminimal-toc to
16114       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16115       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16117       archive_cmds_GCJ=''
16118       hardcode_direct_GCJ=yes
16119       hardcode_libdir_separator_GCJ=':'
16120       link_all_deplibs_GCJ=yes
16122       if test "$GCC" = yes; then
16123         case $host_os in aix4.012|aix4.012.*)
16124         # We only want to do this on AIX 4.2 and lower, the check
16125         # below for broken collect2 doesn't work under 4.3+
16126           collect2name=`${CC} -print-prog-name=collect2`
16127           if test -f "$collect2name" && \
16128            strings "$collect2name" | grep resolve_lib_name >/dev/null
16129           then
16130           # We have reworked collect2
16131           hardcode_direct_GCJ=yes
16132           else
16133           # We have old collect2
16134           hardcode_direct_GCJ=unsupported
16135           # It fails to find uninstalled libraries when the uninstalled
16136           # path is not listed in the libpath.  Setting hardcode_minus_L
16137           # to unsupported forces relinking
16138           hardcode_minus_L_GCJ=yes
16139           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16140           hardcode_libdir_separator_GCJ=
16141           fi
16142         esac
16143         shared_flag='-shared'
16144       else
16145         # not using gcc
16146         if test "$host_cpu" = ia64; then
16147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16148         # chokes on -Wl,-G. The following line is correct:
16149           shared_flag='-G'
16150         else
16151         if test "$aix_use_runtimelinking" = yes; then
16152             shared_flag='${wl}-G'
16153           else
16154             shared_flag='${wl}-bM:SRE'
16155         fi
16156         fi
16157       fi
16159       # It seems that -bexpall does not export symbols beginning with
16160       # underscore (_), so it is better to generate a list of symbols to export.
16161       always_export_symbols_GCJ=yes
16162       if test "$aix_use_runtimelinking" = yes; then
16163         # Warning - without using the other runtime loading flags (-brtl),
16164         # -berok will link without error, but may produce a broken library.
16165         allow_undefined_flag_GCJ='-berok'
16166        # Determine the default libpath from the value encoded in an empty executable.
16167        cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16175 main ()
16178   ;
16179   return 0;
16181 _ACEOF
16182 rm -f conftest.$ac_objext conftest$ac_exeext
16183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16184   (eval $ac_link) 2>conftest.er1
16185   ac_status=$?
16186   grep -v '^ *+' conftest.er1 >conftest.err
16187   rm -f conftest.er1
16188   cat conftest.err >&5
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); } &&
16191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193   (eval $ac_try) 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); }; } &&
16197          { ac_try='test -s conftest$ac_exeext'
16198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199   (eval $ac_try) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; }; then
16203   
16204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16206 # Check for a 64-bit object if we didn't find anything.
16207 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; }
16208 }'`; fi
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16214 rm -f conftest.err conftest.$ac_objext \
16215       conftest$ac_exeext conftest.$ac_ext
16216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16218        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16219         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"
16220        else
16221         if test "$host_cpu" = ia64; then
16222           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16223           allow_undefined_flag_GCJ="-z nodefs"
16224           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"
16225         else
16226          # Determine the default libpath from the value encoded in an empty executable.
16227          cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16235 main ()
16238   ;
16239   return 0;
16241 _ACEOF
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244   (eval $ac_link) 2>conftest.er1
16245   ac_status=$?
16246   grep -v '^ *+' conftest.er1 >conftest.err
16247   rm -f conftest.er1
16248   cat conftest.err >&5
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } &&
16251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; } &&
16257          { ac_try='test -s conftest$ac_exeext'
16258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259   (eval $ac_try) 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; }; then
16263   
16264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16266 # Check for a 64-bit object if we didn't find anything.
16267 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; }
16268 }'`; fi
16269 else
16270   echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16274 rm -f conftest.err conftest.$ac_objext \
16275       conftest$ac_exeext conftest.$ac_ext
16276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16278          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16279           # Warning - without using the other run time loading flags,
16280           # -berok will link without error, but may produce a broken library.
16281           no_undefined_flag_GCJ=' ${wl}-bernotok'
16282           allow_undefined_flag_GCJ=' ${wl}-berok'
16283           # -bexpall does not export symbols beginning with underscore (_)
16284           always_export_symbols_GCJ=yes
16285           # Exported symbols can be pulled into shared objects from archives
16286           whole_archive_flag_spec_GCJ=' '
16287           archive_cmds_need_lc_GCJ=yes
16288           # This is similar to how AIX traditionally builds it's shared libraries.
16289           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'
16290         fi
16291       fi
16292       ;;
16294     amigaos*)
16295       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)'
16296       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297       hardcode_minus_L_GCJ=yes
16298       # see comment about different semantics on the GNU ld section
16299       ld_shlibs_GCJ=no
16300       ;;
16302     bsdi4*)
16303       export_dynamic_flag_spec_GCJ=-rdynamic
16304       ;;
16306     cygwin* | mingw* | pw32*)
16307       # When not using gcc, we currently assume that we are using
16308       # Microsoft Visual C++.
16309       # hardcode_libdir_flag_spec is actually meaningless, as there is
16310       # no search path for DLLs.
16311       hardcode_libdir_flag_spec_GCJ=' '
16312       allow_undefined_flag_GCJ=unsupported
16313       # Tell ltmain to make .lib files, not .a files.
16314       libext=lib
16315       # Tell ltmain to make .dll files, not .so files.
16316       shrext_cmds=".dll"
16317       # FIXME: Setting linknames here is a bad hack.
16318       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16319       # The linker will automatically build a .lib file if we build a DLL.
16320       old_archive_From_new_cmds_GCJ='true'
16321       # FIXME: Should let the user specify the lib program.
16322       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16323       fix_srcfile_path='`cygpath -w "$srcfile"`'
16324       enable_shared_with_static_runtimes_GCJ=yes
16325       ;;
16327     darwin* | rhapsody*)
16328     if test "$GXX" = yes ; then
16329       archive_cmds_need_lc_GCJ=no
16330       case "$host_os" in
16331       rhapsody* | darwin1.[012])
16332         allow_undefined_flag_GCJ='-undefined suppress'
16333         ;;
16334       *) # Darwin 1.3 on
16335       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16336         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16337       else
16338         case ${MACOSX_DEPLOYMENT_TARGET} in
16339           10.[012])
16340             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16341             ;;
16342           10.*)
16343             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16344             ;;
16345         esac
16346       fi
16347         ;;
16348       esac
16349         lt_int_apple_cc_single_mod=no
16350         output_verbose_link_cmd='echo'
16351         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16352           lt_int_apple_cc_single_mod=yes
16353         fi
16354         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16355           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16356         else
16357         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'
16358       fi
16359       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16360       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16361         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16362           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}'
16363         else
16364           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}'
16365         fi
16366           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}'
16367       hardcode_direct_GCJ=no
16368       hardcode_automatic_GCJ=yes
16369       hardcode_shlibpath_var_GCJ=unsupported
16370       whole_archive_flag_spec_GCJ='-all_load $convenience'
16371       link_all_deplibs_GCJ=yes
16372     else
16373       ld_shlibs_GCJ=no
16374     fi
16375       ;;
16377     dgux*)
16378       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16379       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16380       hardcode_shlibpath_var_GCJ=no
16381       ;;
16383     freebsd1*)
16384       ld_shlibs_GCJ=no
16385       ;;
16387     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16388     # support.  Future versions do this automatically, but an explicit c++rt0.o
16389     # does not break anything, and helps significantly (at the cost of a little
16390     # extra space).
16391     freebsd2.2*)
16392       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16393       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16394       hardcode_direct_GCJ=yes
16395       hardcode_shlibpath_var_GCJ=no
16396       ;;
16398     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16399     freebsd2*)
16400       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16401       hardcode_direct_GCJ=yes
16402       hardcode_minus_L_GCJ=yes
16403       hardcode_shlibpath_var_GCJ=no
16404       ;;
16406     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16407     freebsd* | kfreebsd*-gnu)
16408       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16409       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16410       hardcode_direct_GCJ=yes
16411       hardcode_shlibpath_var_GCJ=no
16412       ;;
16414     hpux9*)
16415       if test "$GCC" = yes; then
16416         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'
16417       else
16418         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'
16419       fi
16420       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16421       hardcode_libdir_separator_GCJ=:
16422       hardcode_direct_GCJ=yes
16424       # hardcode_minus_L: Not really in the search PATH,
16425       # but as the default location of the library.
16426       hardcode_minus_L_GCJ=yes
16427       export_dynamic_flag_spec_GCJ='${wl}-E'
16428       ;;
16430     hpux10* | hpux11*)
16431       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16432         case "$host_cpu" in
16433         hppa*64*|ia64*)
16434           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16435           ;;
16436         *)
16437           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16438           ;;
16439         esac
16440       else
16441         case "$host_cpu" in
16442         hppa*64*|ia64*)
16443           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16444           ;;
16445         *)
16446           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16447           ;;
16448         esac
16449       fi
16450       if test "$with_gnu_ld" = no; then
16451         case "$host_cpu" in
16452         hppa*64*)
16453           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16454           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16455           hardcode_libdir_separator_GCJ=:
16456           hardcode_direct_GCJ=no
16457           hardcode_shlibpath_var_GCJ=no
16458           ;;
16459         ia64*)
16460           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16461           hardcode_direct_GCJ=no
16462           hardcode_shlibpath_var_GCJ=no
16464           # hardcode_minus_L: Not really in the search PATH,
16465           # but as the default location of the library.
16466           hardcode_minus_L_GCJ=yes
16467           ;;
16468         *)
16469           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16470           hardcode_libdir_separator_GCJ=:
16471           hardcode_direct_GCJ=yes
16472           export_dynamic_flag_spec_GCJ='${wl}-E'
16474           # hardcode_minus_L: Not really in the search PATH,
16475           # but as the default location of the library.
16476           hardcode_minus_L_GCJ=yes
16477           ;;
16478         esac
16479       fi
16480       ;;
16482     irix5* | irix6* | nonstopux*)
16483       if test "$GCC" = yes; then
16484         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'
16485       else
16486         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'
16487         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16488       fi
16489       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16490       hardcode_libdir_separator_GCJ=:
16491       link_all_deplibs_GCJ=yes
16492       ;;
16494     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16495       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16496         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16497       else
16498         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16499       fi
16500       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16501       hardcode_direct_GCJ=yes
16502       hardcode_shlibpath_var_GCJ=no
16503       ;;
16505     newsos6)
16506       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507       hardcode_direct_GCJ=yes
16508       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16509       hardcode_libdir_separator_GCJ=:
16510       hardcode_shlibpath_var_GCJ=no
16511       ;;
16513     openbsd*)
16514       hardcode_direct_GCJ=yes
16515       hardcode_shlibpath_var_GCJ=no
16516       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16517         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16518         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16519         export_dynamic_flag_spec_GCJ='${wl}-E'
16520       else
16521        case $host_os in
16522          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16523            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16524            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16525            ;;
16526          *)
16527            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16529            ;;
16530        esac
16531       fi
16532       ;;
16534     os2*)
16535       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16536       hardcode_minus_L_GCJ=yes
16537       allow_undefined_flag_GCJ=unsupported
16538       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'
16539       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16540       ;;
16542     osf3*)
16543       if test "$GCC" = yes; then
16544         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16545         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'
16546       else
16547         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16548         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'
16549       fi
16550       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16551       hardcode_libdir_separator_GCJ=:
16552       ;;
16554     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16555       if test "$GCC" = yes; then
16556         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16557         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'
16558         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16559       else
16560         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16561         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'
16562         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~
16563         $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'
16565         # Both c and cxx compiler support -rpath directly
16566         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16567       fi
16568       hardcode_libdir_separator_GCJ=:
16569       ;;
16571     sco3.2v5*)
16572       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16573       hardcode_shlibpath_var_GCJ=no
16574       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16575       runpath_var=LD_RUN_PATH
16576       hardcode_runpath_var=yes
16577       ;;
16579     solaris*)
16580       no_undefined_flag_GCJ=' -z text'
16581       if test "$GCC" = yes; then
16582         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16583         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16584           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16585       else
16586         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16588         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16589       fi
16590       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16591       hardcode_shlibpath_var_GCJ=no
16592       case $host_os in
16593       solaris2.[0-5] | solaris2.[0-5].*) ;;
16594       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16595         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16596       esac
16597       link_all_deplibs_GCJ=yes
16598       ;;
16600     sunos4*)
16601       if test "x$host_vendor" = xsequent; then
16602         # Use $CC to link under sequent, because it throws in some extra .o
16603         # files that make .init and .fini sections work.
16604         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16605       else
16606         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16607       fi
16608       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609       hardcode_direct_GCJ=yes
16610       hardcode_minus_L_GCJ=yes
16611       hardcode_shlibpath_var_GCJ=no
16612       ;;
16614     sysv4)
16615       case $host_vendor in
16616         sni)
16617           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618           hardcode_direct_GCJ=yes # is this really true???
16619         ;;
16620         siemens)
16621           ## LD is ld it makes a PLAMLIB
16622           ## CC just makes a GrossModule.
16623           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16624           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16625           hardcode_direct_GCJ=no
16626         ;;
16627         motorola)
16628           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16630         ;;
16631       esac
16632       runpath_var='LD_RUN_PATH'
16633       hardcode_shlibpath_var_GCJ=no
16634       ;;
16636     sysv4.3*)
16637       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638       hardcode_shlibpath_var_GCJ=no
16639       export_dynamic_flag_spec_GCJ='-Bexport'
16640       ;;
16642     sysv4*MP*)
16643       if test -d /usr/nec; then
16644         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645         hardcode_shlibpath_var_GCJ=no
16646         runpath_var=LD_RUN_PATH
16647         hardcode_runpath_var=yes
16648         ld_shlibs_GCJ=yes
16649       fi
16650       ;;
16652     sysv4.2uw2*)
16653       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16654       hardcode_direct_GCJ=yes
16655       hardcode_minus_L_GCJ=no
16656       hardcode_shlibpath_var_GCJ=no
16657       hardcode_runpath_var=yes
16658       runpath_var=LD_RUN_PATH
16659       ;;
16661    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16662       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16663       if test "$GCC" = yes; then
16664         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16665       else
16666         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16667       fi
16668       runpath_var='LD_RUN_PATH'
16669       hardcode_shlibpath_var_GCJ=no
16670       ;;
16672     sysv5*)
16673       no_undefined_flag_GCJ=' -z text'
16674       # $CC -shared without GNU ld will not create a library from C++
16675       # object files and a static libstdc++, better avoid it by now
16676       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16678                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16679       hardcode_libdir_flag_spec_GCJ=
16680       hardcode_shlibpath_var_GCJ=no
16681       runpath_var='LD_RUN_PATH'
16682       ;;
16684     uts4*)
16685       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16686       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16687       hardcode_shlibpath_var_GCJ=no
16688       ;;
16690     *)
16691       ld_shlibs_GCJ=no
16692       ;;
16693     esac
16694   fi
16696 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16697 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16698 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16701 if test "$GCC" = yes; then
16702   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16706 # Do we need to explicitly link libc?
16708 case "x$archive_cmds_need_lc_GCJ" in
16709 x|xyes)
16710   # Assume -lc should be added
16711   archive_cmds_need_lc_GCJ=yes
16713   if test "$enable_shared" = yes && test "$GCC" = yes; then
16714     case $archive_cmds_GCJ in
16715     *'~'*)
16716       # FIXME: we may have to deal with multi-command sequences.
16717       ;;
16718     '$CC '*)
16719       # Test whether the compiler implicitly links with -lc since on some
16720       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16721       # to ld, don't add -lc before -lgcc.
16722       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16724       $rm conftest*
16725       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16727       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16728   (eval $ac_compile) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } 2>conftest.err; then
16732         soname=conftest
16733         lib=conftest
16734         libobjs=conftest.$ac_objext
16735         deplibs=
16736         wl=$lt_prog_compiler_wl_GCJ
16737         compiler_flags=-v
16738         linker_flags=-v
16739         verstring=
16740         output_objdir=.
16741         libname=conftest
16742         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16743         allow_undefined_flag_GCJ=
16744         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16745   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); }
16749         then
16750           archive_cmds_need_lc_GCJ=no
16751         else
16752           archive_cmds_need_lc_GCJ=yes
16753         fi
16754         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16755       else
16756         cat conftest.err 1>&5
16757       fi
16758       $rm conftest*
16759       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16760 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16761       ;;
16762     esac
16763   fi
16764   ;;
16765 esac
16767 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16769 library_names_spec=
16770 libname_spec='lib$name'
16771 soname_spec=
16772 shrext_cmds=".so"
16773 postinstall_cmds=
16774 postuninstall_cmds=
16775 finish_cmds=
16776 finish_eval=
16777 shlibpath_var=
16778 shlibpath_overrides_runpath=unknown
16779 version_type=none
16780 dynamic_linker="$host_os ld.so"
16781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16782 if test "$GCC" = yes; then
16783   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16784   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16785     # if the path contains ";" then we assume it to be the separator
16786     # otherwise default to the standard path separator (i.e. ":") - it is
16787     # assumed that no part of a normal pathname contains ";" but that should
16788     # okay in the real world where ";" in dirpaths is itself problematic.
16789     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16790   else
16791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16792   fi
16793 else
16794   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16796 need_lib_prefix=unknown
16797 hardcode_into_libs=no
16799 # when you set need_version to no, make sure it does not cause -set_version
16800 # flags to be left without arguments
16801 need_version=unknown
16803 case $host_os in
16804 aix3*)
16805   version_type=linux
16806   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16807   shlibpath_var=LIBPATH
16809   # AIX 3 has no versioning support, so we append a major version to the name.
16810   soname_spec='${libname}${release}${shared_ext}$major'
16811   ;;
16813 aix4* | aix5*)
16814   version_type=linux
16815   need_lib_prefix=no
16816   need_version=no
16817   hardcode_into_libs=yes
16818   if test "$host_cpu" = ia64; then
16819     # AIX 5 supports IA64
16820     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16821     shlibpath_var=LD_LIBRARY_PATH
16822   else
16823     # With GCC up to 2.95.x, collect2 would create an import file
16824     # for dependence libraries.  The import file would start with
16825     # the line `#! .'.  This would cause the generated library to
16826     # depend on `.', always an invalid library.  This was fixed in
16827     # development snapshots of GCC prior to 3.0.
16828     case $host_os in
16829       aix4 | aix4.[01] | aix4.[01].*)
16830       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16831            echo ' yes '
16832            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16833         :
16834       else
16835         can_build_shared=no
16836       fi
16837       ;;
16838     esac
16839     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16840     # soname into executable. Probably we can add versioning support to
16841     # collect2, so additional links can be useful in future.
16842     if test "$aix_use_runtimelinking" = yes; then
16843       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16844       # instead of lib<name>.a to let people know that these are not
16845       # typical AIX shared libraries.
16846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847     else
16848       # We preserve .a as extension for shared libraries through AIX4.2
16849       # and later when we are not doing run time linking.
16850       library_names_spec='${libname}${release}.a $libname.a'
16851       soname_spec='${libname}${release}${shared_ext}$major'
16852     fi
16853     shlibpath_var=LIBPATH
16854   fi
16855   ;;
16857 amigaos*)
16858   library_names_spec='$libname.ixlibrary $libname.a'
16859   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16860   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'
16861   ;;
16863 beos*)
16864   library_names_spec='${libname}${shared_ext}'
16865   dynamic_linker="$host_os ld.so"
16866   shlibpath_var=LIBRARY_PATH
16867   ;;
16869 bsdi4*)
16870   version_type=linux
16871   need_version=no
16872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873   soname_spec='${libname}${release}${shared_ext}$major'
16874   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16875   shlibpath_var=LD_LIBRARY_PATH
16876   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16877   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16878   # the default ld.so.conf also contains /usr/contrib/lib and
16879   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16880   # libtool to hard-code these into programs
16881   ;;
16883 cygwin* | mingw* | pw32*)
16884   version_type=windows
16885   shrext_cmds=".dll"
16886   need_version=no
16887   need_lib_prefix=no
16889   case $GCC,$host_os in
16890   yes,cygwin* | yes,mingw* | yes,pw32*)
16891     library_names_spec='$libname.dll.a'
16892     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16893     postinstall_cmds='base_file=`basename \${file}`~
16894       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16895       dldir=$destdir/`dirname \$dlpath`~
16896       test -d \$dldir || mkdir -p \$dldir~
16897       $install_prog $dir/$dlname \$dldir/$dlname'
16898     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16899       dlpath=$dir/\$dldll~
16900        $rm \$dlpath'
16901     shlibpath_overrides_runpath=yes
16903     case $host_os in
16904     cygwin*)
16905       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16906       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16907       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16908       ;;
16909     mingw*)
16910       # MinGW DLLs use traditional 'lib' prefix
16911       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16912       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16913       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16914         # It is most probably a Windows format PATH printed by
16915         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16916         # path with ; separators, and with drive letters. We can handle the
16917         # drive letters (cygwin fileutils understands them), so leave them,
16918         # especially as we might pass files found there to a mingw objdump,
16919         # which wouldn't understand a cygwinified path. Ahh.
16920         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921       else
16922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16923       fi
16924       ;;
16925     pw32*)
16926       # pw32 DLLs use 'pw' prefix rather than 'lib'
16927       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16928       ;;
16929     esac
16930     ;;
16932   *)
16933     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16934     ;;
16935   esac
16936   dynamic_linker='Win32 ld.exe'
16937   # FIXME: first we should search . and the directory the executable is in
16938   shlibpath_var=PATH
16939   ;;
16941 darwin* | rhapsody*)
16942   dynamic_linker="$host_os dyld"
16943   version_type=darwin
16944   need_lib_prefix=no
16945   need_version=no
16946   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16947   soname_spec='${libname}${release}${major}$shared_ext'
16948   shlibpath_overrides_runpath=yes
16949   shlibpath_var=DYLD_LIBRARY_PATH
16950   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16951   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16952   if test "$GCC" = yes; then
16953     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"`
16954   else
16955     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16956   fi
16957   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16958   ;;
16960 dgux*)
16961   version_type=linux
16962   need_lib_prefix=no
16963   need_version=no
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   shlibpath_var=LD_LIBRARY_PATH
16967   ;;
16969 freebsd1*)
16970   dynamic_linker=no
16971   ;;
16973 kfreebsd*-gnu)
16974   version_type=linux
16975   need_lib_prefix=no
16976   need_version=no
16977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978   soname_spec='${libname}${release}${shared_ext}$major'
16979   shlibpath_var=LD_LIBRARY_PATH
16980   shlibpath_overrides_runpath=no
16981   hardcode_into_libs=yes
16982   dynamic_linker='GNU ld.so'
16983   ;;
16985 freebsd*)
16986   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16987   version_type=freebsd-$objformat
16988   case $version_type in
16989     freebsd-elf*)
16990       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16991       need_version=no
16992       need_lib_prefix=no
16993       ;;
16994     freebsd-*)
16995       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16996       need_version=yes
16997       ;;
16998   esac
16999   shlibpath_var=LD_LIBRARY_PATH
17000   case $host_os in
17001   freebsd2*)
17002     shlibpath_overrides_runpath=yes
17003     ;;
17004   freebsd3.01* | freebsdelf3.01*)
17005     shlibpath_overrides_runpath=yes
17006     hardcode_into_libs=yes
17007     ;;
17008   *) # from 3.2 on
17009     shlibpath_overrides_runpath=no
17010     hardcode_into_libs=yes
17011     ;;
17012   esac
17013   ;;
17015 gnu*)
17016   version_type=linux
17017   need_lib_prefix=no
17018   need_version=no
17019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17020   soname_spec='${libname}${release}${shared_ext}$major'
17021   shlibpath_var=LD_LIBRARY_PATH
17022   hardcode_into_libs=yes
17023   ;;
17025 hpux9* | hpux10* | hpux11*)
17026   # Give a soname corresponding to the major version so that dld.sl refuses to
17027   # link against other versions.
17028   version_type=sunos
17029   need_lib_prefix=no
17030   need_version=no
17031   case "$host_cpu" in
17032   ia64*)
17033     shrext_cmds='.so'
17034     hardcode_into_libs=yes
17035     dynamic_linker="$host_os dld.so"
17036     shlibpath_var=LD_LIBRARY_PATH
17037     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039     soname_spec='${libname}${release}${shared_ext}$major'
17040     if test "X$HPUX_IA64_MODE" = X32; then
17041       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17042     else
17043       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17044     fi
17045     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17046     ;;
17047    hppa*64*)
17048      shrext_cmds='.sl'
17049      hardcode_into_libs=yes
17050      dynamic_linker="$host_os dld.sl"
17051      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17052      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17053      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054      soname_spec='${libname}${release}${shared_ext}$major'
17055      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17056      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17057      ;;
17058    *)
17059     shrext_cmds='.sl'
17060     dynamic_linker="$host_os dld.sl"
17061     shlibpath_var=SHLIB_PATH
17062     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064     soname_spec='${libname}${release}${shared_ext}$major'
17065     ;;
17066   esac
17067   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17068   postinstall_cmds='chmod 555 $lib'
17069   ;;
17071 irix5* | irix6* | nonstopux*)
17072   case $host_os in
17073     nonstopux*) version_type=nonstopux ;;
17074     *)
17075         if test "$lt_cv_prog_gnu_ld" = yes; then
17076                 version_type=linux
17077         else
17078                 version_type=irix
17079         fi ;;
17080   esac
17081   need_lib_prefix=no
17082   need_version=no
17083   soname_spec='${libname}${release}${shared_ext}$major'
17084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17085   case $host_os in
17086   irix5* | nonstopux*)
17087     libsuff= shlibsuff=
17088     ;;
17089   *)
17090     case $LD in # libtool.m4 will add one of these switches to LD
17091     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17092       libsuff= shlibsuff= libmagic=32-bit;;
17093     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17094       libsuff=32 shlibsuff=N32 libmagic=N32;;
17095     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17096       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17097     *) libsuff= shlibsuff= libmagic=never-match;;
17098     esac
17099     ;;
17100   esac
17101   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17102   shlibpath_overrides_runpath=no
17103   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17104   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17105   hardcode_into_libs=yes
17106   ;;
17108 # No shared lib support for Linux oldld, aout, or coff.
17109 linux*oldld* | linux*aout* | linux*coff*)
17110   dynamic_linker=no
17111   ;;
17113 # This must be Linux ELF.
17114 linux*)
17115   version_type=linux
17116   need_lib_prefix=no
17117   need_version=no
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17121   shlibpath_var=LD_LIBRARY_PATH
17122   shlibpath_overrides_runpath=no
17123   # This implies no fast_install, which is unacceptable.
17124   # Some rework will be needed to allow for fast_install
17125   # before this can be enabled.
17126   hardcode_into_libs=yes
17128   # Append ld.so.conf contents to the search path
17129   if test -f /etc/ld.so.conf; then
17130     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17131     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17132   fi
17134   # We used to test for /lib/ld.so.1 and disable shared libraries on
17135   # powerpc, because MkLinux only supported shared libraries with the
17136   # GNU dynamic linker.  Since this was broken with cross compilers,
17137   # most powerpc-linux boxes support dynamic linking these days and
17138   # people can always --disable-shared, the test was removed, and we
17139   # assume the GNU/Linux dynamic linker is in use.
17140   dynamic_linker='GNU/Linux ld.so'
17141   ;;
17143 netbsdelf*-gnu)
17144   version_type=linux
17145   need_lib_prefix=no
17146   need_version=no
17147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148   soname_spec='${libname}${release}${shared_ext}$major'
17149   shlibpath_var=LD_LIBRARY_PATH
17150   shlibpath_overrides_runpath=no
17151   hardcode_into_libs=yes
17152   dynamic_linker='NetBSD ld.elf_so'
17153   ;;
17155 knetbsd*-gnu)
17156   version_type=linux
17157   need_lib_prefix=no
17158   need_version=no
17159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17160   soname_spec='${libname}${release}${shared_ext}$major'
17161   shlibpath_var=LD_LIBRARY_PATH
17162   shlibpath_overrides_runpath=no
17163   hardcode_into_libs=yes
17164   dynamic_linker='GNU ld.so'
17165   ;;
17167 netbsd*)
17168   version_type=sunos
17169   need_lib_prefix=no
17170   need_version=no
17171   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17173     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17174     dynamic_linker='NetBSD (a.out) ld.so'
17175   else
17176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177     soname_spec='${libname}${release}${shared_ext}$major'
17178     dynamic_linker='NetBSD ld.elf_so'
17179   fi
17180   shlibpath_var=LD_LIBRARY_PATH
17181   shlibpath_overrides_runpath=yes
17182   hardcode_into_libs=yes
17183   ;;
17185 newsos6)
17186   version_type=linux
17187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188   shlibpath_var=LD_LIBRARY_PATH
17189   shlibpath_overrides_runpath=yes
17190   ;;
17192 nto-qnx*)
17193   version_type=linux
17194   need_lib_prefix=no
17195   need_version=no
17196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17197   soname_spec='${libname}${release}${shared_ext}$major'
17198   shlibpath_var=LD_LIBRARY_PATH
17199   shlibpath_overrides_runpath=yes
17200   ;;
17202 openbsd*)
17203   version_type=sunos
17204   need_lib_prefix=no
17205   need_version=yes
17206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17207   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17208   shlibpath_var=LD_LIBRARY_PATH
17209   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17210     case $host_os in
17211       openbsd2.[89] | openbsd2.[89].*)
17212         shlibpath_overrides_runpath=no
17213         ;;
17214       *)
17215         shlibpath_overrides_runpath=yes
17216         ;;
17217       esac
17218   else
17219     shlibpath_overrides_runpath=yes
17220   fi
17221   ;;
17223 os2*)
17224   libname_spec='$name'
17225   shrext_cmds=".dll"
17226   need_lib_prefix=no
17227   library_names_spec='$libname${shared_ext} $libname.a'
17228   dynamic_linker='OS/2 ld.exe'
17229   shlibpath_var=LIBPATH
17230   ;;
17232 osf3* | osf4* | osf5*)
17233   version_type=osf
17234   need_lib_prefix=no
17235   need_version=no
17236   soname_spec='${libname}${release}${shared_ext}$major'
17237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238   shlibpath_var=LD_LIBRARY_PATH
17239   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17240   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17241   ;;
17243 sco3.2v5*)
17244   version_type=osf
17245   soname_spec='${libname}${release}${shared_ext}$major'
17246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247   shlibpath_var=LD_LIBRARY_PATH
17248   ;;
17250 solaris*)
17251   version_type=linux
17252   need_lib_prefix=no
17253   need_version=no
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255   soname_spec='${libname}${release}${shared_ext}$major'
17256   shlibpath_var=LD_LIBRARY_PATH
17257   shlibpath_overrides_runpath=yes
17258   hardcode_into_libs=yes
17259   # ldd complains unless libraries are executable
17260   postinstall_cmds='chmod +x $lib'
17261   ;;
17263 sunos4*)
17264   version_type=sunos
17265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17267   shlibpath_var=LD_LIBRARY_PATH
17268   shlibpath_overrides_runpath=yes
17269   if test "$with_gnu_ld" = yes; then
17270     need_lib_prefix=no
17271   fi
17272   need_version=yes
17273   ;;
17275 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17276   version_type=linux
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278   soname_spec='${libname}${release}${shared_ext}$major'
17279   shlibpath_var=LD_LIBRARY_PATH
17280   case $host_vendor in
17281     sni)
17282       shlibpath_overrides_runpath=no
17283       need_lib_prefix=no
17284       export_dynamic_flag_spec='${wl}-Blargedynsym'
17285       runpath_var=LD_RUN_PATH
17286       ;;
17287     siemens)
17288       need_lib_prefix=no
17289       ;;
17290     motorola)
17291       need_lib_prefix=no
17292       need_version=no
17293       shlibpath_overrides_runpath=no
17294       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17295       ;;
17296   esac
17297   ;;
17299 sysv4*MP*)
17300   if test -d /usr/nec ;then
17301     version_type=linux
17302     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17303     soname_spec='$libname${shared_ext}.$major'
17304     shlibpath_var=LD_LIBRARY_PATH
17305   fi
17306   ;;
17308 uts4*)
17309   version_type=linux
17310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311   soname_spec='${libname}${release}${shared_ext}$major'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   ;;
17316   dynamic_linker=no
17317   ;;
17318 esac
17319 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17320 echo "${ECHO_T}$dynamic_linker" >&6
17321 test "$dynamic_linker" = no && can_build_shared=no
17323 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17325 hardcode_action_GCJ=
17326 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17327    test -n "$runpath_var GCJ" || \
17328    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17330   # We can hardcode non-existant directories.
17331   if test "$hardcode_direct_GCJ" != no &&
17332      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17333      # have to relink, otherwise we might link with an installed library
17334      # when we should be linking with a yet-to-be-installed one
17335      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17336      test "$hardcode_minus_L_GCJ" != no; then
17337     # Linking always hardcodes the temporary library directory.
17338     hardcode_action_GCJ=relink
17339   else
17340     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17341     hardcode_action_GCJ=immediate
17342   fi
17343 else
17344   # We cannot hardcode anything, or else we can only hardcode existing
17345   # directories.
17346   hardcode_action_GCJ=unsupported
17348 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17349 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17351 if test "$hardcode_action_GCJ" = relink; then
17352   # Fast installation is not supported
17353   enable_fast_install=no
17354 elif test "$shlibpath_overrides_runpath" = yes ||
17355      test "$enable_shared" = no; then
17356   # Fast installation is not necessary
17357   enable_fast_install=needless
17360 striplib=
17361 old_striplib=
17362 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17363 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17364 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17365   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17366   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17367   echo "$as_me:$LINENO: result: yes" >&5
17368 echo "${ECHO_T}yes" >&6
17369 else
17370 # FIXME - insert some real tests, host_os isn't really good enough
17371   case $host_os in
17372    darwin*)
17373        if test -n "$STRIP" ; then
17374          striplib="$STRIP -x"
17375          echo "$as_me:$LINENO: result: yes" >&5
17376 echo "${ECHO_T}yes" >&6
17377        else
17378   echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17381        ;;
17382    *)
17383   echo "$as_me:$LINENO: result: no" >&5
17384 echo "${ECHO_T}no" >&6
17385     ;;
17386   esac
17389 if test "x$enable_dlopen" != xyes; then
17390   enable_dlopen=unknown
17391   enable_dlopen_self=unknown
17392   enable_dlopen_self_static=unknown
17393 else
17394   lt_cv_dlopen=no
17395   lt_cv_dlopen_libs=
17397   case $host_os in
17398   beos*)
17399     lt_cv_dlopen="load_add_on"
17400     lt_cv_dlopen_libs=
17401     lt_cv_dlopen_self=yes
17402     ;;
17404   mingw* | pw32*)
17405     lt_cv_dlopen="LoadLibrary"
17406     lt_cv_dlopen_libs=
17407    ;;
17409   cygwin*)
17410     lt_cv_dlopen="dlopen"
17411     lt_cv_dlopen_libs=
17412    ;;
17414   darwin*)
17415   # if libdl is installed we need to link against it
17416     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17419   echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421   ac_check_lib_save_LIBS=$LIBS
17422 LIBS="-ldl  $LIBS"
17423 cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17430 /* Override any gcc2 internal prototype to avoid an error.  */
17431 #ifdef __cplusplus
17432 extern "C"
17433 #endif
17434 /* We use char because int might match the return type of a gcc2
17435    builtin and then its argument prototype would still apply.  */
17436 char dlopen ();
17438 main ()
17440 dlopen ();
17441   ;
17442   return 0;
17444 _ACEOF
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447   (eval $ac_link) 2>conftest.er1
17448   ac_status=$?
17449   grep -v '^ *+' conftest.er1 >conftest.err
17450   rm -f conftest.er1
17451   cat conftest.err >&5
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); } &&
17454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest$ac_exeext'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   ac_cv_lib_dl_dlopen=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_lib_dl_dlopen=no
17473 rm -f conftest.err conftest.$ac_objext \
17474       conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17479 if test $ac_cv_lib_dl_dlopen = yes; then
17480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17481 else
17482   
17483     lt_cv_dlopen="dyld"
17484     lt_cv_dlopen_libs=
17485     lt_cv_dlopen_self=yes
17486     
17489    ;;
17491   *)
17492     echo "$as_me:$LINENO: checking for shl_load" >&5
17493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17494 if test "${ac_cv_func_shl_load+set}" = set; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17505 #define shl_load innocuous_shl_load
17507 /* System header to define __stub macros and hopefully few prototypes,
17508     which can conflict with char shl_load (); below.
17509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510     <limits.h> exists even on freestanding compilers.  */
17512 #ifdef __STDC__
17513 # include <limits.h>
17514 #else
17515 # include <assert.h>
17516 #endif
17518 #undef shl_load
17520 /* Override any gcc2 internal prototype to avoid an error.  */
17521 #ifdef __cplusplus
17522 extern "C"
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526    builtin and then its argument prototype would still apply.  */
17527 char shl_load ();
17528 /* The GNU C library defines this for functions which it implements
17529     to always fail with ENOSYS.  Some functions are actually named
17530     something starting with __ and the normal name is an alias.  */
17531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17532 choke me
17533 #else
17534 char (*f) () = shl_load;
17535 #endif
17536 #ifdef __cplusplus
17538 #endif
17541 main ()
17543 return f != shl_load;
17544   ;
17545   return 0;
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550   (eval $ac_link) 2>conftest.er1
17551   ac_status=$?
17552   grep -v '^ *+' conftest.er1 >conftest.err
17553   rm -f conftest.er1
17554   cat conftest.err >&5
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); } &&
17557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559   (eval $ac_try) 2>&5
17560   ac_status=$?
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); }; } &&
17563          { ac_try='test -s conftest$ac_exeext'
17564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565   (eval $ac_try) 2>&5
17566   ac_status=$?
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); }; }; then
17569   ac_cv_func_shl_load=yes
17570 else
17571   echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_func_shl_load=no
17576 rm -f conftest.err conftest.$ac_objext \
17577       conftest$ac_exeext conftest.$ac_ext
17579 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17580 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17581 if test $ac_cv_func_shl_load = yes; then
17582   lt_cv_dlopen="shl_load"
17583 else
17584   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17585 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17586 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589   ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-ldld  $LIBS"
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17598 /* Override any gcc2 internal prototype to avoid an error.  */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 /* We use char because int might match the return type of a gcc2
17603    builtin and then its argument prototype would still apply.  */
17604 char shl_load ();
17606 main ()
17608 shl_load ();
17609   ;
17610   return 0;
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615   (eval $ac_link) 2>conftest.er1
17616   ac_status=$?
17617   grep -v '^ *+' conftest.er1 >conftest.err
17618   rm -f conftest.er1
17619   cat conftest.err >&5
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); } &&
17622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624   (eval $ac_try) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; } &&
17628          { ac_try='test -s conftest$ac_exeext'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634   ac_cv_lib_dld_shl_load=yes
17635 else
17636   echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_dld_shl_load=no
17641 rm -f conftest.err conftest.$ac_objext \
17642       conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17645 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17646 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17647 if test $ac_cv_lib_dld_shl_load = yes; then
17648   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17649 else
17650   echo "$as_me:$LINENO: checking for dlopen" >&5
17651 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17652 if test "${ac_cv_func_dlopen+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17663 #define dlopen innocuous_dlopen
17665 /* System header to define __stub macros and hopefully few prototypes,
17666     which can conflict with char dlopen (); below.
17667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668     <limits.h> exists even on freestanding compilers.  */
17670 #ifdef __STDC__
17671 # include <limits.h>
17672 #else
17673 # include <assert.h>
17674 #endif
17676 #undef dlopen
17678 /* Override any gcc2 internal prototype to avoid an error.  */
17679 #ifdef __cplusplus
17680 extern "C"
17682 #endif
17683 /* We use char because int might match the return type of a gcc2
17684    builtin and then its argument prototype would still apply.  */
17685 char dlopen ();
17686 /* The GNU C library defines this for functions which it implements
17687     to always fail with ENOSYS.  Some functions are actually named
17688     something starting with __ and the normal name is an alias.  */
17689 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17690 choke me
17691 #else
17692 char (*f) () = dlopen;
17693 #endif
17694 #ifdef __cplusplus
17696 #endif
17699 main ()
17701 return f != dlopen;
17702   ;
17703   return 0;
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708   (eval $ac_link) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest$ac_exeext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   ac_cv_func_dlopen=yes
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_func_dlopen=no
17734 rm -f conftest.err conftest.$ac_objext \
17735       conftest$ac_exeext conftest.$ac_ext
17737 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17738 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17739 if test $ac_cv_func_dlopen = yes; then
17740   lt_cv_dlopen="dlopen"
17741 else
17742   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17743 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17744 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747   ac_check_lib_save_LIBS=$LIBS
17748 LIBS="-ldl  $LIBS"
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17756 /* Override any gcc2 internal prototype to avoid an error.  */
17757 #ifdef __cplusplus
17758 extern "C"
17759 #endif
17760 /* We use char because int might match the return type of a gcc2
17761    builtin and then its argument prototype would still apply.  */
17762 char dlopen ();
17764 main ()
17766 dlopen ();
17767   ;
17768   return 0;
17770 _ACEOF
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773   (eval $ac_link) 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } &&
17780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; } &&
17786          { ac_try='test -s conftest$ac_exeext'
17787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788   (eval $ac_try) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; }; then
17792   ac_cv_lib_dl_dlopen=yes
17793 else
17794   echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_cv_lib_dl_dlopen=no
17799 rm -f conftest.err conftest.$ac_objext \
17800       conftest$ac_exeext conftest.$ac_ext
17801 LIBS=$ac_check_lib_save_LIBS
17803 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17805 if test $ac_cv_lib_dl_dlopen = yes; then
17806   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17807 else
17808   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17809 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17810 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-lsvld  $LIBS"
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h.  */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h.  */
17822 /* Override any gcc2 internal prototype to avoid an error.  */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 /* We use char because int might match the return type of a gcc2
17827    builtin and then its argument prototype would still apply.  */
17828 char dlopen ();
17830 main ()
17832 dlopen ();
17833   ;
17834   return 0;
17836 _ACEOF
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839   (eval $ac_link) 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848   (eval $ac_try) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; } &&
17852          { ac_try='test -s conftest$ac_exeext'
17853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854   (eval $ac_try) 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; }; then
17858   ac_cv_lib_svld_dlopen=yes
17859 else
17860   echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 ac_cv_lib_svld_dlopen=no
17865 rm -f conftest.err conftest.$ac_objext \
17866       conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17871 if test $ac_cv_lib_svld_dlopen = yes; then
17872   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17873 else
17874   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17877   echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879   ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-ldld  $LIBS"
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17888 /* Override any gcc2 internal prototype to avoid an error.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 /* We use char because int might match the return type of a gcc2
17893    builtin and then its argument prototype would still apply.  */
17894 char dld_link ();
17896 main ()
17898 dld_link ();
17899   ;
17900   return 0;
17902 _ACEOF
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905   (eval $ac_link) 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914   (eval $ac_try) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; } &&
17918          { ac_try='test -s conftest$ac_exeext'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_cv_lib_dld_dld_link=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_dld_dld_link=no
17931 rm -f conftest.err conftest.$ac_objext \
17932       conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17937 if test $ac_cv_lib_dld_dld_link = yes; then
17938   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17941               
17944             
17947           
17950         
17953       
17956     ;;
17957   esac
17959   if test "x$lt_cv_dlopen" != xno; then
17960     enable_dlopen=yes
17961   else
17962     enable_dlopen=no
17963   fi
17965   case $lt_cv_dlopen in
17966   dlopen)
17967     save_CPPFLAGS="$CPPFLAGS"
17968     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17970     save_LDFLAGS="$LDFLAGS"
17971     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17973     save_LIBS="$LIBS"
17974     LIBS="$lt_cv_dlopen_libs $LIBS"
17976     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17978 if test "${lt_cv_dlopen_self+set}" = set; then
17979   echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981           if test "$cross_compiling" = yes; then :
17982   lt_cv_dlopen_self=cross
17983 else
17984   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17985   lt_status=$lt_dlunknown
17986   cat > conftest.$ac_ext <<EOF
17987 #line __oline__ "configure"
17988 #include "confdefs.h"
17990 #if HAVE_DLFCN_H
17991 #include <dlfcn.h>
17992 #endif
17994 #include <stdio.h>
17996 #ifdef RTLD_GLOBAL
17997 #  define LT_DLGLOBAL           RTLD_GLOBAL
17998 #else
17999 #  ifdef DL_GLOBAL
18000 #    define LT_DLGLOBAL         DL_GLOBAL
18001 #  else
18002 #    define LT_DLGLOBAL         0
18003 #  endif
18004 #endif
18006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18007    find out it does not work in some platform. */
18008 #ifndef LT_DLLAZY_OR_NOW
18009 #  ifdef RTLD_LAZY
18010 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18011 #  else
18012 #    ifdef DL_LAZY
18013 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18014 #    else
18015 #      ifdef RTLD_NOW
18016 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18017 #      else
18018 #        ifdef DL_NOW
18019 #          define LT_DLLAZY_OR_NOW      DL_NOW
18020 #        else
18021 #          define LT_DLLAZY_OR_NOW      0
18022 #        endif
18023 #      endif
18024 #    endif
18025 #  endif
18026 #endif
18028 #ifdef __cplusplus
18029 extern "C" void exit (int);
18030 #endif
18032 void fnord() { int i=42;}
18033 int main ()
18035   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18036   int status = $lt_dlunknown;
18038   if (self)
18039     {
18040       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18041       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18042       /* dlclose (self); */
18043     }
18045     exit (status);
18048   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049   (eval $ac_link) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18053     (./conftest; exit; ) 2>/dev/null
18054     lt_status=$?
18055     case x$lt_status in
18056       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18057       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18058       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18059     esac
18060   else :
18061     # compilation failed
18062     lt_cv_dlopen_self=no
18063   fi
18065 rm -fr conftest*
18067     
18069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18070 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18072     if test "x$lt_cv_dlopen_self" = xyes; then
18073       LDFLAGS="$LDFLAGS $link_static_flag"
18074       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18075 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18076 if test "${lt_cv_dlopen_self_static+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079           if test "$cross_compiling" = yes; then :
18080   lt_cv_dlopen_self_static=cross
18081 else
18082   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18083   lt_status=$lt_dlunknown
18084   cat > conftest.$ac_ext <<EOF
18085 #line __oline__ "configure"
18086 #include "confdefs.h"
18088 #if HAVE_DLFCN_H
18089 #include <dlfcn.h>
18090 #endif
18092 #include <stdio.h>
18094 #ifdef RTLD_GLOBAL
18095 #  define LT_DLGLOBAL           RTLD_GLOBAL
18096 #else
18097 #  ifdef DL_GLOBAL
18098 #    define LT_DLGLOBAL         DL_GLOBAL
18099 #  else
18100 #    define LT_DLGLOBAL         0
18101 #  endif
18102 #endif
18104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18105    find out it does not work in some platform. */
18106 #ifndef LT_DLLAZY_OR_NOW
18107 #  ifdef RTLD_LAZY
18108 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18109 #  else
18110 #    ifdef DL_LAZY
18111 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18112 #    else
18113 #      ifdef RTLD_NOW
18114 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18115 #      else
18116 #        ifdef DL_NOW
18117 #          define LT_DLLAZY_OR_NOW      DL_NOW
18118 #        else
18119 #          define LT_DLLAZY_OR_NOW      0
18120 #        endif
18121 #      endif
18122 #    endif
18123 #  endif
18124 #endif
18126 #ifdef __cplusplus
18127 extern "C" void exit (int);
18128 #endif
18130 void fnord() { int i=42;}
18131 int main ()
18133   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18134   int status = $lt_dlunknown;
18136   if (self)
18137     {
18138       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18139       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18140       /* dlclose (self); */
18141     }
18143     exit (status);
18146   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147   (eval $ac_link) 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18151     (./conftest; exit; ) 2>/dev/null
18152     lt_status=$?
18153     case x$lt_status in
18154       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18155       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18156       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18157     esac
18158   else :
18159     # compilation failed
18160     lt_cv_dlopen_self_static=no
18161   fi
18163 rm -fr conftest*
18165       
18167 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18168 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18169     fi
18171     CPPFLAGS="$save_CPPFLAGS"
18172     LDFLAGS="$save_LDFLAGS"
18173     LIBS="$save_LIBS"
18174     ;;
18175   esac
18177   case $lt_cv_dlopen_self in
18178   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18179   *) enable_dlopen_self=unknown ;;
18180   esac
18182   case $lt_cv_dlopen_self_static in
18183   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18184   *) enable_dlopen_self_static=unknown ;;
18185   esac
18189 # The else clause should only fire when bootstrapping the
18190 # libtool distribution, otherwise you forgot to ship ltmain.sh
18191 # with your package, and you will get complaints that there are
18192 # no rules to generate ltmain.sh.
18193 if test -f "$ltmain"; then
18194   # See if we are running on zsh, and set the options which allow our commands through
18195   # without removal of \ escapes.
18196   if test -n "${ZSH_VERSION+set}" ; then
18197     setopt NO_GLOB_SUBST
18198   fi
18199   # Now quote all the things that may contain metacharacters while being
18200   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18201   # variables and quote the copies for generation of the libtool script.
18202   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18203     SED SHELL STRIP \
18204     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18205     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18206     deplibs_check_method reload_flag reload_cmds need_locks \
18207     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18208     lt_cv_sys_global_symbol_to_c_name_address \
18209     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18210     old_postinstall_cmds old_postuninstall_cmds \
18211     compiler_GCJ \
18212     CC_GCJ \
18213     LD_GCJ \
18214     lt_prog_compiler_wl_GCJ \
18215     lt_prog_compiler_pic_GCJ \
18216     lt_prog_compiler_static_GCJ \
18217     lt_prog_compiler_no_builtin_flag_GCJ \
18218     export_dynamic_flag_spec_GCJ \
18219     thread_safe_flag_spec_GCJ \
18220     whole_archive_flag_spec_GCJ \
18221     enable_shared_with_static_runtimes_GCJ \
18222     old_archive_cmds_GCJ \
18223     old_archive_from_new_cmds_GCJ \
18224     predep_objects_GCJ \
18225     postdep_objects_GCJ \
18226     predeps_GCJ \
18227     postdeps_GCJ \
18228     compiler_lib_search_path_GCJ \
18229     archive_cmds_GCJ \
18230     archive_expsym_cmds_GCJ \
18231     postinstall_cmds_GCJ \
18232     postuninstall_cmds_GCJ \
18233     old_archive_from_expsyms_cmds_GCJ \
18234     allow_undefined_flag_GCJ \
18235     no_undefined_flag_GCJ \
18236     export_symbols_cmds_GCJ \
18237     hardcode_libdir_flag_spec_GCJ \
18238     hardcode_libdir_flag_spec_ld_GCJ \
18239     hardcode_libdir_separator_GCJ \
18240     hardcode_automatic_GCJ \
18241     module_cmds_GCJ \
18242     module_expsym_cmds_GCJ \
18243     lt_cv_prog_compiler_c_o_GCJ \
18244     exclude_expsyms_GCJ \
18245     include_expsyms_GCJ; do
18247     case $var in
18248     old_archive_cmds_GCJ | \
18249     old_archive_from_new_cmds_GCJ | \
18250     archive_cmds_GCJ | \
18251     archive_expsym_cmds_GCJ | \
18252     module_cmds_GCJ | \
18253     module_expsym_cmds_GCJ | \
18254     old_archive_from_expsyms_cmds_GCJ | \
18255     export_symbols_cmds_GCJ | \
18256     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18257     postinstall_cmds | postuninstall_cmds | \
18258     old_postinstall_cmds | old_postuninstall_cmds | \
18259     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18260       # Double-quote double-evaled strings.
18261       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18262       ;;
18263     *)
18264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18265       ;;
18266     esac
18267   done
18269   case $lt_echo in
18270   *'\$0 --fallback-echo"')
18271     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18272     ;;
18273   esac
18275 cfgfile="$ofile"
18277   cat <<__EOF__ >> "$cfgfile"
18278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18282 # Shell to use when invoking shell scripts.
18283 SHELL=$lt_SHELL
18285 # Whether or not to build shared libraries.
18286 build_libtool_libs=$enable_shared
18288 # Whether or not to build static libraries.
18289 build_old_libs=$enable_static
18291 # Whether or not to add -lc for building shared libraries.
18292 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18294 # Whether or not to disallow shared libs when runtime libs are static
18295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18297 # Whether or not to optimize for fast installation.
18298 fast_install=$enable_fast_install
18300 # The host system.
18301 host_alias=$host_alias
18302 host=$host
18304 # An echo program that does not interpret backslashes.
18305 echo=$lt_echo
18307 # The archiver.
18308 AR=$lt_AR
18309 AR_FLAGS=$lt_AR_FLAGS
18311 # A C compiler.
18312 LTCC=$lt_LTCC
18314 # A language-specific compiler.
18315 CC=$lt_compiler_GCJ
18317 # Is the compiler the GNU C compiler?
18318 with_gcc=$GCC_GCJ
18320 # An ERE matcher.
18321 EGREP=$lt_EGREP
18323 # The linker used to build libraries.
18324 LD=$lt_LD_GCJ
18326 # Whether we need hard or soft links.
18327 LN_S=$lt_LN_S
18329 # A BSD-compatible nm program.
18330 NM=$lt_NM
18332 # A symbol stripping program
18333 STRIP=$lt_STRIP
18335 # Used to examine libraries when file_magic_cmd begins "file"
18336 MAGIC_CMD=$MAGIC_CMD
18338 # Used on cygwin: DLL creation program.
18339 DLLTOOL="$DLLTOOL"
18341 # Used on cygwin: object dumper.
18342 OBJDUMP="$OBJDUMP"
18344 # Used on cygwin: assembler.
18345 AS="$AS"
18347 # The name of the directory that contains temporary libtool files.
18348 objdir=$objdir
18350 # How to create reloadable object files.
18351 reload_flag=$lt_reload_flag
18352 reload_cmds=$lt_reload_cmds
18354 # How to pass a linker flag through the compiler.
18355 wl=$lt_lt_prog_compiler_wl_GCJ
18357 # Object file suffix (normally "o").
18358 objext="$ac_objext"
18360 # Old archive suffix (normally "a").
18361 libext="$libext"
18363 # Shared library suffix (normally ".so").
18364 shrext_cmds='$shrext_cmds'
18366 # Executable file suffix (normally "").
18367 exeext="$exeext"
18369 # Additional compiler flags for building library objects.
18370 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18371 pic_mode=$pic_mode
18373 # What is the maximum length of a command?
18374 max_cmd_len=$lt_cv_sys_max_cmd_len
18376 # Does compiler simultaneously support -c and -o options?
18377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18379 # Must we lock files when doing compilation ?
18380 need_locks=$lt_need_locks
18382 # Do we need the lib prefix for modules?
18383 need_lib_prefix=$need_lib_prefix
18385 # Do we need a version for libraries?
18386 need_version=$need_version
18388 # Whether dlopen is supported.
18389 dlopen_support=$enable_dlopen
18391 # Whether dlopen of programs is supported.
18392 dlopen_self=$enable_dlopen_self
18394 # Whether dlopen of statically linked programs is supported.
18395 dlopen_self_static=$enable_dlopen_self_static
18397 # Compiler flag to prevent dynamic linking.
18398 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18400 # Compiler flag to turn off builtin functions.
18401 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18403 # Compiler flag to allow reflexive dlopens.
18404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18406 # Compiler flag to generate shared objects directly from archives.
18407 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18409 # Compiler flag to generate thread-safe objects.
18410 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18412 # Library versioning type.
18413 version_type=$version_type
18415 # Format of library name prefix.
18416 libname_spec=$lt_libname_spec
18418 # List of archive names.  First name is the real one, the rest are links.
18419 # The last name is the one that the linker finds with -lNAME.
18420 library_names_spec=$lt_library_names_spec
18422 # The coded name of the library, if different from the real name.
18423 soname_spec=$lt_soname_spec
18425 # Commands used to build and install an old-style archive.
18426 RANLIB=$lt_RANLIB
18427 old_archive_cmds=$lt_old_archive_cmds_GCJ
18428 old_postinstall_cmds=$lt_old_postinstall_cmds
18429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18431 # Create an old-style archive from a shared archive.
18432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18434 # Create a temporary old-style archive to link instead of a shared archive.
18435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18437 # Commands used to build and install a shared archive.
18438 archive_cmds=$lt_archive_cmds_GCJ
18439 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18440 postinstall_cmds=$lt_postinstall_cmds
18441 postuninstall_cmds=$lt_postuninstall_cmds
18443 # Commands used to build a loadable module (assumed same as above if empty)
18444 module_cmds=$lt_module_cmds_GCJ
18445 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18447 # Commands to strip libraries.
18448 old_striplib=$lt_old_striplib
18449 striplib=$lt_striplib
18451 # Dependencies to place before the objects being linked to create a
18452 # shared library.
18453 predep_objects=$lt_predep_objects_GCJ
18455 # Dependencies to place after the objects being linked to create a
18456 # shared library.
18457 postdep_objects=$lt_postdep_objects_GCJ
18459 # Dependencies to place before the objects being linked to create a
18460 # shared library.
18461 predeps=$lt_predeps_GCJ
18463 # Dependencies to place after the objects being linked to create a
18464 # shared library.
18465 postdeps=$lt_postdeps_GCJ
18467 # The library search path used internally by the compiler when linking
18468 # a shared library.
18469 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18471 # Method to check whether dependent libraries are shared objects.
18472 deplibs_check_method=$lt_deplibs_check_method
18474 # Command to use when deplibs_check_method == file_magic.
18475 file_magic_cmd=$lt_file_magic_cmd
18477 # Flag that allows shared libraries with undefined symbols to be built.
18478 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18480 # Flag that forces no undefined symbols.
18481 no_undefined_flag=$lt_no_undefined_flag_GCJ
18483 # Commands used to finish a libtool library installation in a directory.
18484 finish_cmds=$lt_finish_cmds
18486 # Same as above, but a single script fragment to be evaled but not shown.
18487 finish_eval=$lt_finish_eval
18489 # Take the output of nm and produce a listing of raw symbols and C names.
18490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18492 # Transform the output of nm in a proper C declaration
18493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18495 # Transform the output of nm in a C name address pair
18496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18498 # This is the shared library runtime path variable.
18499 runpath_var=$runpath_var
18501 # This is the shared library path variable.
18502 shlibpath_var=$shlibpath_var
18504 # Is shlibpath searched before the hard-coded library search path?
18505 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18507 # How to hardcode a shared library path into an executable.
18508 hardcode_action=$hardcode_action_GCJ
18510 # Whether we should hardcode library paths into libraries.
18511 hardcode_into_libs=$hardcode_into_libs
18513 # Flag to hardcode \$libdir into a binary during linking.
18514 # This must work even if \$libdir does not exist.
18515 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18517 # If ld is used when linking, flag to hardcode \$libdir into
18518 # a binary during linking. This must work even if \$libdir does
18519 # not exist.
18520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18522 # Whether we need a single -rpath flag with a separated argument.
18523 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18525 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18526 # resulting binary.
18527 hardcode_direct=$hardcode_direct_GCJ
18529 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18530 # resulting binary.
18531 hardcode_minus_L=$hardcode_minus_L_GCJ
18533 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18534 # the resulting binary.
18535 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18537 # Set to yes if building a shared library automatically hardcodes DIR into the library
18538 # and all subsequent libraries and executables linked against it.
18539 hardcode_automatic=$hardcode_automatic_GCJ
18541 # Variables whose values should be saved in libtool wrapper scripts and
18542 # restored at relink time.
18543 variables_saved_for_relink="$variables_saved_for_relink"
18545 # Whether libtool must link a program against all its dependency libraries.
18546 link_all_deplibs=$link_all_deplibs_GCJ
18548 # Compile-time system search path for libraries
18549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18551 # Run-time system search path for libraries
18552 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18554 # Fix the shell variable \$srcfile for the compiler.
18555 fix_srcfile_path="$fix_srcfile_path_GCJ"
18557 # Set to yes if exported symbols are required.
18558 always_export_symbols=$always_export_symbols_GCJ
18560 # The commands to list exported symbols.
18561 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18563 # The commands to extract the exported symbol list from a shared archive.
18564 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18566 # Symbols that should not be listed in the preloaded symbols.
18567 exclude_expsyms=$lt_exclude_expsyms_GCJ
18569 # Symbols that must always be exported.
18570 include_expsyms=$lt_include_expsyms_GCJ
18572 # ### END LIBTOOL TAG CONFIG: $tagname
18574 __EOF__
18577 else
18578   # If there is no Makefile yet, we rely on a make rule to execute
18579   # `config.status --recheck' to rerun these tests and create the
18580   # libtool script then.
18581   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18582   if test -f "$ltmain_in"; then
18583     test -f Makefile && make "$ltmain"
18584   fi
18588 ac_ext=c
18589 ac_cpp='$CPP $CPPFLAGS'
18590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18594 CC="$lt_save_CC"
18596         else
18597           tagname=""
18598         fi
18599         ;;
18601       RC)
18602         
18605 # Source file extension for RC test sources.
18606 ac_ext=rc
18608 # Object file extension for compiled RC test sources.
18609 objext=o
18610 objext_RC=$objext
18612 # Code to be used in simple compile tests
18613 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18615 # Code to be used in simple link tests
18616 lt_simple_link_test_code="$lt_simple_compile_test_code"
18618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18620 # If no C compiler was specified, use CC.
18621 LTCC=${LTCC-"$CC"}
18623 # Allow CC to be a program name with arguments.
18624 compiler=$CC
18627 # Allow CC to be a program name with arguments.
18628 lt_save_CC="$CC"
18629 CC=${RC-"windres"}
18630 compiler=$CC
18631 compiler_RC=$CC
18632 lt_cv_prog_compiler_c_o_RC=yes
18634 # The else clause should only fire when bootstrapping the
18635 # libtool distribution, otherwise you forgot to ship ltmain.sh
18636 # with your package, and you will get complaints that there are
18637 # no rules to generate ltmain.sh.
18638 if test -f "$ltmain"; then
18639   # See if we are running on zsh, and set the options which allow our commands through
18640   # without removal of \ escapes.
18641   if test -n "${ZSH_VERSION+set}" ; then
18642     setopt NO_GLOB_SUBST
18643   fi
18644   # Now quote all the things that may contain metacharacters while being
18645   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18646   # variables and quote the copies for generation of the libtool script.
18647   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18648     SED SHELL STRIP \
18649     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18650     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18651     deplibs_check_method reload_flag reload_cmds need_locks \
18652     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18653     lt_cv_sys_global_symbol_to_c_name_address \
18654     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18655     old_postinstall_cmds old_postuninstall_cmds \
18656     compiler_RC \
18657     CC_RC \
18658     LD_RC \
18659     lt_prog_compiler_wl_RC \
18660     lt_prog_compiler_pic_RC \
18661     lt_prog_compiler_static_RC \
18662     lt_prog_compiler_no_builtin_flag_RC \
18663     export_dynamic_flag_spec_RC \
18664     thread_safe_flag_spec_RC \
18665     whole_archive_flag_spec_RC \
18666     enable_shared_with_static_runtimes_RC \
18667     old_archive_cmds_RC \
18668     old_archive_from_new_cmds_RC \
18669     predep_objects_RC \
18670     postdep_objects_RC \
18671     predeps_RC \
18672     postdeps_RC \
18673     compiler_lib_search_path_RC \
18674     archive_cmds_RC \
18675     archive_expsym_cmds_RC \
18676     postinstall_cmds_RC \
18677     postuninstall_cmds_RC \
18678     old_archive_from_expsyms_cmds_RC \
18679     allow_undefined_flag_RC \
18680     no_undefined_flag_RC \
18681     export_symbols_cmds_RC \
18682     hardcode_libdir_flag_spec_RC \
18683     hardcode_libdir_flag_spec_ld_RC \
18684     hardcode_libdir_separator_RC \
18685     hardcode_automatic_RC \
18686     module_cmds_RC \
18687     module_expsym_cmds_RC \
18688     lt_cv_prog_compiler_c_o_RC \
18689     exclude_expsyms_RC \
18690     include_expsyms_RC; do
18692     case $var in
18693     old_archive_cmds_RC | \
18694     old_archive_from_new_cmds_RC | \
18695     archive_cmds_RC | \
18696     archive_expsym_cmds_RC | \
18697     module_cmds_RC | \
18698     module_expsym_cmds_RC | \
18699     old_archive_from_expsyms_cmds_RC | \
18700     export_symbols_cmds_RC | \
18701     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18702     postinstall_cmds | postuninstall_cmds | \
18703     old_postinstall_cmds | old_postuninstall_cmds | \
18704     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18705       # Double-quote double-evaled strings.
18706       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18707       ;;
18708     *)
18709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18710       ;;
18711     esac
18712   done
18714   case $lt_echo in
18715   *'\$0 --fallback-echo"')
18716     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18717     ;;
18718   esac
18720 cfgfile="$ofile"
18722   cat <<__EOF__ >> "$cfgfile"
18723 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18725 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18727 # Shell to use when invoking shell scripts.
18728 SHELL=$lt_SHELL
18730 # Whether or not to build shared libraries.
18731 build_libtool_libs=$enable_shared
18733 # Whether or not to build static libraries.
18734 build_old_libs=$enable_static
18736 # Whether or not to add -lc for building shared libraries.
18737 build_libtool_need_lc=$archive_cmds_need_lc_RC
18739 # Whether or not to disallow shared libs when runtime libs are static
18740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18742 # Whether or not to optimize for fast installation.
18743 fast_install=$enable_fast_install
18745 # The host system.
18746 host_alias=$host_alias
18747 host=$host
18749 # An echo program that does not interpret backslashes.
18750 echo=$lt_echo
18752 # The archiver.
18753 AR=$lt_AR
18754 AR_FLAGS=$lt_AR_FLAGS
18756 # A C compiler.
18757 LTCC=$lt_LTCC
18759 # A language-specific compiler.
18760 CC=$lt_compiler_RC
18762 # Is the compiler the GNU C compiler?
18763 with_gcc=$GCC_RC
18765 # An ERE matcher.
18766 EGREP=$lt_EGREP
18768 # The linker used to build libraries.
18769 LD=$lt_LD_RC
18771 # Whether we need hard or soft links.
18772 LN_S=$lt_LN_S
18774 # A BSD-compatible nm program.
18775 NM=$lt_NM
18777 # A symbol stripping program
18778 STRIP=$lt_STRIP
18780 # Used to examine libraries when file_magic_cmd begins "file"
18781 MAGIC_CMD=$MAGIC_CMD
18783 # Used on cygwin: DLL creation program.
18784 DLLTOOL="$DLLTOOL"
18786 # Used on cygwin: object dumper.
18787 OBJDUMP="$OBJDUMP"
18789 # Used on cygwin: assembler.
18790 AS="$AS"
18792 # The name of the directory that contains temporary libtool files.
18793 objdir=$objdir
18795 # How to create reloadable object files.
18796 reload_flag=$lt_reload_flag
18797 reload_cmds=$lt_reload_cmds
18799 # How to pass a linker flag through the compiler.
18800 wl=$lt_lt_prog_compiler_wl_RC
18802 # Object file suffix (normally "o").
18803 objext="$ac_objext"
18805 # Old archive suffix (normally "a").
18806 libext="$libext"
18808 # Shared library suffix (normally ".so").
18809 shrext_cmds='$shrext_cmds'
18811 # Executable file suffix (normally "").
18812 exeext="$exeext"
18814 # Additional compiler flags for building library objects.
18815 pic_flag=$lt_lt_prog_compiler_pic_RC
18816 pic_mode=$pic_mode
18818 # What is the maximum length of a command?
18819 max_cmd_len=$lt_cv_sys_max_cmd_len
18821 # Does compiler simultaneously support -c and -o options?
18822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18824 # Must we lock files when doing compilation ?
18825 need_locks=$lt_need_locks
18827 # Do we need the lib prefix for modules?
18828 need_lib_prefix=$need_lib_prefix
18830 # Do we need a version for libraries?
18831 need_version=$need_version
18833 # Whether dlopen is supported.
18834 dlopen_support=$enable_dlopen
18836 # Whether dlopen of programs is supported.
18837 dlopen_self=$enable_dlopen_self
18839 # Whether dlopen of statically linked programs is supported.
18840 dlopen_self_static=$enable_dlopen_self_static
18842 # Compiler flag to prevent dynamic linking.
18843 link_static_flag=$lt_lt_prog_compiler_static_RC
18845 # Compiler flag to turn off builtin functions.
18846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18848 # Compiler flag to allow reflexive dlopens.
18849 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18851 # Compiler flag to generate shared objects directly from archives.
18852 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18854 # Compiler flag to generate thread-safe objects.
18855 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18857 # Library versioning type.
18858 version_type=$version_type
18860 # Format of library name prefix.
18861 libname_spec=$lt_libname_spec
18863 # List of archive names.  First name is the real one, the rest are links.
18864 # The last name is the one that the linker finds with -lNAME.
18865 library_names_spec=$lt_library_names_spec
18867 # The coded name of the library, if different from the real name.
18868 soname_spec=$lt_soname_spec
18870 # Commands used to build and install an old-style archive.
18871 RANLIB=$lt_RANLIB
18872 old_archive_cmds=$lt_old_archive_cmds_RC
18873 old_postinstall_cmds=$lt_old_postinstall_cmds
18874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18876 # Create an old-style archive from a shared archive.
18877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18879 # Create a temporary old-style archive to link instead of a shared archive.
18880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18882 # Commands used to build and install a shared archive.
18883 archive_cmds=$lt_archive_cmds_RC
18884 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18885 postinstall_cmds=$lt_postinstall_cmds
18886 postuninstall_cmds=$lt_postuninstall_cmds
18888 # Commands used to build a loadable module (assumed same as above if empty)
18889 module_cmds=$lt_module_cmds_RC
18890 module_expsym_cmds=$lt_module_expsym_cmds_RC
18892 # Commands to strip libraries.
18893 old_striplib=$lt_old_striplib
18894 striplib=$lt_striplib
18896 # Dependencies to place before the objects being linked to create a
18897 # shared library.
18898 predep_objects=$lt_predep_objects_RC
18900 # Dependencies to place after the objects being linked to create a
18901 # shared library.
18902 postdep_objects=$lt_postdep_objects_RC
18904 # Dependencies to place before the objects being linked to create a
18905 # shared library.
18906 predeps=$lt_predeps_RC
18908 # Dependencies to place after the objects being linked to create a
18909 # shared library.
18910 postdeps=$lt_postdeps_RC
18912 # The library search path used internally by the compiler when linking
18913 # a shared library.
18914 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18916 # Method to check whether dependent libraries are shared objects.
18917 deplibs_check_method=$lt_deplibs_check_method
18919 # Command to use when deplibs_check_method == file_magic.
18920 file_magic_cmd=$lt_file_magic_cmd
18922 # Flag that allows shared libraries with undefined symbols to be built.
18923 allow_undefined_flag=$lt_allow_undefined_flag_RC
18925 # Flag that forces no undefined symbols.
18926 no_undefined_flag=$lt_no_undefined_flag_RC
18928 # Commands used to finish a libtool library installation in a directory.
18929 finish_cmds=$lt_finish_cmds
18931 # Same as above, but a single script fragment to be evaled but not shown.
18932 finish_eval=$lt_finish_eval
18934 # Take the output of nm and produce a listing of raw symbols and C names.
18935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18937 # Transform the output of nm in a proper C declaration
18938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18940 # Transform the output of nm in a C name address pair
18941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18943 # This is the shared library runtime path variable.
18944 runpath_var=$runpath_var
18946 # This is the shared library path variable.
18947 shlibpath_var=$shlibpath_var
18949 # Is shlibpath searched before the hard-coded library search path?
18950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18952 # How to hardcode a shared library path into an executable.
18953 hardcode_action=$hardcode_action_RC
18955 # Whether we should hardcode library paths into libraries.
18956 hardcode_into_libs=$hardcode_into_libs
18958 # Flag to hardcode \$libdir into a binary during linking.
18959 # This must work even if \$libdir does not exist.
18960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18962 # If ld is used when linking, flag to hardcode \$libdir into
18963 # a binary during linking. This must work even if \$libdir does
18964 # not exist.
18965 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18967 # Whether we need a single -rpath flag with a separated argument.
18968 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18970 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18971 # resulting binary.
18972 hardcode_direct=$hardcode_direct_RC
18974 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18975 # resulting binary.
18976 hardcode_minus_L=$hardcode_minus_L_RC
18978 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18979 # the resulting binary.
18980 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18982 # Set to yes if building a shared library automatically hardcodes DIR into the library
18983 # and all subsequent libraries and executables linked against it.
18984 hardcode_automatic=$hardcode_automatic_RC
18986 # Variables whose values should be saved in libtool wrapper scripts and
18987 # restored at relink time.
18988 variables_saved_for_relink="$variables_saved_for_relink"
18990 # Whether libtool must link a program against all its dependency libraries.
18991 link_all_deplibs=$link_all_deplibs_RC
18993 # Compile-time system search path for libraries
18994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18996 # Run-time system search path for libraries
18997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18999 # Fix the shell variable \$srcfile for the compiler.
19000 fix_srcfile_path="$fix_srcfile_path_RC"
19002 # Set to yes if exported symbols are required.
19003 always_export_symbols=$always_export_symbols_RC
19005 # The commands to list exported symbols.
19006 export_symbols_cmds=$lt_export_symbols_cmds_RC
19008 # The commands to extract the exported symbol list from a shared archive.
19009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19011 # Symbols that should not be listed in the preloaded symbols.
19012 exclude_expsyms=$lt_exclude_expsyms_RC
19014 # Symbols that must always be exported.
19015 include_expsyms=$lt_include_expsyms_RC
19017 # ### END LIBTOOL TAG CONFIG: $tagname
19019 __EOF__
19022 else
19023   # If there is no Makefile yet, we rely on a make rule to execute
19024   # `config.status --recheck' to rerun these tests and create the
19025   # libtool script then.
19026   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19027   if test -f "$ltmain_in"; then
19028     test -f Makefile && make "$ltmain"
19029   fi
19033 ac_ext=c
19034 ac_cpp='$CPP $CPPFLAGS'
19035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19039 CC="$lt_save_CC"
19041         ;;
19043       *)
19044         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19045 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19046    { (exit 1); exit 1; }; }
19047         ;;
19048       esac
19050       # Append the new tag name to the list of available tags.
19051       if test -n "$tagname" ; then
19052       available_tags="$available_tags $tagname"
19053     fi
19054     fi
19055   done
19056   IFS="$lt_save_ifs"
19058   # Now substitute the updated list of available tags.
19059   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19060     mv "${ofile}T" "$ofile"
19061     chmod +x "$ofile"
19062   else
19063     rm -f "${ofile}T"
19064     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19065 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19066    { (exit 1); exit 1; }; }
19067   fi
19072 # This can be used to rebuild libtool when needed
19073 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19075 # Always use our own libtool.
19076 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19078 # Prevent multiple expansion
19090   
19092   
19095   
19096        
19097        
19100 ac_ext=cc
19101 ac_cpp='$CXXCPP $CPPFLAGS'
19102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19108 # Check whether --with-libusb or --without-libusb was given.
19109 if test "${with_libusb+set}" = set; then
19110   withval="$with_libusb"
19111   LIBUSB_LIB_PATH="$with_libusb/lib"
19112          LIBUSB_INC_PATH="$with_libusb/include"
19113 else
19114   LIBUSB_LIB_PATH="/usr/lib"
19115          LIBUSB_INC_PATH="/usr/include"
19116 fi; 
19118 # Check whether --with-boost or --without-boost was given.
19119 if test "${with_boost+set}" = set; then
19120   withval="$with_boost"
19121   BOOST_LIB_PATH="$with_boost/lib"
19122          BOOST_INC_PATH="$with_boost/include"
19123          BOOST_ENABLED="true"
19124 else
19125   BOOST_LIB_PATH="/usr/lib"
19126          BOOST_INC_PATH="/usr/include"
19127 fi; 
19136 if test "$BOOST_ENABLED" = "true"; then
19137   WITH_BOOST_TRUE=
19138   WITH_BOOST_FALSE='#'
19139 else
19140   WITH_BOOST_TRUE='#'
19141   WITH_BOOST_FALSE=
19145 # Checks for libraries.
19146 #AC_CHECK_LIB([IOKit], [main])
19148 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19149 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
19150 if test "${ac_cv_lib_pthread_main+set}" = set; then
19151   echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153   ac_check_lib_save_LIBS=$LIBS
19154 LIBS="-lpthread  $LIBS"
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19164 main ()
19166 main ();
19167   ;
19168   return 0;
19170 _ACEOF
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19173   (eval $ac_link) 2>conftest.er1
19174   ac_status=$?
19175   grep -v '^ *+' conftest.er1 >conftest.err
19176   rm -f conftest.er1
19177   cat conftest.err >&5
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); } &&
19180          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182   (eval $ac_try) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; } &&
19186          { ac_try='test -s conftest$ac_exeext'
19187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188   (eval $ac_try) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192   ac_cv_lib_pthread_main=yes
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_lib_pthread_main=no
19199 rm -f conftest.err conftest.$ac_objext \
19200       conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19204 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
19205 if test $ac_cv_lib_pthread_main = yes; then
19206   cat >>confdefs.h <<_ACEOF
19207 @%:@define HAVE_LIBPTHREAD 1
19208 _ACEOF
19210   LIBS="-lpthread $LIBS"
19214 #AC_CHECK_LIB([libusb], [libusb_init])
19216 # Checks for header files.
19222 ac_header_dirent=no
19223 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19224   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19225 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19226 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228   echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230   cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236 #include <sys/types.h>
19237 #include <$ac_hdr>
19240 main ()
19242 if ((DIR *) 0)
19243 return 0;
19244   ;
19245   return 0;
19247 _ACEOF
19248 rm -f conftest.$ac_objext
19249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19250   (eval $ac_compile) 2>conftest.er1
19251   ac_status=$?
19252   grep -v '^ *+' conftest.er1 >conftest.err
19253   rm -f conftest.er1
19254   cat conftest.err >&5
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); } &&
19257          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259   (eval $ac_try) 2>&5
19260   ac_status=$?
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); }; } &&
19263          { ac_try='test -s conftest.$ac_objext'
19264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265   (eval $ac_try) 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; }; then
19269   eval "$as_ac_Header=yes"
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 eval "$as_ac_Header=no"
19276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19281   cat >>confdefs.h <<_ACEOF
19282 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19283 _ACEOF
19285 ac_header_dirent=$ac_hdr; break
19288 done
19289 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19290 if test $ac_header_dirent = dirent.h; then
19291   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19292 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19293 if test "${ac_cv_search_opendir+set}" = set; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296   ac_func_search_save_LIBS=$LIBS
19297 ac_cv_search_opendir=no
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19305 /* Override any gcc2 internal prototype to avoid an error.  */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 /* We use char because int might match the return type of a gcc2
19310    builtin and then its argument prototype would still apply.  */
19311 char opendir ();
19313 main ()
19315 opendir ();
19316   ;
19317   return 0;
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322   (eval $ac_link) 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331   (eval $ac_try) 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }; } &&
19335          { ac_try='test -s conftest$ac_exeext'
19336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337   (eval $ac_try) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; }; then
19341   ac_cv_search_opendir="none required"
19342 else
19343   echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19347 rm -f conftest.err conftest.$ac_objext \
19348       conftest$ac_exeext conftest.$ac_ext
19349 if test "$ac_cv_search_opendir" = no; then
19350   for ac_lib in dir; do
19351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19352     cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19359 /* Override any gcc2 internal prototype to avoid an error.  */
19360 #ifdef __cplusplus
19361 extern "C"
19362 #endif
19363 /* We use char because int might match the return type of a gcc2
19364    builtin and then its argument prototype would still apply.  */
19365 char opendir ();
19367 main ()
19369 opendir ();
19370   ;
19371   return 0;
19373 _ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376   (eval $ac_link) 2>conftest.er1
19377   ac_status=$?
19378   grep -v '^ *+' conftest.er1 >conftest.err
19379   rm -f conftest.er1
19380   cat conftest.err >&5
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); } &&
19383          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385   (eval $ac_try) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; } &&
19389          { ac_try='test -s conftest$ac_exeext'
19390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391   (eval $ac_try) 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395   ac_cv_search_opendir="-l$ac_lib"
19396 break
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19402 rm -f conftest.err conftest.$ac_objext \
19403       conftest$ac_exeext conftest.$ac_ext
19404   done
19406 LIBS=$ac_func_search_save_LIBS
19408 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19409 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19410 if test "$ac_cv_search_opendir" != no; then
19411   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19412   
19415 else
19416   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19417 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19418 if test "${ac_cv_search_opendir+set}" = set; then
19419   echo $ECHO_N "(cached) $ECHO_C" >&6
19420 else
19421   ac_func_search_save_LIBS=$LIBS
19422 ac_cv_search_opendir=no
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19430 /* Override any gcc2 internal prototype to avoid an error.  */
19431 #ifdef __cplusplus
19432 extern "C"
19433 #endif
19434 /* We use char because int might match the return type of a gcc2
19435    builtin and then its argument prototype would still apply.  */
19436 char opendir ();
19438 main ()
19440 opendir ();
19441   ;
19442   return 0;
19444 _ACEOF
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447   (eval $ac_link) 2>conftest.er1
19448   ac_status=$?
19449   grep -v '^ *+' conftest.er1 >conftest.err
19450   rm -f conftest.er1
19451   cat conftest.err >&5
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } &&
19454          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456   (eval $ac_try) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; } &&
19460          { ac_try='test -s conftest$ac_exeext'
19461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462   (eval $ac_try) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }; }; then
19466   ac_cv_search_opendir="none required"
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19472 rm -f conftest.err conftest.$ac_objext \
19473       conftest$ac_exeext conftest.$ac_ext
19474 if test "$ac_cv_search_opendir" = no; then
19475   for ac_lib in x; do
19476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19477     cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19484 /* Override any gcc2 internal prototype to avoid an error.  */
19485 #ifdef __cplusplus
19486 extern "C"
19487 #endif
19488 /* We use char because int might match the return type of a gcc2
19489    builtin and then its argument prototype would still apply.  */
19490 char opendir ();
19492 main ()
19494 opendir ();
19495   ;
19496   return 0;
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501   (eval $ac_link) 2>conftest.er1
19502   ac_status=$?
19503   grep -v '^ *+' conftest.er1 >conftest.err
19504   rm -f conftest.er1
19505   cat conftest.err >&5
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } &&
19508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510   (eval $ac_try) 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); }; } &&
19514          { ac_try='test -s conftest$ac_exeext'
19515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516   (eval $ac_try) 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   ac_cv_search_opendir="-l$ac_lib"
19521 break
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19527 rm -f conftest.err conftest.$ac_objext \
19528       conftest$ac_exeext conftest.$ac_ext
19529   done
19531 LIBS=$ac_func_search_save_LIBS
19533 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19534 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19535 if test "$ac_cv_search_opendir" != no; then
19536   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19537   
19543 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19544 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19545 if test "${ac_cv_header_stdc+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548   cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #include <stdlib.h>
19555 #include <stdarg.h>
19556 #include <string.h>
19557 #include <float.h>
19560 main ()
19563   ;
19564   return 0;
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569   (eval $ac_compile) 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; } &&
19582          { ac_try='test -s conftest.$ac_objext'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   ac_cv_header_stdc=yes
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_cv_header_stdc=no
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 if test $ac_cv_header_stdc = yes; then
19598   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19599   cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 #include <string.h>
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "memchr" >/dev/null 2>&1; then
19610   :
19611 else
19612   ac_cv_header_stdc=no
19614 rm -f conftest*
19618 if test $ac_cv_header_stdc = yes; then
19619   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19620   cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626 #include <stdlib.h>
19628 _ACEOF
19629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19630   $EGREP "free" >/dev/null 2>&1; then
19631   :
19632 else
19633   ac_cv_header_stdc=no
19635 rm -f conftest*
19639 if test $ac_cv_header_stdc = yes; then
19640   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19641   if test "$cross_compiling" = yes; then
19642   :
19643 else
19644   cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 #include <ctype.h>
19651 #if ((' ' & 0x0FF) == 0x020)
19652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19654 #else
19655 # define ISLOWER(c) \
19656                    (('a' <= (c) && (c) <= 'i') \
19657                      || ('j' <= (c) && (c) <= 'r') \
19658                      || ('s' <= (c) && (c) <= 'z'))
19659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19660 #endif
19662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19664 main ()
19666   int i;
19667   for (i = 0; i < 256; i++)
19668     if (XOR (islower (i), ISLOWER (i))
19669         || toupper (i) != TOUPPER (i))
19670       exit(2);
19671   exit (0);
19673 _ACEOF
19674 rm -f conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676   (eval $ac_link) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681   (eval $ac_try) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; }; then
19685   :
19686 else
19687   echo "$as_me: program exited with status $ac_status" >&5
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ( exit $ac_status )
19692 ac_cv_header_stdc=no
19694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19698 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19699 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19700 if test $ac_cv_header_stdc = yes; then
19701   
19702 cat >>confdefs.h <<\_ACEOF
19703 @%:@define STDC_HEADERS 1
19704 _ACEOF
19711 for ac_header in assert.h stdint.h time.h
19713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19715   echo "$as_me:$LINENO: checking for $ac_header" >&5
19716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19718   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19722 else
19723   # Is the header compilable?
19724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h.  */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h.  */
19732 $ac_includes_default
19733 @%:@include <$ac_header>
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737   (eval $ac_compile) 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } &&
19744          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746   (eval $ac_try) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); }; } &&
19750          { ac_try='test -s conftest.$ac_objext'
19751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752   (eval $ac_try) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }; }; then
19756   ac_header_compiler=yes
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_header_compiler=no
19763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19765 echo "${ECHO_T}$ac_header_compiler" >&6
19767 # Is the header present?
19768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776 @%:@include <$ac_header>
19777 _ACEOF
19778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } >/dev/null; then
19786   if test -s conftest.err; then
19787     ac_cpp_err=$ac_cxx_preproc_warn_flag
19788     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19789   else
19790     ac_cpp_err=
19791   fi
19792 else
19793   ac_cpp_err=yes
19795 if test -z "$ac_cpp_err"; then
19796   ac_header_preproc=yes
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801   ac_header_preproc=no
19803 rm -f conftest.err conftest.$ac_ext
19804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19805 echo "${ECHO_T}$ac_header_preproc" >&6
19807 # So?  What about this header?
19808 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19809   yes:no: )
19810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19814     ac_header_preproc=yes
19815     ;;
19816   no:yes:* )
19817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19829     (
19830       cat <<\_ASBOX
19831 @%:@@%:@ ------------------------------------------------ @%:@@%:@
19832 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
19833 @%:@@%:@ ------------------------------------------------ @%:@@%:@
19834 _ASBOX
19835     ) |
19836       sed "s/^/$as_me: WARNING:     /" >&2
19837     ;;
19838 esac
19839 echo "$as_me:$LINENO: checking for $ac_header" >&5
19840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842   echo $ECHO_N "(cached) $ECHO_C" >&6
19843 else
19844   eval "$as_ac_Header=\$ac_header_preproc"
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19851   cat >>confdefs.h <<_ACEOF
19852 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853 _ACEOF
19857 done
19860 # Checks for typedefs, structures, and compiler characteristics.
19861 #AC_TYPE_SIZE_T
19862 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19863 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19864 if test "${ac_cv_header_time+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 #include <sys/types.h>
19874 #include <sys/time.h>
19875 #include <time.h>
19878 main ()
19880 if ((struct tm *) 0)
19881 return 0;
19882   ;
19883   return 0;
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888   (eval $ac_compile) 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; } &&
19901          { ac_try='test -s conftest.$ac_objext'
19902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903   (eval $ac_try) 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ac_cv_header_time=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_header_time=no
19914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19916 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19917 echo "${ECHO_T}$ac_cv_header_time" >&6
19918 if test $ac_cv_header_time = yes; then
19919   
19920 cat >>confdefs.h <<\_ACEOF
19921 @%:@define TIME_WITH_SYS_TIME 1
19922 _ACEOF
19926 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19927 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19928 if test "${ac_cv_struct_tm+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h.  */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h.  */
19937 #include <sys/types.h>
19938 #include <time.h>
19941 main ()
19943 struct tm *tp; tp->tm_sec;
19944   ;
19945   return 0;
19947 _ACEOF
19948 rm -f conftest.$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950   (eval $ac_compile) 2>conftest.er1
19951   ac_status=$?
19952   grep -v '^ *+' conftest.er1 >conftest.err
19953   rm -f conftest.er1
19954   cat conftest.err >&5
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); } &&
19957          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; } &&
19963          { ac_try='test -s conftest.$ac_objext'
19964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965   (eval $ac_try) 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); }; }; then
19969   ac_cv_struct_tm=time.h
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_cv_struct_tm=sys/time.h
19976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19978 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19979 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19980 if test $ac_cv_struct_tm = sys/time.h; then
19981   
19982 cat >>confdefs.h <<\_ACEOF
19983 @%:@define TM_IN_SYS_TIME 1
19984 _ACEOF
19989 # Checks for library functions.
19990 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19991 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19992 if test "${ac_cv_func_closedir_void+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   if test "$cross_compiling" = yes; then
19996   ac_cv_func_closedir_void=yes
19997 else
19998   cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h.  */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h.  */
20004 $ac_includes_default
20005 #include <$ac_header_dirent>
20006 #ifndef __cplusplus
20007 int closedir ();
20008 #endif
20011 main ()
20013 exit (closedir (opendir (".")) != 0);
20014   ;
20015   return 0;
20017 _ACEOF
20018 rm -f conftest$ac_exeext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20020   (eval $ac_link) 2>&5
20021   ac_status=$?
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025   (eval $ac_try) 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; }; then
20029   ac_cv_func_closedir_void=no
20030 else
20031   echo "$as_me: program exited with status $ac_status" >&5
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ( exit $ac_status )
20036 ac_cv_func_closedir_void=yes
20038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20041 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20042 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20043 if test $ac_cv_func_closedir_void = yes; then
20044   
20045 cat >>confdefs.h <<\_ACEOF
20046 @%:@define CLOSEDIR_VOID 1
20047 _ACEOF
20051 if test $ac_cv_c_compiler_gnu = yes; then
20052     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20053 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20054 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057     ac_pattern="Autoconf.*'x'"
20058   cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 #include <sgtty.h>
20065 Autoconf TIOCGETP
20066 _ACEOF
20067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20068   $EGREP "$ac_pattern" >/dev/null 2>&1; then
20069   ac_cv_prog_gcc_traditional=yes
20070 else
20071   ac_cv_prog_gcc_traditional=no
20073 rm -f conftest*
20076   if test $ac_cv_prog_gcc_traditional = no; then
20077     cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 #include <termio.h>
20084 Autoconf TCGETA
20085 _ACEOF
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087   $EGREP "$ac_pattern" >/dev/null 2>&1; then
20088   ac_cv_prog_gcc_traditional=yes
20090 rm -f conftest*
20092   fi
20094 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20096   if test $ac_cv_prog_gcc_traditional = yes; then
20097     CC="$CC -traditional"
20098   fi
20102 for ac_header in stdlib.h
20104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20106   echo "$as_me:$LINENO: checking for $ac_header" >&5
20107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20113 else
20114   # Is the header compilable?
20115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123 $ac_includes_default
20124 @%:@include <$ac_header>
20125 _ACEOF
20126 rm -f conftest.$ac_objext
20127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20128   (eval $ac_compile) 2>conftest.er1
20129   ac_status=$?
20130   grep -v '^ *+' conftest.er1 >conftest.err
20131   rm -f conftest.er1
20132   cat conftest.err >&5
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); } &&
20135          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137   (eval $ac_try) 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; } &&
20141          { ac_try='test -s conftest.$ac_objext'
20142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143   (eval $ac_try) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; }; then
20147   ac_header_compiler=yes
20148 else
20149   echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_header_compiler=no
20154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20156 echo "${ECHO_T}$ac_header_compiler" >&6
20158 # Is the header present?
20159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167 @%:@include <$ac_header>
20168 _ACEOF
20169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } >/dev/null; then
20177   if test -s conftest.err; then
20178     ac_cpp_err=$ac_cxx_preproc_warn_flag
20179     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20180   else
20181     ac_cpp_err=
20182   fi
20183 else
20184   ac_cpp_err=yes
20186 if test -z "$ac_cpp_err"; then
20187   ac_header_preproc=yes
20188 else
20189   echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192   ac_header_preproc=no
20194 rm -f conftest.err conftest.$ac_ext
20195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20196 echo "${ECHO_T}$ac_header_preproc" >&6
20198 # So?  What about this header?
20199 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20200   yes:no: )
20201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20205     ac_header_preproc=yes
20206     ;;
20207   no:yes:* )
20208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20220     (
20221       cat <<\_ASBOX
20222 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20223 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
20224 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20225 _ASBOX
20226     ) |
20227       sed "s/^/$as_me: WARNING:     /" >&2
20228     ;;
20229 esac
20230 echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235   eval "$as_ac_Header=\$ac_header_preproc"
20237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20242   cat >>confdefs.h <<_ACEOF
20243 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20244 _ACEOF
20248 done
20250 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20251 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20252 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20253   echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255   if test "$cross_compiling" = yes; then
20256   ac_cv_func_malloc_0_nonnull=no
20257 else
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264 #if STDC_HEADERS || HAVE_STDLIB_H
20265 # include <stdlib.h>
20266 #else
20267 char *malloc ();
20268 #endif
20271 main ()
20273 exit (malloc (0) ? 0 : 1);
20274   ;
20275   return 0;
20277 _ACEOF
20278 rm -f conftest$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280   (eval $ac_link) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285   (eval $ac_try) 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; }; then
20289   ac_cv_func_malloc_0_nonnull=yes
20290 else
20291   echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ( exit $ac_status )
20296 ac_cv_func_malloc_0_nonnull=no
20298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20301 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20302 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20303 if test $ac_cv_func_malloc_0_nonnull = yes; then
20304   
20305 cat >>confdefs.h <<\_ACEOF
20306 @%:@define HAVE_MALLOC 1
20307 _ACEOF
20309 else
20310   cat >>confdefs.h <<\_ACEOF
20311 @%:@define HAVE_MALLOC 0
20312 _ACEOF
20314    case $LIB@&t@OBJS in
20315     "malloc.$ac_objext"   | \
20316   *" malloc.$ac_objext"   | \
20317     "malloc.$ac_objext "* | \
20318   *" malloc.$ac_objext "* ) ;;
20319   *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;;
20320 esac
20322    
20323 cat >>confdefs.h <<\_ACEOF
20324 @%:@define malloc rpl_malloc
20325 _ACEOF
20334 for ac_header in stdlib.h sys/time.h unistd.h
20336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20338   echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20345 else
20346   # Is the header compilable?
20347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355 $ac_includes_default
20356 @%:@include <$ac_header>
20357 _ACEOF
20358 rm -f conftest.$ac_objext
20359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20360   (eval $ac_compile) 2>conftest.er1
20361   ac_status=$?
20362   grep -v '^ *+' conftest.er1 >conftest.err
20363   rm -f conftest.er1
20364   cat conftest.err >&5
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); } &&
20367          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; } &&
20373          { ac_try='test -s conftest.$ac_objext'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   ac_header_compiler=yes
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_header_compiler=no
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20388 echo "${ECHO_T}$ac_header_compiler" >&6
20390 # Is the header present?
20391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20399 @%:@include <$ac_header>
20400 _ACEOF
20401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20403   ac_status=$?
20404   grep -v '^ *+' conftest.er1 >conftest.err
20405   rm -f conftest.er1
20406   cat conftest.err >&5
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); } >/dev/null; then
20409   if test -s conftest.err; then
20410     ac_cpp_err=$ac_cxx_preproc_warn_flag
20411     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20412   else
20413     ac_cpp_err=
20414   fi
20415 else
20416   ac_cpp_err=yes
20418 if test -z "$ac_cpp_err"; then
20419   ac_header_preproc=yes
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424   ac_header_preproc=no
20426 rm -f conftest.err conftest.$ac_ext
20427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20428 echo "${ECHO_T}$ac_header_preproc" >&6
20430 # So?  What about this header?
20431 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20432   yes:no: )
20433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20437     ac_header_preproc=yes
20438     ;;
20439   no:yes:* )
20440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20452     (
20453       cat <<\_ASBOX
20454 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20455 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
20456 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20457 _ASBOX
20458     ) |
20459       sed "s/^/$as_me: WARNING:     /" >&2
20460     ;;
20461 esac
20462 echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20465   echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467   eval "$as_ac_Header=\$ac_header_preproc"
20469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20474   cat >>confdefs.h <<_ACEOF
20475 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20476 _ACEOF
20480 done
20483 for ac_func in alarm
20485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20486 echo "$as_me:$LINENO: checking for $ac_func" >&5
20487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20488 if eval "test \"\${$as_ac_var+set}\" = set"; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491   cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20499 #define $ac_func innocuous_$ac_func
20501 /* System header to define __stub macros and hopefully few prototypes,
20502     which can conflict with char $ac_func (); below.
20503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20504     <limits.h> exists even on freestanding compilers.  */
20506 #ifdef __STDC__
20507 # include <limits.h>
20508 #else
20509 # include <assert.h>
20510 #endif
20512 #undef $ac_func
20514 /* Override any gcc2 internal prototype to avoid an error.  */
20515 #ifdef __cplusplus
20516 extern "C"
20518 #endif
20519 /* We use char because int might match the return type of a gcc2
20520    builtin and then its argument prototype would still apply.  */
20521 char $ac_func ();
20522 /* The GNU C library defines this for functions which it implements
20523     to always fail with ENOSYS.  Some functions are actually named
20524     something starting with __ and the normal name is an alias.  */
20525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20526 choke me
20527 #else
20528 char (*f) () = $ac_func;
20529 #endif
20530 #ifdef __cplusplus
20532 #endif
20535 main ()
20537 return f != $ac_func;
20538   ;
20539   return 0;
20541 _ACEOF
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20544   (eval $ac_link) 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } &&
20551          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553   (eval $ac_try) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; } &&
20557          { ac_try='test -s conftest$ac_exeext'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; }; then
20563   eval "$as_ac_var=yes"
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 eval "$as_ac_var=no"
20570 rm -f conftest.err conftest.$ac_objext \
20571       conftest$ac_exeext conftest.$ac_ext
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20575 if test `eval echo '${'$as_ac_var'}'` = yes; then
20576   cat >>confdefs.h <<_ACEOF
20577 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20578 _ACEOF
20581 done
20583 echo "$as_me:$LINENO: checking for working mktime" >&5
20584 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20585 if test "${ac_cv_func_working_mktime+set}" = set; then
20586   echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588   if test "$cross_compiling" = yes; then
20589   ac_cv_func_working_mktime=no
20590 else
20591   cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 /* Test program from Paul Eggert and Tony Leneis.  */
20598 #if TIME_WITH_SYS_TIME
20599 # include <sys/time.h>
20600 # include <time.h>
20601 #else
20602 # if HAVE_SYS_TIME_H
20603 #  include <sys/time.h>
20604 # else
20605 #  include <time.h>
20606 # endif
20607 #endif
20609 #if HAVE_STDLIB_H
20610 # include <stdlib.h>
20611 #endif
20613 #if HAVE_UNISTD_H
20614 # include <unistd.h>
20615 #endif
20617 #if !HAVE_ALARM
20618 # define alarm(X) /* empty */
20619 #endif
20621 /* Work around redefinition to rpl_putenv by other config tests.  */
20622 #undef putenv
20624 static time_t time_t_max;
20625 static time_t time_t_min;
20627 /* Values we'll use to set the TZ environment variable.  */
20628 static char *tz_strings[] = {
20629   (char *) 0, "TZ=GMT0", "TZ=JST-9",
20630   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20632 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20634 /* Fail if mktime fails to convert a date in the spring-forward gap.
20635    Based on a problem report from Andreas Jaeger.  */
20636 static void
20637 spring_forward_gap ()
20639   /* glibc (up to about 1998-10-07) failed this test. */
20640   struct tm tm;
20642   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20643      instead of "TZ=America/Vancouver" in order to detect the bug even
20644      on systems that don't support the Olson extension, or don't have the
20645      full zoneinfo tables installed.  */
20646   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20648   tm.tm_year = 98;
20649   tm.tm_mon = 3;
20650   tm.tm_mday = 5;
20651   tm.tm_hour = 2;
20652   tm.tm_min = 0;
20653   tm.tm_sec = 0;
20654   tm.tm_isdst = -1;
20655   if (mktime (&tm) == (time_t)-1)
20656     exit (1);
20659 static void
20660 mktime_test1 (now)
20661      time_t now;
20663   struct tm *lt;
20664   if ((lt = localtime (&now)) && mktime (lt) != now)
20665     exit (1);
20668 static void
20669 mktime_test (now)
20670      time_t now;
20672   mktime_test1 (now);
20673   mktime_test1 ((time_t) (time_t_max - now));
20674   mktime_test1 ((time_t) (time_t_min + now));
20677 static void
20678 irix_6_4_bug ()
20680   /* Based on code from Ariel Faigon.  */
20681   struct tm tm;
20682   tm.tm_year = 96;
20683   tm.tm_mon = 3;
20684   tm.tm_mday = 0;
20685   tm.tm_hour = 0;
20686   tm.tm_min = 0;
20687   tm.tm_sec = 0;
20688   tm.tm_isdst = -1;
20689   mktime (&tm);
20690   if (tm.tm_mon != 2 || tm.tm_mday != 31)
20691     exit (1);
20694 static void
20695 bigtime_test (j)
20696      int j;
20698   struct tm tm;
20699   time_t now;
20700   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20701   now = mktime (&tm);
20702   if (now != (time_t) -1)
20703     {
20704       struct tm *lt = localtime (&now);
20705       if (! (lt
20706              && lt->tm_year == tm.tm_year
20707              && lt->tm_mon == tm.tm_mon
20708              && lt->tm_mday == tm.tm_mday
20709              && lt->tm_hour == tm.tm_hour
20710              && lt->tm_min == tm.tm_min
20711              && lt->tm_sec == tm.tm_sec
20712              && lt->tm_yday == tm.tm_yday
20713              && lt->tm_wday == tm.tm_wday
20714              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20715                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20716         exit (1);
20717     }
20721 main ()
20723   time_t t, delta;
20724   int i, j;
20726   /* This test makes some buggy mktime implementations loop.
20727      Give up after 60 seconds; a mktime slower than that
20728      isn't worth using anyway.  */
20729   alarm (60);
20731   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20732     continue;
20733   time_t_max--;
20734   if ((time_t) -1 < 0)
20735     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
20736       continue;
20737   delta = time_t_max / 997; /* a suitable prime number */
20738   for (i = 0; i < N_STRINGS; i++)
20739     {
20740       if (tz_strings[i])
20741         putenv (tz_strings[i]);
20743       for (t = 0; t <= time_t_max - delta; t += delta)
20744         mktime_test (t);
20745       mktime_test ((time_t) 1);
20746       mktime_test ((time_t) (60 * 60));
20747       mktime_test ((time_t) (60 * 60 * 24));
20749       for (j = 1; 0 < j; j *= 2)
20750         bigtime_test (j);
20751       bigtime_test (j - 1);
20752     }
20753   irix_6_4_bug ();
20754   spring_forward_gap ();
20755   exit (0);
20757 _ACEOF
20758 rm -f conftest$ac_exeext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20760   (eval $ac_link) 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765   (eval $ac_try) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; }; then
20769   ac_cv_func_working_mktime=yes
20770 else
20771   echo "$as_me: program exited with status $ac_status" >&5
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ( exit $ac_status )
20776 ac_cv_func_working_mktime=no
20778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20781 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20782 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20783 if test $ac_cv_func_working_mktime = no; then
20784   case $LIB@&t@OBJS in
20785     "mktime.$ac_objext"   | \
20786   *" mktime.$ac_objext"   | \
20787     "mktime.$ac_objext "* | \
20788   *" mktime.$ac_objext "* ) ;;
20789   *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext" ;;
20790 esac
20795 for ac_header in stdlib.h
20797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20799   echo "$as_me:$LINENO: checking for $ac_header" >&5
20800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20806 else
20807   # Is the header compilable?
20808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20810 cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 $ac_includes_default
20817 @%:@include <$ac_header>
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821   (eval $ac_compile) 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } &&
20828          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830   (eval $ac_try) 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; } &&
20834          { ac_try='test -s conftest.$ac_objext'
20835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836   (eval $ac_try) 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; }; then
20840   ac_header_compiler=yes
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_header_compiler=no
20847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20849 echo "${ECHO_T}$ac_header_compiler" >&6
20851 # Is the header present?
20852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 @%:@include <$ac_header>
20861 _ACEOF
20862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20864   ac_status=$?
20865   grep -v '^ *+' conftest.er1 >conftest.err
20866   rm -f conftest.er1
20867   cat conftest.err >&5
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } >/dev/null; then
20870   if test -s conftest.err; then
20871     ac_cpp_err=$ac_cxx_preproc_warn_flag
20872     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20873   else
20874     ac_cpp_err=
20875   fi
20876 else
20877   ac_cpp_err=yes
20879 if test -z "$ac_cpp_err"; then
20880   ac_header_preproc=yes
20881 else
20882   echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885   ac_header_preproc=no
20887 rm -f conftest.err conftest.$ac_ext
20888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20889 echo "${ECHO_T}$ac_header_preproc" >&6
20891 # So?  What about this header?
20892 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20893   yes:no: )
20894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20898     ac_header_preproc=yes
20899     ;;
20900   no:yes:* )
20901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20913     (
20914       cat <<\_ASBOX
20915 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20916 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
20917 @%:@@%:@ ------------------------------------------------ @%:@@%:@
20918 _ASBOX
20919     ) |
20920       sed "s/^/$as_me: WARNING:     /" >&2
20921     ;;
20922 esac
20923 echo "$as_me:$LINENO: checking for $ac_header" >&5
20924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20926   echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928   eval "$as_ac_Header=\$ac_header_preproc"
20930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20935   cat >>confdefs.h <<_ACEOF
20936 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20937 _ACEOF
20941 done
20943 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20944 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
20945 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20946   echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948   if test "$cross_compiling" = yes; then
20949   ac_cv_func_realloc_0_nonnull=no
20950 else
20951   cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #if STDC_HEADERS || HAVE_STDLIB_H
20958 # include <stdlib.h>
20959 #else
20960 char *realloc ();
20961 #endif
20964 main ()
20966 exit (realloc (0, 0) ? 0 : 1);
20967   ;
20968   return 0;
20970 _ACEOF
20971 rm -f conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973   (eval $ac_link) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978   (eval $ac_try) 2>&5
20979   ac_status=$?
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); }; }; then
20982   ac_cv_func_realloc_0_nonnull=yes
20983 else
20984   echo "$as_me: program exited with status $ac_status" >&5
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ( exit $ac_status )
20989 ac_cv_func_realloc_0_nonnull=no
20991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20995 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
20996 if test $ac_cv_func_realloc_0_nonnull = yes; then
20997   
20998 cat >>confdefs.h <<\_ACEOF
20999 @%:@define HAVE_REALLOC 1
21000 _ACEOF
21002 else
21003   cat >>confdefs.h <<\_ACEOF
21004 @%:@define HAVE_REALLOC 0
21005 _ACEOF
21007    case $LIB@&t@OBJS in
21008     "realloc.$ac_objext"   | \
21009   *" realloc.$ac_objext"   | \
21010     "realloc.$ac_objext "* | \
21011   *" realloc.$ac_objext "* ) ;;
21012   *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext" ;;
21013 esac
21015    
21016 cat >>confdefs.h <<\_ACEOF
21017 @%:@define realloc rpl_realloc
21018 _ACEOF
21026 for ac_header in sys/select.h sys/socket.h
21028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21030   echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21037 else
21038   # Is the header compilable?
21039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21041 cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047 $ac_includes_default
21048 @%:@include <$ac_header>
21049 _ACEOF
21050 rm -f conftest.$ac_objext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21052   (eval $ac_compile) 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } &&
21059          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061   (eval $ac_try) 2>&5
21062   ac_status=$?
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); }; } &&
21065          { ac_try='test -s conftest.$ac_objext'
21066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; }; then
21071   ac_header_compiler=yes
21072 else
21073   echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_header_compiler=no
21078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21080 echo "${ECHO_T}$ac_header_compiler" >&6
21082 # Is the header present?
21083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091 @%:@include <$ac_header>
21092 _ACEOF
21093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } >/dev/null; then
21101   if test -s conftest.err; then
21102     ac_cpp_err=$ac_cxx_preproc_warn_flag
21103     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21104   else
21105     ac_cpp_err=
21106   fi
21107 else
21108   ac_cpp_err=yes
21110 if test -z "$ac_cpp_err"; then
21111   ac_header_preproc=yes
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116   ac_header_preproc=no
21118 rm -f conftest.err conftest.$ac_ext
21119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21120 echo "${ECHO_T}$ac_header_preproc" >&6
21122 # So?  What about this header?
21123 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21124   yes:no: )
21125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21129     ac_header_preproc=yes
21130     ;;
21131   no:yes:* )
21132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21144     (
21145       cat <<\_ASBOX
21146 @%:@@%:@ ------------------------------------------------ @%:@@%:@
21147 @%:@@%:@ Report this to barry-devel@lists.sourceforge.net @%:@@%:@
21148 @%:@@%:@ ------------------------------------------------ @%:@@%:@
21149 _ASBOX
21150     ) |
21151       sed "s/^/$as_me: WARNING:     /" >&2
21152     ;;
21153 esac
21154 echo "$as_me:$LINENO: checking for $ac_header" >&5
21155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159   eval "$as_ac_Header=\$ac_header_preproc"
21161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21166   cat >>confdefs.h <<_ACEOF
21167 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21168 _ACEOF
21172 done
21174 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21175 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21176 if test "${ac_cv_func_select_args+set}" = set; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21180  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21181   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21182    cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 $ac_includes_default
21189 #if HAVE_SYS_SELECT_H
21190 # include <sys/select.h>
21191 #endif
21192 #if HAVE_SYS_SOCKET_H
21193 # include <sys/socket.h>
21194 #endif
21197 main ()
21199 extern int select ($ac_arg1,
21200                                             $ac_arg234, $ac_arg234, $ac_arg234,
21201                                             $ac_arg5);
21202   ;
21203   return 0;
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208   (eval $ac_compile) 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } &&
21215          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217   (eval $ac_try) 2>&5
21218   ac_status=$?
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); }; } &&
21221          { ac_try='test -s conftest.$ac_objext'
21222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223   (eval $ac_try) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; }; then
21227   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21234   done
21235  done
21236 done
21237 # Provide a safe default value.
21238 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21241 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21242 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21243 ac_save_IFS=$IFS; IFS=','
21244 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21245 IFS=$ac_save_IFS
21246 shift
21248 cat >>confdefs.h <<_ACEOF
21249 @%:@define SELECT_TYPE_ARG1 $1
21250 _ACEOF
21253 cat >>confdefs.h <<_ACEOF
21254 @%:@define SELECT_TYPE_ARG234 ($2)
21255 _ACEOF
21258 cat >>confdefs.h <<_ACEOF
21259 @%:@define SELECT_TYPE_ARG5 ($3)
21260 _ACEOF
21262 rm -f conftest*
21264 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21265 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
21266 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269   rm -f conftest.sym conftest.file
21270 echo >conftest.file
21271 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21272   if test "$cross_compiling" = yes; then
21273   ac_cv_func_lstat_dereferences_slashed_symlink=no
21274 else
21275   cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 $ac_includes_default
21283 main ()
21285 struct stat sbuf;
21286      /* Linux will dereference the symlink and fail.
21287         That is better in the sense that it means we will not
21288         have to compile and use the lstat wrapper.  */
21289      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
21290   ;
21291   return 0;
21293 _ACEOF
21294 rm -f conftest$ac_exeext
21295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21296   (eval $ac_link) 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }; then
21305   ac_cv_func_lstat_dereferences_slashed_symlink=yes
21306 else
21307   echo "$as_me: program exited with status $ac_status" >&5
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ( exit $ac_status )
21312 ac_cv_func_lstat_dereferences_slashed_symlink=no
21314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21316 else
21317   # If the `ln -s' command failed, then we probably don't even
21318   # have an lstat function.
21319   ac_cv_func_lstat_dereferences_slashed_symlink=no
21321 rm -f conftest.sym conftest.file
21324 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21325 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21327 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21328   
21329 cat >>confdefs.h <<_ACEOF
21330 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21331 _ACEOF
21334 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21335   case $LIB@&t@OBJS in
21336     "lstat.$ac_objext"   | \
21337   *" lstat.$ac_objext"   | \
21338     "lstat.$ac_objext "* | \
21339   *" lstat.$ac_objext "* ) ;;
21340   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" ;;
21341 esac
21345 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21346 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21347 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350   if test "$cross_compiling" = yes; then
21351   ac_cv_func_stat_empty_string_bug=yes
21352 else
21353   cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 $ac_includes_default
21361 main ()
21363 struct stat sbuf;
21364   exit (stat ("", &sbuf) ? 1 : 0);
21365   ;
21366   return 0;
21368 _ACEOF
21369 rm -f conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371   (eval $ac_link) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; }; then
21380   ac_cv_func_stat_empty_string_bug=yes
21381 else
21382   echo "$as_me: program exited with status $ac_status" >&5
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ( exit $ac_status )
21387 ac_cv_func_stat_empty_string_bug=no
21389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21393 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
21394 if test $ac_cv_func_stat_empty_string_bug = yes; then
21395   case $LIB@&t@OBJS in
21396     "stat.$ac_objext"   | \
21397   *" stat.$ac_objext"   | \
21398     "stat.$ac_objext "* | \
21399   *" stat.$ac_objext "* ) ;;
21400   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" ;;
21401 esac
21403   
21404 cat >>confdefs.h <<_ACEOF
21405 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
21406 _ACEOF
21419 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
21421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21422 echo "$as_me:$LINENO: checking for $ac_func" >&5
21423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21424 if eval "test \"\${$as_ac_var+set}\" = set"; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21435 #define $ac_func innocuous_$ac_func
21437 /* System header to define __stub macros and hopefully few prototypes,
21438     which can conflict with char $ac_func (); below.
21439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21440     <limits.h> exists even on freestanding compilers.  */
21442 #ifdef __STDC__
21443 # include <limits.h>
21444 #else
21445 # include <assert.h>
21446 #endif
21448 #undef $ac_func
21450 /* Override any gcc2 internal prototype to avoid an error.  */
21451 #ifdef __cplusplus
21452 extern "C"
21454 #endif
21455 /* We use char because int might match the return type of a gcc2
21456    builtin and then its argument prototype would still apply.  */
21457 char $ac_func ();
21458 /* The GNU C library defines this for functions which it implements
21459     to always fail with ENOSYS.  Some functions are actually named
21460     something starting with __ and the normal name is an alias.  */
21461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21462 choke me
21463 #else
21464 char (*f) () = $ac_func;
21465 #endif
21466 #ifdef __cplusplus
21468 #endif
21471 main ()
21473 return f != $ac_func;
21474   ;
21475   return 0;
21477 _ACEOF
21478 rm -f conftest.$ac_objext conftest$ac_exeext
21479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21480   (eval $ac_link) 2>conftest.er1
21481   ac_status=$?
21482   grep -v '^ *+' conftest.er1 >conftest.err
21483   rm -f conftest.er1
21484   cat conftest.err >&5
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } &&
21487          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; } &&
21493          { ac_try='test -s conftest$ac_exeext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   eval "$as_ac_var=yes"
21500 else
21501   echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 eval "$as_ac_var=no"
21506 rm -f conftest.err conftest.$ac_objext \
21507       conftest$ac_exeext conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21511 if test `eval echo '${'$as_ac_var'}'` = yes; then
21512   cat >>confdefs.h <<_ACEOF
21513 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21514 _ACEOF
21517 done
21520                                                   ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile examples/Makefile man/Makefile"
21522 cat >confcache <<\_ACEOF
21523 # This file is a shell script that caches the results of configure
21524 # tests run on this system so they can be shared between configure
21525 # scripts and configure runs, see configure's option --config-cache.
21526 # It is not useful on other systems.  If it contains results you don't
21527 # want to keep, you may remove or edit it.
21529 # config.status only pays attention to the cache file if you give it
21530 # the --recheck option to rerun configure.
21532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21534 # following values.
21536 _ACEOF
21538 # The following way of writing the cache mishandles newlines in values,
21539 # but we know of no workaround that is simple, portable, and efficient.
21540 # So, don't put newlines in cache variables' values.
21541 # Ultrix sh set writes to stderr and can't be redirected directly,
21542 # and sets the high bit in the cache file unless we assign to the vars.
21544   (set) 2>&1 |
21545     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21546     *ac_space=\ *)
21547       # `set' does not quote correctly, so add quotes (double-quote
21548       # substitution turns \\\\ into \\, and sed turns \\ into \).
21549       sed -n \
21550         "s/'/'\\\\''/g;
21551           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21552       ;;
21553     *)
21554       # `set' quotes correctly as required by POSIX, so do not add quotes.
21555       sed -n \
21556         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21557       ;;
21558     esac;
21559 } |
21560   sed '
21561      t clear
21562      : clear
21563      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21564      t end
21565      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21566      : end' >>confcache
21567 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21568   if test -w $cache_file; then
21569     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21570     cat confcache >$cache_file
21571   else
21572     echo "not updating unwritable cache $cache_file"
21573   fi
21575 rm -f confcache
21577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21578 # Let make expand exec_prefix.
21579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21581 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21582 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21583 # trailing colons and then remove the whole line if VPATH becomes empty
21584 # (actually we leave an empty line to preserve line numbers).
21585 if test "x$srcdir" = x.; then
21586   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21587 s/:*\$(srcdir):*/:/;
21588 s/:*\${srcdir}:*/:/;
21589 s/:*@srcdir@:*/:/;
21590 s/^\([^=]*=[     ]*\):*/\1/;
21591 s/:*$//;
21592 s/^[^=]*=[       ]*$//;
21596 DEFS=-DHAVE_CONFIG_H
21598 ac_libobjs=
21599 ac_ltlibobjs=
21600 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21601   # 1. Remove the extension, and $U if already installed.
21602   ac_i=`echo "$ac_i" |
21603          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21604   # 2. Add them.
21605   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21606   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21607 done
21608 LIB@&t@OBJS=$ac_libobjs
21610 LTLIBOBJS=$ac_ltlibobjs
21613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21614   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21615 Usually this means the macro was only invoked conditionally." >&5
21616 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21617 Usually this means the macro was only invoked conditionally." >&2;}
21618    { (exit 1); exit 1; }; }
21620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21621   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21622 Usually this means the macro was only invoked conditionally." >&5
21623 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21624 Usually this means the macro was only invoked conditionally." >&2;}
21625    { (exit 1); exit 1; }; }
21627 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21628   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21629 Usually this means the macro was only invoked conditionally." >&5
21630 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21631 Usually this means the macro was only invoked conditionally." >&2;}
21632    { (exit 1); exit 1; }; }
21634 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
21635   { { echo "$as_me:$LINENO: error: conditional \"WITH_BOOST\" was never defined.
21636 Usually this means the macro was only invoked conditionally." >&5
21637 echo "$as_me: error: conditional \"WITH_BOOST\" was never defined.
21638 Usually this means the macro was only invoked conditionally." >&2;}
21639    { (exit 1); exit 1; }; }
21642 : ${CONFIG_STATUS=./config.status}
21643 ac_clean_files_save=$ac_clean_files
21644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21647 cat >$CONFIG_STATUS <<_ACEOF
21648 #! $SHELL
21649 # Generated by $as_me.
21650 # Run this file to recreate the current configuration.
21651 # Compiler output produced by configure, useful for debugging
21652 # configure, is in config.log if it exists.
21654 debug=false
21655 ac_cs_recheck=false
21656 ac_cs_silent=false
21657 SHELL=\${CONFIG_SHELL-$SHELL}
21658 _ACEOF
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661 ## --------------------- ##
21662 ## M4sh Initialization.  ##
21663 ## --------------------- ##
21665 # Be Bourne compatible
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21667   emulate sh
21668   NULLCMD=:
21669   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21670   # is contrary to our usage.  Disable this feature.
21671   alias -g '${1+"$@"}'='"$@"'
21672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21673   set -o posix
21675 DUALCASE=1; export DUALCASE # for MKS sh
21677 # Support unset when possible.
21678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21679   as_unset=unset
21680 else
21681   as_unset=false
21685 # Work around bugs in pre-3.0 UWIN ksh.
21686 $as_unset ENV MAIL MAILPATH
21687 PS1='$ '
21688 PS2='> '
21689 PS4='+ '
21691 # NLS nuisances.
21692 for as_var in \
21693   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21694   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21695   LC_TELEPHONE LC_TIME
21697   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21698     eval $as_var=C; export $as_var
21699   else
21700     $as_unset $as_var
21701   fi
21702 done
21704 # Required to use basename.
21705 if expr a : '\(a\)' >/dev/null 2>&1; then
21706   as_expr=expr
21707 else
21708   as_expr=false
21711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21712   as_basename=basename
21713 else
21714   as_basename=false
21718 # Name of the executable.
21719 as_me=`$as_basename "$0" ||
21720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21721          X"$0" : 'X\(//\)$' \| \
21722          X"$0" : 'X\(/\)$' \| \
21723          .     : '\(.\)' 2>/dev/null ||
21724 echo X/"$0" |
21725     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21726           /^X\/\(\/\/\)$/{ s//\1/; q; }
21727           /^X\/\(\/\).*/{ s//\1/; q; }
21728           s/.*/./; q'`
21731 # PATH needs CR, and LINENO needs CR and PATH.
21732 # Avoid depending upon Character Ranges.
21733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21736 as_cr_digits='0123456789'
21737 as_cr_alnum=$as_cr_Letters$as_cr_digits
21739 # The user is always right.
21740 if test "${PATH_SEPARATOR+set}" != set; then
21741   echo "#! /bin/sh" >conf$$.sh
21742   echo  "exit 0"   >>conf$$.sh
21743   chmod +x conf$$.sh
21744   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21745     PATH_SEPARATOR=';'
21746   else
21747     PATH_SEPARATOR=:
21748   fi
21749   rm -f conf$$.sh
21753   as_lineno_1=$LINENO
21754   as_lineno_2=$LINENO
21755   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21756   test "x$as_lineno_1" != "x$as_lineno_2" &&
21757   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21758   # Find who we are.  Look in the path if we contain no path at all
21759   # relative or not.
21760   case $0 in
21761     *[\\/]* ) as_myself=$0 ;;
21762     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21765   IFS=$as_save_IFS
21766   test -z "$as_dir" && as_dir=.
21767   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21768 done
21770        ;;
21771   esac
21772   # We did not find ourselves, most probably we were run as `sh COMMAND'
21773   # in which case we are not to be found in the path.
21774   if test "x$as_myself" = x; then
21775     as_myself=$0
21776   fi
21777   if test ! -f "$as_myself"; then
21778     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21780    { (exit 1); exit 1; }; }
21781   fi
21782   case $CONFIG_SHELL in
21783   '')
21784     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21787   IFS=$as_save_IFS
21788   test -z "$as_dir" && as_dir=.
21789   for as_base in sh bash ksh sh5; do
21790          case $as_dir in
21791          /*)
21792            if ("$as_dir/$as_base" -c '
21793   as_lineno_1=$LINENO
21794   as_lineno_2=$LINENO
21795   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21796   test "x$as_lineno_1" != "x$as_lineno_2" &&
21797   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21798              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21799              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21800              CONFIG_SHELL=$as_dir/$as_base
21801              export CONFIG_SHELL
21802              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21803            fi;;
21804          esac
21805        done
21806 done
21808   esac
21810   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21811   # uniformly replaced by the line number.  The first 'sed' inserts a
21812   # line-number line before each line; the second 'sed' does the real
21813   # work.  The second script uses 'N' to pair each line-number line
21814   # with the numbered line, and appends trailing '-' during
21815   # substitution so that $LINENO is not a special case at line end.
21816   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21817   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21818   sed '=' <$as_myself |
21819     sed '
21820       N
21821       s,$,-,
21822       : loop
21823       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21824       t loop
21825       s,-$,,
21826       s,^['$as_cr_digits']*\n,,
21827     ' >$as_me.lineno &&
21828   chmod +x $as_me.lineno ||
21829     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21831    { (exit 1); exit 1; }; }
21833   # Don't try to exec as it changes $[0], causing all sort of problems
21834   # (the dirname of $[0] is not the place where we might find the
21835   # original and so on.  Autoconf is especially sensible to this).
21836   . ./$as_me.lineno
21837   # Exit status is that of the last command.
21838   exit
21842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21843   *c*,-n*) ECHO_N= ECHO_C='
21844 ' ECHO_T='      ' ;;
21845   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21846   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21847 esac
21849 if expr a : '\(a\)' >/dev/null 2>&1; then
21850   as_expr=expr
21851 else
21852   as_expr=false
21855 rm -f conf$$ conf$$.exe conf$$.file
21856 echo >conf$$.file
21857 if ln -s conf$$.file conf$$ 2>/dev/null; then
21858   # We could just check for DJGPP; but this test a) works b) is more generic
21859   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21860   if test -f conf$$.exe; then
21861     # Don't use ln at all; we don't have any links
21862     as_ln_s='cp -p'
21863   else
21864     as_ln_s='ln -s'
21865   fi
21866 elif ln conf$$.file conf$$ 2>/dev/null; then
21867   as_ln_s=ln
21868 else
21869   as_ln_s='cp -p'
21871 rm -f conf$$ conf$$.exe conf$$.file
21873 if mkdir -p . 2>/dev/null; then
21874   as_mkdir_p=:
21875 else
21876   test -d ./-p && rmdir ./-p
21877   as_mkdir_p=false
21880 as_executable_p="test -f"
21882 # Sed expression to map a string onto a valid CPP name.
21883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21885 # Sed expression to map a string onto a valid variable name.
21886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21889 # IFS
21890 # We need space, tab and new line, in precisely that order.
21891 as_nl='
21893 IFS="   $as_nl"
21895 # CDPATH.
21896 $as_unset CDPATH
21898 exec 6>&1
21900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21901 # report actual input values of CONFIG_FILES etc. instead of their
21902 # values after options handling.  Logging --version etc. is OK.
21903 exec 5>>config.log
21905   echo
21906   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21907 @%:@@%:@ Running $as_me. @%:@@%:@
21908 _ASBOX
21909 } >&5
21910 cat >&5 <<_CSEOF
21912 This file was extended by barry $as_me 0.4, which was
21913 generated by GNU Autoconf 2.59.  Invocation command line was
21915   CONFIG_FILES    = $CONFIG_FILES
21916   CONFIG_HEADERS  = $CONFIG_HEADERS
21917   CONFIG_LINKS    = $CONFIG_LINKS
21918   CONFIG_COMMANDS = $CONFIG_COMMANDS
21919   $ $0 $@
21921 _CSEOF
21922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21923 echo >&5
21924 _ACEOF
21926 # Files that config.status was made for.
21927 if test -n "$ac_config_files"; then
21928   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21931 if test -n "$ac_config_headers"; then
21932   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21935 if test -n "$ac_config_links"; then
21936   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21939 if test -n "$ac_config_commands"; then
21940   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21945 ac_cs_usage="\
21946 \`$as_me' instantiates files from templates according to the
21947 current configuration.
21949 Usage: $0 [OPTIONS] [FILE]...
21951   -h, --help       print this help, then exit
21952   -V, --version    print version number, then exit
21953   -q, --quiet      do not print progress messages
21954   -d, --debug      don't remove temporary files
21955       --recheck    update $as_me by reconfiguring in the same conditions
21956   --file=FILE[:TEMPLATE]
21957                    instantiate the configuration file FILE
21958   --header=FILE[:TEMPLATE]
21959                    instantiate the configuration header FILE
21961 Configuration files:
21962 $config_files
21964 Configuration headers:
21965 $config_headers
21967 Configuration commands:
21968 $config_commands
21970 Report bugs to <bug-autoconf@gnu.org>."
21971 _ACEOF
21973 cat >>$CONFIG_STATUS <<_ACEOF
21974 ac_cs_version="\\
21975 barry config.status 0.4
21976 configured by $0, generated by GNU Autoconf 2.59,
21977   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21979 Copyright (C) 2003 Free Software Foundation, Inc.
21980 This config.status script is free software; the Free Software Foundation
21981 gives unlimited permission to copy, distribute and modify it."
21982 srcdir=$srcdir
21983 INSTALL="$INSTALL"
21984 _ACEOF
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21987 # If no file are specified by the user, then we need to provide default
21988 # value.  By we need to know if files were specified by the user.
21989 ac_need_defaults=:
21990 while test $# != 0
21992   case $1 in
21993   --*=*)
21994     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21995     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21996     ac_shift=:
21997     ;;
21998   -*)
21999     ac_option=$1
22000     ac_optarg=$2
22001     ac_shift=shift
22002     ;;
22003   *) # This is not an option, so the user has probably given explicit
22004      # arguments.
22005      ac_option=$1
22006      ac_need_defaults=false;;
22007   esac
22009   case $ac_option in
22010   # Handling of the options.
22011 _ACEOF
22012 cat >>$CONFIG_STATUS <<\_ACEOF
22013   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22014     ac_cs_recheck=: ;;
22015   --version | --vers* | -V )
22016     echo "$ac_cs_version"; exit 0 ;;
22017   --he | --h)
22018     # Conflict between --help and --header
22019     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22020 Try \`$0 --help' for more information." >&5
22021 echo "$as_me: error: ambiguous option: $1
22022 Try \`$0 --help' for more information." >&2;}
22023    { (exit 1); exit 1; }; };;
22024   --help | --hel | -h )
22025     echo "$ac_cs_usage"; exit 0 ;;
22026   --debug | --d* | -d )
22027     debug=: ;;
22028   --file | --fil | --fi | --f )
22029     $ac_shift
22030     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22031     ac_need_defaults=false;;
22032   --header | --heade | --head | --hea )
22033     $ac_shift
22034     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22035     ac_need_defaults=false;;
22036   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22037   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22038     ac_cs_silent=: ;;
22040   # This is an error.
22041   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22042 Try \`$0 --help' for more information." >&5
22043 echo "$as_me: error: unrecognized option: $1
22044 Try \`$0 --help' for more information." >&2;}
22045    { (exit 1); exit 1; }; } ;;
22047   *) ac_config_targets="$ac_config_targets $1" ;;
22049   esac
22050   shift
22051 done
22053 ac_configure_extra_args=
22055 if $ac_cs_silent; then
22056   exec 6>/dev/null
22057   ac_configure_extra_args="$ac_configure_extra_args --silent"
22060 _ACEOF
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 if \$ac_cs_recheck; then
22063   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22064   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22067 _ACEOF
22069 cat >>$CONFIG_STATUS <<_ACEOF
22071 # INIT-COMMANDS section.
22074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22076 _ACEOF
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22081 for ac_config_target in $ac_config_targets
22083   case "$ac_config_target" in
22084   # Handling of arguments.
22085   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22086   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22087   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22088   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22089   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22090   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22091   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
22092   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22093 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22094    { (exit 1); exit 1; }; };;
22095   esac
22096 done
22098 # If the user did not use the arguments to specify the items to instantiate,
22099 # then the envvar interface is used.  Set only those that are not.
22100 # We use the long form for the default assignment because of an extremely
22101 # bizarre bug on SunOS 4.1.3.
22102 if $ac_need_defaults; then
22103   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22104   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22105   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22108 # Have a temporary directory for convenience.  Make it in the build tree
22109 # simply because there is no reason to put it here, and in addition,
22110 # creating and moving files from /tmp can sometimes cause problems.
22111 # Create a temporary directory, and hook for its removal unless debugging.
22112 $debug ||
22114   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22115   trap '{ (exit 1); exit 1; }' 1 2 13 15
22118 # Create a (secure) tmp directory for tmp files.
22121   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22122   test -n "$tmp" && test -d "$tmp"
22123 }  ||
22125   tmp=./confstat$$-$RANDOM
22126   (umask 077 && mkdir $tmp)
22127 } ||
22129    echo "$me: cannot create a temporary directory in ." >&2
22130    { (exit 1); exit 1; }
22133 _ACEOF
22135 cat >>$CONFIG_STATUS <<_ACEOF
22138 # CONFIG_FILES section.
22141 # No need to generate the scripts if there are no CONFIG_FILES.
22142 # This happens for instance when ./config.status config.h
22143 if test -n "\$CONFIG_FILES"; then
22144   # Protect against being on the right side of a sed subst in config.status.
22145   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22146    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22147 s,@SHELL@,$SHELL,;t t
22148 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22149 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22150 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22151 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22152 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22153 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22154 s,@exec_prefix@,$exec_prefix,;t t
22155 s,@prefix@,$prefix,;t t
22156 s,@program_transform_name@,$program_transform_name,;t t
22157 s,@bindir@,$bindir,;t t
22158 s,@sbindir@,$sbindir,;t t
22159 s,@libexecdir@,$libexecdir,;t t
22160 s,@datadir@,$datadir,;t t
22161 s,@sysconfdir@,$sysconfdir,;t t
22162 s,@sharedstatedir@,$sharedstatedir,;t t
22163 s,@localstatedir@,$localstatedir,;t t
22164 s,@libdir@,$libdir,;t t
22165 s,@includedir@,$includedir,;t t
22166 s,@oldincludedir@,$oldincludedir,;t t
22167 s,@infodir@,$infodir,;t t
22168 s,@mandir@,$mandir,;t t
22169 s,@build_alias@,$build_alias,;t t
22170 s,@host_alias@,$host_alias,;t t
22171 s,@target_alias@,$target_alias,;t t
22172 s,@DEFS@,$DEFS,;t t
22173 s,@ECHO_C@,$ECHO_C,;t t
22174 s,@ECHO_N@,$ECHO_N,;t t
22175 s,@ECHO_T@,$ECHO_T,;t t
22176 s,@LIBS@,$LIBS,;t t
22177 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22178 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22179 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22180 s,@CYGPATH_W@,$CYGPATH_W,;t t
22181 s,@PACKAGE@,$PACKAGE,;t t
22182 s,@VERSION@,$VERSION,;t t
22183 s,@ACLOCAL@,$ACLOCAL,;t t
22184 s,@AUTOCONF@,$AUTOCONF,;t t
22185 s,@AUTOMAKE@,$AUTOMAKE,;t t
22186 s,@AUTOHEADER@,$AUTOHEADER,;t t
22187 s,@MAKEINFO@,$MAKEINFO,;t t
22188 s,@install_sh@,$install_sh,;t t
22189 s,@STRIP@,$STRIP,;t t
22190 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22191 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22192 s,@mkdir_p@,$mkdir_p,;t t
22193 s,@AWK@,$AWK,;t t
22194 s,@SET_MAKE@,$SET_MAKE,;t t
22195 s,@am__leading_dot@,$am__leading_dot,;t t
22196 s,@AMTAR@,$AMTAR,;t t
22197 s,@am__tar@,$am__tar,;t t
22198 s,@am__untar@,$am__untar,;t t
22199 s,@CC@,$CC,;t t
22200 s,@CFLAGS@,$CFLAGS,;t t
22201 s,@LDFLAGS@,$LDFLAGS,;t t
22202 s,@CPPFLAGS@,$CPPFLAGS,;t t
22203 s,@ac_ct_CC@,$ac_ct_CC,;t t
22204 s,@EXEEXT@,$EXEEXT,;t t
22205 s,@OBJEXT@,$OBJEXT,;t t
22206 s,@DEPDIR@,$DEPDIR,;t t
22207 s,@am__include@,$am__include,;t t
22208 s,@am__quote@,$am__quote,;t t
22209 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22210 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22211 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22212 s,@CCDEPMODE@,$CCDEPMODE,;t t
22213 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22214 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22215 s,@CXX@,$CXX,;t t
22216 s,@CXXFLAGS@,$CXXFLAGS,;t t
22217 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22218 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22219 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22220 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22221 s,@build@,$build,;t t
22222 s,@build_cpu@,$build_cpu,;t t
22223 s,@build_vendor@,$build_vendor,;t t
22224 s,@build_os@,$build_os,;t t
22225 s,@host@,$host,;t t
22226 s,@host_cpu@,$host_cpu,;t t
22227 s,@host_vendor@,$host_vendor,;t t
22228 s,@host_os@,$host_os,;t t
22229 s,@EGREP@,$EGREP,;t t
22230 s,@LN_S@,$LN_S,;t t
22231 s,@ECHO@,$ECHO,;t t
22232 s,@AR@,$AR,;t t
22233 s,@ac_ct_AR@,$ac_ct_AR,;t t
22234 s,@RANLIB@,$RANLIB,;t t
22235 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22236 s,@CPP@,$CPP,;t t
22237 s,@CXXCPP@,$CXXCPP,;t t
22238 s,@F77@,$F77,;t t
22239 s,@FFLAGS@,$FFLAGS,;t t
22240 s,@ac_ct_F77@,$ac_ct_F77,;t t
22241 s,@LIBTOOL@,$LIBTOOL,;t t
22242 s,@LIBUSB_LIB_PATH@,$LIBUSB_LIB_PATH,;t t
22243 s,@LIBUSB_INC_PATH@,$LIBUSB_INC_PATH,;t t
22244 s,@BOOST_LIB_PATH@,$BOOST_LIB_PATH,;t t
22245 s,@BOOST_INC_PATH@,$BOOST_INC_PATH,;t t
22246 s,@WITH_BOOST_TRUE@,$WITH_BOOST_TRUE,;t t
22247 s,@WITH_BOOST_FALSE@,$WITH_BOOST_FALSE,;t t
22248 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22249 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22250 CEOF
22252 _ACEOF
22254   cat >>$CONFIG_STATUS <<\_ACEOF
22255   # Split the substitutions into bite-sized pieces for seds with
22256   # small command number limits, like on Digital OSF/1 and HP-UX.
22257   ac_max_sed_lines=48
22258   ac_sed_frag=1 # Number of current file.
22259   ac_beg=1 # First line for current file.
22260   ac_end=$ac_max_sed_lines # Line after last line for current file.
22261   ac_more_lines=:
22262   ac_sed_cmds=
22263   while $ac_more_lines; do
22264     if test $ac_beg -gt 1; then
22265       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22266     else
22267       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22268     fi
22269     if test ! -s $tmp/subs.frag; then
22270       ac_more_lines=false
22271     else
22272       # The purpose of the label and of the branching condition is to
22273       # speed up the sed processing (if there are no `@' at all, there
22274       # is no need to browse any of the substitutions).
22275       # These are the two extra sed commands mentioned above.
22276       (echo ':t
22277   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22278       if test -z "$ac_sed_cmds"; then
22279         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22280       else
22281         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22282       fi
22283       ac_sed_frag=`expr $ac_sed_frag + 1`
22284       ac_beg=$ac_end
22285       ac_end=`expr $ac_end + $ac_max_sed_lines`
22286     fi
22287   done
22288   if test -z "$ac_sed_cmds"; then
22289     ac_sed_cmds=cat
22290   fi
22291 fi # test -n "$CONFIG_FILES"
22293 _ACEOF
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22296   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22297   case $ac_file in
22298   - | *:- | *:-:* ) # input from stdin
22299         cat >$tmp/stdin
22300         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22302   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22304   * )   ac_file_in=$ac_file.in ;;
22305   esac
22307   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22308   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22310          X"$ac_file" : 'X\(//\)[^/]' \| \
22311          X"$ac_file" : 'X\(//\)$' \| \
22312          X"$ac_file" : 'X\(/\)' \| \
22313          .     : '\(.\)' 2>/dev/null ||
22314 echo X"$ac_file" |
22315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22317           /^X\(\/\/\)$/{ s//\1/; q; }
22318           /^X\(\/\).*/{ s//\1/; q; }
22319           s/.*/./; q'`
22320   { if $as_mkdir_p; then
22321     mkdir -p "$ac_dir"
22322   else
22323     as_dir="$ac_dir"
22324     as_dirs=
22325     while test ! -d "$as_dir"; do
22326       as_dirs="$as_dir $as_dirs"
22327       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22329          X"$as_dir" : 'X\(//\)[^/]' \| \
22330          X"$as_dir" : 'X\(//\)$' \| \
22331          X"$as_dir" : 'X\(/\)' \| \
22332          .     : '\(.\)' 2>/dev/null ||
22333 echo X"$as_dir" |
22334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22336           /^X\(\/\/\)$/{ s//\1/; q; }
22337           /^X\(\/\).*/{ s//\1/; q; }
22338           s/.*/./; q'`
22339     done
22340     test ! -n "$as_dirs" || mkdir $as_dirs
22341   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22343    { (exit 1); exit 1; }; }; }
22345   ac_builddir=.
22347 if test "$ac_dir" != .; then
22348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22349   # A "../" for each directory in $ac_dir_suffix.
22350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22351 else
22352   ac_dir_suffix= ac_top_builddir=
22355 case $srcdir in
22356   .)  # No --srcdir option.  We are building in place.
22357     ac_srcdir=.
22358     if test -z "$ac_top_builddir"; then
22359        ac_top_srcdir=.
22360     else
22361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22362     fi ;;
22363   [\\/]* | ?:[\\/]* )  # Absolute path.
22364     ac_srcdir=$srcdir$ac_dir_suffix;
22365     ac_top_srcdir=$srcdir ;;
22366   *) # Relative path.
22367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22369 esac
22371 # Do not use `cd foo && pwd` to compute absolute paths, because
22372 # the directories may not exist.
22373 case `pwd` in
22374 .) ac_abs_builddir="$ac_dir";;
22376   case "$ac_dir" in
22377   .) ac_abs_builddir=`pwd`;;
22378   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22379   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22380   esac;;
22381 esac
22382 case $ac_abs_builddir in
22383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22385   case ${ac_top_builddir}. in
22386   .) ac_abs_top_builddir=$ac_abs_builddir;;
22387   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22388   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22389   esac;;
22390 esac
22391 case $ac_abs_builddir in
22392 .) ac_abs_srcdir=$ac_srcdir;;
22394   case $ac_srcdir in
22395   .) ac_abs_srcdir=$ac_abs_builddir;;
22396   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22397   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22398   esac;;
22399 esac
22400 case $ac_abs_builddir in
22401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22403   case $ac_top_srcdir in
22404   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22405   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22406   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22407   esac;;
22408 esac
22411   case $INSTALL in
22412   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22413   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22414   esac
22416   # Let's still pretend it is `configure' which instantiates (i.e., don't
22417   # use $as_me), people would be surprised to read:
22418   #    /* config.h.  Generated by config.status.  */
22419   if test x"$ac_file" = x-; then
22420     configure_input=
22421   else
22422     configure_input="$ac_file.  "
22423   fi
22424   configure_input=$configure_input"Generated from `echo $ac_file_in |
22425                                      sed 's,.*/,,'` by configure."
22427   # First look for the input files in the build tree, otherwise in the
22428   # src tree.
22429   ac_file_inputs=`IFS=:
22430     for f in $ac_file_in; do
22431       case $f in
22432       -) echo $tmp/stdin ;;
22433       [\\/$]*)
22434          # Absolute (can't be DOS-style, as IFS=:)
22435          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22436 echo "$as_me: error: cannot find input file: $f" >&2;}
22437    { (exit 1); exit 1; }; }
22438          echo "$f";;
22439       *) # Relative
22440          if test -f "$f"; then
22441            # Build tree
22442            echo "$f"
22443          elif test -f "$srcdir/$f"; then
22444            # Source tree
22445            echo "$srcdir/$f"
22446          else
22447            # /dev/null tree
22448            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22449 echo "$as_me: error: cannot find input file: $f" >&2;}
22450    { (exit 1); exit 1; }; }
22451          fi;;
22452       esac
22453     done` || { (exit 1); exit 1; }
22455   if test x"$ac_file" != x-; then
22456     { echo "$as_me:$LINENO: creating $ac_file" >&5
22457 echo "$as_me: creating $ac_file" >&6;}
22458     rm -f "$ac_file"
22459   fi
22460 _ACEOF
22461 cat >>$CONFIG_STATUS <<_ACEOF
22462   sed "$ac_vpsub
22463 $extrasub
22464 _ACEOF
22465 cat >>$CONFIG_STATUS <<\_ACEOF
22467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22468 s,@configure_input@,$configure_input,;t t
22469 s,@srcdir@,$ac_srcdir,;t t
22470 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22471 s,@top_srcdir@,$ac_top_srcdir,;t t
22472 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22473 s,@builddir@,$ac_builddir,;t t
22474 s,@abs_builddir@,$ac_abs_builddir,;t t
22475 s,@top_builddir@,$ac_top_builddir,;t t
22476 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22477 s,@INSTALL@,$ac_INSTALL,;t t
22478 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22479   rm -f $tmp/stdin
22480   if test x"$ac_file" != x-; then
22481     mv $tmp/out $ac_file
22482   else
22483     cat $tmp/out
22484     rm -f $tmp/out
22485   fi
22487 done
22488 _ACEOF
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22492 # CONFIG_HEADER section.
22495 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22496 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22498 # ac_d sets the value in "#define NAME VALUE" lines.
22499 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22500 ac_dB='[         ].*$,\1#\2'
22501 ac_dC=' '
22502 ac_dD=',;t'
22503 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22504 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22505 ac_uB='$,\1#\2define\3'
22506 ac_uC=' '
22507 ac_uD=',;t'
22509 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22510   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22511   case $ac_file in
22512   - | *:- | *:-:* ) # input from stdin
22513         cat >$tmp/stdin
22514         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22515         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22516   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22517         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22518   * )   ac_file_in=$ac_file.in ;;
22519   esac
22521   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22522 echo "$as_me: creating $ac_file" >&6;}
22524   # First look for the input files in the build tree, otherwise in the
22525   # src tree.
22526   ac_file_inputs=`IFS=:
22527     for f in $ac_file_in; do
22528       case $f in
22529       -) echo $tmp/stdin ;;
22530       [\\/$]*)
22531          # Absolute (can't be DOS-style, as IFS=:)
22532          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22533 echo "$as_me: error: cannot find input file: $f" >&2;}
22534    { (exit 1); exit 1; }; }
22535          # Do quote $f, to prevent DOS paths from being IFS'd.
22536          echo "$f";;
22537       *) # Relative
22538          if test -f "$f"; then
22539            # Build tree
22540            echo "$f"
22541          elif test -f "$srcdir/$f"; then
22542            # Source tree
22543            echo "$srcdir/$f"
22544          else
22545            # /dev/null tree
22546            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22547 echo "$as_me: error: cannot find input file: $f" >&2;}
22548    { (exit 1); exit 1; }; }
22549          fi;;
22550       esac
22551     done` || { (exit 1); exit 1; }
22552   # Remove the trailing spaces.
22553   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22555 _ACEOF
22557 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22558 # `conftest.undefs', that substitutes the proper values into
22559 # config.h.in to produce config.h.  The first handles `#define'
22560 # templates, and the second `#undef' templates.
22561 # And first: Protect against being on the right side of a sed subst in
22562 # config.status.  Protect against being in an unquoted here document
22563 # in config.status.
22564 rm -f conftest.defines conftest.undefs
22565 # Using a here document instead of a string reduces the quoting nightmare.
22566 # Putting comments in sed scripts is not portable.
22568 # `end' is used to avoid that the second main sed command (meant for
22569 # 0-ary CPP macros) applies to n-ary macro definitions.
22570 # See the Autoconf documentation for `clear'.
22571 cat >confdef2sed.sed <<\_ACEOF
22572 s/[\\&,]/\\&/g
22573 s,[\\$`],\\&,g
22574 t clear
22575 : clear
22576 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22577 t end
22578 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22579 : end
22580 _ACEOF
22581 # If some macros were called several times there might be several times
22582 # the same #defines, which is useless.  Nevertheless, we may not want to
22583 # sort them, since we want the *last* AC-DEFINE to be honored.
22584 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22585 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22586 rm -f confdef2sed.sed
22588 # This sed command replaces #undef with comments.  This is necessary, for
22589 # example, in the case of _POSIX_SOURCE, which is predefined and required
22590 # on some systems where configure will not decide to define it.
22591 cat >>conftest.undefs <<\_ACEOF
22592 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22593 _ACEOF
22595 # Break up conftest.defines because some shells have a limit on the size
22596 # of here documents, and old seds have small limits too (100 cmds).
22597 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22598 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22599 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22600 echo '  :' >>$CONFIG_STATUS
22601 rm -f conftest.tail
22602 while grep . conftest.defines >/dev/null
22604   # Write a limited-size here document to $tmp/defines.sed.
22605   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22606   # Speed up: don't consider the non `#define' lines.
22607   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22608   # Work around the forget-to-reset-the-flag bug.
22609   echo 't clr' >>$CONFIG_STATUS
22610   echo ': clr' >>$CONFIG_STATUS
22611   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22612   echo 'CEOF
22613   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22614   rm -f $tmp/in
22615   mv $tmp/out $tmp/in
22616 ' >>$CONFIG_STATUS
22617   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22618   rm -f conftest.defines
22619   mv conftest.tail conftest.defines
22620 done
22621 rm -f conftest.defines
22622 echo '  fi # grep' >>$CONFIG_STATUS
22623 echo >>$CONFIG_STATUS
22625 # Break up conftest.undefs because some shells have a limit on the size
22626 # of here documents, and old seds have small limits too (100 cmds).
22627 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22628 rm -f conftest.tail
22629 while grep . conftest.undefs >/dev/null
22631   # Write a limited-size here document to $tmp/undefs.sed.
22632   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22633   # Speed up: don't consider the non `#undef'
22634   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22635   # Work around the forget-to-reset-the-flag bug.
22636   echo 't clr' >>$CONFIG_STATUS
22637   echo ': clr' >>$CONFIG_STATUS
22638   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22639   echo 'CEOF
22640   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22641   rm -f $tmp/in
22642   mv $tmp/out $tmp/in
22643 ' >>$CONFIG_STATUS
22644   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22645   rm -f conftest.undefs
22646   mv conftest.tail conftest.undefs
22647 done
22648 rm -f conftest.undefs
22650 cat >>$CONFIG_STATUS <<\_ACEOF
22651   # Let's still pretend it is `configure' which instantiates (i.e., don't
22652   # use $as_me), people would be surprised to read:
22653   #    /* config.h.  Generated by config.status.  */
22654   if test x"$ac_file" = x-; then
22655     echo "/* Generated by configure.  */" >$tmp/config.h
22656   else
22657     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22658   fi
22659   cat $tmp/in >>$tmp/config.h
22660   rm -f $tmp/in
22661   if test x"$ac_file" != x-; then
22662     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22663       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22664 echo "$as_me: $ac_file is unchanged" >&6;}
22665     else
22666       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22667 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22668          X"$ac_file" : 'X\(//\)[^/]' \| \
22669          X"$ac_file" : 'X\(//\)$' \| \
22670          X"$ac_file" : 'X\(/\)' \| \
22671          .     : '\(.\)' 2>/dev/null ||
22672 echo X"$ac_file" |
22673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22674           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22675           /^X\(\/\/\)$/{ s//\1/; q; }
22676           /^X\(\/\).*/{ s//\1/; q; }
22677           s/.*/./; q'`
22678       { if $as_mkdir_p; then
22679     mkdir -p "$ac_dir"
22680   else
22681     as_dir="$ac_dir"
22682     as_dirs=
22683     while test ! -d "$as_dir"; do
22684       as_dirs="$as_dir $as_dirs"
22685       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22687          X"$as_dir" : 'X\(//\)[^/]' \| \
22688          X"$as_dir" : 'X\(//\)$' \| \
22689          X"$as_dir" : 'X\(/\)' \| \
22690          .     : '\(.\)' 2>/dev/null ||
22691 echo X"$as_dir" |
22692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22694           /^X\(\/\/\)$/{ s//\1/; q; }
22695           /^X\(\/\).*/{ s//\1/; q; }
22696           s/.*/./; q'`
22697     done
22698     test ! -n "$as_dirs" || mkdir $as_dirs
22699   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22700 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22701    { (exit 1); exit 1; }; }; }
22703       rm -f $ac_file
22704       mv $tmp/config.h $ac_file
22705     fi
22706   else
22707     cat $tmp/config.h
22708     rm -f $tmp/config.h
22709   fi
22710 # Compute $ac_file's index in $config_headers.
22711 _am_stamp_count=1
22712 for _am_header in $config_headers :; do
22713   case $_am_header in
22714     $ac_file | $ac_file:* )
22715       break ;;
22716     * )
22717       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22718   esac
22719 done
22720 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22721 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22722          X$ac_file : 'X\(//\)[^/]' \| \
22723          X$ac_file : 'X\(//\)$' \| \
22724          X$ac_file : 'X\(/\)' \| \
22725          .     : '\(.\)' 2>/dev/null ||
22726 echo X$ac_file |
22727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22728           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22729           /^X\(\/\/\)$/{ s//\1/; q; }
22730           /^X\(\/\).*/{ s//\1/; q; }
22731           s/.*/./; q'`/stamp-h$_am_stamp_count
22732 done
22733 _ACEOF
22734 cat >>$CONFIG_STATUS <<\_ACEOF
22737 # CONFIG_COMMANDS section.
22739 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22740   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22741   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22742   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22743 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22744          X"$ac_dest" : 'X\(//\)[^/]' \| \
22745          X"$ac_dest" : 'X\(//\)$' \| \
22746          X"$ac_dest" : 'X\(/\)' \| \
22747          .     : '\(.\)' 2>/dev/null ||
22748 echo X"$ac_dest" |
22749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22751           /^X\(\/\/\)$/{ s//\1/; q; }
22752           /^X\(\/\).*/{ s//\1/; q; }
22753           s/.*/./; q'`
22754   { if $as_mkdir_p; then
22755     mkdir -p "$ac_dir"
22756   else
22757     as_dir="$ac_dir"
22758     as_dirs=
22759     while test ! -d "$as_dir"; do
22760       as_dirs="$as_dir $as_dirs"
22761       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22763          X"$as_dir" : 'X\(//\)[^/]' \| \
22764          X"$as_dir" : 'X\(//\)$' \| \
22765          X"$as_dir" : 'X\(/\)' \| \
22766          .     : '\(.\)' 2>/dev/null ||
22767 echo X"$as_dir" |
22768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22770           /^X\(\/\/\)$/{ s//\1/; q; }
22771           /^X\(\/\).*/{ s//\1/; q; }
22772           s/.*/./; q'`
22773     done
22774     test ! -n "$as_dirs" || mkdir $as_dirs
22775   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22777    { (exit 1); exit 1; }; }; }
22779   ac_builddir=.
22781 if test "$ac_dir" != .; then
22782   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22783   # A "../" for each directory in $ac_dir_suffix.
22784   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22785 else
22786   ac_dir_suffix= ac_top_builddir=
22789 case $srcdir in
22790   .)  # No --srcdir option.  We are building in place.
22791     ac_srcdir=.
22792     if test -z "$ac_top_builddir"; then
22793        ac_top_srcdir=.
22794     else
22795        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22796     fi ;;
22797   [\\/]* | ?:[\\/]* )  # Absolute path.
22798     ac_srcdir=$srcdir$ac_dir_suffix;
22799     ac_top_srcdir=$srcdir ;;
22800   *) # Relative path.
22801     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22802     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22803 esac
22805 # Do not use `cd foo && pwd` to compute absolute paths, because
22806 # the directories may not exist.
22807 case `pwd` in
22808 .) ac_abs_builddir="$ac_dir";;
22810   case "$ac_dir" in
22811   .) ac_abs_builddir=`pwd`;;
22812   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22813   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22814   esac;;
22815 esac
22816 case $ac_abs_builddir in
22817 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22819   case ${ac_top_builddir}. in
22820   .) ac_abs_top_builddir=$ac_abs_builddir;;
22821   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22822   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22823   esac;;
22824 esac
22825 case $ac_abs_builddir in
22826 .) ac_abs_srcdir=$ac_srcdir;;
22828   case $ac_srcdir in
22829   .) ac_abs_srcdir=$ac_abs_builddir;;
22830   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22831   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22832   esac;;
22833 esac
22834 case $ac_abs_builddir in
22835 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22837   case $ac_top_srcdir in
22838   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22839   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22840   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22841   esac;;
22842 esac
22845   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22846 echo "$as_me: executing $ac_dest commands" >&6;}
22847   case $ac_dest in
22848     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22849   # Strip MF so we end up with the name of the file.
22850   mf=`echo "$mf" | sed -e 's/:.*$//'`
22851   # Check whether this is an Automake generated Makefile or not.
22852   # We used to match only the files named `Makefile.in', but
22853   # some people rename them; so instead we look at the file content.
22854   # Grep'ing the first line is not enough: some people post-process
22855   # each Makefile.in and add a new line on top of each file to say so.
22856   # So let's grep whole file.
22857   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22858     dirpart=`(dirname "$mf") 2>/dev/null ||
22859 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22860          X"$mf" : 'X\(//\)[^/]' \| \
22861          X"$mf" : 'X\(//\)$' \| \
22862          X"$mf" : 'X\(/\)' \| \
22863          .     : '\(.\)' 2>/dev/null ||
22864 echo X"$mf" |
22865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22867           /^X\(\/\/\)$/{ s//\1/; q; }
22868           /^X\(\/\).*/{ s//\1/; q; }
22869           s/.*/./; q'`
22870   else
22871     continue
22872   fi
22873   # Extract the definition of DEPDIR, am__include, and am__quote
22874   # from the Makefile without running `make'.
22875   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22876   test -z "$DEPDIR" && continue
22877   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22878   test -z "am__include" && continue
22879   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22880   # When using ansi2knr, U may be empty or an underscore; expand it
22881   U=`sed -n 's/^U = //p' < "$mf"`
22882   # Find all dependency output files, they are included files with
22883   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22884   # simplest approach to changing $(DEPDIR) to its actual value in the
22885   # expansion.
22886   for file in `sed -n "
22887     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22888        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22889     # Make sure the directory exists.
22890     test -f "$dirpart/$file" && continue
22891     fdir=`(dirname "$file") 2>/dev/null ||
22892 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22893          X"$file" : 'X\(//\)[^/]' \| \
22894          X"$file" : 'X\(//\)$' \| \
22895          X"$file" : 'X\(/\)' \| \
22896          .     : '\(.\)' 2>/dev/null ||
22897 echo X"$file" |
22898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22900           /^X\(\/\/\)$/{ s//\1/; q; }
22901           /^X\(\/\).*/{ s//\1/; q; }
22902           s/.*/./; q'`
22903     { if $as_mkdir_p; then
22904     mkdir -p $dirpart/$fdir
22905   else
22906     as_dir=$dirpart/$fdir
22907     as_dirs=
22908     while test ! -d "$as_dir"; do
22909       as_dirs="$as_dir $as_dirs"
22910       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22912          X"$as_dir" : 'X\(//\)[^/]' \| \
22913          X"$as_dir" : 'X\(//\)$' \| \
22914          X"$as_dir" : 'X\(/\)' \| \
22915          .     : '\(.\)' 2>/dev/null ||
22916 echo X"$as_dir" |
22917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22919           /^X\(\/\/\)$/{ s//\1/; q; }
22920           /^X\(\/\).*/{ s//\1/; q; }
22921           s/.*/./; q'`
22922     done
22923     test ! -n "$as_dirs" || mkdir $as_dirs
22924   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22925 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22926    { (exit 1); exit 1; }; }; }
22928     # echo "creating $dirpart/$file"
22929     echo '# dummy' > "$dirpart/$file"
22930   done
22931 done
22932  ;;
22933   esac
22934 done
22935 _ACEOF
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22939 { (exit 0); exit 0; }
22940 _ACEOF
22941 chmod +x $CONFIG_STATUS
22942 ac_clean_files=$ac_clean_files_save
22945 # configure is writing to config.log, and then calls config.status.
22946 # config.status does its own redirection, appending to config.log.
22947 # Unfortunately, on DOS this fails, as config.log is still kept open
22948 # by configure, so config.status won't be able to write to it; its
22949 # output is simply discarded.  So we exec the FD to /dev/null,
22950 # effectively closing config.log, so it can be properly (re)opened and
22951 # appended to by config.status.  When coming back to configure, we
22952 # need to make the FD available again.
22953 if test "$no_create" != yes; then
22954   ac_cs_success=:
22955   ac_config_status_args=
22956   test "$silent" = yes &&
22957     ac_config_status_args="$ac_config_status_args --quiet"
22958   exec 5>/dev/null
22959   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22960   exec 5>>config.log
22961   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22962   # would make configure fail if this is the last instruction.
22963   $ac_cs_success || { (exit 1); exit 1; }