Merge commit 'upstream/1.2.2' into debian
[shibboleth/xmltooling.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for xmltooling 1.2.2.
4 #
5 # Report bugs to <mace-opensaml-users@internet2.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='xmltooling'
425 PACKAGE_TARNAME='xmltooling'
426 PACKAGE_VERSION='1.2.2'
427 PACKAGE_STRING='xmltooling 1.2.2'
428 PACKAGE_BUGREPORT='mace-opensaml-users@internet2.edu'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 DX_PROJECT DX_CONFIG DX_DOCDIR DX_ENV DX_FLAG_doc DX_DOXYGEN ac_pt_DX_DOXYGEN DX_PERL ac_pt_DX_PERL DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_DOT ac_pt_DX_DOT DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_HHC ac_pt_DX_HHC DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_LATEX ac_pt_DX_LATEX DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_DVIPS ac_pt_DX_DVIPS DX_EGREP ac_pt_DX_EGREP DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_PDFLATEX ac_pt_DX_PDFLATEX DX_COND_pdf_TRUE DX_COND_pdf_FALSE DX_COND_latex_TRUE DX_COND_latex_FALSE DOXYGEN_PAPER_SIZE 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 acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS BUILD_PTHREAD_TRUE BUILD_PTHREAD_FALSE LOG4SHIB_CONFIG LOG4CPP_CONFIG PKG_CONFIG CURL_CONFIG XMLSEC_LIBS BUILD_XMLSEC_TRUE BUILD_XMLSEC_FALSE CXXTEST CXXTESTFLAGS BUILD_UNITTEST_TRUE BUILD_UNITTEST_FALSE LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
909 ac_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
910 ac_cv_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
911 ac_cv_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXXCPP_set=${CXXCPP+set}
941 ac_env_CXXCPP_value=$CXXCPP
942 ac_cv_env_CXXCPP_set=${CXXCPP+set}
943 ac_cv_env_CXXCPP_value=$CXXCPP
944 ac_env_F77_set=${F77+set}
945 ac_env_F77_value=$F77
946 ac_cv_env_F77_set=${F77+set}
947 ac_cv_env_F77_value=$F77
948 ac_env_FFLAGS_set=${FFLAGS+set}
949 ac_env_FFLAGS_value=$FFLAGS
950 ac_cv_env_FFLAGS_set=${FFLAGS+set}
951 ac_cv_env_FFLAGS_value=$FFLAGS
952
953 #
954 # Report the --help message.
955 #
956 if test "$ac_init_help" = "long"; then
957   # Omit some internal or obsolete options to make the list less imposing.
958   # This message is too long to be a string in the A/UX 3.1 sh.
959   cat <<_ACEOF
960 \`configure' configures xmltooling 1.2.2 to adapt to many kinds of systems.
961
962 Usage: $0 [OPTION]... [VAR=VALUE]...
963
964 To assign environment variables (e.g., CC, CFLAGS...), specify them as
965 VAR=VALUE.  See below for descriptions of some of the useful variables.
966
967 Defaults for the options are specified in brackets.
968
969 Configuration:
970   -h, --help              display this help and exit
971       --help=short        display options specific to this package
972       --help=recursive    display the short help of all the included packages
973   -V, --version           display version information and exit
974   -q, --quiet, --silent   do not print \`checking...' messages
975       --cache-file=FILE   cache test results in FILE [disabled]
976   -C, --config-cache      alias for \`--cache-file=config.cache'
977   -n, --no-create         do not create output files
978       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
979
980 _ACEOF
981
982   cat <<_ACEOF
983 Installation directories:
984   --prefix=PREFIX         install architecture-independent files in PREFIX
985                           [$ac_default_prefix]
986   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
987                           [PREFIX]
988
989 By default, \`make install' will install all the files in
990 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
991 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
992 for instance \`--prefix=\$HOME'.
993
994 For better control, use the options below.
995
996 Fine tuning of the installation directories:
997   --bindir=DIR           user executables [EPREFIX/bin]
998   --sbindir=DIR          system admin executables [EPREFIX/sbin]
999   --libexecdir=DIR       program executables [EPREFIX/libexec]
1000   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1001   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1002   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1003   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1004   --libdir=DIR           object code libraries [EPREFIX/lib]
1005   --includedir=DIR       C header files [PREFIX/include]
1006   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1007   --infodir=DIR          info documentation [PREFIX/info]
1008   --mandir=DIR           man documentation [PREFIX/man]
1009 _ACEOF
1010
1011   cat <<\_ACEOF
1012
1013 Program names:
1014   --program-prefix=PREFIX            prepend PREFIX to installed program names
1015   --program-suffix=SUFFIX            append SUFFIX to installed program names
1016   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025   case $ac_init_help in
1026      short | recursive ) echo "Configuration of xmltooling 1.2.2:";;
1027    esac
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --disable-doxygen-doc   don't generate any doxygen documentation
1034   --disable-doxygen-dot   don't generate graphics for doxygen documentation
1035   --enable-doxygen-man    generate doxygen manual pages
1036   --enable-doxygen-rtf    generate doxygen RTF documentation
1037   --enable-doxygen-xml    generate doxygen XML documentation
1038   --enable-doxygen-chm    generate doxygen compressed HTML help documentation
1039   --enable-doxygen-chi    generate doxygen seperate compressed HTML help index
1040                           file
1041   --disable-doxygen-html  don't generate doxygen plain HTML documentation
1042   --enable-doxygen-ps     generate doxygen PostScript documentation
1043   --enable-doxygen-pdf    generate doxygen PDF documentation
1044   --enable-debug          Have GCC compile with symbols (Default = no)
1045   --disable-dependency-tracking  speeds up one-time build
1046   --enable-dependency-tracking   do not reject slow dependency extractors
1047   --enable-static[=PKGS]
1048                           build static libraries [default=no]
1049   --enable-shared[=PKGS]
1050                           build shared libraries [default=yes]
1051   --enable-fast-install[=PKGS]
1052                           optimize for fast installation [default=yes]
1053   --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055 Optional Packages:
1056   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1059   --with-pic              try to use only PIC/non-PIC objects [default=use
1060                           both]
1061   --with-tags[=TAGS]
1062                           include additional configurations [automatic]
1063   --with-log4shib=PATH    where log4shib-config is installed
1064   --with-log4cpp=PATH     where log4cpp-config is installed
1065   --with-xerces=PATH      where xerces-c is installed
1066   --with-xmlsec=PATH      where xmlsec is installed
1067   --with-openssl=PATH     where openssl is installed
1068   --with-curl=PATH        where curl-config is installed
1069   --with-cxxtest=PATH     where cxxtest is installed
1070
1071 Some influential environment variables:
1072   DOXYGEN_PAPER_SIZE
1073               a4wide (default), a4, letter, legal or executive
1074   CC          C compiler command
1075   CFLAGS      C compiler flags
1076   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1077               nonstandard directory <lib dir>
1078   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079               headers in a nonstandard directory <include dir>
1080   CXX         C++ compiler command
1081   CXXFLAGS    C++ compiler flags
1082   CPP         C preprocessor
1083   CXXCPP      C++ preprocessor
1084   F77         Fortran 77 compiler command
1085   FFLAGS      Fortran 77 compiler flags
1086
1087 Use these variables to override the choices made by `configure' or to help
1088 it to find libraries and programs with nonstandard names/locations.
1089
1090 Report bugs to <mace-opensaml-users@internet2.edu>.
1091 _ACEOF
1092 fi
1093
1094 if test "$ac_init_help" = "recursive"; then
1095   # If there are subdirs, report their specific --help.
1096   ac_popdir=`pwd`
1097   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098     test -d $ac_dir || continue
1099     ac_builddir=.
1100
1101 if test "$ac_dir" != .; then
1102   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103   # A "../" for each directory in $ac_dir_suffix.
1104   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105 else
1106   ac_dir_suffix= ac_top_builddir=
1107 fi
1108
1109 case $srcdir in
1110   .)  # No --srcdir option.  We are building in place.
1111     ac_srcdir=.
1112     if test -z "$ac_top_builddir"; then
1113        ac_top_srcdir=.
1114     else
1115        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116     fi ;;
1117   [\\/]* | ?:[\\/]* )  # Absolute path.
1118     ac_srcdir=$srcdir$ac_dir_suffix;
1119     ac_top_srcdir=$srcdir ;;
1120   *) # Relative path.
1121     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123 esac
1124
1125 # Do not use `cd foo && pwd` to compute absolute paths, because
1126 # the directories may not exist.
1127 case `pwd` in
1128 .) ac_abs_builddir="$ac_dir";;
1129 *)
1130   case "$ac_dir" in
1131   .) ac_abs_builddir=`pwd`;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *)
1139   case ${ac_top_builddir}. in
1140   .) ac_abs_top_builddir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143   esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_srcdir=$ac_srcdir;;
1147 *)
1148   case $ac_srcdir in
1149   .) ac_abs_srcdir=$ac_abs_builddir;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152   esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *)
1157   case $ac_top_srcdir in
1158   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161   esac;;
1162 esac
1163
1164     cd $ac_dir
1165     # Check for guested configure; otherwise get Cygnus style configure.
1166     if test -f $ac_srcdir/configure.gnu; then
1167       echo
1168       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1169     elif test -f $ac_srcdir/configure; then
1170       echo
1171       $SHELL $ac_srcdir/configure  --help=recursive
1172     elif test -f $ac_srcdir/configure.ac ||
1173            test -f $ac_srcdir/configure.in; then
1174       echo
1175       $ac_configure --help
1176     else
1177       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178     fi
1179     cd $ac_popdir
1180   done
1181 fi
1182
1183 test -n "$ac_init_help" && exit 0
1184 if $ac_init_version; then
1185   cat <<\_ACEOF
1186 xmltooling configure 1.2.2
1187 generated by GNU Autoconf 2.59
1188
1189 Copyright (C) 2003 Free Software Foundation, Inc.
1190 This configure script is free software; the Free Software Foundation
1191 gives unlimited permission to copy, distribute and modify it.
1192 _ACEOF
1193   exit 0
1194 fi
1195 exec 5>config.log
1196 cat >&5 <<_ACEOF
1197 This file contains any messages produced by compilers while
1198 running configure, to aid debugging if configure makes a mistake.
1199
1200 It was created by xmltooling $as_me 1.2.2, which was
1201 generated by GNU Autoconf 2.59.  Invocation command line was
1202
1203   $ $0 $@
1204
1205 _ACEOF
1206 {
1207 cat <<_ASUNAME
1208 ## --------- ##
1209 ## Platform. ##
1210 ## --------- ##
1211
1212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217
1218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1220
1221 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1222 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1225 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1226 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1227 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1228
1229 _ASUNAME
1230
1231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 for as_dir in $PATH
1233 do
1234   IFS=$as_save_IFS
1235   test -z "$as_dir" && as_dir=.
1236   echo "PATH: $as_dir"
1237 done
1238
1239 } >&5
1240
1241 cat >&5 <<_ACEOF
1242
1243
1244 ## ----------- ##
1245 ## Core tests. ##
1246 ## ----------- ##
1247
1248 _ACEOF
1249
1250
1251 # Keep a trace of the command line.
1252 # Strip out --no-create and --no-recursion so they do not pile up.
1253 # Strip out --silent because we don't want to record it for future runs.
1254 # Also quote any args containing shell meta-characters.
1255 # Make two passes to allow for proper duplicate-argument suppression.
1256 ac_configure_args=
1257 ac_configure_args0=
1258 ac_configure_args1=
1259 ac_sep=
1260 ac_must_keep_next=false
1261 for ac_pass in 1 2
1262 do
1263   for ac_arg
1264   do
1265     case $ac_arg in
1266     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268     | -silent | --silent | --silen | --sile | --sil)
1269       continue ;;
1270     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272     esac
1273     case $ac_pass in
1274     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275     2)
1276       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277       if test $ac_must_keep_next = true; then
1278         ac_must_keep_next=false # Got value, back to normal.
1279       else
1280         case $ac_arg in
1281           *=* | --config-cache | -C | -disable-* | --disable-* \
1282           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284           | -with-* | --with-* | -without-* | --without-* | --x)
1285             case "$ac_configure_args0 " in
1286               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287             esac
1288             ;;
1289           -* ) ac_must_keep_next=true ;;
1290         esac
1291       fi
1292       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293       # Get rid of the leading space.
1294       ac_sep=" "
1295       ;;
1296     esac
1297   done
1298 done
1299 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301
1302 # When interrupted or exit'd, cleanup temporary files, and complete
1303 # config.log.  We remove comments because anyway the quotes in there
1304 # would cause problems or look ugly.
1305 # WARNING: Be sure not to use single quotes in there, as some shells,
1306 # such as our DU 5.0 friend, will then `close' the trap.
1307 trap 'exit_status=$?
1308   # Save into config.log some information that might help in debugging.
1309   {
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ---------------- ##
1314 ## Cache variables. ##
1315 ## ---------------- ##
1316 _ASBOX
1317     echo
1318     # The following way of writing the cache mishandles newlines in values,
1319 {
1320   (set) 2>&1 |
1321     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322     *ac_space=\ *)
1323       sed -n \
1324         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326       ;;
1327     *)
1328       sed -n \
1329         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330       ;;
1331     esac;
1332 }
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ----------------- ##
1337 ## Output variables. ##
1338 ## ----------------- ##
1339 _ASBOX
1340     echo
1341     for ac_var in $ac_subst_vars
1342     do
1343       eval ac_val=$`echo $ac_var`
1344       echo "$ac_var='"'"'$ac_val'"'"'"
1345     done | sort
1346     echo
1347
1348     if test -n "$ac_subst_files"; then
1349       cat <<\_ASBOX
1350 ## ------------- ##
1351 ## Output files. ##
1352 ## ------------- ##
1353 _ASBOX
1354       echo
1355       for ac_var in $ac_subst_files
1356       do
1357         eval ac_val=$`echo $ac_var`
1358         echo "$ac_var='"'"'$ac_val'"'"'"
1359       done | sort
1360       echo
1361     fi
1362
1363     if test -s confdefs.h; then
1364       cat <<\_ASBOX
1365 ## ----------- ##
1366 ## confdefs.h. ##
1367 ## ----------- ##
1368 _ASBOX
1369       echo
1370       sed "/^$/d" confdefs.h | sort
1371       echo
1372     fi
1373     test "$ac_signal" != 0 &&
1374       echo "$as_me: caught signal $ac_signal"
1375     echo "$as_me: exit $exit_status"
1376   } >&5
1377   rm -f core *.core &&
1378   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379     exit $exit_status
1380      ' 0
1381 for ac_signal in 1 2 13 15; do
1382   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 done
1384 ac_signal=0
1385
1386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1387 rm -rf conftest* confdefs.h
1388 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389 echo >confdefs.h
1390
1391 # Predefined preprocessor variables.
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 _ACEOF
1416
1417
1418 # Let the site file select an alternate cache file if it wants to.
1419 # Prefer explicitly selected file to automatically selected ones.
1420 if test -z "$CONFIG_SITE"; then
1421   if test "x$prefix" != xNONE; then
1422     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423   else
1424     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1425   fi
1426 fi
1427 for ac_site_file in $CONFIG_SITE; do
1428   if test -r "$ac_site_file"; then
1429     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430 echo "$as_me: loading site script $ac_site_file" >&6;}
1431     sed 's/^/| /' "$ac_site_file" >&5
1432     . "$ac_site_file"
1433   fi
1434 done
1435
1436 if test -r "$cache_file"; then
1437   # Some versions of bash will fail to source /dev/null (special
1438   # files actually), so we avoid doing that.
1439   if test -f "$cache_file"; then
1440     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441 echo "$as_me: loading cache $cache_file" >&6;}
1442     case $cache_file in
1443       [\\/]* | ?:[\\/]* ) . $cache_file;;
1444       *)                      . ./$cache_file;;
1445     esac
1446   fi
1447 else
1448   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449 echo "$as_me: creating cache $cache_file" >&6;}
1450   >$cache_file
1451 fi
1452
1453 # Check that the precious variables saved in the cache have kept the same
1454 # value.
1455 ac_cache_corrupted=false
1456 for ac_var in `(set) 2>&1 |
1457                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459   eval ac_new_set=\$ac_env_${ac_var}_set
1460   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461   eval ac_new_val="\$ac_env_${ac_var}_value"
1462   case $ac_old_set,$ac_new_set in
1463     set,)
1464       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466       ac_cache_corrupted=: ;;
1467     ,set)
1468       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470       ac_cache_corrupted=: ;;
1471     ,);;
1472     *)
1473       if test "x$ac_old_val" != "x$ac_new_val"; then
1474         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1475 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1476         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1477 echo "$as_me:   former value:  $ac_old_val" >&2;}
1478         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1479 echo "$as_me:   current value: $ac_new_val" >&2;}
1480         ac_cache_corrupted=:
1481       fi;;
1482   esac
1483   # Pass precious variables to config.status.
1484   if test "$ac_new_set" = set; then
1485     case $ac_new_val in
1486     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1487       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1488     *) ac_arg=$ac_var=$ac_new_val ;;
1489     esac
1490     case " $ac_configure_args " in
1491       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1492       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493     esac
1494   fi
1495 done
1496 if $ac_cache_corrupted; then
1497   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1498 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1499   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1500 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1501    { (exit 1); exit 1; }; }
1502 fi
1503
1504 ac_ext=c
1505 ac_cpp='$CPP $CPPFLAGS'
1506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536           ac_config_headers="$ac_config_headers config.h"
1537
1538           ac_config_headers="$ac_config_headers xmltooling/config_pub.h"
1539
1540 am__api_version="1.9"
1541 ac_aux_dir=
1542 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1543   if test -f $ac_dir/install-sh; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/install-sh -c"
1546     break
1547   elif test -f $ac_dir/install.sh; then
1548     ac_aux_dir=$ac_dir
1549     ac_install_sh="$ac_aux_dir/install.sh -c"
1550     break
1551   elif test -f $ac_dir/shtool; then
1552     ac_aux_dir=$ac_dir
1553     ac_install_sh="$ac_aux_dir/shtool install -c"
1554     break
1555   fi
1556 done
1557 if test -z "$ac_aux_dir"; then
1558   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1559 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1560    { (exit 1); exit 1; }; }
1561 fi
1562 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565
1566 # Find a good install program.  We prefer a C program (faster),
1567 # so one script is as good as another.  But avoid the broken or
1568 # incompatible versions:
1569 # SysV /etc/install, /usr/sbin/install
1570 # SunOS /usr/etc/install
1571 # IRIX /sbin/install
1572 # AIX /bin/install
1573 # AmigaOS /C/install, which installs bootblocks on floppy discs
1574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1577 # OS/2's system install, which has a completely different semantic
1578 # ./install, which can be erroneously created by make from ./install.sh.
1579 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1580 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1581 if test -z "$INSTALL"; then
1582 if test "${ac_cv_path_install+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   # Account for people who put trailing slashes in PATH elements.
1591 case $as_dir/ in
1592   ./ | .// | /cC/* | \
1593   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1594   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1595   /usr/ucb/* ) ;;
1596   *)
1597     # OSF1 and SCO ODT 3.0 have their own names for install.
1598     # Don't use installbsd from OSF since it installs stuff as root
1599     # by default.
1600     for ac_prog in ginstall scoinst install; do
1601       for ac_exec_ext in '' $ac_executable_extensions; do
1602         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603           if test $ac_prog = install &&
1604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605             # AIX install.  It has an incompatible calling convention.
1606             :
1607           elif test $ac_prog = install &&
1608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609             # program-specific install script used by HP pwplus--don't use.
1610             :
1611           else
1612             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613             break 3
1614           fi
1615         fi
1616       done
1617     done
1618     ;;
1619 esac
1620 done
1621
1622
1623 fi
1624   if test "${ac_cv_path_install+set}" = set; then
1625     INSTALL=$ac_cv_path_install
1626   else
1627     # As a last resort, use the slow shell script.  We don't cache a
1628     # path for INSTALL within a source directory, because that will
1629     # break other packages using the cache if that directory is
1630     # removed, or if the path is relative.
1631     INSTALL=$ac_install_sh
1632   fi
1633 fi
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1636
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments.  Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657    if test "$*" = "X"; then
1658       # -L didn't work.
1659       set X `ls -t $srcdir/configure conftest.file`
1660    fi
1661    rm -f conftest.file
1662    if test "$*" != "X $srcdir/configure conftest.file" \
1663       && test "$*" != "X conftest.file $srcdir/configure"; then
1664
1665       # If neither matched, then we have a broken ls.  This can happen
1666       # if, for instance, CONFIG_SHELL is bash and it inherits a
1667       # broken ls alias from the environment.  This has actually
1668       # happened.  Such a system could not be considered "sane".
1669       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1672 alias in your environment" >&2;}
1673    { (exit 1); exit 1; }; }
1674    fi
1675
1676    test "$2" = conftest.file
1677    )
1678 then
1679    # Ok.
1680    :
1681 else
1682    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686    { (exit 1); exit 1; }; }
1687 fi
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $.  echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1702
1703 # expand $ac_aux_dir to an absolute path
1704 am_aux_dir=`cd $ac_aux_dir && pwd`
1705
1706 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1707 # Use eval to expand $SHELL
1708 if eval "$MISSING --run true"; then
1709   am_missing_run="$MISSING --run "
1710 else
1711   am_missing_run=
1712   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1713 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1714 fi
1715
1716 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1717   # We used to keeping the `.' as first argument, in order to
1718   # allow $(mkdir_p) to be used without argument.  As in
1719   #   $(mkdir_p) $(somedir)
1720   # where $(somedir) is conditionally defined.  However this is wrong
1721   # for two reasons:
1722   #  1. if the package is installed by a user who cannot write `.'
1723   #     make install will fail,
1724   #  2. the above comment should most certainly read
1725   #     $(mkdir_p) $(DESTDIR)$(somedir)
1726   #     so it does not work when $(somedir) is undefined and
1727   #     $(DESTDIR) is not.
1728   #  To support the latter case, we have to write
1729   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1730   #  so the `.' trick is pointless.
1731   mkdir_p='mkdir -p --'
1732 else
1733   # On NextStep and OpenStep, the `mkdir' command does not
1734   # recognize any option.  It will interpret all options as
1735   # directories to create, and then abort because `.' already
1736   # exists.
1737   for d in ./-p ./--version;
1738   do
1739     test -d $d && rmdir $d
1740   done
1741   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1742   if test -f "$ac_aux_dir/mkinstalldirs"; then
1743     mkdir_p='$(mkinstalldirs)'
1744   else
1745     mkdir_p='$(install_sh) -d'
1746   fi
1747 fi
1748
1749 for ac_prog in gawk mawk nawk awk
1750 do
1751   # Extract the first word of "$ac_prog", so it can be a program name with args.
1752 set dummy $ac_prog; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_AWK+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   if test -n "$AWK"; then
1759   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764   IFS=$as_save_IFS
1765   test -z "$as_dir" && as_dir=.
1766   for ac_exec_ext in '' $ac_executable_extensions; do
1767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768     ac_cv_prog_AWK="$ac_prog"
1769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770     break 2
1771   fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 AWK=$ac_cv_prog_AWK
1778 if test -n "$AWK"; then
1779   echo "$as_me:$LINENO: result: $AWK" >&5
1780 echo "${ECHO_T}$AWK" >&6
1781 else
1782   echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786   test -n "$AWK" && break
1787 done
1788
1789 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1790 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1791 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1792 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   cat >conftest.make <<\_ACEOF
1796 all:
1797         @echo 'ac_maketemp="$(MAKE)"'
1798 _ACEOF
1799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1800 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1801 if test -n "$ac_maketemp"; then
1802   eval ac_cv_prog_make_${ac_make}_set=yes
1803 else
1804   eval ac_cv_prog_make_${ac_make}_set=no
1805 fi
1806 rm -f conftest.make
1807 fi
1808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1809   echo "$as_me:$LINENO: result: yes" >&5
1810 echo "${ECHO_T}yes" >&6
1811   SET_MAKE=
1812 else
1813   echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815   SET_MAKE="MAKE=${MAKE-make}"
1816 fi
1817
1818 rm -rf .tst 2>/dev/null
1819 mkdir .tst 2>/dev/null
1820 if test -d .tst; then
1821   am__leading_dot=.
1822 else
1823   am__leading_dot=_
1824 fi
1825 rmdir .tst 2>/dev/null
1826
1827 # test to see if srcdir already configured
1828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1829    test -f $srcdir/config.status; then
1830   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1832    { (exit 1); exit 1; }; }
1833 fi
1834
1835 # test whether we have cygpath
1836 if test -z "$CYGPATH_W"; then
1837   if (cygpath --version) >/dev/null 2>/dev/null; then
1838     CYGPATH_W='cygpath -w'
1839   else
1840     CYGPATH_W=echo
1841   fi
1842 fi
1843
1844
1845 # Define the identity of the package.
1846  PACKAGE=xmltooling
1847  VERSION=1.2.2
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE "$PACKAGE"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define VERSION "$VERSION"
1857 _ACEOF
1858
1859 # Some tools Automake needs.
1860
1861 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1862
1863
1864 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1865
1866
1867 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1868
1869
1870 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1871
1872
1873 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1874
1875 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1876
1877 # Installed binaries are usually stripped using `strip' when the user
1878 # run `make install-strip'.  However `strip' might not be the right
1879 # tool to use in cross-compilation environments, therefore Automake
1880 # will honor the `STRIP' environment variable to overrule this program.
1881 if test "$cross_compiling" != no; then
1882   if test -n "$ac_tool_prefix"; then
1883   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_STRIP+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$STRIP"; then
1891   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 STRIP=$ac_cv_prog_STRIP
1910 if test -n "$STRIP"; then
1911   echo "$as_me:$LINENO: result: $STRIP" >&5
1912 echo "${ECHO_T}$STRIP" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 fi
1919 if test -z "$ac_cv_prog_STRIP"; then
1920   ac_ct_STRIP=$STRIP
1921   # Extract the first word of "strip", so it can be a program name with args.
1922 set dummy strip; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_STRIP"; then
1929   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_STRIP="strip"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1946 fi
1947 fi
1948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1949 if test -n "$ac_ct_STRIP"; then
1950   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1951 echo "${ECHO_T}$ac_ct_STRIP" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957   STRIP=$ac_ct_STRIP
1958 else
1959   STRIP="$ac_cv_prog_STRIP"
1960 fi
1961
1962 fi
1963 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1964
1965 # We need awk for the "check" target.  The system "awk" is bad on
1966 # some platforms.
1967 # Always define AMTAR for backward compatibility.
1968
1969 AMTAR=${AMTAR-"${am_missing_run}tar"}
1970
1971 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1972
1973
1974
1975
1976
1977
1978 # This file is part of Autoconf.                       -*- Autoconf -*-
1979
1980 # Copyright (C) 2004 Oren Ben-Kiki
1981 # This file is distributed under the same terms as the Autoconf macro files.
1982
1983 # Generate automatic documentation using Doxygen. Works in concert with the
1984 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1985 # following public macros:
1986 #
1987 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
1988 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
1989 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
1990 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
1991 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
1992 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
1993 # paper size.
1994 #
1995 # By default, HTML, PDF and PS documentation is generated as this seems to be
1996 # the most popular and portable combination. MAN pages created by Doxygen are
1997 # usually problematic, though by picking an appropriate subset and doing some
1998 # massaging they might be better than nothing. CHM and RTF are specific for MS
1999 # (note that you can't generate both HTML and CHM at the same time). The XML is
2000 # rather useless unless you apply specialized post-processing to it.
2001 #
2002 # The macro mainly controls the default state of the feature. The use can
2003 # override the default by specifying --enable or --disable. The macros ensure
2004 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2005 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2006 # Finally, each feature will be automatically disabled (with a warning) if the
2007 # required programs are missing.
2008 #
2009 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2010 # the following parameters: a one-word name for the project for use as a
2011 # filename base etc., an optional configuration file name (the default is
2012 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2013 # name (the default is 'doxygen-doc').
2014
2015 ## ----------##
2016 ## Defaults. ##
2017 ## ----------##
2018
2019 DX_ENV=""
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031 # Compatibility with older autoconf versions.
2032
2033
2034 ## --------------- ##
2035 ## Private macros. ##
2036 ## --------------- ##
2037
2038 # DX_ENV_APPEND(VARIABLE, VALUE)
2039 # ------------------------------
2040 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2041
2042
2043 # DX_DIRNAME_EXPR
2044 # ---------------
2045 # Expand into a shell expression prints the directory part of a path.
2046
2047
2048 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2049 # -------------------------------------
2050 # Expands according to the M4 (static) status of the feature.
2051
2052
2053 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2054 # ----------------------------------
2055 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2056
2057
2058 # DX_TEST_FEATURE(FEATURE)
2059 # ------------------------
2060 # Expand to a shell expression testing whether the feature is active.
2061
2062
2063 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2064 # -------------------------------------------------
2065 # Verify that a required features has the right state before trying to turn on
2066 # the DX_CURRENT_FEATURE.
2067
2068
2069 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2070 # ----------------------------------------------------------
2071 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2072
2073
2074 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2075 #                CHECK_DEPEND, CLEAR_DEPEND,
2076 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2077 # --------------------------------------------
2078 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2079 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2080 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2081 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2082 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2083 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2084
2085
2086 ## -------------- ##
2087 ## Public macros. ##
2088 ## -------------- ##
2089
2090 # DX_XXX_FEATURE(DEFAULT_STATE)
2091 # -----------------------------
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2104 # ---------------------------------------------------------
2105 # PROJECT also serves as the base name for the documentation files.
2106 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2107
2108
2109 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2110 #
2111 # SYNOPSIS
2112 #
2113 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2114 #
2115 # DESCRIPTION
2116 #
2117 #   This macro figures out how to build C programs using POSIX threads.
2118 #   It sets the PTHREAD_LIBS output variable to the threads library and
2119 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2120 #   C compiler flags that are needed. (The user can also force certain
2121 #   compiler flags/libs to be tested by setting these environment
2122 #   variables.)
2123 #
2124 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2125 #   multi-threaded programs (defaults to the value of CC otherwise).
2126 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2127 #
2128 #   NOTE: You are assumed to not only compile your program with these
2129 #   flags, but also link it with them as well. e.g. you should link
2130 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2131 #   $LIBS
2132 #
2133 #   If you are only building threads programs, you may wish to use
2134 #   these variables in your default LIBS, CFLAGS, and CC:
2135 #
2136 #          LIBS="$PTHREAD_LIBS $LIBS"
2137 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2138 #          CC="$PTHREAD_CC"
2139 #
2140 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2141 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2142 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2143 #
2144 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2145 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2146 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2147 #   default action will define HAVE_PTHREAD.
2148 #
2149 #   Please let the authors know if this macro fails on any platform, or
2150 #   if you have any other suggestions or comments. This macro was based
2151 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2152 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2153 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2154 #   repository. We are also grateful for the helpful feedback of
2155 #   numerous users.
2156 #
2157 # LAST MODIFICATION
2158 #
2159 #   2006-05-29
2160 #
2161 # COPYLEFT
2162 #
2163 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2164 #
2165 #   This program is free software; you can redistribute it and/or
2166 #   modify it under the terms of the GNU General Public License as
2167 #   published by the Free Software Foundation; either version 2 of the
2168 #   License, or (at your option) any later version.
2169 #
2170 #   This program is distributed in the hope that it will be useful, but
2171 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2172 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2173 #   General Public License for more details.
2174 #
2175 #   You should have received a copy of the GNU General Public License
2176 #   along with this program; if not, write to the Free Software
2177 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2178 #   02111-1307, USA.
2179 #
2180 #   As a special exception, the respective Autoconf Macro's copyright
2181 #   owner gives unlimited permission to copy, distribute and modify the
2182 #   configure scripts that are the output of Autoconf when processing
2183 #   the Macro. You need not follow the terms of the GNU General Public
2184 #   License when using or distributing such scripts, even though
2185 #   portions of the text of the Macro appear in them. The GNU General
2186 #   Public License (GPL) does govern all other use of the material that
2187 #   constitutes the Autoconf Macro.
2188 #
2189 #   This special exception to the GPL applies to versions of the
2190 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2191 #   make and distribute a modified version of the Autoconf Macro, you
2192 #   may extend this special exception to the GPL to apply to your
2193 #   modified version as well.
2194
2195
2196
2197 # Docygen features
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208 # Files:
2209 DX_PROJECT=xmltooling
2210
2211 DX_CONFIG=doxygen.cfg
2212
2213 DX_DOCDIR=doc/api
2214
2215
2216 # Environment variables used inside doxygen.cfg:
2217 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2218
2219 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2220
2221 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2222
2223 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2224
2225
2226 # Doxygen itself:
2227
2228
2229
2230     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2231 if test "${enable_doxygen_doc+set}" = set; then
2232   enableval="$enable_doxygen_doc"
2233
2234 case "$enableval" in
2235 #(
2236 y|Y|yes|Yes|YES)
2237     DX_FLAG_doc=1
2238
2239
2240 ;; #(
2241 n|N|no|No|NO)
2242     DX_FLAG_doc=0
2243
2244 ;; #(
2245 *)
2246     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2247 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2248    { (exit 1); exit 1; }; }
2249 ;;
2250 esac
2251
2252 else
2253
2254 DX_FLAG_doc=1
2255
2256
2257
2258 fi;
2259 if test "$DX_FLAG_doc" = 1; then
2260
2261 if test -n "$ac_tool_prefix"; then
2262   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2263 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   case $DX_DOXYGEN in
2270   [\\/]* | ?:[\\/]*)
2271   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2272   ;;
2273   *)
2274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277   IFS=$as_save_IFS
2278   test -z "$as_dir" && as_dir=.
2279   for ac_exec_ext in '' $ac_executable_extensions; do
2280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283     break 2
2284   fi
2285 done
2286 done
2287
2288   ;;
2289 esac
2290 fi
2291 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2292
2293 if test -n "$DX_DOXYGEN"; then
2294   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2295 echo "${ECHO_T}$DX_DOXYGEN" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301 fi
2302 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2303   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2304   # Extract the first word of "doxygen", so it can be a program name with args.
2305 set dummy doxygen; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   case $ac_pt_DX_DOXYGEN in
2312   [\\/]* | ?:[\\/]*)
2313   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2314   ;;
2315   *)
2316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329
2330   ;;
2331 esac
2332 fi
2333 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2334
2335 if test -n "$ac_pt_DX_DOXYGEN"; then
2336   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2337 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2338 else
2339   echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2344 else
2345   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2346 fi
2347
2348 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2349     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2350 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2351     DX_FLAG_doc=0
2352
2353 fi
2354
2355
2356 if test -n "$ac_tool_prefix"; then
2357   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}perl; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_path_DX_PERL+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   case $DX_PERL in
2365   [\\/]* | ?:[\\/]*)
2366   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2367   ;;
2368   *)
2369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382
2383   ;;
2384 esac
2385 fi
2386 DX_PERL=$ac_cv_path_DX_PERL
2387
2388 if test -n "$DX_PERL"; then
2389   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2390 echo "${ECHO_T}$DX_PERL" >&6
2391 else
2392   echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2394 fi
2395
2396 fi
2397 if test -z "$ac_cv_path_DX_PERL"; then
2398   ac_pt_DX_PERL=$DX_PERL
2399   # Extract the first word of "perl", so it can be a program name with args.
2400 set dummy perl; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   case $ac_pt_DX_PERL in
2407   [\\/]* | ?:[\\/]*)
2408   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2409   ;;
2410   *)
2411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424
2425   ;;
2426 esac
2427 fi
2428 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2429
2430 if test -n "$ac_pt_DX_PERL"; then
2431   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2432 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2433 else
2434   echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2436 fi
2437
2438   DX_PERL=$ac_pt_DX_PERL
2439 else
2440   DX_PERL="$ac_cv_path_DX_PERL"
2441 fi
2442
2443 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2444     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2445 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2446     DX_FLAG_doc=0
2447
2448 fi
2449
2450     :
2451 fi
2452 if test "$DX_FLAG_doc" = 1; then
2453
2454
2455 if :; then
2456   DX_COND_doc_TRUE=
2457   DX_COND_doc_FALSE='#'
2458 else
2459   DX_COND_doc_TRUE='#'
2460   DX_COND_doc_FALSE=
2461 fi
2462
2463     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2464
2465     :
2466 else
2467
2468
2469 if false; then
2470   DX_COND_doc_TRUE=
2471   DX_COND_doc_FALSE='#'
2472 else
2473   DX_COND_doc_TRUE='#'
2474   DX_COND_doc_FALSE=
2475 fi
2476
2477
2478     :
2479 fi
2480
2481
2482 # Dot for graphics:
2483
2484
2485
2486     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2487 if test "${enable_doxygen_dot+set}" = set; then
2488   enableval="$enable_doxygen_dot"
2489
2490 case "$enableval" in
2491 #(
2492 y|Y|yes|Yes|YES)
2493     DX_FLAG_dot=1
2494
2495
2496 test "$DX_FLAG_doc" = "1" \
2497 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2498 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2499    { (exit 1); exit 1; }; }
2500
2501 ;; #(
2502 n|N|no|No|NO)
2503     DX_FLAG_dot=0
2504
2505 ;; #(
2506 *)
2507     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2508 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2509    { (exit 1); exit 1; }; }
2510 ;;
2511 esac
2512
2513 else
2514
2515 DX_FLAG_dot=1
2516
2517
2518 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2519
2520
2521
2522 fi;
2523 if test "$DX_FLAG_dot" = 1; then
2524
2525 if test -n "$ac_tool_prefix"; then
2526   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}dot; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_path_DX_DOT+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   case $DX_DOT in
2534   [\\/]* | ?:[\\/]*)
2535   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2536   ;;
2537   *)
2538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543   for ac_exec_ext in '' $ac_executable_extensions; do
2544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547     break 2
2548   fi
2549 done
2550 done
2551
2552   ;;
2553 esac
2554 fi
2555 DX_DOT=$ac_cv_path_DX_DOT
2556
2557 if test -n "$DX_DOT"; then
2558   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2559 echo "${ECHO_T}$DX_DOT" >&6
2560 else
2561   echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2563 fi
2564
2565 fi
2566 if test -z "$ac_cv_path_DX_DOT"; then
2567   ac_pt_DX_DOT=$DX_DOT
2568   # Extract the first word of "dot", so it can be a program name with args.
2569 set dummy dot; ac_word=$2
2570 echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   case $ac_pt_DX_DOT in
2576   [\\/]* | ?:[\\/]*)
2577   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2578   ;;
2579   *)
2580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593
2594   ;;
2595 esac
2596 fi
2597 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2598
2599 if test -n "$ac_pt_DX_DOT"; then
2600   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2601 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2602 else
2603   echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6
2605 fi
2606
2607   DX_DOT=$ac_pt_DX_DOT
2608 else
2609   DX_DOT="$ac_cv_path_DX_DOT"
2610 fi
2611
2612 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2613     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2614 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2615     DX_FLAG_dot=0
2616
2617 fi
2618
2619     :
2620 fi
2621 if test "$DX_FLAG_dot" = 1; then
2622
2623
2624 if :; then
2625   DX_COND_dot_TRUE=
2626   DX_COND_dot_FALSE='#'
2627 else
2628   DX_COND_dot_TRUE='#'
2629   DX_COND_dot_FALSE=
2630 fi
2631
2632     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2633
2634              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2635
2636     :
2637 else
2638
2639
2640 if false; then
2641   DX_COND_dot_TRUE=
2642   DX_COND_dot_FALSE='#'
2643 else
2644   DX_COND_dot_TRUE='#'
2645   DX_COND_dot_FALSE=
2646 fi
2647
2648     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2649
2650     :
2651 fi
2652
2653
2654 # Man pages generation:
2655
2656
2657
2658     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2659 if test "${enable_doxygen_man+set}" = set; then
2660   enableval="$enable_doxygen_man"
2661
2662 case "$enableval" in
2663 #(
2664 y|Y|yes|Yes|YES)
2665     DX_FLAG_man=1
2666
2667
2668 test "$DX_FLAG_doc" = "1" \
2669 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2670 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2671    { (exit 1); exit 1; }; }
2672
2673 ;; #(
2674 n|N|no|No|NO)
2675     DX_FLAG_man=0
2676
2677 ;; #(
2678 *)
2679     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2680 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2681    { (exit 1); exit 1; }; }
2682 ;;
2683 esac
2684
2685 else
2686
2687 DX_FLAG_man=0
2688
2689
2690 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2691
2692
2693
2694 fi;
2695 if test "$DX_FLAG_man" = 1; then
2696
2697     :
2698 fi
2699 if test "$DX_FLAG_man" = 1; then
2700
2701
2702 if :; then
2703   DX_COND_man_TRUE=
2704   DX_COND_man_FALSE='#'
2705 else
2706   DX_COND_man_TRUE='#'
2707   DX_COND_man_FALSE=
2708 fi
2709
2710     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2711
2712     :
2713 else
2714
2715
2716 if false; then
2717   DX_COND_man_TRUE=
2718   DX_COND_man_FALSE='#'
2719 else
2720   DX_COND_man_TRUE='#'
2721   DX_COND_man_FALSE=
2722 fi
2723
2724     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2725
2726     :
2727 fi
2728
2729
2730 # RTF file generation:
2731
2732
2733
2734     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2735 if test "${enable_doxygen_rtf+set}" = set; then
2736   enableval="$enable_doxygen_rtf"
2737
2738 case "$enableval" in
2739 #(
2740 y|Y|yes|Yes|YES)
2741     DX_FLAG_rtf=1
2742
2743
2744 test "$DX_FLAG_doc" = "1" \
2745 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2746 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2747    { (exit 1); exit 1; }; }
2748
2749 ;; #(
2750 n|N|no|No|NO)
2751     DX_FLAG_rtf=0
2752
2753 ;; #(
2754 *)
2755     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2756 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2757    { (exit 1); exit 1; }; }
2758 ;;
2759 esac
2760
2761 else
2762
2763 DX_FLAG_rtf=0
2764
2765
2766 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2767
2768
2769
2770 fi;
2771 if test "$DX_FLAG_rtf" = 1; then
2772
2773     :
2774 fi
2775 if test "$DX_FLAG_rtf" = 1; then
2776
2777
2778 if :; then
2779   DX_COND_rtf_TRUE=
2780   DX_COND_rtf_FALSE='#'
2781 else
2782   DX_COND_rtf_TRUE='#'
2783   DX_COND_rtf_FALSE=
2784 fi
2785
2786     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2787
2788     :
2789 else
2790
2791
2792 if false; then
2793   DX_COND_rtf_TRUE=
2794   DX_COND_rtf_FALSE='#'
2795 else
2796   DX_COND_rtf_TRUE='#'
2797   DX_COND_rtf_FALSE=
2798 fi
2799
2800     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2801
2802     :
2803 fi
2804
2805
2806 # XML file generation:
2807
2808
2809
2810     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2811 if test "${enable_doxygen_xml+set}" = set; then
2812   enableval="$enable_doxygen_xml"
2813
2814 case "$enableval" in
2815 #(
2816 y|Y|yes|Yes|YES)
2817     DX_FLAG_xml=1
2818
2819
2820 test "$DX_FLAG_doc" = "1" \
2821 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2822 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2823    { (exit 1); exit 1; }; }
2824
2825 ;; #(
2826 n|N|no|No|NO)
2827     DX_FLAG_xml=0
2828
2829 ;; #(
2830 *)
2831     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2832 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2833    { (exit 1); exit 1; }; }
2834 ;;
2835 esac
2836
2837 else
2838
2839 DX_FLAG_xml=0
2840
2841
2842 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2843
2844
2845
2846 fi;
2847 if test "$DX_FLAG_xml" = 1; then
2848
2849     :
2850 fi
2851 if test "$DX_FLAG_xml" = 1; then
2852
2853
2854 if :; then
2855   DX_COND_xml_TRUE=
2856   DX_COND_xml_FALSE='#'
2857 else
2858   DX_COND_xml_TRUE='#'
2859   DX_COND_xml_FALSE=
2860 fi
2861
2862     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2863
2864     :
2865 else
2866
2867
2868 if false; then
2869   DX_COND_xml_TRUE=
2870   DX_COND_xml_FALSE='#'
2871 else
2872   DX_COND_xml_TRUE='#'
2873   DX_COND_xml_FALSE=
2874 fi
2875
2876     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2877
2878     :
2879 fi
2880
2881
2882 # (Compressed) HTML help generation:
2883
2884
2885
2886     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2887 if test "${enable_doxygen_chm+set}" = set; then
2888   enableval="$enable_doxygen_chm"
2889
2890 case "$enableval" in
2891 #(
2892 y|Y|yes|Yes|YES)
2893     DX_FLAG_chm=1
2894
2895
2896 test "$DX_FLAG_doc" = "1" \
2897 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2898 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2899    { (exit 1); exit 1; }; }
2900
2901 ;; #(
2902 n|N|no|No|NO)
2903     DX_FLAG_chm=0
2904
2905 ;; #(
2906 *)
2907     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2908 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2909    { (exit 1); exit 1; }; }
2910 ;;
2911 esac
2912
2913 else
2914
2915 DX_FLAG_chm=0
2916
2917
2918 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2919
2920
2921
2922 fi;
2923 if test "$DX_FLAG_chm" = 1; then
2924
2925 if test -n "$ac_tool_prefix"; then
2926   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2928 echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 if test "${ac_cv_path_DX_HHC+set}" = set; then
2931   echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933   case $DX_HHC in
2934   [\\/]* | ?:[\\/]*)
2935   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2936   ;;
2937   *)
2938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943   for ac_exec_ext in '' $ac_executable_extensions; do
2944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950 done
2951
2952   ;;
2953 esac
2954 fi
2955 DX_HHC=$ac_cv_path_DX_HHC
2956
2957 if test -n "$DX_HHC"; then
2958   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2959 echo "${ECHO_T}$DX_HHC" >&6
2960 else
2961   echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 fi
2964
2965 fi
2966 if test -z "$ac_cv_path_DX_HHC"; then
2967   ac_pt_DX_HHC=$DX_HHC
2968   # Extract the first word of "hhc", so it can be a program name with args.
2969 set dummy hhc; ac_word=$2
2970 echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   case $ac_pt_DX_HHC in
2976   [\\/]* | ?:[\\/]*)
2977   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2978   ;;
2979   *)
2980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985   for ac_exec_ext in '' $ac_executable_extensions; do
2986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989     break 2
2990   fi
2991 done
2992 done
2993
2994   ;;
2995 esac
2996 fi
2997 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
2998
2999 if test -n "$ac_pt_DX_HHC"; then
3000   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3001 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3002 else
3003   echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007   DX_HHC=$ac_pt_DX_HHC
3008 else
3009   DX_HHC="$ac_cv_path_DX_HHC"
3010 fi
3011
3012 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3013     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3014 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3015     DX_FLAG_chm=0
3016
3017 fi
3018
3019     :
3020 fi
3021 if test "$DX_FLAG_chm" = 1; then
3022
3023
3024 if :; then
3025   DX_COND_chm_TRUE=
3026   DX_COND_chm_FALSE='#'
3027 else
3028   DX_COND_chm_TRUE='#'
3029   DX_COND_chm_FALSE=
3030 fi
3031
3032     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3033
3034              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3035
3036              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3037
3038     :
3039 else
3040
3041
3042 if false; then
3043   DX_COND_chm_TRUE=
3044   DX_COND_chm_FALSE='#'
3045 else
3046   DX_COND_chm_TRUE='#'
3047   DX_COND_chm_FALSE=
3048 fi
3049
3050     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3051
3052     :
3053 fi
3054
3055
3056 # Seperate CHI file generation.
3057
3058
3059
3060     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3061 if test "${enable_doxygen_chi+set}" = set; then
3062   enableval="$enable_doxygen_chi"
3063
3064 case "$enableval" in
3065 #(
3066 y|Y|yes|Yes|YES)
3067     DX_FLAG_chi=1
3068
3069
3070 test "$DX_FLAG_chm" = "1" \
3071 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3072 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3073    { (exit 1); exit 1; }; }
3074
3075 ;; #(
3076 n|N|no|No|NO)
3077     DX_FLAG_chi=0
3078
3079 ;; #(
3080 *)
3081     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3082 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3083    { (exit 1); exit 1; }; }
3084 ;;
3085 esac
3086
3087 else
3088
3089 DX_FLAG_chi=0
3090
3091
3092 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3093
3094
3095
3096 fi;
3097 if test "$DX_FLAG_chi" = 1; then
3098
3099     :
3100 fi
3101 if test "$DX_FLAG_chi" = 1; then
3102
3103
3104 if :; then
3105   DX_COND_chi_TRUE=
3106   DX_COND_chi_FALSE='#'
3107 else
3108   DX_COND_chi_TRUE='#'
3109   DX_COND_chi_FALSE=
3110 fi
3111
3112     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3113
3114     :
3115 else
3116
3117
3118 if false; then
3119   DX_COND_chi_TRUE=
3120   DX_COND_chi_FALSE='#'
3121 else
3122   DX_COND_chi_TRUE='#'
3123   DX_COND_chi_FALSE=
3124 fi
3125
3126     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3127
3128     :
3129 fi
3130
3131
3132 # Plain HTML pages generation:
3133
3134
3135
3136     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3137 if test "${enable_doxygen_html+set}" = set; then
3138   enableval="$enable_doxygen_html"
3139
3140 case "$enableval" in
3141 #(
3142 y|Y|yes|Yes|YES)
3143     DX_FLAG_html=1
3144
3145
3146 test "$DX_FLAG_doc" = "1" \
3147 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3148 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3149    { (exit 1); exit 1; }; }
3150
3151 test "$DX_FLAG_chm" = "0" \
3152 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3153 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3154    { (exit 1); exit 1; }; }
3155
3156 ;; #(
3157 n|N|no|No|NO)
3158     DX_FLAG_html=0
3159
3160 ;; #(
3161 *)
3162     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3163 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3164    { (exit 1); exit 1; }; }
3165 ;;
3166 esac
3167
3168 else
3169
3170 DX_FLAG_html=1
3171
3172
3173 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3174
3175
3176 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3177
3178
3179
3180 fi;
3181 if test "$DX_FLAG_html" = 1; then
3182
3183     :
3184 fi
3185 if test "$DX_FLAG_html" = 1; then
3186
3187
3188 if :; then
3189   DX_COND_html_TRUE=
3190   DX_COND_html_FALSE='#'
3191 else
3192   DX_COND_html_TRUE='#'
3193   DX_COND_html_FALSE=
3194 fi
3195
3196     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3197
3198     :
3199 else
3200
3201
3202 if false; then
3203   DX_COND_html_TRUE=
3204   DX_COND_html_FALSE='#'
3205 else
3206   DX_COND_html_TRUE='#'
3207   DX_COND_html_FALSE=
3208 fi
3209
3210     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3211
3212     :
3213 fi
3214
3215
3216 # PostScript file generation:
3217
3218
3219
3220     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3221 if test "${enable_doxygen_ps+set}" = set; then
3222   enableval="$enable_doxygen_ps"
3223
3224 case "$enableval" in
3225 #(
3226 y|Y|yes|Yes|YES)
3227     DX_FLAG_ps=1
3228
3229
3230 test "$DX_FLAG_doc" = "1" \
3231 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3232 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3233    { (exit 1); exit 1; }; }
3234
3235 ;; #(
3236 n|N|no|No|NO)
3237     DX_FLAG_ps=0
3238
3239 ;; #(
3240 *)
3241     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3242 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3243    { (exit 1); exit 1; }; }
3244 ;;
3245 esac
3246
3247 else
3248
3249 DX_FLAG_ps=0
3250
3251
3252 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3253
3254
3255
3256 fi;
3257 if test "$DX_FLAG_ps" = 1; then
3258
3259 if test -n "$ac_tool_prefix"; then
3260   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}latex; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   case $DX_LATEX in
3268   [\\/]* | ?:[\\/]*)
3269   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3270   ;;
3271   *)
3272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277   for ac_exec_ext in '' $ac_executable_extensions; do
3278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284 done
3285
3286   ;;
3287 esac
3288 fi
3289 DX_LATEX=$ac_cv_path_DX_LATEX
3290
3291 if test -n "$DX_LATEX"; then
3292   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3293 echo "${ECHO_T}$DX_LATEX" >&6
3294 else
3295   echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6
3297 fi
3298
3299 fi
3300 if test -z "$ac_cv_path_DX_LATEX"; then
3301   ac_pt_DX_LATEX=$DX_LATEX
3302   # Extract the first word of "latex", so it can be a program name with args.
3303 set dummy latex; ac_word=$2
3304 echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   case $ac_pt_DX_LATEX in
3310   [\\/]* | ?:[\\/]*)
3311   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3312   ;;
3313   *)
3314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319   for ac_exec_ext in '' $ac_executable_extensions; do
3320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326 done
3327
3328   ;;
3329 esac
3330 fi
3331 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3332
3333 if test -n "$ac_pt_DX_LATEX"; then
3334   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3335 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3336 else
3337   echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3339 fi
3340
3341   DX_LATEX=$ac_pt_DX_LATEX
3342 else
3343   DX_LATEX="$ac_cv_path_DX_LATEX"
3344 fi
3345
3346 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3347     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3348 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3349     DX_FLAG_ps=0
3350
3351 fi
3352
3353
3354 if test -n "$ac_tool_prefix"; then
3355   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3357 echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3360   echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362   case $DX_MAKEINDEX in
3363   [\\/]* | ?:[\\/]*)
3364   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3365   ;;
3366   *)
3367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372   for ac_exec_ext in '' $ac_executable_extensions; do
3373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379 done
3380
3381   ;;
3382 esac
3383 fi
3384 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3385
3386 if test -n "$DX_MAKEINDEX"; then
3387   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3388 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3389 else
3390   echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3392 fi
3393
3394 fi
3395 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3396   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3397   # Extract the first word of "makeindex", so it can be a program name with args.
3398 set dummy makeindex; ac_word=$2
3399 echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   case $ac_pt_DX_MAKEINDEX in
3405   [\\/]* | ?:[\\/]*)
3406   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3407   ;;
3408   *)
3409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414   for ac_exec_ext in '' $ac_executable_extensions; do
3415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421 done
3422
3423   ;;
3424 esac
3425 fi
3426 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3427
3428 if test -n "$ac_pt_DX_MAKEINDEX"; then
3429   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3430 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3431 else
3432   echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3434 fi
3435
3436   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3437 else
3438   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3439 fi
3440
3441 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3442     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3443 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3444     DX_FLAG_ps=0
3445
3446 fi
3447
3448
3449 if test -n "$ac_tool_prefix"; then
3450   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3451 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3452 echo "$as_me:$LINENO: checking for $ac_word" >&5
3453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3454 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   case $DX_DVIPS in
3458   [\\/]* | ?:[\\/]*)
3459   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3460   ;;
3461   *)
3462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467   for ac_exec_ext in '' $ac_executable_extensions; do
3468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474 done
3475
3476   ;;
3477 esac
3478 fi
3479 DX_DVIPS=$ac_cv_path_DX_DVIPS
3480
3481 if test -n "$DX_DVIPS"; then
3482   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3483 echo "${ECHO_T}$DX_DVIPS" >&6
3484 else
3485   echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3487 fi
3488
3489 fi
3490 if test -z "$ac_cv_path_DX_DVIPS"; then
3491   ac_pt_DX_DVIPS=$DX_DVIPS
3492   # Extract the first word of "dvips", so it can be a program name with args.
3493 set dummy dvips; ac_word=$2
3494 echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3497   echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499   case $ac_pt_DX_DVIPS in
3500   [\\/]* | ?:[\\/]*)
3501   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3502   ;;
3503   *)
3504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509   for ac_exec_ext in '' $ac_executable_extensions; do
3510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516 done
3517
3518   ;;
3519 esac
3520 fi
3521 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3522
3523 if test -n "$ac_pt_DX_DVIPS"; then
3524   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3525 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3526 else
3527   echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 fi
3530
3531   DX_DVIPS=$ac_pt_DX_DVIPS
3532 else
3533   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3534 fi
3535
3536 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3537     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3538 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3539     DX_FLAG_ps=0
3540
3541 fi
3542
3543
3544 if test -n "$ac_tool_prefix"; then
3545   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   case $DX_EGREP in
3553   [\\/]* | ?:[\\/]*)
3554   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3555   ;;
3556   *)
3557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562   for ac_exec_ext in '' $ac_executable_extensions; do
3563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569 done
3570
3571   ;;
3572 esac
3573 fi
3574 DX_EGREP=$ac_cv_path_DX_EGREP
3575
3576 if test -n "$DX_EGREP"; then
3577   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3578 echo "${ECHO_T}$DX_EGREP" >&6
3579 else
3580   echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582 fi
3583
3584 fi
3585 if test -z "$ac_cv_path_DX_EGREP"; then
3586   ac_pt_DX_EGREP=$DX_EGREP
3587   # Extract the first word of "egrep", so it can be a program name with args.
3588 set dummy egrep; ac_word=$2
3589 echo "$as_me:$LINENO: checking for $ac_word" >&5
3590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3591 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   case $ac_pt_DX_EGREP in
3595   [\\/]* | ?:[\\/]*)
3596   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3597   ;;
3598   *)
3599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604   for ac_exec_ext in '' $ac_executable_extensions; do
3605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611 done
3612
3613   ;;
3614 esac
3615 fi
3616 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3617
3618 if test -n "$ac_pt_DX_EGREP"; then
3619   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3620 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3621 else
3622   echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3624 fi
3625
3626   DX_EGREP=$ac_pt_DX_EGREP
3627 else
3628   DX_EGREP="$ac_cv_path_DX_EGREP"
3629 fi
3630
3631 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3632     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3633 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3634     DX_FLAG_ps=0
3635
3636 fi
3637
3638     :
3639 fi
3640 if test "$DX_FLAG_ps" = 1; then
3641
3642
3643 if :; then
3644   DX_COND_ps_TRUE=
3645   DX_COND_ps_FALSE='#'
3646 else
3647   DX_COND_ps_TRUE='#'
3648   DX_COND_ps_FALSE=
3649 fi
3650
3651
3652     :
3653 else
3654
3655
3656 if false; then
3657   DX_COND_ps_TRUE=
3658   DX_COND_ps_FALSE='#'
3659 else
3660   DX_COND_ps_TRUE='#'
3661   DX_COND_ps_FALSE=
3662 fi
3663
3664
3665     :
3666 fi
3667
3668
3669 # PDF file generation:
3670
3671
3672
3673     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3674 if test "${enable_doxygen_pdf+set}" = set; then
3675   enableval="$enable_doxygen_pdf"
3676
3677 case "$enableval" in
3678 #(
3679 y|Y|yes|Yes|YES)
3680     DX_FLAG_pdf=1
3681
3682
3683 test "$DX_FLAG_doc" = "1" \
3684 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3685 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3686    { (exit 1); exit 1; }; }
3687
3688 ;; #(
3689 n|N|no|No|NO)
3690     DX_FLAG_pdf=0
3691
3692 ;; #(
3693 *)
3694     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3695 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3696    { (exit 1); exit 1; }; }
3697 ;;
3698 esac
3699
3700 else
3701
3702 DX_FLAG_pdf=0
3703
3704
3705 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3706
3707
3708
3709 fi;
3710 if test "$DX_FLAG_pdf" = 1; then
3711
3712 if test -n "$ac_tool_prefix"; then
3713   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3715 echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3717 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   case $DX_PDFLATEX in
3721   [\\/]* | ?:[\\/]*)
3722   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3723   ;;
3724   *)
3725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728   IFS=$as_save_IFS
3729   test -z "$as_dir" && as_dir=.
3730   for ac_exec_ext in '' $ac_executable_extensions; do
3731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734     break 2
3735   fi
3736 done
3737 done
3738
3739   ;;
3740 esac
3741 fi
3742 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3743
3744 if test -n "$DX_PDFLATEX"; then
3745   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3746 echo "${ECHO_T}$DX_PDFLATEX" >&6
3747 else
3748   echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751
3752 fi
3753 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3754   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3755   # Extract the first word of "pdflatex", so it can be a program name with args.
3756 set dummy pdflatex; ac_word=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   case $ac_pt_DX_PDFLATEX in
3763   [\\/]* | ?:[\\/]*)
3764   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3765   ;;
3766   *)
3767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779 done
3780
3781   ;;
3782 esac
3783 fi
3784 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3785
3786 if test -n "$ac_pt_DX_PDFLATEX"; then
3787   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3788 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3789 else
3790   echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3792 fi
3793
3794   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3795 else
3796   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3797 fi
3798
3799 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3800     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3801 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3802     DX_FLAG_pdf=0
3803
3804 fi
3805
3806
3807 if test -n "$ac_tool_prefix"; then
3808   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3809 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3810 echo "$as_me:$LINENO: checking for $ac_word" >&5
3811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3812 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815   case $DX_MAKEINDEX in
3816   [\\/]* | ?:[\\/]*)
3817   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3818   ;;
3819   *)
3820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833
3834   ;;
3835 esac
3836 fi
3837 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3838
3839 if test -n "$DX_MAKEINDEX"; then
3840   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3841 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3842 else
3843   echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 fi
3846
3847 fi
3848 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3849   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3850   # Extract the first word of "makeindex", so it can be a program name with args.
3851 set dummy makeindex; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   case $ac_pt_DX_MAKEINDEX in
3858   [\\/]* | ?:[\\/]*)
3859   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3860   ;;
3861   *)
3862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867   for ac_exec_ext in '' $ac_executable_extensions; do
3868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874 done
3875
3876   ;;
3877 esac
3878 fi
3879 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3880
3881 if test -n "$ac_pt_DX_MAKEINDEX"; then
3882   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3883 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3884 else
3885   echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3887 fi
3888
3889   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3890 else
3891   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3892 fi
3893
3894 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3895     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3896 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3897     DX_FLAG_pdf=0
3898
3899 fi
3900
3901
3902 if test -n "$ac_tool_prefix"; then
3903   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   case $DX_EGREP in
3911   [\\/]* | ?:[\\/]*)
3912   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3913   ;;
3914   *)
3915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927 done
3928
3929   ;;
3930 esac
3931 fi
3932 DX_EGREP=$ac_cv_path_DX_EGREP
3933
3934 if test -n "$DX_EGREP"; then
3935   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3936 echo "${ECHO_T}$DX_EGREP" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942 fi
3943 if test -z "$ac_cv_path_DX_EGREP"; then
3944   ac_pt_DX_EGREP=$DX_EGREP
3945   # Extract the first word of "egrep", so it can be a program name with args.
3946 set dummy egrep; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   case $ac_pt_DX_EGREP in
3953   [\\/]* | ?:[\\/]*)
3954   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3955   ;;
3956   *)
3957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for ac_exec_ext in '' $ac_executable_extensions; do
3963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969 done
3970
3971   ;;
3972 esac
3973 fi
3974 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3975
3976 if test -n "$ac_pt_DX_EGREP"; then
3977   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3978 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3979 else
3980   echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984   DX_EGREP=$ac_pt_DX_EGREP
3985 else
3986   DX_EGREP="$ac_cv_path_DX_EGREP"
3987 fi
3988
3989 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3990     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
3991 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
3992     DX_FLAG_pdf=0
3993
3994 fi
3995
3996     :
3997 fi
3998 if test "$DX_FLAG_pdf" = 1; then
3999
4000
4001 if :; then
4002   DX_COND_pdf_TRUE=
4003   DX_COND_pdf_FALSE='#'
4004 else
4005   DX_COND_pdf_TRUE='#'
4006   DX_COND_pdf_FALSE=
4007 fi
4008
4009
4010     :
4011 else
4012
4013
4014 if false; then
4015   DX_COND_pdf_TRUE=
4016   DX_COND_pdf_FALSE='#'
4017 else
4018   DX_COND_pdf_TRUE='#'
4019   DX_COND_pdf_FALSE=
4020 fi
4021
4022
4023     :
4024 fi
4025
4026
4027 # LaTeX generation for PS and/or PDF:
4028 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4029
4030
4031 if :; then
4032   DX_COND_latex_TRUE=
4033   DX_COND_latex_FALSE='#'
4034 else
4035   DX_COND_latex_TRUE='#'
4036   DX_COND_latex_FALSE=
4037 fi
4038
4039     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4040
4041 else
4042
4043
4044 if false; then
4045   DX_COND_latex_TRUE=
4046   DX_COND_latex_FALSE='#'
4047 else
4048   DX_COND_latex_TRUE='#'
4049   DX_COND_latex_FALSE=
4050 fi
4051
4052     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4053
4054 fi
4055
4056 # Paper size for PS and/or PDF:
4057
4058 case "$DOXYGEN_PAPER_SIZE" in
4059 #(
4060 "")
4061     DOXYGEN_PAPER_SIZE=""
4062
4063 ;; #(
4064 a4wide|a4|letter|legal|executive)
4065     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4066
4067 ;; #(
4068 *)
4069     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4070 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4071    { (exit 1); exit 1; }; }
4072 ;;
4073 esac
4074
4075 #For debugging:
4076 #echo DX_FLAG_doc=$DX_FLAG_doc
4077 #echo DX_FLAG_dot=$DX_FLAG_dot
4078 #echo DX_FLAG_man=$DX_FLAG_man
4079 #echo DX_FLAG_html=$DX_FLAG_html
4080 #echo DX_FLAG_chm=$DX_FLAG_chm
4081 #echo DX_FLAG_chi=$DX_FLAG_chi
4082 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4083 #echo DX_FLAG_xml=$DX_FLAG_xml
4084 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4085 #echo DX_FLAG_ps=$DX_FLAG_ps
4086 #echo DX_ENV=$DX_ENV
4087
4088
4089 # Check whether --enable-debug or --disable-debug was given.
4090 if test "${enable_debug+set}" = set; then
4091   enableval="$enable_debug"
4092   enable_debug=$enableval
4093 else
4094   enable_debug=no
4095 fi;
4096
4097 if test "$enable_debug" = "yes" ; then
4098     GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4099     GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4100 else
4101     GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4102     GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4103 fi
4104
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 if test -n "$ac_tool_prefix"; then
4111   for ac_prog in gcc gcc3 cc
4112   do
4113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_CC+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   if test -n "$CC"; then
4121   ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136
4137 fi
4138 fi
4139 CC=$ac_cv_prog_CC
4140 if test -n "$CC"; then
4141   echo "$as_me:$LINENO: result: $CC" >&5
4142 echo "${ECHO_T}$CC" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148     test -n "$CC" && break
4149   done
4150 fi
4151 if test -z "$CC"; then
4152   ac_ct_CC=$CC
4153   for ac_prog in gcc gcc3 cc
4154 do
4155   # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$ac_ct_CC"; then
4163   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172     ac_cv_prog_ac_ct_CC="$ac_prog"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178
4179 fi
4180 fi
4181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4182 if test -n "$ac_ct_CC"; then
4183   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4184 echo "${ECHO_T}$ac_ct_CC" >&6
4185 else
4186   echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4188 fi
4189
4190   test -n "$ac_ct_CC" && break
4191 done
4192
4193   CC=$ac_ct_CC
4194 fi
4195
4196
4197 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4198 See \`config.log' for more details." >&5
4199 echo "$as_me: error: no acceptable C compiler found in \$PATH
4200 See \`config.log' for more details." >&2;}
4201    { (exit 1); exit 1; }; }
4202
4203 # Provide some information about the compiler.
4204 echo "$as_me:$LINENO:" \
4205      "checking for C compiler version" >&5
4206 ac_compiler=`set X $ac_compile; echo $2`
4207 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4208   (eval $ac_compiler --version </dev/null >&5) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }
4212 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4213   (eval $ac_compiler -v </dev/null >&5) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }
4217 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4218   (eval $ac_compiler -V </dev/null >&5) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }
4222
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229
4230 int
4231 main ()
4232 {
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 ac_clean_files_save=$ac_clean_files
4239 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4240 # Try to create an executable without -o first, disregard a.out.
4241 # It will help us diagnose broken compilers, and finding out an intuition
4242 # of exeext.
4243 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4244 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4245 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4246 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4247   (eval $ac_link_default) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; then
4251   # Find the output, starting from the most likely.  This scheme is
4252 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4253 # resort.
4254
4255 # Be careful to initialize this variable, since it used to be cached.
4256 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4257 ac_cv_exeext=
4258 # b.out is created by i960 compilers.
4259 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4260 do
4261   test -f "$ac_file" || continue
4262   case $ac_file in
4263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4264         ;;
4265     conftest.$ac_ext )
4266         # This is the source file.
4267         ;;
4268     [ab].out )
4269         # We found the default executable, but exeext='' is most
4270         # certainly right.
4271         break;;
4272     *.* )
4273         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4274         # FIXME: I believe we export ac_cv_exeext for Libtool,
4275         # but it would be cool to find out if it's true.  Does anybody
4276         # maintain Libtool? --akim.
4277         export ac_cv_exeext
4278         break;;
4279     * )
4280         break;;
4281   esac
4282 done
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4288 See \`config.log' for more details." >&5
4289 echo "$as_me: error: C compiler cannot create executables
4290 See \`config.log' for more details." >&2;}
4291    { (exit 77); exit 77; }; }
4292 fi
4293
4294 ac_exeext=$ac_cv_exeext
4295 echo "$as_me:$LINENO: result: $ac_file" >&5
4296 echo "${ECHO_T}$ac_file" >&6
4297
4298 # Check the compiler produces executables we can run.  If not, either
4299 # the compiler is broken, or we cross compile.
4300 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4301 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4302 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4303 # If not cross compiling, check that we can run a simple program.
4304 if test "$cross_compiling" != yes; then
4305   if { ac_try='./$ac_file'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311     cross_compiling=no
4312   else
4313     if test "$cross_compiling" = maybe; then
4314         cross_compiling=yes
4315     else
4316         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4317 If you meant to cross compile, use \`--host'.
4318 See \`config.log' for more details." >&5
4319 echo "$as_me: error: cannot run C compiled programs.
4320 If you meant to cross compile, use \`--host'.
4321 See \`config.log' for more details." >&2;}
4322    { (exit 1); exit 1; }; }
4323     fi
4324   fi
4325 fi
4326 echo "$as_me:$LINENO: result: yes" >&5
4327 echo "${ECHO_T}yes" >&6
4328
4329 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4330 ac_clean_files=$ac_clean_files_save
4331 # Check the compiler produces executables we can run.  If not, either
4332 # the compiler is broken, or we cross compile.
4333 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4334 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4335 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4336 echo "${ECHO_T}$cross_compiling" >&6
4337
4338 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4339 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }; then
4345   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4346 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4347 # work properly (i.e., refer to `conftest.exe'), while it won't with
4348 # `rm'.
4349 for ac_file in conftest.exe conftest conftest.*; do
4350   test -f "$ac_file" || continue
4351   case $ac_file in
4352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4353     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4354           export ac_cv_exeext
4355           break;;
4356     * ) break;;
4357   esac
4358 done
4359 else
4360   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4361 See \`config.log' for more details." >&5
4362 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4363 See \`config.log' for more details." >&2;}
4364    { (exit 1); exit 1; }; }
4365 fi
4366
4367 rm -f conftest$ac_cv_exeext
4368 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4369 echo "${ECHO_T}$ac_cv_exeext" >&6
4370
4371 rm -f conftest.$ac_ext
4372 EXEEXT=$ac_cv_exeext
4373 ac_exeext=$EXEEXT
4374 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4375 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4376 if test "${ac_cv_objext+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.o conftest.obj
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; then
4400   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4401   case $ac_file in
4402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4403     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4404        break;;
4405   esac
4406 done
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4412 See \`config.log' for more details." >&5
4413 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4414 See \`config.log' for more details." >&2;}
4415    { (exit 1); exit 1; }; }
4416 fi
4417
4418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4419 fi
4420 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4421 echo "${ECHO_T}$ac_cv_objext" >&6
4422 OBJEXT=$ac_cv_objext
4423 ac_objext=$OBJEXT
4424 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4425 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4426 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435
4436 int
4437 main ()
4438 {
4439 #ifndef __GNUC__
4440        choke me
4441 #endif
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>conftest.er1
4450   ac_status=$?
4451   grep -v '^ *+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -z "$ac_c_werror_flag"
4457                          || test ! -s conftest.err'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest.$ac_objext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_compiler_gnu=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_compiler_gnu=no
4475 fi
4476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4478
4479 fi
4480 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4481 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4482 GCC=`test $ac_compiler_gnu = yes && echo yes`
4483 ac_test_CFLAGS=${CFLAGS+set}
4484 ac_save_CFLAGS=$CFLAGS
4485 CFLAGS="-g"
4486 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4487 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4488 if test "${ac_cv_prog_cc_g+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508   (eval $ac_compile) 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag"
4516                          || test ! -s conftest.err'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_cv_prog_cc_g=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_cv_prog_cc_g=no
4534 fi
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4538 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4539 if test "$ac_test_CFLAGS" = set; then
4540   CFLAGS=$ac_save_CFLAGS
4541 elif test $ac_cv_prog_cc_g = yes; then
4542   if test "$GCC" = yes; then
4543     CFLAGS="-g -O2"
4544   else
4545     CFLAGS="-g"
4546   fi
4547 else
4548   if test "$GCC" = yes; then
4549     CFLAGS="-O2"
4550   else
4551     CFLAGS=
4552   fi
4553 fi
4554 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4555 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4556 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   ac_cv_prog_cc_stdc=no
4560 ac_save_CC=$CC
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567 #include <stdarg.h>
4568 #include <stdio.h>
4569 #include <sys/types.h>
4570 #include <sys/stat.h>
4571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4572 struct buf { int x; };
4573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4574 static char *e (p, i)
4575      char **p;
4576      int i;
4577 {
4578   return p[i];
4579 }
4580 static char *f (char * (*g) (char **, int), char **p, ...)
4581 {
4582   char *s;
4583   va_list v;
4584   va_start (v,p);
4585   s = g (p, va_arg (v,int));
4586   va_end (v);
4587   return s;
4588 }
4589
4590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4591    function prototypes and stuff, but not '\xHH' hex character constants.
4592    These don't provoke an error unfortunately, instead are silently treated
4593    as 'x'.  The following induces an error, until -std1 is added to get
4594    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4595    array size at least.  It's necessary to write '\x00'==0 to get something
4596    that's true only with -std1.  */
4597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4598
4599 int test (int i, double x);
4600 struct s1 {int (*f) (int a);};
4601 struct s2 {int (*f) (double a);};
4602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603 int argc;
4604 char **argv;
4605 int
4606 main ()
4607 {
4608 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 # Don't try gcc -ansi; that turns off useful extensions and
4614 # breaks some systems' header files.
4615 # AIX                   -qlanglvl=ansi
4616 # Ultrix and OSF/1      -std1
4617 # HP-UX 10.20 and later -Ae
4618 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4619 # SVR4                  -Xc -D__EXTENSIONS__
4620 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4621 do
4622   CC="$ac_save_CC $ac_arg"
4623   rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625   (eval $ac_compile) 2>conftest.er1
4626   ac_status=$?
4627   grep -v '^ *+' conftest.er1 >conftest.err
4628   rm -f conftest.er1
4629   cat conftest.err >&5
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } &&
4632          { ac_try='test -z "$ac_c_werror_flag"
4633                          || test ! -s conftest.err'
4634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635   (eval $ac_try) 2>&5
4636   ac_status=$?
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); }; } &&
4639          { ac_try='test -s conftest.$ac_objext'
4640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641   (eval $ac_try) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   ac_cv_prog_cc_stdc=$ac_arg
4646 break
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 fi
4652 rm -f conftest.err conftest.$ac_objext
4653 done
4654 rm -f conftest.$ac_ext conftest.$ac_objext
4655 CC=$ac_save_CC
4656
4657 fi
4658
4659 case "x$ac_cv_prog_cc_stdc" in
4660   x|xno)
4661     echo "$as_me:$LINENO: result: none needed" >&5
4662 echo "${ECHO_T}none needed" >&6 ;;
4663   *)
4664     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4665 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4666     CC="$CC $ac_cv_prog_cc_stdc" ;;
4667 esac
4668
4669 # Some people use a C++ compiler to compile C.  Since we use `exit',
4670 # in C++ we need to declare it.  In case someone uses the same compiler
4671 # for both compiling C and C++ we need to have the C++ compiler decide
4672 # the declaration of exit, since it's the most demanding environment.
4673 cat >conftest.$ac_ext <<_ACEOF
4674 #ifndef __cplusplus
4675   choke me
4676 #endif
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680   (eval $ac_compile) 2>conftest.er1
4681   ac_status=$?
4682   grep -v '^ *+' conftest.er1 >conftest.err
4683   rm -f conftest.er1
4684   cat conftest.err >&5
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); } &&
4687          { ac_try='test -z "$ac_c_werror_flag"
4688                          || test ! -s conftest.err'
4689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690   (eval $ac_try) 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; } &&
4694          { ac_try='test -s conftest.$ac_objext'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; }; then
4700   for ac_declaration in \
4701    '' \
4702    'extern "C" void std::exit (int) throw (); using std::exit;' \
4703    'extern "C" void std::exit (int); using std::exit;' \
4704    'extern "C" void exit (int) throw ();' \
4705    'extern "C" void exit (int);' \
4706    'void exit (int);'
4707 do
4708   cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 $ac_declaration
4715 #include <stdlib.h>
4716 int
4717 main ()
4718 {
4719 exit (42);
4720   ;
4721   return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726   (eval $ac_compile) 2>conftest.er1
4727   ac_status=$?
4728   grep -v '^ *+' conftest.er1 >conftest.err
4729   rm -f conftest.er1
4730   cat conftest.err >&5
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); } &&
4733          { ac_try='test -z "$ac_c_werror_flag"
4734                          || test ! -s conftest.err'
4735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736   (eval $ac_try) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; } &&
4740          { ac_try='test -s conftest.$ac_objext'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   :
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 continue
4752 fi
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760 $ac_declaration
4761 int
4762 main ()
4763 {
4764 exit (42);
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_c_werror_flag"
4779                          || test ! -s conftest.err'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; } &&
4785          { ac_try='test -s conftest.$ac_objext'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   break
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 fi
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 done
4799 rm -f conftest*
4800 if test -n "$ac_declaration"; then
4801   echo '#ifdef __cplusplus' >>confdefs.h
4802   echo $ac_declaration      >>confdefs.h
4803   echo '#endif'             >>confdefs.h
4804 fi
4805
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 fi
4811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 DEPDIR="${am__leading_dot}deps"
4818
4819           ac_config_commands="$ac_config_commands depfiles"
4820
4821
4822 am_make=${MAKE-make}
4823 cat > confinc << 'END'
4824 am__doit:
4825         @echo done
4826 .PHONY: am__doit
4827 END
4828 # If we don't find an include directive, just comment out the code.
4829 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4830 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4831 am__include="#"
4832 am__quote=
4833 _am_result=none
4834 # First try GNU make style include.
4835 echo "include confinc" > confmf
4836 # We grep out `Entering directory' and `Leaving directory'
4837 # messages which can occur if `w' ends up in MAKEFLAGS.
4838 # In particular we don't look at `^make:' because GNU make might
4839 # be invoked under some other name (usually "gmake"), in which
4840 # case it prints its new name instead of `make'.
4841 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4842    am__include=include
4843    am__quote=
4844    _am_result=GNU
4845 fi
4846 # Now try BSD make style include.
4847 if test "$am__include" = "#"; then
4848    echo '.include "confinc"' > confmf
4849    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4850       am__include=.include
4851       am__quote="\""
4852       _am_result=BSD
4853    fi
4854 fi
4855
4856
4857 echo "$as_me:$LINENO: result: $_am_result" >&5
4858 echo "${ECHO_T}$_am_result" >&6
4859 rm -f confinc confmf
4860
4861 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4862 if test "${enable_dependency_tracking+set}" = set; then
4863   enableval="$enable_dependency_tracking"
4864
4865 fi;
4866 if test "x$enable_dependency_tracking" != xno; then
4867   am_depcomp="$ac_aux_dir/depcomp"
4868   AMDEPBACKSLASH='\'
4869 fi
4870
4871
4872 if test "x$enable_dependency_tracking" != xno; then
4873   AMDEP_TRUE=
4874   AMDEP_FALSE='#'
4875 else
4876   AMDEP_TRUE='#'
4877   AMDEP_FALSE=
4878 fi
4879
4880
4881
4882
4883 depcc="$CC"   am_compiler_list=
4884
4885 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4886 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4887 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4891   # We make a subdir and do the tests there.  Otherwise we can end up
4892   # making bogus files that we don't know about and never remove.  For
4893   # instance it was reported that on HP-UX the gcc test will end up
4894   # making a dummy file named `D' -- because `-MD' means `put the output
4895   # in D'.
4896   mkdir conftest.dir
4897   # Copy depcomp to subdir because otherwise we won't find it if we're
4898   # using a relative directory.
4899   cp "$am_depcomp" conftest.dir
4900   cd conftest.dir
4901   # We will build objects and dependencies in a subdirectory because
4902   # it helps to detect inapplicable dependency modes.  For instance
4903   # both Tru64's cc and ICC support -MD to output dependencies as a
4904   # side effect of compilation, but ICC will put the dependencies in
4905   # the current directory while Tru64 will put them in the object
4906   # directory.
4907   mkdir sub
4908
4909   am_cv_CC_dependencies_compiler_type=none
4910   if test "$am_compiler_list" = ""; then
4911      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4912   fi
4913   for depmode in $am_compiler_list; do
4914     # Setup a source with many dependencies, because some compilers
4915     # like to wrap large dependency lists on column 80 (with \), and
4916     # we should not choose a depcomp mode which is confused by this.
4917     #
4918     # We need to recreate these files for each test, as the compiler may
4919     # overwrite some of them when testing with obscure command lines.
4920     # This happens at least with the AIX C compiler.
4921     : > sub/conftest.c
4922     for i in 1 2 3 4 5 6; do
4923       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4924       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4925       # Solaris 8's {/usr,}/bin/sh.
4926       touch sub/conftst$i.h
4927     done
4928     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4929
4930     case $depmode in
4931     nosideeffect)
4932       # after this tag, mechanisms are not by side-effect, so they'll
4933       # only be used when explicitly requested
4934       if test "x$enable_dependency_tracking" = xyes; then
4935         continue
4936       else
4937         break
4938       fi
4939       ;;
4940     none) break ;;
4941     esac
4942     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4943     # mode.  It turns out that the SunPro C++ compiler does not properly
4944     # handle `-M -o', and we need to detect this.
4945     if depmode=$depmode \
4946        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4947        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4948        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4949          >/dev/null 2>conftest.err &&
4950        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4951        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4952        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4953       # icc doesn't choke on unknown options, it will just issue warnings
4954       # or remarks (even with -Werror).  So we grep stderr for any message
4955       # that says an option was ignored or not supported.
4956       # When given -MP, icc 7.0 and 7.1 complain thusly:
4957       #   icc: Command line warning: ignoring option '-M'; no argument required
4958       # The diagnosis changed in icc 8.0:
4959       #   icc: Command line remark: option '-MP' not supported
4960       if (grep 'ignoring option' conftest.err ||
4961           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4962         am_cv_CC_dependencies_compiler_type=$depmode
4963         break
4964       fi
4965     fi
4966   done
4967
4968   cd ..
4969   rm -rf conftest.dir
4970 else
4971   am_cv_CC_dependencies_compiler_type=none
4972 fi
4973
4974 fi
4975 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4976 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4977 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4978
4979
4980
4981 if
4982   test "x$enable_dependency_tracking" != xno \
4983   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4984   am__fastdepCC_TRUE=
4985   am__fastdepCC_FALSE='#'
4986 else
4987   am__fastdepCC_TRUE='#'
4988   am__fastdepCC_FALSE=
4989 fi
4990
4991
4992 ac_ext=cc
4993 ac_cpp='$CXXCPP $CPPFLAGS'
4994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4997 if test -n "$ac_tool_prefix"; then
4998   for ac_prog in $CCC g++ g++3 c++ CC
4999   do
5000     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_prog_CXX+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   if test -n "$CXX"; then
5008   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015   for ac_exec_ext in '' $ac_executable_extensions; do
5016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022 done
5023
5024 fi
5025 fi
5026 CXX=$ac_cv_prog_CXX
5027 if test -n "$CXX"; then
5028   echo "$as_me:$LINENO: result: $CXX" >&5
5029 echo "${ECHO_T}$CXX" >&6
5030 else
5031   echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5033 fi
5034
5035     test -n "$CXX" && break
5036   done
5037 fi
5038 if test -z "$CXX"; then
5039   ac_ct_CXX=$CXX
5040   for ac_prog in $CCC g++ g++3 c++ CC
5041 do
5042   # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   if test -n "$ac_ct_CXX"; then
5050   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057   for ac_exec_ext in '' $ac_executable_extensions; do
5058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059     ac_cv_prog_ac_ct_CXX="$ac_prog"
5060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064 done
5065
5066 fi
5067 fi
5068 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5069 if test -n "$ac_ct_CXX"; then
5070   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5071 echo "${ECHO_T}$ac_ct_CXX" >&6
5072 else
5073   echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6
5075 fi
5076
5077   test -n "$ac_ct_CXX" && break
5078 done
5079 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5080
5081   CXX=$ac_ct_CXX
5082 fi
5083
5084
5085 # Provide some information about the compiler.
5086 echo "$as_me:$LINENO:" \
5087      "checking for C++ compiler version" >&5
5088 ac_compiler=`set X $ac_compile; echo $2`
5089 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5090   (eval $ac_compiler --version </dev/null >&5) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }
5094 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5095   (eval $ac_compiler -v </dev/null >&5) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }
5099 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5100   (eval $ac_compiler -V </dev/null >&5) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }
5104
5105 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5106 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5107 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h.  */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h.  */
5116
5117 int
5118 main ()
5119 {
5120 #ifndef __GNUC__
5121        choke me
5122 #endif
5123
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130   (eval $ac_compile) 2>conftest.er1
5131   ac_status=$?
5132   grep -v '^ *+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -z "$ac_cxx_werror_flag"
5138                          || test ! -s conftest.err'
5139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140   (eval $ac_try) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); }; } &&
5144          { ac_try='test -s conftest.$ac_objext'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   ac_compiler_gnu=yes
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 ac_compiler_gnu=no
5156 fi
5157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5159
5160 fi
5161 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5162 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5163 GXX=`test $ac_compiler_gnu = yes && echo yes`
5164 ac_test_CXXFLAGS=${CXXFLAGS+set}
5165 ac_save_CXXFLAGS=$CXXFLAGS
5166 CXXFLAGS="-g"
5167 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5168 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5169 if test "${ac_cv_prog_cxx_g+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178
5179 int
5180 main ()
5181 {
5182
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189   (eval $ac_compile) 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -z "$ac_cxx_werror_flag"
5197                          || test ! -s conftest.err'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; } &&
5203          { ac_try='test -s conftest.$ac_objext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   ac_cv_prog_cxx_g=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 ac_cv_prog_cxx_g=no
5215 fi
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5219 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5220 if test "$ac_test_CXXFLAGS" = set; then
5221   CXXFLAGS=$ac_save_CXXFLAGS
5222 elif test $ac_cv_prog_cxx_g = yes; then
5223   if test "$GXX" = yes; then
5224     CXXFLAGS="-g -O2"
5225   else
5226     CXXFLAGS="-g"
5227   fi
5228 else
5229   if test "$GXX" = yes; then
5230     CXXFLAGS="-O2"
5231   else
5232     CXXFLAGS=
5233   fi
5234 fi
5235 for ac_declaration in \
5236    '' \
5237    'extern "C" void std::exit (int) throw (); using std::exit;' \
5238    'extern "C" void std::exit (int); using std::exit;' \
5239    'extern "C" void exit (int) throw ();' \
5240    'extern "C" void exit (int);' \
5241    'void exit (int);'
5242 do
5243   cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 $ac_declaration
5250 #include <stdlib.h>
5251 int
5252 main ()
5253 {
5254 exit (42);
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261   (eval $ac_compile) 2>conftest.er1
5262   ac_status=$?
5263   grep -v '^ *+' conftest.er1 >conftest.err
5264   rm -f conftest.er1
5265   cat conftest.err >&5
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } &&
5268          { ac_try='test -z "$ac_cxx_werror_flag"
5269                          || test ! -s conftest.err'
5270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271   (eval $ac_try) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); }; } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   :
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 continue
5287 fi
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289   cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295 $ac_declaration
5296 int
5297 main ()
5298 {
5299 exit (42);
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_cxx_werror_flag"
5314                          || test ! -s conftest.err'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; } &&
5320          { ac_try='test -s conftest.$ac_objext'
5321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322   (eval $ac_try) 2>&5
5323   ac_status=$?
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); }; }; then
5326   break
5327 else
5328   echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5330
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333 done
5334 rm -f conftest*
5335 if test -n "$ac_declaration"; then
5336   echo '#ifdef __cplusplus' >>confdefs.h
5337   echo $ac_declaration      >>confdefs.h
5338   echo '#endif'             >>confdefs.h
5339 fi
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347 depcc="$CXX"  am_compiler_list=
5348
5349 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5350 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5351 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5352   echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5355   # We make a subdir and do the tests there.  Otherwise we can end up
5356   # making bogus files that we don't know about and never remove.  For
5357   # instance it was reported that on HP-UX the gcc test will end up
5358   # making a dummy file named `D' -- because `-MD' means `put the output
5359   # in D'.
5360   mkdir conftest.dir
5361   # Copy depcomp to subdir because otherwise we won't find it if we're
5362   # using a relative directory.
5363   cp "$am_depcomp" conftest.dir
5364   cd conftest.dir
5365   # We will build objects and dependencies in a subdirectory because
5366   # it helps to detect inapplicable dependency modes.  For instance
5367   # both Tru64's cc and ICC support -MD to output dependencies as a
5368   # side effect of compilation, but ICC will put the dependencies in
5369   # the current directory while Tru64 will put them in the object
5370   # directory.
5371   mkdir sub
5372
5373   am_cv_CXX_dependencies_compiler_type=none
5374   if test "$am_compiler_list" = ""; then
5375      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5376   fi
5377   for depmode in $am_compiler_list; do
5378     # Setup a source with many dependencies, because some compilers
5379     # like to wrap large dependency lists on column 80 (with \), and
5380     # we should not choose a depcomp mode which is confused by this.
5381     #
5382     # We need to recreate these files for each test, as the compiler may
5383     # overwrite some of them when testing with obscure command lines.
5384     # This happens at least with the AIX C compiler.
5385     : > sub/conftest.c
5386     for i in 1 2 3 4 5 6; do
5387       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5388       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5389       # Solaris 8's {/usr,}/bin/sh.
5390       touch sub/conftst$i.h
5391     done
5392     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5393
5394     case $depmode in
5395     nosideeffect)
5396       # after this tag, mechanisms are not by side-effect, so they'll
5397       # only be used when explicitly requested
5398       if test "x$enable_dependency_tracking" = xyes; then
5399         continue
5400       else
5401         break
5402       fi
5403       ;;
5404     none) break ;;
5405     esac
5406     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5407     # mode.  It turns out that the SunPro C++ compiler does not properly
5408     # handle `-M -o', and we need to detect this.
5409     if depmode=$depmode \
5410        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5411        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5412        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5413          >/dev/null 2>conftest.err &&
5414        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5415        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5416        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5417       # icc doesn't choke on unknown options, it will just issue warnings
5418       # or remarks (even with -Werror).  So we grep stderr for any message
5419       # that says an option was ignored or not supported.
5420       # When given -MP, icc 7.0 and 7.1 complain thusly:
5421       #   icc: Command line warning: ignoring option '-M'; no argument required
5422       # The diagnosis changed in icc 8.0:
5423       #   icc: Command line remark: option '-MP' not supported
5424       if (grep 'ignoring option' conftest.err ||
5425           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5426         am_cv_CXX_dependencies_compiler_type=$depmode
5427         break
5428       fi
5429     fi
5430   done
5431
5432   cd ..
5433   rm -rf conftest.dir
5434 else
5435   am_cv_CXX_dependencies_compiler_type=none
5436 fi
5437
5438 fi
5439 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5440 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5441 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5442
5443
5444
5445 if
5446   test "x$enable_dependency_tracking" != xno \
5447   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5448   am__fastdepCXX_TRUE=
5449   am__fastdepCXX_FALSE='#'
5450 else
5451   am__fastdepCXX_TRUE='#'
5452   am__fastdepCXX_FALSE=
5453 fi
5454
5455
5456 # Make sure we can run config.sub.
5457 $ac_config_sub sun4 >/dev/null 2>&1 ||
5458   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5459 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5460    { (exit 1); exit 1; }; }
5461
5462 echo "$as_me:$LINENO: checking build system type" >&5
5463 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5464 if test "${ac_cv_build+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   ac_cv_build_alias=$build_alias
5468 test -z "$ac_cv_build_alias" &&
5469   ac_cv_build_alias=`$ac_config_guess`
5470 test -z "$ac_cv_build_alias" &&
5471   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5472 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5473    { (exit 1); exit 1; }; }
5474 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5476 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5477    { (exit 1); exit 1; }; }
5478
5479 fi
5480 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5481 echo "${ECHO_T}$ac_cv_build" >&6
5482 build=$ac_cv_build
5483 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5484 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5485 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5486
5487
5488 echo "$as_me:$LINENO: checking host system type" >&5
5489 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5490 if test "${ac_cv_host+set}" = set; then
5491   echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493   ac_cv_host_alias=$host_alias
5494 test -z "$ac_cv_host_alias" &&
5495   ac_cv_host_alias=$ac_cv_build_alias
5496 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5497   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5498 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5499    { (exit 1); exit 1; }; }
5500
5501 fi
5502 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5503 echo "${ECHO_T}$ac_cv_host" >&6
5504 host=$ac_cv_host
5505 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5506 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5507 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5508
5509
5510
5511 if test "$GCC" = "yes" ; then
5512 #    AC_HAVE_GCC_VERSION(4,0,0,0,
5513 #        [
5514 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5515 #            [Define to enable class visibility control in gcc.])
5516 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5517 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5518 #        ])
5519     CFLAGS="-Wall $GCC_CFLAGS"
5520     CXXFLAGS="-Wall $GCC_CXXFLAGS"
5521 else
5522 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5523         case "${host_cpu}-${host_os}" in
5524                 *solaris*)
5525                         if test "$CXX" = "CC" ; then
5526                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5527                         fi
5528                 ;;
5529         esac
5530 fi
5531
5532 # Check whether --enable-static or --disable-static was given.
5533 if test "${enable_static+set}" = set; then
5534   enableval="$enable_static"
5535   p=${PACKAGE-default}
5536     case $enableval in
5537     yes) enable_static=yes ;;
5538     no) enable_static=no ;;
5539     *)
5540      enable_static=no
5541       # Look at the argument we got.  We use all the common list separators.
5542       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5543       for pkg in $enableval; do
5544         IFS="$lt_save_ifs"
5545         if test "X$pkg" = "X$p"; then
5546           enable_static=yes
5547         fi
5548       done
5549       IFS="$lt_save_ifs"
5550       ;;
5551     esac
5552 else
5553   enable_static=no
5554 fi;
5555
5556
5557 # Check whether --enable-shared or --disable-shared was given.
5558 if test "${enable_shared+set}" = set; then
5559   enableval="$enable_shared"
5560   p=${PACKAGE-default}
5561     case $enableval in
5562     yes) enable_shared=yes ;;
5563     no) enable_shared=no ;;
5564     *)
5565       enable_shared=no
5566       # Look at the argument we got.  We use all the common list separators.
5567       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5568       for pkg in $enableval; do
5569         IFS="$lt_save_ifs"
5570         if test "X$pkg" = "X$p"; then
5571           enable_shared=yes
5572         fi
5573       done
5574       IFS="$lt_save_ifs"
5575       ;;
5576     esac
5577 else
5578   enable_shared=yes
5579 fi;
5580
5581 # Check whether --enable-fast-install or --disable-fast-install was given.
5582 if test "${enable_fast_install+set}" = set; then
5583   enableval="$enable_fast_install"
5584   p=${PACKAGE-default}
5585     case $enableval in
5586     yes) enable_fast_install=yes ;;
5587     no) enable_fast_install=no ;;
5588     *)
5589       enable_fast_install=no
5590       # Look at the argument we got.  We use all the common list separators.
5591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5592       for pkg in $enableval; do
5593         IFS="$lt_save_ifs"
5594         if test "X$pkg" = "X$p"; then
5595           enable_fast_install=yes
5596         fi
5597       done
5598       IFS="$lt_save_ifs"
5599       ;;
5600     esac
5601 else
5602   enable_fast_install=yes
5603 fi;
5604
5605 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5606 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5607 if test "${lt_cv_path_SED+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   # Loop through the user's path and test for sed and gsed.
5611 # Then use that list of sed's as ones to test for truncation.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for lt_ac_prog in sed gsed; do
5618     for ac_exec_ext in '' $ac_executable_extensions; do
5619       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5620         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5621       fi
5622     done
5623   done
5624 done
5625 lt_ac_max=0
5626 lt_ac_count=0
5627 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5628 # along with /bin/sed that truncates output.
5629 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5630   test ! -f $lt_ac_sed && break
5631   cat /dev/null > conftest.in
5632   lt_ac_count=0
5633   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5634   # Check for GNU sed and select it if it is found.
5635   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5636     lt_cv_path_SED=$lt_ac_sed
5637     break
5638   fi
5639   while true; do
5640     cat conftest.in conftest.in >conftest.tmp
5641     mv conftest.tmp conftest.in
5642     cp conftest.in conftest.nl
5643     echo >>conftest.nl
5644     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5645     cmp -s conftest.out conftest.nl || break
5646     # 10000 chars as input seems more than enough
5647     test $lt_ac_count -gt 10 && break
5648     lt_ac_count=`expr $lt_ac_count + 1`
5649     if test $lt_ac_count -gt $lt_ac_max; then
5650       lt_ac_max=$lt_ac_count
5651       lt_cv_path_SED=$lt_ac_sed
5652     fi
5653   done
5654 done
5655 SED=$lt_cv_path_SED
5656
5657 fi
5658
5659 echo "$as_me:$LINENO: result: $SED" >&5
5660 echo "${ECHO_T}$SED" >&6
5661
5662 echo "$as_me:$LINENO: checking for egrep" >&5
5663 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5664 if test "${ac_cv_prog_egrep+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5668     then ac_cv_prog_egrep='grep -E'
5669     else ac_cv_prog_egrep='egrep'
5670     fi
5671 fi
5672 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5673 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5674  EGREP=$ac_cv_prog_egrep
5675
5676
5677
5678 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5679 if test "${with_gnu_ld+set}" = set; then
5680   withval="$with_gnu_ld"
5681   test "$withval" = no || with_gnu_ld=yes
5682 else
5683   with_gnu_ld=no
5684 fi;
5685 ac_prog=ld
5686 if test "$GCC" = yes; then
5687   # Check if gcc -print-prog-name=ld gives a path.
5688   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5689 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5690   case $host in
5691   *-*-mingw*)
5692     # gcc leaves a trailing carriage return which upsets mingw
5693     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5694   *)
5695     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5696   esac
5697   case $ac_prog in
5698     # Accept absolute paths.
5699     [\\/]* | ?:[\\/]*)
5700       re_direlt='/[^/][^/]*/\.\./'
5701       # Canonicalize the pathname of ld
5702       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5703       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5704         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5705       done
5706       test -z "$LD" && LD="$ac_prog"
5707       ;;
5708   "")
5709     # If it fails, then pretend we aren't using GCC.
5710     ac_prog=ld
5711     ;;
5712   *)
5713     # If it is relative, then search for the first ld in PATH.
5714     with_gnu_ld=unknown
5715     ;;
5716   esac
5717 elif test "$with_gnu_ld" = yes; then
5718   echo "$as_me:$LINENO: checking for GNU ld" >&5
5719 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5720 else
5721   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5722 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5723 fi
5724 if test "${lt_cv_path_LD+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   if test -z "$LD"; then
5728   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5729   for ac_dir in $PATH; do
5730     IFS="$lt_save_ifs"
5731     test -z "$ac_dir" && ac_dir=.
5732     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5733       lt_cv_path_LD="$ac_dir/$ac_prog"
5734       # Check to see if the program is GNU ld.  I'd rather use --version,
5735       # but apparently some GNU ld's only accept -v.
5736       # Break only if it was the GNU/non-GNU ld that we prefer.
5737       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5738       *GNU* | *'with BFD'*)
5739         test "$with_gnu_ld" != no && break
5740         ;;
5741       *)
5742         test "$with_gnu_ld" != yes && break
5743         ;;
5744       esac
5745     fi
5746   done
5747   IFS="$lt_save_ifs"
5748 else
5749   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5750 fi
5751 fi
5752
5753 LD="$lt_cv_path_LD"
5754 if test -n "$LD"; then
5755   echo "$as_me:$LINENO: result: $LD" >&5
5756 echo "${ECHO_T}$LD" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5762 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5763    { (exit 1); exit 1; }; }
5764 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5765 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5766 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5770 case `$LD -v 2>&1 </dev/null` in
5771 *GNU* | *'with BFD'*)
5772   lt_cv_prog_gnu_ld=yes
5773   ;;
5774 *)
5775   lt_cv_prog_gnu_ld=no
5776   ;;
5777 esac
5778 fi
5779 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5780 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5781 with_gnu_ld=$lt_cv_prog_gnu_ld
5782
5783
5784 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5785 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5786 if test "${lt_cv_ld_reload_flag+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   lt_cv_ld_reload_flag='-r'
5790 fi
5791 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5792 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5793 reload_flag=$lt_cv_ld_reload_flag
5794 case $reload_flag in
5795 "" | " "*) ;;
5796 *) reload_flag=" $reload_flag" ;;
5797 esac
5798 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5799
5800 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5801 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5802 if test "${lt_cv_path_NM+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   if test -n "$NM"; then
5806   # Let the user override the test.
5807   lt_cv_path_NM="$NM"
5808 else
5809   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5810   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5811     IFS="$lt_save_ifs"
5812     test -z "$ac_dir" && ac_dir=.
5813     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5814     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5815       # Check to see if the nm accepts a BSD-compat flag.
5816       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5817       #   nm: unknown option "B" ignored
5818       # Tru64's nm complains that /dev/null is an invalid object file
5819       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5820       */dev/null* | *'Invalid file or object type'*)
5821         lt_cv_path_NM="$tmp_nm -B"
5822         break
5823         ;;
5824       *)
5825         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5826         */dev/null*)
5827           lt_cv_path_NM="$tmp_nm -p"
5828           break
5829           ;;
5830         *)
5831           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5832           continue # so that we can try to find one that supports BSD flags
5833           ;;
5834         esac
5835       esac
5836     fi
5837   done
5838   IFS="$lt_save_ifs"
5839   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5840 fi
5841 fi
5842 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5843 echo "${ECHO_T}$lt_cv_path_NM" >&6
5844 NM="$lt_cv_path_NM"
5845
5846 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5847 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5848 LN_S=$as_ln_s
5849 if test "$LN_S" = "ln -s"; then
5850   echo "$as_me:$LINENO: result: yes" >&5
5851 echo "${ECHO_T}yes" >&6
5852 else
5853   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5854 echo "${ECHO_T}no, using $LN_S" >&6
5855 fi
5856
5857 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5858 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5859 if test "${lt_cv_deplibs_check_method+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   lt_cv_file_magic_cmd='$MAGIC_CMD'
5863 lt_cv_file_magic_test_file=
5864 lt_cv_deplibs_check_method='unknown'
5865 # Need to set the preceding variable on all platforms that support
5866 # interlibrary dependencies.
5867 # 'none' -- dependencies not supported.
5868 # `unknown' -- same as none, but documents that we really don't know.
5869 # 'pass_all' -- all dependencies passed with no checks.
5870 # 'test_compile' -- check by making test program.
5871 # 'file_magic [[regex]]' -- check by looking for files in library path
5872 # which responds to the $file_magic_cmd with a given extended regex.
5873 # If you have `file' or equivalent on your system and you're not sure
5874 # whether `pass_all' will *always* work, you probably want this one.
5875
5876 case $host_os in
5877 aix4* | aix5*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 beos*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884
5885 bsdi4*)
5886   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5887   lt_cv_file_magic_cmd='/usr/bin/file -L'
5888   lt_cv_file_magic_test_file=/shlib/libc.so
5889   ;;
5890
5891 cygwin*)
5892   # func_win32_libid is a shell function defined in ltmain.sh
5893   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5894   lt_cv_file_magic_cmd='func_win32_libid'
5895   ;;
5896
5897 mingw* | pw32*)
5898   # Base MSYS/MinGW do not provide the 'file' command needed by
5899   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5900   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5901   lt_cv_file_magic_cmd='$OBJDUMP -f'
5902   ;;
5903
5904 darwin* | rhapsody*)
5905   lt_cv_deplibs_check_method=pass_all
5906   ;;
5907
5908 freebsd* | kfreebsd*-gnu)
5909   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5910     case $host_cpu in
5911     i*86 )
5912       # Not sure whether the presence of OpenBSD here was a mistake.
5913       # Let's accept both of them until this is cleared up.
5914       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5915       lt_cv_file_magic_cmd=/usr/bin/file
5916       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5917       ;;
5918     esac
5919   else
5920     lt_cv_deplibs_check_method=pass_all
5921   fi
5922   ;;
5923
5924 gnu*)
5925   lt_cv_deplibs_check_method=pass_all
5926   ;;
5927
5928 hpux10.20* | hpux11*)
5929   lt_cv_file_magic_cmd=/usr/bin/file
5930   case "$host_cpu" in
5931   ia64*)
5932     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5933     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5934     ;;
5935   hppa*64*)
5936     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]'
5937     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5938     ;;
5939   *)
5940     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5941     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5942     ;;
5943   esac
5944   ;;
5945
5946 irix5* | irix6* | nonstopux*)
5947   case $LD in
5948   *-32|*"-32 ") libmagic=32-bit;;
5949   *-n32|*"-n32 ") libmagic=N32;;
5950   *-64|*"-64 ") libmagic=64-bit;;
5951   *) libmagic=never-match;;
5952   esac
5953   lt_cv_deplibs_check_method=pass_all
5954   ;;
5955
5956 # This must be Linux ELF.
5957 linux*)
5958   case $host_cpu in
5959   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5960     lt_cv_deplibs_check_method=pass_all ;;
5961   *)
5962     # glibc up to 2.1.1 does not perform some relocations on ARM
5963     # this will be overridden with pass_all, but let us keep it just in case
5964     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5965   esac
5966   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5967   lt_cv_deplibs_check_method=pass_all
5968   ;;
5969
5970 netbsd*)
5971   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5972     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5973   else
5974     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5975   fi
5976   ;;
5977
5978 newos6*)
5979   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5980   lt_cv_file_magic_cmd=/usr/bin/file
5981   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5982   ;;
5983
5984 nto-qnx*)
5985   lt_cv_deplibs_check_method=unknown
5986   ;;
5987
5988 openbsd*)
5989   lt_cv_file_magic_cmd=/usr/bin/file
5990   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5991   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5992     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5993   else
5994     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5995   fi
5996   ;;
5997
5998 osf3* | osf4* | osf5*)
5999   lt_cv_deplibs_check_method=pass_all
6000   ;;
6001
6002 sco3.2v5*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 solaris*)
6007   lt_cv_deplibs_check_method=pass_all
6008   ;;
6009
6010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6011   case $host_vendor in
6012   motorola)
6013     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]'
6014     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6015     ;;
6016   ncr)
6017     lt_cv_deplibs_check_method=pass_all
6018     ;;
6019   sequent)
6020     lt_cv_file_magic_cmd='/bin/file'
6021     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6022     ;;
6023   sni)
6024     lt_cv_file_magic_cmd='/bin/file'
6025     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6026     lt_cv_file_magic_test_file=/lib/libc.so
6027     ;;
6028   siemens)
6029     lt_cv_deplibs_check_method=pass_all
6030     ;;
6031   esac
6032   ;;
6033
6034 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6035   lt_cv_deplibs_check_method=pass_all
6036   ;;
6037 esac
6038
6039 fi
6040 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6041 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6042 file_magic_cmd=$lt_cv_file_magic_cmd
6043 deplibs_check_method=$lt_cv_deplibs_check_method
6044 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6045
6046
6047
6048
6049 # If no C compiler was specified, use CC.
6050 LTCC=${LTCC-"$CC"}
6051
6052 # Allow CC to be a program name with arguments.
6053 compiler=$CC
6054
6055
6056 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6057 if test "${enable_libtool_lock+set}" = set; then
6058   enableval="$enable_libtool_lock"
6059
6060 fi;
6061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6062
6063 # Some flags need to be propagated to the compiler or linker for good
6064 # libtool support.
6065 case $host in
6066 ia64-*-hpux*)
6067   # Find out which ABI we are using.
6068   echo 'int i;' > conftest.$ac_ext
6069   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070   (eval $ac_compile) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; then
6074     case `/usr/bin/file conftest.$ac_objext` in
6075     *ELF-32*)
6076       HPUX_IA64_MODE="32"
6077       ;;
6078     *ELF-64*)
6079       HPUX_IA64_MODE="64"
6080       ;;
6081     esac
6082   fi
6083   rm -rf conftest*
6084   ;;
6085 *-*-irix6*)
6086   # Find out which ABI we are using.
6087   echo '#line 6087 "configure"' > conftest.$ac_ext
6088   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089   (eval $ac_compile) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; then
6093    if test "$lt_cv_prog_gnu_ld" = yes; then
6094     case `/usr/bin/file conftest.$ac_objext` in
6095     *32-bit*)
6096       LD="${LD-ld} -melf32bsmip"
6097       ;;
6098     *N32*)
6099       LD="${LD-ld} -melf32bmipn32"
6100       ;;
6101     *64-bit*)
6102       LD="${LD-ld} -melf64bmip"
6103       ;;
6104     esac
6105    else
6106     case `/usr/bin/file conftest.$ac_objext` in
6107     *32-bit*)
6108       LD="${LD-ld} -32"
6109       ;;
6110     *N32*)
6111       LD="${LD-ld} -n32"
6112       ;;
6113     *64-bit*)
6114       LD="${LD-ld} -64"
6115       ;;
6116     esac
6117    fi
6118   fi
6119   rm -rf conftest*
6120   ;;
6121
6122 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6123   # Find out which ABI we are using.
6124   echo 'int i;' > conftest.$ac_ext
6125   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126   (eval $ac_compile) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; then
6130     case "`/usr/bin/file conftest.o`" in
6131     *32-bit*)
6132       case $host in
6133         x86_64-*linux*)
6134           LD="${LD-ld} -m elf_i386"
6135           ;;
6136         ppc64-*linux*|powerpc64-*linux*)
6137           LD="${LD-ld} -m elf32ppclinux"
6138           ;;
6139         s390x-*linux*)
6140           LD="${LD-ld} -m elf_s390"
6141           ;;
6142         sparc64-*linux*)
6143           LD="${LD-ld} -m elf32_sparc"
6144           ;;
6145       esac
6146       ;;
6147     *64-bit*)
6148       case $host in
6149         x86_64-*linux*)
6150           LD="${LD-ld} -m elf_x86_64"
6151           ;;
6152         ppc*-*linux*|powerpc*-*linux*)
6153           LD="${LD-ld} -m elf64ppc"
6154           ;;
6155         s390*-*linux*)
6156           LD="${LD-ld} -m elf64_s390"
6157           ;;
6158         sparc*-*linux*)
6159           LD="${LD-ld} -m elf64_sparc"
6160           ;;
6161       esac
6162       ;;
6163     esac
6164   fi
6165   rm -rf conftest*
6166   ;;
6167
6168 *-*-sco3.2v5*)
6169   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6170   SAVE_CFLAGS="$CFLAGS"
6171   CFLAGS="$CFLAGS -belf"
6172   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6173 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6174 if test "${lt_cv_cc_needs_belf+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   ac_ext=c
6178 ac_cpp='$CPP $CPPFLAGS'
6179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182
6183      cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h.  */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h.  */
6189
6190 int
6191 main ()
6192 {
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200   (eval $ac_link) 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -z "$ac_c_werror_flag"
6208                          || test ! -s conftest.err'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; } &&
6214          { ac_try='test -s conftest$ac_exeext'
6215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216   (eval $ac_try) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; }; then
6220   lt_cv_cc_needs_belf=yes
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 lt_cv_cc_needs_belf=no
6226 fi
6227 rm -f conftest.err conftest.$ac_objext \
6228       conftest$ac_exeext conftest.$ac_ext
6229      ac_ext=c
6230 ac_cpp='$CPP $CPPFLAGS'
6231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235 fi
6236 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6237 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6238   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6239     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6240     CFLAGS="$SAVE_CFLAGS"
6241   fi
6242   ;;
6243
6244 esac
6245
6246 need_locks="$enable_libtool_lock"
6247
6248
6249 ac_ext=c
6250 ac_cpp='$CPP $CPPFLAGS'
6251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6254 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6255 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6256 # On Suns, sometimes $CPP names a directory.
6257 if test -n "$CPP" && test -d "$CPP"; then
6258   CPP=
6259 fi
6260 if test -z "$CPP"; then
6261   if test "${ac_cv_prog_CPP+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264       # Double quotes because CPP needs to be expanded
6265     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6266     do
6267       ac_preproc_ok=false
6268 for ac_c_preproc_warn_flag in '' yes
6269 do
6270   # Use a header file that comes with gcc, so configuring glibc
6271   # with a fresh cross-compiler works.
6272   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6273   # <limits.h> exists even on freestanding compilers.
6274   # On the NeXT, cc -E runs the code through the compiler's parser,
6275   # not just through cpp. "Syntax error" is here to catch this case.
6276   cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 #ifdef __STDC__
6283 # include <limits.h>
6284 #else
6285 # include <assert.h>
6286 #endif
6287                      Syntax error
6288 _ACEOF
6289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } >/dev/null; then
6297   if test -s conftest.err; then
6298     ac_cpp_err=$ac_c_preproc_warn_flag
6299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300   else
6301     ac_cpp_err=
6302   fi
6303 else
6304   ac_cpp_err=yes
6305 fi
6306 if test -z "$ac_cpp_err"; then
6307   :
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312   # Broken: fails on valid input.
6313 continue
6314 fi
6315 rm -f conftest.err conftest.$ac_ext
6316
6317   # OK, works on sane cases.  Now check whether non-existent headers
6318   # can be detected and how.
6319   cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 #include <ac_nonexistent.h>
6326 _ACEOF
6327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } >/dev/null; then
6335   if test -s conftest.err; then
6336     ac_cpp_err=$ac_c_preproc_warn_flag
6337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6338   else
6339     ac_cpp_err=
6340   fi
6341 else
6342   ac_cpp_err=yes
6343 fi
6344 if test -z "$ac_cpp_err"; then
6345   # Broken: success on invalid input.
6346 continue
6347 else
6348   echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351   # Passes both tests.
6352 ac_preproc_ok=:
6353 break
6354 fi
6355 rm -f conftest.err conftest.$ac_ext
6356
6357 done
6358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6359 rm -f conftest.err conftest.$ac_ext
6360 if $ac_preproc_ok; then
6361   break
6362 fi
6363
6364     done
6365     ac_cv_prog_CPP=$CPP
6366
6367 fi
6368   CPP=$ac_cv_prog_CPP
6369 else
6370   ac_cv_prog_CPP=$CPP
6371 fi
6372 echo "$as_me:$LINENO: result: $CPP" >&5
6373 echo "${ECHO_T}$CPP" >&6
6374 ac_preproc_ok=false
6375 for ac_c_preproc_warn_flag in '' yes
6376 do
6377   # Use a header file that comes with gcc, so configuring glibc
6378   # with a fresh cross-compiler works.
6379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6380   # <limits.h> exists even on freestanding compilers.
6381   # On the NeXT, cc -E runs the code through the compiler's parser,
6382   # not just through cpp. "Syntax error" is here to catch this case.
6383   cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 #ifdef __STDC__
6390 # include <limits.h>
6391 #else
6392 # include <assert.h>
6393 #endif
6394                      Syntax error
6395 _ACEOF
6396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } >/dev/null; then
6404   if test -s conftest.err; then
6405     ac_cpp_err=$ac_c_preproc_warn_flag
6406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6407   else
6408     ac_cpp_err=
6409   fi
6410 else
6411   ac_cpp_err=yes
6412 fi
6413 if test -z "$ac_cpp_err"; then
6414   :
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419   # Broken: fails on valid input.
6420 continue
6421 fi
6422 rm -f conftest.err conftest.$ac_ext
6423
6424   # OK, works on sane cases.  Now check whether non-existent headers
6425   # can be detected and how.
6426   cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432 #include <ac_nonexistent.h>
6433 _ACEOF
6434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } >/dev/null; then
6442   if test -s conftest.err; then
6443     ac_cpp_err=$ac_c_preproc_warn_flag
6444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6445   else
6446     ac_cpp_err=
6447   fi
6448 else
6449   ac_cpp_err=yes
6450 fi
6451 if test -z "$ac_cpp_err"; then
6452   # Broken: success on invalid input.
6453 continue
6454 else
6455   echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458   # Passes both tests.
6459 ac_preproc_ok=:
6460 break
6461 fi
6462 rm -f conftest.err conftest.$ac_ext
6463
6464 done
6465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6466 rm -f conftest.err conftest.$ac_ext
6467 if $ac_preproc_ok; then
6468   :
6469 else
6470   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6471 See \`config.log' for more details." >&5
6472 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6473 See \`config.log' for more details." >&2;}
6474    { (exit 1); exit 1; }; }
6475 fi
6476
6477 ac_ext=c
6478 ac_cpp='$CPP $CPPFLAGS'
6479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482
6483
6484 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6485 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6486 if test "${ac_cv_header_stdc+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 #include <stdlib.h>
6496 #include <stdarg.h>
6497 #include <string.h>
6498 #include <float.h>
6499
6500 int
6501 main ()
6502 {
6503
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510   (eval $ac_compile) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest.$ac_objext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   ac_cv_header_stdc=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ac_cv_header_stdc=no
6536 fi
6537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538
6539 if test $ac_cv_header_stdc = yes; then
6540   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6541   cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 #include <string.h>
6548
6549 _ACEOF
6550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6551   $EGREP "memchr" >/dev/null 2>&1; then
6552   :
6553 else
6554   ac_cv_header_stdc=no
6555 fi
6556 rm -f conftest*
6557
6558 fi
6559
6560 if test $ac_cv_header_stdc = yes; then
6561   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6562   cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h.  */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h.  */
6568 #include <stdlib.h>
6569
6570 _ACEOF
6571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6572   $EGREP "free" >/dev/null 2>&1; then
6573   :
6574 else
6575   ac_cv_header_stdc=no
6576 fi
6577 rm -f conftest*
6578
6579 fi
6580
6581 if test $ac_cv_header_stdc = yes; then
6582   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6583   if test "$cross_compiling" = yes; then
6584   :
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 #include <ctype.h>
6593 #if ((' ' & 0x0FF) == 0x020)
6594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6596 #else
6597 # define ISLOWER(c) \
6598                    (('a' <= (c) && (c) <= 'i') \
6599                      || ('j' <= (c) && (c) <= 'r') \
6600                      || ('s' <= (c) && (c) <= 'z'))
6601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6602 #endif
6603
6604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6605 int
6606 main ()
6607 {
6608   int i;
6609   for (i = 0; i < 256; i++)
6610     if (XOR (islower (i), ISLOWER (i))
6611         || toupper (i) != TOUPPER (i))
6612       exit(2);
6613   exit (0);
6614 }
6615 _ACEOF
6616 rm -f conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618   (eval $ac_link) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   :
6628 else
6629   echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ( exit $ac_status )
6634 ac_cv_header_stdc=no
6635 fi
6636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6637 fi
6638 fi
6639 fi
6640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6642 if test $ac_cv_header_stdc = yes; then
6643
6644 cat >>confdefs.h <<\_ACEOF
6645 #define STDC_HEADERS 1
6646 _ACEOF
6647
6648 fi
6649
6650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6661                   inttypes.h stdint.h unistd.h
6662 do
6663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6664 echo "$as_me:$LINENO: checking for $ac_header" >&5
6665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h.  */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h.  */
6675 $ac_includes_default
6676
6677 #include <$ac_header>
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681   (eval $ac_compile) 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -z "$ac_c_werror_flag"
6689                          || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest.$ac_objext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   eval "$as_ac_Header=yes"
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 eval "$as_ac_Header=no"
6707 fi
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 fi
6710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6713   cat >>confdefs.h <<_ACEOF
6714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715 _ACEOF
6716
6717 fi
6718
6719 done
6720
6721
6722
6723 for ac_header in dlfcn.h
6724 do
6725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727   echo "$as_me:$LINENO: checking for $ac_header" >&5
6728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 fi
6732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 else
6735   # Is the header compilable?
6736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744 $ac_includes_default
6745 #include <$ac_header>
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749   (eval $ac_compile) 2>conftest.er1
6750   ac_status=$?
6751   grep -v '^ *+' conftest.er1 >conftest.err
6752   rm -f conftest.er1
6753   cat conftest.err >&5
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); } &&
6756          { ac_try='test -z "$ac_c_werror_flag"
6757                          || test ! -s conftest.err'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; } &&
6763          { ac_try='test -s conftest.$ac_objext'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; }; then
6769   ac_header_compiler=yes
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_header_compiler=no
6775 fi
6776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6778 echo "${ECHO_T}$ac_header_compiler" >&6
6779
6780 # Is the header present?
6781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h.  */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h.  */
6789 #include <$ac_header>
6790 _ACEOF
6791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6793   ac_status=$?
6794   grep -v '^ *+' conftest.er1 >conftest.err
6795   rm -f conftest.er1
6796   cat conftest.err >&5
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } >/dev/null; then
6799   if test -s conftest.err; then
6800     ac_cpp_err=$ac_c_preproc_warn_flag
6801     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6802   else
6803     ac_cpp_err=
6804   fi
6805 else
6806   ac_cpp_err=yes
6807 fi
6808 if test -z "$ac_cpp_err"; then
6809   ac_header_preproc=yes
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814   ac_header_preproc=no
6815 fi
6816 rm -f conftest.err conftest.$ac_ext
6817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6818 echo "${ECHO_T}$ac_header_preproc" >&6
6819
6820 # So?  What about this header?
6821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6822   yes:no: )
6823     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6827     ac_header_preproc=yes
6828     ;;
6829   no:yes:* )
6830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6832     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6833 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6834     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6836     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6837 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6840     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6842     (
6843       cat <<\_ASBOX
6844 ## ------------------------------------------------ ##
6845 ## Report this to mace-opensaml-users@internet2.edu ##
6846 ## ------------------------------------------------ ##
6847 _ASBOX
6848     ) |
6849       sed "s/^/$as_me: WARNING:     /" >&2
6850     ;;
6851 esac
6852 echo "$as_me:$LINENO: checking for $ac_header" >&5
6853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   eval "$as_ac_Header=\$ac_header_preproc"
6858 fi
6859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6861
6862 fi
6863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6864   cat >>confdefs.h <<_ACEOF
6865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6867
6868 fi
6869
6870 done
6871
6872 ac_ext=cc
6873 ac_cpp='$CXXCPP $CPPFLAGS'
6874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6877 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6878 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6879 if test -z "$CXXCPP"; then
6880   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883       # Double quotes because CXXCPP needs to be expanded
6884     for CXXCPP in "$CXX -E" "/lib/cpp"
6885     do
6886       ac_preproc_ok=false
6887 for ac_cxx_preproc_warn_flag in '' yes
6888 do
6889   # Use a header file that comes with gcc, so configuring glibc
6890   # with a fresh cross-compiler works.
6891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892   # <limits.h> exists even on freestanding compilers.
6893   # On the NeXT, cc -E runs the code through the compiler's parser,
6894   # not just through cpp. "Syntax error" is here to catch this case.
6895   cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h.  */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h.  */
6901 #ifdef __STDC__
6902 # include <limits.h>
6903 #else
6904 # include <assert.h>
6905 #endif
6906                      Syntax error
6907 _ACEOF
6908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6910   ac_status=$?
6911   grep -v '^ *+' conftest.er1 >conftest.err
6912   rm -f conftest.er1
6913   cat conftest.err >&5
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } >/dev/null; then
6916   if test -s conftest.err; then
6917     ac_cpp_err=$ac_cxx_preproc_warn_flag
6918     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6919   else
6920     ac_cpp_err=
6921   fi
6922 else
6923   ac_cpp_err=yes
6924 fi
6925 if test -z "$ac_cpp_err"; then
6926   :
6927 else
6928   echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931   # Broken: fails on valid input.
6932 continue
6933 fi
6934 rm -f conftest.err conftest.$ac_ext
6935
6936   # OK, works on sane cases.  Now check whether non-existent headers
6937   # can be detected and how.
6938   cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 #include <ac_nonexistent.h>
6945 _ACEOF
6946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } >/dev/null; then
6954   if test -s conftest.err; then
6955     ac_cpp_err=$ac_cxx_preproc_warn_flag
6956     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6957   else
6958     ac_cpp_err=
6959   fi
6960 else
6961   ac_cpp_err=yes
6962 fi
6963 if test -z "$ac_cpp_err"; then
6964   # Broken: success on invalid input.
6965 continue
6966 else
6967   echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970   # Passes both tests.
6971 ac_preproc_ok=:
6972 break
6973 fi
6974 rm -f conftest.err conftest.$ac_ext
6975
6976 done
6977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6978 rm -f conftest.err conftest.$ac_ext
6979 if $ac_preproc_ok; then
6980   break
6981 fi
6982
6983     done
6984     ac_cv_prog_CXXCPP=$CXXCPP
6985
6986 fi
6987   CXXCPP=$ac_cv_prog_CXXCPP
6988 else
6989   ac_cv_prog_CXXCPP=$CXXCPP
6990 fi
6991 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6992 echo "${ECHO_T}$CXXCPP" >&6
6993 ac_preproc_ok=false
6994 for ac_cxx_preproc_warn_flag in '' yes
6995 do
6996   # Use a header file that comes with gcc, so configuring glibc
6997   # with a fresh cross-compiler works.
6998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999   # <limits.h> exists even on freestanding compilers.
7000   # On the NeXT, cc -E runs the code through the compiler's parser,
7001   # not just through cpp. "Syntax error" is here to catch this case.
7002   cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008 #ifdef __STDC__
7009 # include <limits.h>
7010 #else
7011 # include <assert.h>
7012 #endif
7013                      Syntax error
7014 _ACEOF
7015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7017   ac_status=$?
7018   grep -v '^ *+' conftest.er1 >conftest.err
7019   rm -f conftest.er1
7020   cat conftest.err >&5
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } >/dev/null; then
7023   if test -s conftest.err; then
7024     ac_cpp_err=$ac_cxx_preproc_warn_flag
7025     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7026   else
7027     ac_cpp_err=
7028   fi
7029 else
7030   ac_cpp_err=yes
7031 fi
7032 if test -z "$ac_cpp_err"; then
7033   :
7034 else
7035   echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038   # Broken: fails on valid input.
7039 continue
7040 fi
7041 rm -f conftest.err conftest.$ac_ext
7042
7043   # OK, works on sane cases.  Now check whether non-existent headers
7044   # can be detected and how.
7045   cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 #include <ac_nonexistent.h>
7052 _ACEOF
7053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7055   ac_status=$?
7056   grep -v '^ *+' conftest.er1 >conftest.err
7057   rm -f conftest.er1
7058   cat conftest.err >&5
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } >/dev/null; then
7061   if test -s conftest.err; then
7062     ac_cpp_err=$ac_cxx_preproc_warn_flag
7063     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7064   else
7065     ac_cpp_err=
7066   fi
7067 else
7068   ac_cpp_err=yes
7069 fi
7070 if test -z "$ac_cpp_err"; then
7071   # Broken: success on invalid input.
7072 continue
7073 else
7074   echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077   # Passes both tests.
7078 ac_preproc_ok=:
7079 break
7080 fi
7081 rm -f conftest.err conftest.$ac_ext
7082
7083 done
7084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085 rm -f conftest.err conftest.$ac_ext
7086 if $ac_preproc_ok; then
7087   :
7088 else
7089   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7090 See \`config.log' for more details." >&5
7091 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7092 See \`config.log' for more details." >&2;}
7093    { (exit 1); exit 1; }; }
7094 fi
7095
7096 ac_ext=cc
7097 ac_cpp='$CXXCPP $CPPFLAGS'
7098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7101
7102
7103 ac_ext=f
7104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7107 if test -n "$ac_tool_prefix"; then
7108   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7109   do
7110     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7112 echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7114 if test "${ac_cv_prog_F77+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   if test -n "$F77"; then
7118   ac_cv_prog_F77="$F77" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125   for ac_exec_ext in '' $ac_executable_extensions; do
7126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132 done
7133
7134 fi
7135 fi
7136 F77=$ac_cv_prog_F77
7137 if test -n "$F77"; then
7138   echo "$as_me:$LINENO: result: $F77" >&5
7139 echo "${ECHO_T}$F77" >&6
7140 else
7141   echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7143 fi
7144
7145     test -n "$F77" && break
7146   done
7147 fi
7148 if test -z "$F77"; then
7149   ac_ct_F77=$F77
7150   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7151 do
7152   # Extract the first word of "$ac_prog", so it can be a program name with args.
7153 set dummy $ac_prog; ac_word=$2
7154 echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7156 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   if test -n "$ac_ct_F77"; then
7160   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167   for ac_exec_ext in '' $ac_executable_extensions; do
7168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169     ac_cv_prog_ac_ct_F77="$ac_prog"
7170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174 done
7175
7176 fi
7177 fi
7178 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7179 if test -n "$ac_ct_F77"; then
7180   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7181 echo "${ECHO_T}$ac_ct_F77" >&6
7182 else
7183   echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7185 fi
7186
7187   test -n "$ac_ct_F77" && break
7188 done
7189
7190   F77=$ac_ct_F77
7191 fi
7192
7193
7194 # Provide some information about the compiler.
7195 echo "$as_me:7195:" \
7196      "checking for Fortran 77 compiler version" >&5
7197 ac_compiler=`set X $ac_compile; echo $2`
7198 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7199   (eval $ac_compiler --version </dev/null >&5) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }
7203 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7204   (eval $ac_compiler -v </dev/null >&5) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }
7208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7209   (eval $ac_compiler -V </dev/null >&5) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }
7213 rm -f a.out
7214
7215 # If we don't use `.F' as extension, the preprocessor is not run on the
7216 # input file.  (Note that this only needs to work for GNU compilers.)
7217 ac_save_ext=$ac_ext
7218 ac_ext=F
7219 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7220 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7221 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   cat >conftest.$ac_ext <<_ACEOF
7225       program main
7226 #ifndef __GNUC__
7227        choke me
7228 #endif
7229
7230       end
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -z "$ac_f77_werror_flag"
7242                          || test ! -s conftest.err'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; } &&
7248          { ac_try='test -s conftest.$ac_objext'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; }; then
7254   ac_compiler_gnu=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_compiler_gnu=no
7260 fi
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7263
7264 fi
7265 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7266 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7267 ac_ext=$ac_save_ext
7268 ac_test_FFLAGS=${FFLAGS+set}
7269 ac_save_FFLAGS=$FFLAGS
7270 FFLAGS=
7271 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7272 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7273 if test "${ac_cv_prog_f77_g+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   FFLAGS=-g
7277 cat >conftest.$ac_ext <<_ACEOF
7278       program main
7279
7280       end
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284   (eval $ac_compile) 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_f77_werror_flag"
7292                          || test ! -s conftest.err'
7293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294   (eval $ac_try) 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; } &&
7298          { ac_try='test -s conftest.$ac_objext'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; }; then
7304   ac_cv_prog_f77_g=yes
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 ac_cv_prog_f77_g=no
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312
7313 fi
7314 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7315 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7316 if test "$ac_test_FFLAGS" = set; then
7317   FFLAGS=$ac_save_FFLAGS
7318 elif test $ac_cv_prog_f77_g = yes; then
7319   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7320     FFLAGS="-g -O2"
7321   else
7322     FFLAGS="-g"
7323   fi
7324 else
7325   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7326     FFLAGS="-O2"
7327   else
7328     FFLAGS=
7329   fi
7330 fi
7331
7332 G77=`test $ac_compiler_gnu = yes && echo yes`
7333 ac_ext=c
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339
7340
7341 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7342
7343 # find the maximum length of command line arguments
7344 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7345 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7346 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349     i=0
7350   teststring="ABCD"
7351
7352   case $build_os in
7353   msdosdjgpp*)
7354     # On DJGPP, this test can blow up pretty badly due to problems in libc
7355     # (any single argument exceeding 2000 bytes causes a buffer overrun
7356     # during glob expansion).  Even if it were fixed, the result of this
7357     # check would be larger than it should be.
7358     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7359     ;;
7360
7361   gnu*)
7362     # Under GNU Hurd, this test is not required because there is
7363     # no limit to the length of command line arguments.
7364     # Libtool will interpret -1 as no limit whatsoever
7365     lt_cv_sys_max_cmd_len=-1;
7366     ;;
7367
7368   cygwin* | mingw*)
7369     # On Win9x/ME, this test blows up -- it succeeds, but takes
7370     # about 5 minutes as the teststring grows exponentially.
7371     # Worse, since 9x/ME are not pre-emptively multitasking,
7372     # you end up with a "frozen" computer, even though with patience
7373     # the test eventually succeeds (with a max line length of 256k).
7374     # Instead, let's just punt: use the minimum linelength reported by
7375     # all of the supported platforms: 8192 (on NT/2K/XP).
7376     lt_cv_sys_max_cmd_len=8192;
7377     ;;
7378
7379   amigaos*)
7380     # On AmigaOS with pdksh, this test takes hours, literally.
7381     # So we just punt and use a minimum line length of 8192.
7382     lt_cv_sys_max_cmd_len=8192;
7383     ;;
7384
7385  *)
7386     # If test is not a shell built-in, we'll probably end up computing a
7387     # maximum length that is only half of the actual maximum length, but
7388     # we can't tell.
7389     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7390                = "XX$teststring") >/dev/null 2>&1 &&
7391             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7392             lt_cv_sys_max_cmd_len=$new_result &&
7393             test $i != 17 # 1/2 MB should be enough
7394     do
7395       i=`expr $i + 1`
7396       teststring=$teststring$teststring
7397     done
7398     teststring=
7399     # Add a significant safety factor because C++ compilers can tack on massive
7400     # amounts of additional arguments before passing them to the linker.
7401     # It appears as though 1/2 is a usable value.
7402     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7403     ;;
7404   esac
7405
7406 fi
7407
7408 if test -n $lt_cv_sys_max_cmd_len ; then
7409   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7410 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7411 else
7412   echo "$as_me:$LINENO: result: none" >&5
7413 echo "${ECHO_T}none" >&6
7414 fi
7415
7416
7417
7418
7419 # Check for command to grab the raw symbol name followed by C symbol from nm.
7420 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7421 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7422 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425
7426 # These are sane defaults that work on at least a few old systems.
7427 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7428
7429 # Character class describing NM global symbol codes.
7430 symcode='[BCDEGRST]'
7431
7432 # Regexp to match symbols that can be accessed directly from C.
7433 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7434
7435 # Transform the above into a raw symbol and a C symbol.
7436 symxfrm='\1 \2\3 \3'
7437
7438 # Transform an extracted symbol line into a proper C declaration
7439 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7440
7441 # Transform an extracted symbol line into symbol name and symbol address
7442 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'"
7443
7444 # Define system-specific variables.
7445 case $host_os in
7446 aix*)
7447   symcode='[BCDT]'
7448   ;;
7449 cygwin* | mingw* | pw32*)
7450   symcode='[ABCDGISTW]'
7451   ;;
7452 hpux*) # Its linker distinguishes data from code symbols
7453   if test "$host_cpu" = ia64; then
7454     symcode='[ABCDEGRST]'
7455   fi
7456   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457   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'"
7458   ;;
7459 irix* | nonstopux*)
7460   symcode='[BCDEGRST]'
7461   ;;
7462 osf*)
7463   symcode='[BCDEGQRST]'
7464   ;;
7465 solaris* | sysv5*)
7466   symcode='[BDRT]'
7467   ;;
7468 sysv4)
7469   symcode='[DFNSTU]'
7470   ;;
7471 esac
7472
7473 # Handle CRLF in mingw tool chain
7474 opt_cr=
7475 case $build_os in
7476 mingw*)
7477   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478   ;;
7479 esac
7480
7481 # If we're using GNU nm, then use its standard symbol codes.
7482 case `$NM -V 2>&1` in
7483 *GNU* | *'with BFD'*)
7484   symcode='[ABCDGIRSTW]' ;;
7485 esac
7486
7487 # Try without a prefix undercore, then with it.
7488 for ac_symprfx in "" "_"; do
7489
7490   # Write the raw and C identifiers.
7491   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7492
7493   # Check to see that the pipe works correctly.
7494   pipe_works=no
7495
7496   rm -f conftest*
7497   cat > conftest.$ac_ext <<EOF
7498 #ifdef __cplusplus
7499 extern "C" {
7500 #endif
7501 char nm_test_var;
7502 void nm_test_func(){}
7503 #ifdef __cplusplus
7504 }
7505 #endif
7506 int main(){nm_test_var='a';nm_test_func();return(0);}
7507 EOF
7508
7509   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510   (eval $ac_compile) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; then
7514     # Now try to grab the symbols.
7515     nlist=conftest.nm
7516     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7517   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } && test -s "$nlist"; then
7521       # Try sorting and uniquifying the output.
7522       if sort "$nlist" | uniq > "$nlist"T; then
7523         mv -f "$nlist"T "$nlist"
7524       else
7525         rm -f "$nlist"T
7526       fi
7527
7528       # Make sure that we snagged all the symbols we need.
7529       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7530         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7531           cat <<EOF > conftest.$ac_ext
7532 #ifdef __cplusplus
7533 extern "C" {
7534 #endif
7535
7536 EOF
7537           # Now generate the symbol file.
7538           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7539
7540           cat <<EOF >> conftest.$ac_ext
7541 #if defined (__STDC__) && __STDC__
7542 # define lt_ptr_t void *
7543 #else
7544 # define lt_ptr_t char *
7545 # define const
7546 #endif
7547
7548 /* The mapping between symbol names and symbols. */
7549 const struct {
7550   const char *name;
7551   lt_ptr_t address;
7552 }
7553 lt_preloaded_symbols[] =
7554 {
7555 EOF
7556           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7557           cat <<\EOF >> conftest.$ac_ext
7558   {0, (lt_ptr_t) 0}
7559 };
7560
7561 #ifdef __cplusplus
7562 }
7563 #endif
7564 EOF
7565           # Now try linking the two files.
7566           mv conftest.$ac_objext conftstm.$ac_objext
7567           lt_save_LIBS="$LIBS"
7568           lt_save_CFLAGS="$CFLAGS"
7569           LIBS="conftstm.$ac_objext"
7570           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7571           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572   (eval $ac_link) 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7576             pipe_works=yes
7577           fi
7578           LIBS="$lt_save_LIBS"
7579           CFLAGS="$lt_save_CFLAGS"
7580         else
7581           echo "cannot find nm_test_func in $nlist" >&5
7582         fi
7583       else
7584         echo "cannot find nm_test_var in $nlist" >&5
7585       fi
7586     else
7587       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7588     fi
7589   else
7590     echo "$progname: failed program was:" >&5
7591     cat conftest.$ac_ext >&5
7592   fi
7593   rm -f conftest* conftst*
7594
7595   # Do not use the global_symbol_pipe unless it works.
7596   if test "$pipe_works" = yes; then
7597     break
7598   else
7599     lt_cv_sys_global_symbol_pipe=
7600   fi
7601 done
7602
7603 fi
7604
7605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7606   lt_cv_sys_global_symbol_to_cdecl=
7607 fi
7608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7609   echo "$as_me:$LINENO: result: failed" >&5
7610 echo "${ECHO_T}failed" >&6
7611 else
7612   echo "$as_me:$LINENO: result: ok" >&5
7613 echo "${ECHO_T}ok" >&6
7614 fi
7615
7616 echo "$as_me:$LINENO: checking for objdir" >&5
7617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7618 if test "${lt_cv_objdir+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   rm -f .libs 2>/dev/null
7622 mkdir .libs 2>/dev/null
7623 if test -d .libs; then
7624   lt_cv_objdir=.libs
7625 else
7626   # MS-DOS does not allow filenames that begin with a dot.
7627   lt_cv_objdir=_libs
7628 fi
7629 rmdir .libs 2>/dev/null
7630 fi
7631 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7632 echo "${ECHO_T}$lt_cv_objdir" >&6
7633 objdir=$lt_cv_objdir
7634
7635
7636
7637
7638
7639 case $host_os in
7640 aix3*)
7641   # AIX sometimes has problems with the GCC collect2 program.  For some
7642   # reason, if we set the COLLECT_NAMES environment variable, the problems
7643   # vanish in a puff of smoke.
7644   if test "X${COLLECT_NAMES+set}" != Xset; then
7645     COLLECT_NAMES=
7646     export COLLECT_NAMES
7647   fi
7648   ;;
7649 esac
7650
7651 # Sed substitution that helps us do robust quoting.  It backslashifies
7652 # metacharacters that are still active within double-quoted strings.
7653 Xsed='sed -e s/^X//'
7654 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7655
7656 # Same as above, but do not quote variable references.
7657 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7658
7659 # Sed substitution to delay expansion of an escaped shell variable in a
7660 # double_quote_subst'ed string.
7661 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7662
7663 # Sed substitution to avoid accidental globbing in evaled expressions
7664 no_glob_subst='s/\*/\\\*/g'
7665
7666 # Constants:
7667 rm="rm -f"
7668
7669 # Global variables:
7670 default_ofile=libtool
7671 can_build_shared=yes
7672
7673 # All known linkers require a `.a' archive for static linking (except M$VC,
7674 # which needs '.lib').
7675 libext=a
7676 ltmain="$ac_aux_dir/ltmain.sh"
7677 ofile="$default_ofile"
7678 with_gnu_ld="$lt_cv_prog_gnu_ld"
7679
7680 if test -n "$ac_tool_prefix"; then
7681   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7682 set dummy ${ac_tool_prefix}ar; ac_word=$2
7683 echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7685 if test "${ac_cv_prog_AR+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   if test -n "$AR"; then
7689   ac_cv_prog_AR="$AR" # Let the user override the test.
7690 else
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694   IFS=$as_save_IFS
7695   test -z "$as_dir" && as_dir=.
7696   for ac_exec_ext in '' $ac_executable_extensions; do
7697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698     ac_cv_prog_AR="${ac_tool_prefix}ar"
7699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700     break 2
7701   fi
7702 done
7703 done
7704
7705 fi
7706 fi
7707 AR=$ac_cv_prog_AR
7708 if test -n "$AR"; then
7709   echo "$as_me:$LINENO: result: $AR" >&5
7710 echo "${ECHO_T}$AR" >&6
7711 else
7712   echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714 fi
7715
7716 fi
7717 if test -z "$ac_cv_prog_AR"; then
7718   ac_ct_AR=$AR
7719   # Extract the first word of "ar", so it can be a program name with args.
7720 set dummy ar; ac_word=$2
7721 echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7723 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   if test -n "$ac_ct_AR"; then
7727   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734   for ac_exec_ext in '' $ac_executable_extensions; do
7735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736     ac_cv_prog_ac_ct_AR="ar"
7737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741 done
7742
7743   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7744 fi
7745 fi
7746 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7747 if test -n "$ac_ct_AR"; then
7748   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7749 echo "${ECHO_T}$ac_ct_AR" >&6
7750 else
7751   echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6
7753 fi
7754
7755   AR=$ac_ct_AR
7756 else
7757   AR="$ac_cv_prog_AR"
7758 fi
7759
7760 if test -n "$ac_tool_prefix"; then
7761   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7763 echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7765 if test "${ac_cv_prog_RANLIB+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   if test -n "$RANLIB"; then
7769   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776   for ac_exec_ext in '' $ac_executable_extensions; do
7777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783 done
7784
7785 fi
7786 fi
7787 RANLIB=$ac_cv_prog_RANLIB
7788 if test -n "$RANLIB"; then
7789   echo "$as_me:$LINENO: result: $RANLIB" >&5
7790 echo "${ECHO_T}$RANLIB" >&6
7791 else
7792   echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794 fi
7795
7796 fi
7797 if test -z "$ac_cv_prog_RANLIB"; then
7798   ac_ct_RANLIB=$RANLIB
7799   # Extract the first word of "ranlib", so it can be a program name with args.
7800 set dummy ranlib; ac_word=$2
7801 echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7803 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   if test -n "$ac_ct_RANLIB"; then
7807   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814   for ac_exec_ext in '' $ac_executable_extensions; do
7815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816     ac_cv_prog_ac_ct_RANLIB="ranlib"
7817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821 done
7822
7823   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7824 fi
7825 fi
7826 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7827 if test -n "$ac_ct_RANLIB"; then
7828   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7829 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7830 else
7831   echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7833 fi
7834
7835   RANLIB=$ac_ct_RANLIB
7836 else
7837   RANLIB="$ac_cv_prog_RANLIB"
7838 fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}strip; ac_word=$2
7843 echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7845 if test "${ac_cv_prog_STRIP+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   if test -n "$STRIP"; then
7849   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854   IFS=$as_save_IFS
7855   test -z "$as_dir" && as_dir=.
7856   for ac_exec_ext in '' $ac_executable_extensions; do
7857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860     break 2
7861   fi
7862 done
7863 done
7864
7865 fi
7866 fi
7867 STRIP=$ac_cv_prog_STRIP
7868 if test -n "$STRIP"; then
7869   echo "$as_me:$LINENO: result: $STRIP" >&5
7870 echo "${ECHO_T}$STRIP" >&6
7871 else
7872   echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6
7874 fi
7875
7876 fi
7877 if test -z "$ac_cv_prog_STRIP"; then
7878   ac_ct_STRIP=$STRIP
7879   # Extract the first word of "strip", so it can be a program name with args.
7880 set dummy strip; ac_word=$2
7881 echo "$as_me:$LINENO: checking for $ac_word" >&5
7882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886   if test -n "$ac_ct_STRIP"; then
7887   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892   IFS=$as_save_IFS
7893   test -z "$as_dir" && as_dir=.
7894   for ac_exec_ext in '' $ac_executable_extensions; do
7895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896     ac_cv_prog_ac_ct_STRIP="strip"
7897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7898     break 2
7899   fi
7900 done
7901 done
7902
7903   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7904 fi
7905 fi
7906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7907 if test -n "$ac_ct_STRIP"; then
7908   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7909 echo "${ECHO_T}$ac_ct_STRIP" >&6
7910 else
7911   echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6
7913 fi
7914
7915   STRIP=$ac_ct_STRIP
7916 else
7917   STRIP="$ac_cv_prog_STRIP"
7918 fi
7919
7920
7921 old_CC="$CC"
7922 old_CFLAGS="$CFLAGS"
7923
7924 # Set sane defaults for various variables
7925 test -z "$AR" && AR=ar
7926 test -z "$AR_FLAGS" && AR_FLAGS=cru
7927 test -z "$AS" && AS=as
7928 test -z "$CC" && CC=cc
7929 test -z "$LTCC" && LTCC=$CC
7930 test -z "$DLLTOOL" && DLLTOOL=dlltool
7931 test -z "$LD" && LD=ld
7932 test -z "$LN_S" && LN_S="ln -s"
7933 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7934 test -z "$NM" && NM=nm
7935 test -z "$SED" && SED=sed
7936 test -z "$OBJDUMP" && OBJDUMP=objdump
7937 test -z "$RANLIB" && RANLIB=:
7938 test -z "$STRIP" && STRIP=:
7939 test -z "$ac_objext" && ac_objext=o
7940
7941 # Determine commands to create old-style static archives.
7942 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7943 old_postinstall_cmds='chmod 644 $oldlib'
7944 old_postuninstall_cmds=
7945
7946 if test -n "$RANLIB"; then
7947   case $host_os in
7948   openbsd*)
7949     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7950     ;;
7951   *)
7952     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7953     ;;
7954   esac
7955   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7956 fi
7957
7958 # Only perform the check for file, if the check method requires it
7959 case $deplibs_check_method in
7960 file_magic*)
7961   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7962     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7963 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7964 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   case $MAGIC_CMD in
7968 [\\/*] |  ?:[\\/]*)
7969   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7970   ;;
7971 *)
7972   lt_save_MAGIC_CMD="$MAGIC_CMD"
7973   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7974   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7975   for ac_dir in $ac_dummy; do
7976     IFS="$lt_save_ifs"
7977     test -z "$ac_dir" && ac_dir=.
7978     if test -f $ac_dir/${ac_tool_prefix}file; then
7979       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7980       if test -n "$file_magic_test_file"; then
7981         case $deplibs_check_method in
7982         "file_magic "*)
7983           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7984           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7985           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7986             $EGREP "$file_magic_regex" > /dev/null; then
7987             :
7988           else
7989             cat <<EOF 1>&2
7990
7991 *** Warning: the command libtool uses to detect shared libraries,
7992 *** $file_magic_cmd, produces output that libtool cannot recognize.
7993 *** The result is that libtool may fail to recognize shared libraries
7994 *** as such.  This will affect the creation of libtool libraries that
7995 *** depend on shared libraries, but programs linked with such libtool
7996 *** libraries will work regardless of this problem.  Nevertheless, you
7997 *** may want to report the problem to your system manager and/or to
7998 *** bug-libtool@gnu.org
7999
8000 EOF
8001           fi ;;
8002         esac
8003       fi
8004       break
8005     fi
8006   done
8007   IFS="$lt_save_ifs"
8008   MAGIC_CMD="$lt_save_MAGIC_CMD"
8009   ;;
8010 esac
8011 fi
8012
8013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8014 if test -n "$MAGIC_CMD"; then
8015   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8016 echo "${ECHO_T}$MAGIC_CMD" >&6
8017 else
8018   echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8020 fi
8021
8022 if test -z "$lt_cv_path_MAGIC_CMD"; then
8023   if test -n "$ac_tool_prefix"; then
8024     echo "$as_me:$LINENO: checking for file" >&5
8025 echo $ECHO_N "checking for file... $ECHO_C" >&6
8026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029   case $MAGIC_CMD in
8030 [\\/*] |  ?:[\\/]*)
8031   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8032   ;;
8033 *)
8034   lt_save_MAGIC_CMD="$MAGIC_CMD"
8035   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8036   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8037   for ac_dir in $ac_dummy; do
8038     IFS="$lt_save_ifs"
8039     test -z "$ac_dir" && ac_dir=.
8040     if test -f $ac_dir/file; then
8041       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8042       if test -n "$file_magic_test_file"; then
8043         case $deplibs_check_method in
8044         "file_magic "*)
8045           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8046           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8047           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8048             $EGREP "$file_magic_regex" > /dev/null; then
8049             :
8050           else
8051             cat <<EOF 1>&2
8052
8053 *** Warning: the command libtool uses to detect shared libraries,
8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
8055 *** The result is that libtool may fail to recognize shared libraries
8056 *** as such.  This will affect the creation of libtool libraries that
8057 *** depend on shared libraries, but programs linked with such libtool
8058 *** libraries will work regardless of this problem.  Nevertheless, you
8059 *** may want to report the problem to your system manager and/or to
8060 *** bug-libtool@gnu.org
8061
8062 EOF
8063           fi ;;
8064         esac
8065       fi
8066       break
8067     fi
8068   done
8069   IFS="$lt_save_ifs"
8070   MAGIC_CMD="$lt_save_MAGIC_CMD"
8071   ;;
8072 esac
8073 fi
8074
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if test -n "$MAGIC_CMD"; then
8077   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8078 echo "${ECHO_T}$MAGIC_CMD" >&6
8079 else
8080   echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6
8082 fi
8083
8084   else
8085     MAGIC_CMD=:
8086   fi
8087 fi
8088
8089   fi
8090   ;;
8091 esac
8092
8093 enable_dlopen=no
8094 enable_win32_dll=no
8095
8096 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8097 if test "${enable_libtool_lock+set}" = set; then
8098   enableval="$enable_libtool_lock"
8099
8100 fi;
8101 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8102
8103
8104 # Check whether --with-pic or --without-pic was given.
8105 if test "${with_pic+set}" = set; then
8106   withval="$with_pic"
8107   pic_mode="$withval"
8108 else
8109   pic_mode=default
8110 fi;
8111 test -z "$pic_mode" && pic_mode=default
8112
8113 # Use C for the default configuration in the libtool script
8114 tagname=
8115 lt_save_CC="$CC"
8116 ac_ext=c
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122
8123 # Source file extension for C test sources.
8124 ac_ext=c
8125
8126 # Object file extension for compiled C test sources.
8127 objext=o
8128 objext=$objext
8129
8130 # Code to be used in simple compile tests
8131 lt_simple_compile_test_code="int some_variable = 0;\n"
8132
8133 # Code to be used in simple link tests
8134 lt_simple_link_test_code='int main(){return(0);}\n'
8135
8136
8137 # If no C compiler was specified, use CC.
8138 LTCC=${LTCC-"$CC"}
8139
8140 # Allow CC to be a program name with arguments.
8141 compiler=$CC
8142
8143
8144 #
8145 # Check for any special shared library compilation flags.
8146 #
8147 lt_prog_cc_shlib=
8148 if test "$GCC" = no; then
8149   case $host_os in
8150   sco3.2v5*)
8151     lt_prog_cc_shlib='-belf'
8152     ;;
8153   esac
8154 fi
8155 if test -n "$lt_prog_cc_shlib"; then
8156   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8157 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8158   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8159   else
8160     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8161 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8162     lt_cv_prog_cc_can_build_shared=no
8163   fi
8164 fi
8165
8166
8167 #
8168 # Check to make sure the static flag actually works.
8169 #
8170 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8171 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8172 if test "${lt_prog_compiler_static_works+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   lt_prog_compiler_static_works=no
8176    save_LDFLAGS="$LDFLAGS"
8177    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8178    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8179    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8180      # The compiler can only warn and ignore the option if not recognized
8181      # So say no if there are warnings
8182      if test -s conftest.err; then
8183        # Append any errors to the config.log.
8184        cat conftest.err 1>&5
8185      else
8186        lt_prog_compiler_static_works=yes
8187      fi
8188    fi
8189    $rm conftest*
8190    LDFLAGS="$save_LDFLAGS"
8191
8192 fi
8193 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8194 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8195
8196 if test x"$lt_prog_compiler_static_works" = xyes; then
8197     :
8198 else
8199     lt_prog_compiler_static=
8200 fi
8201
8202
8203
8204 ## CAVEAT EMPTOR:
8205 ## There is no encapsulation within the following macros, do not change
8206 ## the running order or otherwise move them around unless you know exactly
8207 ## what you are doing...
8208
8209 lt_prog_compiler_no_builtin_flag=
8210
8211 if test "$GCC" = yes; then
8212   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8213
8214
8215 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8216 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8217 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   lt_cv_prog_compiler_rtti_exceptions=no
8221   ac_outfile=conftest.$ac_objext
8222    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8223    lt_compiler_flag="-fno-rtti -fno-exceptions"
8224    # Insert the option either (1) after the last *FLAGS variable, or
8225    # (2) before a word containing "conftest.", or (3) at the end.
8226    # Note that $ac_compile itself does not contain backslashes and begins
8227    # with a dollar sign (not a hyphen), so the echo should work correctly.
8228    # The option is referenced via a variable to avoid confusing sed.
8229    lt_compile=`echo "$ac_compile" | $SED \
8230    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8231    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8232    -e 's:$: $lt_compiler_flag:'`
8233    (eval echo "\"\$as_me:8233: $lt_compile\"" >&5)
8234    (eval "$lt_compile" 2>conftest.err)
8235    ac_status=$?
8236    cat conftest.err >&5
8237    echo "$as_me:8237: \$? = $ac_status" >&5
8238    if (exit $ac_status) && test -s "$ac_outfile"; then
8239      # The compiler can only warn and ignore the option if not recognized
8240      # So say no if there are warnings
8241      if test ! -s conftest.err; then
8242        lt_cv_prog_compiler_rtti_exceptions=yes
8243      fi
8244    fi
8245    $rm conftest*
8246
8247 fi
8248 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8249 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8250
8251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8252     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8253 else
8254     :
8255 fi
8256
8257 fi
8258
8259 lt_prog_compiler_wl=
8260 lt_prog_compiler_pic=
8261 lt_prog_compiler_static=
8262
8263 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8264 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8265
8266   if test "$GCC" = yes; then
8267     lt_prog_compiler_wl='-Wl,'
8268     lt_prog_compiler_static='-static'
8269
8270     case $host_os in
8271       aix*)
8272       # All AIX code is PIC.
8273       if test "$host_cpu" = ia64; then
8274         # AIX 5 now supports IA64 processor
8275         lt_prog_compiler_static='-Bstatic'
8276       fi
8277       ;;
8278
8279     amigaos*)
8280       # FIXME: we need at least 68020 code to build shared libraries, but
8281       # adding the `-m68020' flag to GCC prevents building anything better,
8282       # like `-m68040'.
8283       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8284       ;;
8285
8286     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8287       # PIC is the default for these OSes.
8288       ;;
8289
8290     mingw* | pw32* | os2*)
8291       # This hack is so that the source file can tell whether it is being
8292       # built for inclusion in a dll (and should export symbols for example).
8293       lt_prog_compiler_pic='-DDLL_EXPORT'
8294       ;;
8295
8296     darwin* | rhapsody*)
8297       # PIC is the default on this platform
8298       # Common symbols not allowed in MH_DYLIB files
8299       lt_prog_compiler_pic='-fno-common'
8300       ;;
8301
8302     msdosdjgpp*)
8303       # Just because we use GCC doesn't mean we suddenly get shared libraries
8304       # on systems that don't support them.
8305       lt_prog_compiler_can_build_shared=no
8306       enable_shared=no
8307       ;;
8308
8309     sysv4*MP*)
8310       if test -d /usr/nec; then
8311         lt_prog_compiler_pic=-Kconform_pic
8312       fi
8313       ;;
8314
8315     hpux*)
8316       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8317       # not for PA HP-UX.
8318       case "$host_cpu" in
8319       hppa*64*|ia64*)
8320         # +Z the default
8321         ;;
8322       *)
8323         lt_prog_compiler_pic='-fPIC'
8324         ;;
8325       esac
8326       ;;
8327
8328     *)
8329       lt_prog_compiler_pic='-fPIC'
8330       ;;
8331     esac
8332   else
8333     # PORTME Check for flag to pass linker flags through the system compiler.
8334     case $host_os in
8335     aix*)
8336       lt_prog_compiler_wl='-Wl,'
8337       if test "$host_cpu" = ia64; then
8338         # AIX 5 now supports IA64 processor
8339         lt_prog_compiler_static='-Bstatic'
8340       else
8341         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8342       fi
8343       ;;
8344
8345     mingw* | pw32* | os2*)
8346       # This hack is so that the source file can tell whether it is being
8347       # built for inclusion in a dll (and should export symbols for example).
8348       lt_prog_compiler_pic='-DDLL_EXPORT'
8349       ;;
8350
8351     hpux9* | hpux10* | hpux11*)
8352       lt_prog_compiler_wl='-Wl,'
8353       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8354       # not for PA HP-UX.
8355       case "$host_cpu" in
8356       hppa*64*|ia64*)
8357         # +Z the default
8358         ;;
8359       *)
8360         lt_prog_compiler_pic='+Z'
8361         ;;
8362       esac
8363       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8364       lt_prog_compiler_static='${wl}-a ${wl}archive'
8365       ;;
8366
8367     irix5* | irix6* | nonstopux*)
8368       lt_prog_compiler_wl='-Wl,'
8369       # PIC (with -KPIC) is the default.
8370       lt_prog_compiler_static='-non_shared'
8371       ;;
8372
8373     newsos6)
8374       lt_prog_compiler_pic='-KPIC'
8375       lt_prog_compiler_static='-Bstatic'
8376       ;;
8377
8378     linux*)
8379       case $CC in
8380       icc* | ecc*)
8381         lt_prog_compiler_wl='-Wl,'
8382         lt_prog_compiler_pic='-KPIC'
8383         lt_prog_compiler_static='-static'
8384         ;;
8385       ccc*)
8386         lt_prog_compiler_wl='-Wl,'
8387         # All Alpha code is PIC.
8388         lt_prog_compiler_static='-non_shared'
8389         ;;
8390       esac
8391       ;;
8392
8393     osf3* | osf4* | osf5*)
8394       lt_prog_compiler_wl='-Wl,'
8395       # All OSF/1 code is PIC.
8396       lt_prog_compiler_static='-non_shared'
8397       ;;
8398
8399     sco3.2v5*)
8400       lt_prog_compiler_pic='-Kpic'
8401       lt_prog_compiler_static='-dn'
8402       ;;
8403
8404     solaris*)
8405       lt_prog_compiler_wl='-Wl,'
8406       lt_prog_compiler_pic='-KPIC'
8407       lt_prog_compiler_static='-Bstatic'
8408       ;;
8409
8410     sunos4*)
8411       lt_prog_compiler_wl='-Qoption ld '
8412       lt_prog_compiler_pic='-PIC'
8413       lt_prog_compiler_static='-Bstatic'
8414       ;;
8415
8416     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8417       lt_prog_compiler_wl='-Wl,'
8418       lt_prog_compiler_pic='-KPIC'
8419       lt_prog_compiler_static='-Bstatic'
8420       ;;
8421
8422     sysv4*MP*)
8423       if test -d /usr/nec ;then
8424         lt_prog_compiler_pic='-Kconform_pic'
8425         lt_prog_compiler_static='-Bstatic'
8426       fi
8427       ;;
8428
8429     uts4*)
8430       lt_prog_compiler_pic='-pic'
8431       lt_prog_compiler_static='-Bstatic'
8432       ;;
8433
8434     *)
8435       lt_prog_compiler_can_build_shared=no
8436       ;;
8437     esac
8438   fi
8439
8440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8441 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8442
8443 #
8444 # Check to make sure the PIC flag actually works.
8445 #
8446 if test -n "$lt_prog_compiler_pic"; then
8447
8448 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8450 if test "${lt_prog_compiler_pic_works+set}" = set; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   lt_prog_compiler_pic_works=no
8454   ac_outfile=conftest.$ac_objext
8455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8456    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8457    # Insert the option either (1) after the last *FLAGS variable, or
8458    # (2) before a word containing "conftest.", or (3) at the end.
8459    # Note that $ac_compile itself does not contain backslashes and begins
8460    # with a dollar sign (not a hyphen), so the echo should work correctly.
8461    # The option is referenced via a variable to avoid confusing sed.
8462    lt_compile=`echo "$ac_compile" | $SED \
8463    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465    -e 's:$: $lt_compiler_flag:'`
8466    (eval echo "\"\$as_me:8466: $lt_compile\"" >&5)
8467    (eval "$lt_compile" 2>conftest.err)
8468    ac_status=$?
8469    cat conftest.err >&5
8470    echo "$as_me:8470: \$? = $ac_status" >&5
8471    if (exit $ac_status) && test -s "$ac_outfile"; then
8472      # The compiler can only warn and ignore the option if not recognized
8473      # So say no if there are warnings
8474      if test ! -s conftest.err; then
8475        lt_prog_compiler_pic_works=yes
8476      fi
8477    fi
8478    $rm conftest*
8479
8480 fi
8481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8482 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8483
8484 if test x"$lt_prog_compiler_pic_works" = xyes; then
8485     case $lt_prog_compiler_pic in
8486      "" | " "*) ;;
8487      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8488      esac
8489 else
8490     lt_prog_compiler_pic=
8491      lt_prog_compiler_can_build_shared=no
8492 fi
8493
8494 fi
8495 case "$host_os" in
8496   # For platforms which do not support PIC, -DPIC is meaningless:
8497   *djgpp*)
8498     lt_prog_compiler_pic=
8499     ;;
8500   *)
8501     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8502     ;;
8503 esac
8504
8505 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8506 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8507 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   lt_cv_prog_compiler_c_o=no
8511    $rm -r conftest 2>/dev/null
8512    mkdir conftest
8513    cd conftest
8514    mkdir out
8515    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8516
8517    lt_compiler_flag="-o out/conftest2.$ac_objext"
8518    # Insert the option either (1) after the last *FLAGS variable, or
8519    # (2) before a word containing "conftest.", or (3) at the end.
8520    # Note that $ac_compile itself does not contain backslashes and begins
8521    # with a dollar sign (not a hyphen), so the echo should work correctly.
8522    lt_compile=`echo "$ac_compile" | $SED \
8523    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8525    -e 's:$: $lt_compiler_flag:'`
8526    (eval echo "\"\$as_me:8526: $lt_compile\"" >&5)
8527    (eval "$lt_compile" 2>out/conftest.err)
8528    ac_status=$?
8529    cat out/conftest.err >&5
8530    echo "$as_me:8530: \$? = $ac_status" >&5
8531    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8532    then
8533      # The compiler can only warn and ignore the option if not recognized
8534      # So say no if there are warnings
8535      if test ! -s out/conftest.err; then
8536        lt_cv_prog_compiler_c_o=yes
8537      fi
8538    fi
8539    chmod u+w .
8540    $rm conftest*
8541    # SGI C++ compiler will create directory out/ii_files/ for
8542    # template instantiation
8543    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8544    $rm out/* && rmdir out
8545    cd ..
8546    rmdir conftest
8547    $rm conftest*
8548
8549 fi
8550 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8552
8553
8554 hard_links="nottested"
8555 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8556   # do not overwrite the value of need_locks provided by the user
8557   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8558 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8559   hard_links=yes
8560   $rm conftest*
8561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8562   touch conftest.a
8563   ln conftest.a conftest.b 2>&5 || hard_links=no
8564   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8565   echo "$as_me:$LINENO: result: $hard_links" >&5
8566 echo "${ECHO_T}$hard_links" >&6
8567   if test "$hard_links" = no; then
8568     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8569 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8570     need_locks=warn
8571   fi
8572 else
8573   need_locks=no
8574 fi
8575
8576 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8577 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8578
8579   runpath_var=
8580   allow_undefined_flag=
8581   enable_shared_with_static_runtimes=no
8582   archive_cmds=
8583   archive_expsym_cmds=
8584   old_archive_From_new_cmds=
8585   old_archive_from_expsyms_cmds=
8586   export_dynamic_flag_spec=
8587   whole_archive_flag_spec=
8588   thread_safe_flag_spec=
8589   hardcode_libdir_flag_spec=
8590   hardcode_libdir_flag_spec_ld=
8591   hardcode_libdir_separator=
8592   hardcode_direct=no
8593   hardcode_minus_L=no
8594   hardcode_shlibpath_var=unsupported
8595   link_all_deplibs=unknown
8596   hardcode_automatic=no
8597   module_cmds=
8598   module_expsym_cmds=
8599   always_export_symbols=no
8600   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8601   # include_expsyms should be a list of space-separated symbols to be *always*
8602   # included in the symbol list
8603   include_expsyms=
8604   # exclude_expsyms can be an extended regexp of symbols to exclude
8605   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8606   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8607   # as well as any symbol that contains `d'.
8608   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8609   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8610   # platforms (ab)use it in PIC code, but their linkers get confused if
8611   # the symbol is explicitly referenced.  Since portable code cannot
8612   # rely on this symbol name, it's probably fine to never include it in
8613   # preloaded symbol tables.
8614   extract_expsyms_cmds=
8615
8616   case $host_os in
8617   cygwin* | mingw* | pw32*)
8618     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8619     # When not using gcc, we currently assume that we are using
8620     # Microsoft Visual C++.
8621     if test "$GCC" != yes; then
8622       with_gnu_ld=no
8623     fi
8624     ;;
8625   openbsd*)
8626     with_gnu_ld=no
8627     ;;
8628   esac
8629
8630   ld_shlibs=yes
8631   if test "$with_gnu_ld" = yes; then
8632     # If archive_cmds runs LD, not CC, wlarc should be empty
8633     wlarc='${wl}'
8634
8635     # See if GNU ld supports shared libraries.
8636     case $host_os in
8637     aix3* | aix4* | aix5*)
8638       # On AIX/PPC, the GNU linker is very broken
8639       if test "$host_cpu" != ia64; then
8640         ld_shlibs=no
8641         cat <<EOF 1>&2
8642
8643 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8644 *** to be unable to reliably create shared libraries on AIX.
8645 *** Therefore, libtool is disabling shared libraries support.  If you
8646 *** really care for shared libraries, you may want to modify your PATH
8647 *** so that a non-GNU linker is found, and then restart.
8648
8649 EOF
8650       fi
8651       ;;
8652
8653     amigaos*)
8654       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)'
8655       hardcode_libdir_flag_spec='-L$libdir'
8656       hardcode_minus_L=yes
8657
8658       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8659       # that the semantics of dynamic libraries on AmigaOS, at least up
8660       # to version 4, is to share data among multiple programs linked
8661       # with the same dynamic library.  Since this doesn't match the
8662       # behavior of shared libraries on other platforms, we can't use
8663       # them.
8664       ld_shlibs=no
8665       ;;
8666
8667     beos*)
8668       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8669         allow_undefined_flag=unsupported
8670         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8671         # support --undefined.  This deserves some investigation.  FIXME
8672         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673       else
8674         ld_shlibs=no
8675       fi
8676       ;;
8677
8678     cygwin* | mingw* | pw32*)
8679       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8680       # as there is no search path for DLLs.
8681       hardcode_libdir_flag_spec='-L$libdir'
8682       allow_undefined_flag=unsupported
8683       always_export_symbols=no
8684       enable_shared_with_static_runtimes=yes
8685       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8686
8687       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8688         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8689         # If the export-symbols file already is a .def file (1st line
8690         # is EXPORTS), use it as is; otherwise, prepend...
8691         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8692           cp $export_symbols $output_objdir/$soname.def;
8693         else
8694           echo EXPORTS > $output_objdir/$soname.def;
8695           cat $export_symbols >> $output_objdir/$soname.def;
8696         fi~
8697         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8698       else
8699         ld_shlibs=no
8700       fi
8701       ;;
8702
8703     netbsd*)
8704       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8705         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8706         wlarc=
8707       else
8708         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8710       fi
8711       ;;
8712
8713     solaris* | sysv5*)
8714       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8715         ld_shlibs=no
8716         cat <<EOF 1>&2
8717
8718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8719 *** create shared libraries on Solaris systems.  Therefore, libtool
8720 *** is disabling shared libraries support.  We urge you to upgrade GNU
8721 *** binutils to release 2.9.1 or newer.  Another option is to modify
8722 *** your PATH or compiler configuration so that the native linker is
8723 *** used, and then restart.
8724
8725 EOF
8726       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8727         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729       else
8730         ld_shlibs=no
8731       fi
8732       ;;
8733
8734     sunos4*)
8735       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8736       wlarc=
8737       hardcode_direct=yes
8738       hardcode_shlibpath_var=no
8739       ;;
8740
8741   linux*)
8742     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8743         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744         archive_cmds="$tmp_archive_cmds"
8745       supports_anon_versioning=no
8746       case `$LD -v 2>/dev/null` in
8747         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8748         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8749         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8750         *\ 2.11.*) ;; # other 2.11 versions
8751         *) supports_anon_versioning=yes ;;
8752       esac
8753       if test $supports_anon_versioning = yes; then
8754         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8756 $echo "local: *; };" >> $output_objdir/$libname.ver~
8757         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8758       else
8759         archive_expsym_cmds="$tmp_archive_cmds"
8760       fi
8761     else
8762       ld_shlibs=no
8763     fi
8764     ;;
8765
8766     *)
8767       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774     esac
8775
8776     if test "$ld_shlibs" = yes; then
8777       runpath_var=LD_RUN_PATH
8778       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8779       export_dynamic_flag_spec='${wl}--export-dynamic'
8780       # ancient GNU ld didn't support --whole-archive et. al.
8781       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8782         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8783       else
8784         whole_archive_flag_spec=
8785       fi
8786     fi
8787   else
8788     # PORTME fill in a description of your system's linker (not GNU ld)
8789     case $host_os in
8790     aix3*)
8791       allow_undefined_flag=unsupported
8792       always_export_symbols=yes
8793       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'
8794       # Note: this linker hardcodes the directories in LIBPATH if there
8795       # are no directories specified by -L.
8796       hardcode_minus_L=yes
8797       if test "$GCC" = yes && test -z "$link_static_flag"; then
8798         # Neither direct hardcoding nor static linking is supported with a
8799         # broken collect2.
8800         hardcode_direct=unsupported
8801       fi
8802       ;;
8803
8804     aix4* | aix5*)
8805       if test "$host_cpu" = ia64; then
8806         # On IA64, the linker does run time linking by default, so we don't
8807         # have to do anything special.
8808         aix_use_runtimelinking=no
8809         exp_sym_flag='-Bexport'
8810         no_entry_flag=""
8811       else
8812         # If we're using GNU nm, then we don't want the "-C" option.
8813         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8814         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8815           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'
8816         else
8817           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'
8818         fi
8819         aix_use_runtimelinking=no
8820
8821         # Test if we are trying to use run time linking or normal
8822         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8823         # need to do runtime linking.
8824         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8825           for ld_flag in $LDFLAGS; do
8826           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8827             aix_use_runtimelinking=yes
8828             break
8829           fi
8830           done
8831         esac
8832
8833         exp_sym_flag='-bexport'
8834         no_entry_flag='-bnoentry'
8835       fi
8836
8837       # When large executables or shared objects are built, AIX ld can
8838       # have problems creating the table of contents.  If linking a library
8839       # or program results in "error TOC overflow" add -mminimal-toc to
8840       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8841       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8842
8843       archive_cmds=''
8844       hardcode_direct=yes
8845       hardcode_libdir_separator=':'
8846       link_all_deplibs=yes
8847
8848       if test "$GCC" = yes; then
8849         case $host_os in aix4.012|aix4.012.*)
8850         # We only want to do this on AIX 4.2 and lower, the check
8851         # below for broken collect2 doesn't work under 4.3+
8852           collect2name=`${CC} -print-prog-name=collect2`
8853           if test -f "$collect2name" && \
8854            strings "$collect2name" | grep resolve_lib_name >/dev/null
8855           then
8856           # We have reworked collect2
8857           hardcode_direct=yes
8858           else
8859           # We have old collect2
8860           hardcode_direct=unsupported
8861           # It fails to find uninstalled libraries when the uninstalled
8862           # path is not listed in the libpath.  Setting hardcode_minus_L
8863           # to unsupported forces relinking
8864           hardcode_minus_L=yes
8865           hardcode_libdir_flag_spec='-L$libdir'
8866           hardcode_libdir_separator=
8867           fi
8868         esac
8869         shared_flag='-shared'
8870       else
8871         # not using gcc
8872         if test "$host_cpu" = ia64; then
8873         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8874         # chokes on -Wl,-G. The following line is correct:
8875           shared_flag='-G'
8876         else
8877         if test "$aix_use_runtimelinking" = yes; then
8878             shared_flag='${wl}-G'
8879           else
8880             shared_flag='${wl}-bM:SRE'
8881         fi
8882         fi
8883       fi
8884
8885       # It seems that -bexpall does not export symbols beginning with
8886       # underscore (_), so it is better to generate a list of symbols to export.
8887       always_export_symbols=yes
8888       if test "$aix_use_runtimelinking" = yes; then
8889         # Warning - without using the other runtime loading flags (-brtl),
8890         # -berok will link without error, but may produce a broken library.
8891         allow_undefined_flag='-berok'
8892        # Determine the default libpath from the value encoded in an empty executable.
8893        cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899
8900 int
8901 main ()
8902 {
8903
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910   (eval $ac_link) 2>conftest.er1
8911   ac_status=$?
8912   grep -v '^ *+' conftest.er1 >conftest.err
8913   rm -f conftest.er1
8914   cat conftest.err >&5
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -z "$ac_c_werror_flag"
8918                          || test ! -s conftest.err'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; } &&
8924          { ac_try='test -s conftest$ac_exeext'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; }; then
8930
8931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8932 }'`
8933 # Check for a 64-bit object if we didn't find anything.
8934 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; }
8935 }'`; fi
8936 else
8937   echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 fi
8941 rm -f conftest.err conftest.$ac_objext \
8942       conftest$ac_exeext conftest.$ac_ext
8943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944
8945        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946         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"
8947        else
8948         if test "$host_cpu" = ia64; then
8949           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8950           allow_undefined_flag="-z nodefs"
8951           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"
8952         else
8953          # Determine the default libpath from the value encoded in an empty executable.
8954          cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960
8961 int
8962 main ()
8963 {
8964
8965   ;
8966   return 0;
8967 }
8968 _ACEOF
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971   (eval $ac_link) 2>conftest.er1
8972   ac_status=$?
8973   grep -v '^ *+' conftest.er1 >conftest.err
8974   rm -f conftest.er1
8975   cat conftest.err >&5
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } &&
8978          { ac_try='test -z "$ac_c_werror_flag"
8979                          || test ! -s conftest.err'
8980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981   (eval $ac_try) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); }; } &&
8985          { ac_try='test -s conftest$ac_exeext'
8986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987   (eval $ac_try) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; }; then
8991
8992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8993 }'`
8994 # Check for a 64-bit object if we didn't find anything.
8995 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; }
8996 }'`; fi
8997 else
8998   echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 fi
9002 rm -f conftest.err conftest.$ac_objext \
9003       conftest$ac_exeext conftest.$ac_ext
9004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9005
9006          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9007           # Warning - without using the other run time loading flags,
9008           # -berok will link without error, but may produce a broken library.
9009           no_undefined_flag=' ${wl}-bernotok'
9010           allow_undefined_flag=' ${wl}-berok'
9011           # -bexpall does not export symbols beginning with underscore (_)
9012           always_export_symbols=yes
9013           # Exported symbols can be pulled into shared objects from archives
9014           whole_archive_flag_spec=' '
9015           archive_cmds_need_lc=yes
9016           # This is similar to how AIX traditionally builds it's shared libraries.
9017           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'
9018         fi
9019       fi
9020       ;;
9021
9022     amigaos*)
9023       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)'
9024       hardcode_libdir_flag_spec='-L$libdir'
9025       hardcode_minus_L=yes
9026       # see comment about different semantics on the GNU ld section
9027       ld_shlibs=no
9028       ;;
9029
9030     bsdi4*)
9031       export_dynamic_flag_spec=-rdynamic
9032       ;;
9033
9034     cygwin* | mingw* | pw32*)
9035       # When not using gcc, we currently assume that we are using
9036       # Microsoft Visual C++.
9037       # hardcode_libdir_flag_spec is actually meaningless, as there is
9038       # no search path for DLLs.
9039       hardcode_libdir_flag_spec=' '
9040       allow_undefined_flag=unsupported
9041       # Tell ltmain to make .lib files, not .a files.
9042       libext=lib
9043       # Tell ltmain to make .dll files, not .so files.
9044       shrext_cmds=".dll"
9045       # FIXME: Setting linknames here is a bad hack.
9046       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9047       # The linker will automatically build a .lib file if we build a DLL.
9048       old_archive_From_new_cmds='true'
9049       # FIXME: Should let the user specify the lib program.
9050       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9051       fix_srcfile_path='`cygpath -w "$srcfile"`'
9052       enable_shared_with_static_runtimes=yes
9053       ;;
9054
9055     darwin* | rhapsody*)
9056     if test "$GXX" = yes ; then
9057       archive_cmds_need_lc=no
9058       case "$host_os" in
9059       rhapsody* | darwin1.[012])
9060         allow_undefined_flag='-undefined suppress'
9061         ;;
9062       *) # Darwin 1.3 on
9063       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9064         allow_undefined_flag='-flat_namespace -undefined suppress'
9065       else
9066         case ${MACOSX_DEPLOYMENT_TARGET} in
9067           10.[012])
9068             allow_undefined_flag='-flat_namespace -undefined suppress'
9069             ;;
9070           10.*)
9071             allow_undefined_flag='-undefined dynamic_lookup'
9072             ;;
9073         esac
9074       fi
9075         ;;
9076       esac
9077         lt_int_apple_cc_single_mod=no
9078         output_verbose_link_cmd='echo'
9079         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9080           lt_int_apple_cc_single_mod=yes
9081         fi
9082         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9083           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9084         else
9085         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'
9086       fi
9087       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9088       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9089         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9090           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}'
9091         else
9092           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}'
9093         fi
9094           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}'
9095       hardcode_direct=no
9096       hardcode_automatic=yes
9097       hardcode_shlibpath_var=unsupported
9098       whole_archive_flag_spec='-all_load $convenience'
9099       link_all_deplibs=yes
9100     else
9101       ld_shlibs=no
9102     fi
9103       ;;
9104
9105     dgux*)
9106       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107       hardcode_libdir_flag_spec='-L$libdir'
9108       hardcode_shlibpath_var=no
9109       ;;
9110
9111     freebsd1*)
9112       ld_shlibs=no
9113       ;;
9114
9115     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9116     # support.  Future versions do this automatically, but an explicit c++rt0.o
9117     # does not break anything, and helps significantly (at the cost of a little
9118     # extra space).
9119     freebsd2.2*)
9120       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9121       hardcode_libdir_flag_spec='-R$libdir'
9122       hardcode_direct=yes
9123       hardcode_shlibpath_var=no
9124       ;;
9125
9126     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9127     freebsd2*)
9128       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9129       hardcode_direct=yes
9130       hardcode_minus_L=yes
9131       hardcode_shlibpath_var=no
9132       ;;
9133
9134     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9135     freebsd* | kfreebsd*-gnu)
9136       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9137       hardcode_libdir_flag_spec='-R$libdir'
9138       hardcode_direct=yes
9139       hardcode_shlibpath_var=no
9140       ;;
9141
9142     hpux9*)
9143       if test "$GCC" = yes; then
9144         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'
9145       else
9146         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'
9147       fi
9148       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9149       hardcode_libdir_separator=:
9150       hardcode_direct=yes
9151
9152       # hardcode_minus_L: Not really in the search PATH,
9153       # but as the default location of the library.
9154       hardcode_minus_L=yes
9155       export_dynamic_flag_spec='${wl}-E'
9156       ;;
9157
9158     hpux10* | hpux11*)
9159       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9160         case "$host_cpu" in
9161         hppa*64*|ia64*)
9162           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         *)
9165           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166           ;;
9167         esac
9168       else
9169         case "$host_cpu" in
9170         hppa*64*|ia64*)
9171           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9172           ;;
9173         *)
9174           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175           ;;
9176         esac
9177       fi
9178       if test "$with_gnu_ld" = no; then
9179         case "$host_cpu" in
9180         hppa*64*)
9181           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9182           hardcode_libdir_flag_spec_ld='+b $libdir'
9183           hardcode_libdir_separator=:
9184           hardcode_direct=no
9185           hardcode_shlibpath_var=no
9186           ;;
9187         ia64*)
9188           hardcode_libdir_flag_spec='-L$libdir'
9189           hardcode_direct=no
9190           hardcode_shlibpath_var=no
9191
9192           # hardcode_minus_L: Not really in the search PATH,
9193           # but as the default location of the library.
9194           hardcode_minus_L=yes
9195           ;;
9196         *)
9197           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198           hardcode_libdir_separator=:
9199           hardcode_direct=yes
9200           export_dynamic_flag_spec='${wl}-E'
9201
9202           # hardcode_minus_L: Not really in the search PATH,
9203           # but as the default location of the library.
9204           hardcode_minus_L=yes
9205           ;;
9206         esac
9207       fi
9208       ;;
9209
9210     irix5* | irix6* | nonstopux*)
9211       if test "$GCC" = yes; then
9212         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'
9213       else
9214         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'
9215         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9216       fi
9217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218       hardcode_libdir_separator=:
9219       link_all_deplibs=yes
9220       ;;
9221
9222     netbsd*)
9223       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9224         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9225       else
9226         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9227       fi
9228       hardcode_libdir_flag_spec='-R$libdir'
9229       hardcode_direct=yes
9230       hardcode_shlibpath_var=no
9231       ;;
9232
9233     newsos6)
9234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235       hardcode_direct=yes
9236       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237       hardcode_libdir_separator=:
9238       hardcode_shlibpath_var=no
9239       ;;
9240
9241     openbsd*)
9242       hardcode_direct=yes
9243       hardcode_shlibpath_var=no
9244       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9246         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247         export_dynamic_flag_spec='${wl}-E'
9248       else
9249        case $host_os in
9250          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9251            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252            hardcode_libdir_flag_spec='-R$libdir'
9253            ;;
9254          *)
9255            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9256            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257            ;;
9258        esac
9259       fi
9260       ;;
9261
9262     os2*)
9263       hardcode_libdir_flag_spec='-L$libdir'
9264       hardcode_minus_L=yes
9265       allow_undefined_flag=unsupported
9266       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'
9267       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9268       ;;
9269
9270     osf3*)
9271       if test "$GCC" = yes; then
9272         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9273         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'
9274       else
9275         allow_undefined_flag=' -expect_unresolved \*'
9276         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'
9277       fi
9278       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9279       hardcode_libdir_separator=:
9280       ;;
9281
9282     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9283       if test "$GCC" = yes; then
9284         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9285         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'
9286         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287       else
9288         allow_undefined_flag=' -expect_unresolved \*'
9289         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'
9290         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9291         $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'
9292
9293         # Both c and cxx compiler support -rpath directly
9294         hardcode_libdir_flag_spec='-rpath $libdir'
9295       fi
9296       hardcode_libdir_separator=:
9297       ;;
9298
9299     sco3.2v5*)
9300       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9301       hardcode_shlibpath_var=no
9302       export_dynamic_flag_spec='${wl}-Bexport'
9303       runpath_var=LD_RUN_PATH
9304       hardcode_runpath_var=yes
9305       ;;
9306
9307     solaris*)
9308       no_undefined_flag=' -z text'
9309       if test "$GCC" = yes; then
9310         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9311         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9312           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9313       else
9314         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9316         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9317       fi
9318       hardcode_libdir_flag_spec='-R$libdir'
9319       hardcode_shlibpath_var=no
9320       case $host_os in
9321       solaris2.[0-5] | solaris2.[0-5].*) ;;
9322       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9323         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9324       esac
9325       link_all_deplibs=yes
9326       ;;
9327
9328     sunos4*)
9329       if test "x$host_vendor" = xsequent; then
9330         # Use $CC to link under sequent, because it throws in some extra .o
9331         # files that make .init and .fini sections work.
9332         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9333       else
9334         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9335       fi
9336       hardcode_libdir_flag_spec='-L$libdir'
9337       hardcode_direct=yes
9338       hardcode_minus_L=yes
9339       hardcode_shlibpath_var=no
9340       ;;
9341
9342     sysv4)
9343       case $host_vendor in
9344         sni)
9345           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346           hardcode_direct=yes # is this really true???
9347         ;;
9348         siemens)
9349           ## LD is ld it makes a PLAMLIB
9350           ## CC just makes a GrossModule.
9351           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9352           reload_cmds='$CC -r -o $output$reload_objs'
9353           hardcode_direct=no
9354         ;;
9355         motorola)
9356           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9358         ;;
9359       esac
9360       runpath_var='LD_RUN_PATH'
9361       hardcode_shlibpath_var=no
9362       ;;
9363
9364     sysv4.3*)
9365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366       hardcode_shlibpath_var=no
9367       export_dynamic_flag_spec='-Bexport'
9368       ;;
9369
9370     sysv4*MP*)
9371       if test -d /usr/nec; then
9372         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373         hardcode_shlibpath_var=no
9374         runpath_var=LD_RUN_PATH
9375         hardcode_runpath_var=yes
9376         ld_shlibs=yes
9377       fi
9378       ;;
9379
9380     sysv4.2uw2*)
9381       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9382       hardcode_direct=yes
9383       hardcode_minus_L=no
9384       hardcode_shlibpath_var=no
9385       hardcode_runpath_var=yes
9386       runpath_var=LD_RUN_PATH
9387       ;;
9388
9389    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9390       no_undefined_flag='${wl}-z ${wl}text'
9391       if test "$GCC" = yes; then
9392         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393       else
9394         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9395       fi
9396       runpath_var='LD_RUN_PATH'
9397       hardcode_shlibpath_var=no
9398       ;;
9399
9400     sysv5*)
9401       no_undefined_flag=' -z text'
9402       # $CC -shared without GNU ld will not create a library from C++
9403       # object files and a static libstdc++, better avoid it by now
9404       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9406                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9407       hardcode_libdir_flag_spec=
9408       hardcode_shlibpath_var=no
9409       runpath_var='LD_RUN_PATH'
9410       ;;
9411
9412     uts4*)
9413       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414       hardcode_libdir_flag_spec='-L$libdir'
9415       hardcode_shlibpath_var=no
9416       ;;
9417
9418     *)
9419       ld_shlibs=no
9420       ;;
9421     esac
9422   fi
9423
9424 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9425 echo "${ECHO_T}$ld_shlibs" >&6
9426 test "$ld_shlibs" = no && can_build_shared=no
9427
9428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9429 if test "$GCC" = yes; then
9430   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9431 fi
9432
9433 #
9434 # Do we need to explicitly link libc?
9435 #
9436 case "x$archive_cmds_need_lc" in
9437 x|xyes)
9438   # Assume -lc should be added
9439   archive_cmds_need_lc=yes
9440
9441   if test "$enable_shared" = yes && test "$GCC" = yes; then
9442     case $archive_cmds in
9443     *'~'*)
9444       # FIXME: we may have to deal with multi-command sequences.
9445       ;;
9446     '$CC '*)
9447       # Test whether the compiler implicitly links with -lc since on some
9448       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9449       # to ld, don't add -lc before -lgcc.
9450       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9451 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9452       $rm conftest*
9453       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9454
9455       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456   (eval $ac_compile) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } 2>conftest.err; then
9460         soname=conftest
9461         lib=conftest
9462         libobjs=conftest.$ac_objext
9463         deplibs=
9464         wl=$lt_prog_compiler_wl
9465         compiler_flags=-v
9466         linker_flags=-v
9467         verstring=
9468         output_objdir=.
9469         libname=conftest
9470         lt_save_allow_undefined_flag=$allow_undefined_flag
9471         allow_undefined_flag=
9472         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9473   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }
9477         then
9478           archive_cmds_need_lc=no
9479         else
9480           archive_cmds_need_lc=yes
9481         fi
9482         allow_undefined_flag=$lt_save_allow_undefined_flag
9483       else
9484         cat conftest.err 1>&5
9485       fi
9486       $rm conftest*
9487       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9488 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9489       ;;
9490     esac
9491   fi
9492   ;;
9493 esac
9494
9495 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9496 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9497 library_names_spec=
9498 libname_spec='lib$name'
9499 soname_spec=
9500 shrext_cmds=".so"
9501 postinstall_cmds=
9502 postuninstall_cmds=
9503 finish_cmds=
9504 finish_eval=
9505 shlibpath_var=
9506 shlibpath_overrides_runpath=unknown
9507 version_type=none
9508 dynamic_linker="$host_os ld.so"
9509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9510 if test "$GCC" = yes; then
9511   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9512   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9513     # if the path contains ";" then we assume it to be the separator
9514     # otherwise default to the standard path separator (i.e. ":") - it is
9515     # assumed that no part of a normal pathname contains ";" but that should
9516     # okay in the real world where ";" in dirpaths is itself problematic.
9517     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9518   else
9519     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9520   fi
9521 else
9522   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9523 fi
9524 need_lib_prefix=unknown
9525 hardcode_into_libs=no
9526
9527 # when you set need_version to no, make sure it does not cause -set_version
9528 # flags to be left without arguments
9529 need_version=unknown
9530
9531 case $host_os in
9532 aix3*)
9533   version_type=linux
9534   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9535   shlibpath_var=LIBPATH
9536
9537   # AIX 3 has no versioning support, so we append a major version to the name.
9538   soname_spec='${libname}${release}${shared_ext}$major'
9539   ;;
9540
9541 aix4* | aix5*)
9542   version_type=linux
9543   need_lib_prefix=no
9544   need_version=no
9545   hardcode_into_libs=yes
9546   if test "$host_cpu" = ia64; then
9547     # AIX 5 supports IA64
9548     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9549     shlibpath_var=LD_LIBRARY_PATH
9550   else
9551     # With GCC up to 2.95.x, collect2 would create an import file
9552     # for dependence libraries.  The import file would start with
9553     # the line `#! .'.  This would cause the generated library to
9554     # depend on `.', always an invalid library.  This was fixed in
9555     # development snapshots of GCC prior to 3.0.
9556     case $host_os in
9557       aix4 | aix4.[01] | aix4.[01].*)
9558       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9559            echo ' yes '
9560            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9561         :
9562       else
9563         can_build_shared=no
9564       fi
9565       ;;
9566     esac
9567     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9568     # soname into executable. Probably we can add versioning support to
9569     # collect2, so additional links can be useful in future.
9570     if test "$aix_use_runtimelinking" = yes; then
9571       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9572       # instead of lib<name>.a to let people know that these are not
9573       # typical AIX shared libraries.
9574       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575     else
9576       # We preserve .a as extension for shared libraries through AIX4.2
9577       # and later when we are not doing run time linking.
9578       library_names_spec='${libname}${release}.a $libname.a'
9579       soname_spec='${libname}${release}${shared_ext}$major'
9580     fi
9581     shlibpath_var=LIBPATH
9582   fi
9583   ;;
9584
9585 amigaos*)
9586   library_names_spec='$libname.ixlibrary $libname.a'
9587   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9588   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'
9589   ;;
9590
9591 beos*)
9592   library_names_spec='${libname}${shared_ext}'
9593   dynamic_linker="$host_os ld.so"
9594   shlibpath_var=LIBRARY_PATH
9595   ;;
9596
9597 bsdi4*)
9598   version_type=linux
9599   need_version=no
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601   soname_spec='${libname}${release}${shared_ext}$major'
9602   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9603   shlibpath_var=LD_LIBRARY_PATH
9604   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9605   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9606   # the default ld.so.conf also contains /usr/contrib/lib and
9607   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9608   # libtool to hard-code these into programs
9609   ;;
9610
9611 cygwin* | mingw* | pw32*)
9612   version_type=windows
9613   shrext_cmds=".dll"
9614   need_version=no
9615   need_lib_prefix=no
9616
9617   case $GCC,$host_os in
9618   yes,cygwin* | yes,mingw* | yes,pw32*)
9619     library_names_spec='$libname.dll.a'
9620     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9621     postinstall_cmds='base_file=`basename \${file}`~
9622       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9623       dldir=$destdir/`dirname \$dlpath`~
9624       test -d \$dldir || mkdir -p \$dldir~
9625       $install_prog $dir/$dlname \$dldir/$dlname'
9626     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9627       dlpath=$dir/\$dldll~
9628        $rm \$dlpath'
9629     shlibpath_overrides_runpath=yes
9630
9631     case $host_os in
9632     cygwin*)
9633       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9634       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9635       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9636       ;;
9637     mingw*)
9638       # MinGW DLLs use traditional 'lib' prefix
9639       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9640       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9641       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9642         # It is most probably a Windows format PATH printed by
9643         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9644         # path with ; separators, and with drive letters. We can handle the
9645         # drive letters (cygwin fileutils understands them), so leave them,
9646         # especially as we might pass files found there to a mingw objdump,
9647         # which wouldn't understand a cygwinified path. Ahh.
9648         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9649       else
9650         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9651       fi
9652       ;;
9653     pw32*)
9654       # pw32 DLLs use 'pw' prefix rather than 'lib'
9655       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9656       ;;
9657     esac
9658     ;;
9659
9660   *)
9661     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9662     ;;
9663   esac
9664   dynamic_linker='Win32 ld.exe'
9665   # FIXME: first we should search . and the directory the executable is in
9666   shlibpath_var=PATH
9667   ;;
9668
9669 darwin* | rhapsody*)
9670   dynamic_linker="$host_os dyld"
9671   version_type=darwin
9672   need_lib_prefix=no
9673   need_version=no
9674   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9675   soname_spec='${libname}${release}${major}$shared_ext'
9676   shlibpath_overrides_runpath=yes
9677   shlibpath_var=DYLD_LIBRARY_PATH
9678   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9679   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9680   if test "$GCC" = yes; then
9681     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"`
9682   else
9683     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9684   fi
9685   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9686   ;;
9687
9688 dgux*)
9689   version_type=linux
9690   need_lib_prefix=no
9691   need_version=no
9692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9693   soname_spec='${libname}${release}${shared_ext}$major'
9694   shlibpath_var=LD_LIBRARY_PATH
9695   ;;
9696
9697 freebsd1*)
9698   dynamic_linker=no
9699   ;;
9700
9701 kfreebsd*-gnu)
9702   version_type=linux
9703   need_lib_prefix=no
9704   need_version=no
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   shlibpath_overrides_runpath=no
9709   hardcode_into_libs=yes
9710   dynamic_linker='GNU ld.so'
9711   ;;
9712
9713 freebsd*)
9714   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9715   version_type=freebsd-$objformat
9716   case $version_type in
9717     freebsd-elf*)
9718       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9719       need_version=no
9720       need_lib_prefix=no
9721       ;;
9722     freebsd-*)
9723       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9724       need_version=yes
9725       ;;
9726   esac
9727   shlibpath_var=LD_LIBRARY_PATH
9728   case $host_os in
9729   freebsd2*)
9730     shlibpath_overrides_runpath=yes
9731     ;;
9732   freebsd3.01* | freebsdelf3.01*)
9733     shlibpath_overrides_runpath=yes
9734     hardcode_into_libs=yes
9735     ;;
9736   *) # from 3.2 on
9737     shlibpath_overrides_runpath=no
9738     hardcode_into_libs=yes
9739     ;;
9740   esac
9741   ;;
9742
9743 gnu*)
9744   version_type=linux
9745   need_lib_prefix=no
9746   need_version=no
9747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9748   soname_spec='${libname}${release}${shared_ext}$major'
9749   shlibpath_var=LD_LIBRARY_PATH
9750   hardcode_into_libs=yes
9751   ;;
9752
9753 hpux9* | hpux10* | hpux11*)
9754   # Give a soname corresponding to the major version so that dld.sl refuses to
9755   # link against other versions.
9756   version_type=sunos
9757   need_lib_prefix=no
9758   need_version=no
9759   case "$host_cpu" in
9760   ia64*)
9761     shrext_cmds='.so'
9762     hardcode_into_libs=yes
9763     dynamic_linker="$host_os dld.so"
9764     shlibpath_var=LD_LIBRARY_PATH
9765     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767     soname_spec='${libname}${release}${shared_ext}$major'
9768     if test "X$HPUX_IA64_MODE" = X32; then
9769       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9770     else
9771       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9772     fi
9773     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9774     ;;
9775    hppa*64*)
9776      shrext_cmds='.sl'
9777      hardcode_into_libs=yes
9778      dynamic_linker="$host_os dld.sl"
9779      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9780      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9781      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782      soname_spec='${libname}${release}${shared_ext}$major'
9783      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9784      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9785      ;;
9786    *)
9787     shrext_cmds='.sl'
9788     dynamic_linker="$host_os dld.sl"
9789     shlibpath_var=SHLIB_PATH
9790     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792     soname_spec='${libname}${release}${shared_ext}$major'
9793     ;;
9794   esac
9795   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9796   postinstall_cmds='chmod 555 $lib'
9797   ;;
9798
9799 irix5* | irix6* | nonstopux*)
9800   case $host_os in
9801     nonstopux*) version_type=nonstopux ;;
9802     *)
9803         if test "$lt_cv_prog_gnu_ld" = yes; then
9804                 version_type=linux
9805         else
9806                 version_type=irix
9807         fi ;;
9808   esac
9809   need_lib_prefix=no
9810   need_version=no
9811   soname_spec='${libname}${release}${shared_ext}$major'
9812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9813   case $host_os in
9814   irix5* | nonstopux*)
9815     libsuff= shlibsuff=
9816     ;;
9817   *)
9818     case $LD in # libtool.m4 will add one of these switches to LD
9819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9820       libsuff= shlibsuff= libmagic=32-bit;;
9821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9822       libsuff=32 shlibsuff=N32 libmagic=N32;;
9823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9825     *) libsuff= shlibsuff= libmagic=never-match;;
9826     esac
9827     ;;
9828   esac
9829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9830   shlibpath_overrides_runpath=no
9831   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9832   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9833   hardcode_into_libs=yes
9834   ;;
9835
9836 # No shared lib support for Linux oldld, aout, or coff.
9837 linux*oldld* | linux*aout* | linux*coff*)
9838   dynamic_linker=no
9839   ;;
9840
9841 # This must be Linux ELF.
9842 linux*)
9843   version_type=linux
9844   need_lib_prefix=no
9845   need_version=no
9846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847   soname_spec='${libname}${release}${shared_ext}$major'
9848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9849   shlibpath_var=LD_LIBRARY_PATH
9850   shlibpath_overrides_runpath=no
9851   # This implies no fast_install, which is unacceptable.
9852   # Some rework will be needed to allow for fast_install
9853   # before this can be enabled.
9854   hardcode_into_libs=yes
9855
9856   # find out which ABI we are using
9857   libsuff=
9858   case "$host_cpu" in
9859   x86_64*|s390x*|powerpc64*)
9860     echo '#line 9860 "configure"' > conftest.$ac_ext
9861     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862   (eval $ac_compile) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; then
9866       case `/usr/bin/file conftest.$ac_objext` in
9867       *64-bit*)
9868         libsuff=64
9869         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9870         ;;
9871       esac
9872     fi
9873     rm -rf conftest*
9874     ;;
9875   esac
9876
9877   # Append ld.so.conf contents to the search path
9878   if test -f /etc/ld.so.conf; then
9879     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9880     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9881   fi
9882
9883   # We used to test for /lib/ld.so.1 and disable shared libraries on
9884   # powerpc, because MkLinux only supported shared libraries with the
9885   # GNU dynamic linker.  Since this was broken with cross compilers,
9886   # most powerpc-linux boxes support dynamic linking these days and
9887   # people can always --disable-shared, the test was removed, and we
9888   # assume the GNU/Linux dynamic linker is in use.
9889   dynamic_linker='GNU/Linux ld.so'
9890   ;;
9891
9892 knetbsd*-gnu)
9893   version_type=linux
9894   need_lib_prefix=no
9895   need_version=no
9896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9897   soname_spec='${libname}${release}${shared_ext}$major'
9898   shlibpath_var=LD_LIBRARY_PATH
9899   shlibpath_overrides_runpath=no
9900   hardcode_into_libs=yes
9901   dynamic_linker='GNU ld.so'
9902   ;;
9903
9904 netbsd*)
9905   version_type=sunos
9906   need_lib_prefix=no
9907   need_version=no
9908   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9910     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9911     dynamic_linker='NetBSD (a.out) ld.so'
9912   else
9913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9914     soname_spec='${libname}${release}${shared_ext}$major'
9915     dynamic_linker='NetBSD ld.elf_so'
9916   fi
9917   shlibpath_var=LD_LIBRARY_PATH
9918   shlibpath_overrides_runpath=yes
9919   hardcode_into_libs=yes
9920   ;;
9921
9922 newsos6)
9923   version_type=linux
9924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   shlibpath_overrides_runpath=yes
9927   ;;
9928
9929 nto-qnx*)
9930   version_type=linux
9931   need_lib_prefix=no
9932   need_version=no
9933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934   soname_spec='${libname}${release}${shared_ext}$major'
9935   shlibpath_var=LD_LIBRARY_PATH
9936   shlibpath_overrides_runpath=yes
9937   ;;
9938
9939 openbsd*)
9940   version_type=sunos
9941   need_lib_prefix=no
9942   need_version=yes
9943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9944   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9945   shlibpath_var=LD_LIBRARY_PATH
9946   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9947     case $host_os in
9948       openbsd2.[89] | openbsd2.[89].*)
9949         shlibpath_overrides_runpath=no
9950         ;;
9951       *)
9952         shlibpath_overrides_runpath=yes
9953         ;;
9954       esac
9955   else
9956     shlibpath_overrides_runpath=yes
9957   fi
9958   ;;
9959
9960 os2*)
9961   libname_spec='$name'
9962   shrext_cmds=".dll"
9963   need_lib_prefix=no
9964   library_names_spec='$libname${shared_ext} $libname.a'
9965   dynamic_linker='OS/2 ld.exe'
9966   shlibpath_var=LIBPATH
9967   ;;
9968
9969 osf3* | osf4* | osf5*)
9970   version_type=osf
9971   need_lib_prefix=no
9972   need_version=no
9973   soname_spec='${libname}${release}${shared_ext}$major'
9974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975   shlibpath_var=LD_LIBRARY_PATH
9976   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9977   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9978   ;;
9979
9980 sco3.2v5*)
9981   version_type=osf
9982   soname_spec='${libname}${release}${shared_ext}$major'
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   ;;
9986
9987 solaris*)
9988   version_type=linux
9989   need_lib_prefix=no
9990   need_version=no
9991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992   soname_spec='${libname}${release}${shared_ext}$major'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   shlibpath_overrides_runpath=yes
9995   hardcode_into_libs=yes
9996   # ldd complains unless libraries are executable
9997   postinstall_cmds='chmod +x $lib'
9998   ;;
9999
10000 sunos4*)
10001   version_type=sunos
10002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10003   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10004   shlibpath_var=LD_LIBRARY_PATH
10005   shlibpath_overrides_runpath=yes
10006   if test "$with_gnu_ld" = yes; then
10007     need_lib_prefix=no
10008   fi
10009   need_version=yes
10010   ;;
10011
10012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10013   version_type=linux
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   case $host_vendor in
10018     sni)
10019       shlibpath_overrides_runpath=no
10020       need_lib_prefix=no
10021       export_dynamic_flag_spec='${wl}-Blargedynsym'
10022       runpath_var=LD_RUN_PATH
10023       ;;
10024     siemens)
10025       need_lib_prefix=no
10026       ;;
10027     motorola)
10028       need_lib_prefix=no
10029       need_version=no
10030       shlibpath_overrides_runpath=no
10031       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10032       ;;
10033   esac
10034   ;;
10035
10036 sysv4*MP*)
10037   if test -d /usr/nec ;then
10038     version_type=linux
10039     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10040     soname_spec='$libname${shared_ext}.$major'
10041     shlibpath_var=LD_LIBRARY_PATH
10042   fi
10043   ;;
10044
10045 uts4*)
10046   version_type=linux
10047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048   soname_spec='${libname}${release}${shared_ext}$major'
10049   shlibpath_var=LD_LIBRARY_PATH
10050   ;;
10051
10052 *)
10053   dynamic_linker=no
10054   ;;
10055 esac
10056 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10057 echo "${ECHO_T}$dynamic_linker" >&6
10058 test "$dynamic_linker" = no && can_build_shared=no
10059
10060 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10061 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10062 hardcode_action=
10063 if test -n "$hardcode_libdir_flag_spec" || \
10064    test -n "$runpath_var " || \
10065    test "X$hardcode_automatic"="Xyes" ; then
10066
10067   # We can hardcode non-existant directories.
10068   if test "$hardcode_direct" != no &&
10069      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10070      # have to relink, otherwise we might link with an installed library
10071      # when we should be linking with a yet-to-be-installed one
10072      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10073      test "$hardcode_minus_L" != no; then
10074     # Linking always hardcodes the temporary library directory.
10075     hardcode_action=relink
10076   else
10077     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10078     hardcode_action=immediate
10079   fi
10080 else
10081   # We cannot hardcode anything, or else we can only hardcode existing
10082   # directories.
10083   hardcode_action=unsupported
10084 fi
10085 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10086 echo "${ECHO_T}$hardcode_action" >&6
10087
10088 if test "$hardcode_action" = relink; then
10089   # Fast installation is not supported
10090   enable_fast_install=no
10091 elif test "$shlibpath_overrides_runpath" = yes ||
10092      test "$enable_shared" = no; then
10093   # Fast installation is not necessary
10094   enable_fast_install=needless
10095 fi
10096
10097 striplib=
10098 old_striplib=
10099 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10100 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10101 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10102   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10103   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10104   echo "$as_me:$LINENO: result: yes" >&5
10105 echo "${ECHO_T}yes" >&6
10106 else
10107 # FIXME - insert some real tests, host_os isn't really good enough
10108   case $host_os in
10109    darwin*)
10110        if test -n "$STRIP" ; then
10111          striplib="$STRIP -x"
10112          echo "$as_me:$LINENO: result: yes" >&5
10113 echo "${ECHO_T}yes" >&6
10114        else
10115   echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10117 fi
10118        ;;
10119    *)
10120   echo "$as_me:$LINENO: result: no" >&5
10121 echo "${ECHO_T}no" >&6
10122     ;;
10123   esac
10124 fi
10125
10126 if test "x$enable_dlopen" != xyes; then
10127   enable_dlopen=unknown
10128   enable_dlopen_self=unknown
10129   enable_dlopen_self_static=unknown
10130 else
10131   lt_cv_dlopen=no
10132   lt_cv_dlopen_libs=
10133
10134   case $host_os in
10135   beos*)
10136     lt_cv_dlopen="load_add_on"
10137     lt_cv_dlopen_libs=
10138     lt_cv_dlopen_self=yes
10139     ;;
10140
10141   mingw* | pw32*)
10142     lt_cv_dlopen="LoadLibrary"
10143     lt_cv_dlopen_libs=
10144    ;;
10145
10146   cygwin*)
10147     lt_cv_dlopen="dlopen"
10148     lt_cv_dlopen_libs=
10149    ;;
10150
10151   darwin*)
10152   # if libdl is installed we need to link against it
10153     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-ldl  $LIBS"
10160 cat >conftest.$ac_ext <<_ACEOF
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166
10167 /* Override any gcc2 internal prototype to avoid an error.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 /* We use char because int might match the return type of a gcc2
10172    builtin and then its argument prototype would still apply.  */
10173 char dlopen ();
10174 int
10175 main ()
10176 {
10177 dlopen ();
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184   (eval $ac_link) 2>conftest.er1
10185   ac_status=$?
10186   grep -v '^ *+' conftest.er1 >conftest.err
10187   rm -f conftest.er1
10188   cat conftest.err >&5
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); } &&
10191          { ac_try='test -z "$ac_c_werror_flag"
10192                          || test ! -s conftest.err'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; } &&
10198          { ac_try='test -s conftest$ac_exeext'
10199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200   (eval $ac_try) 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; }; then
10204   ac_cv_lib_dl_dlopen=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 ac_cv_lib_dl_dlopen=no
10210 fi
10211 rm -f conftest.err conftest.$ac_objext \
10212       conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10217 if test $ac_cv_lib_dl_dlopen = yes; then
10218   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10219 else
10220
10221     lt_cv_dlopen="dyld"
10222     lt_cv_dlopen_libs=
10223     lt_cv_dlopen_self=yes
10224
10225 fi
10226
10227    ;;
10228
10229   *)
10230     echo "$as_me:$LINENO: checking for shl_load" >&5
10231 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10232 if test "${ac_cv_func_shl_load+set}" = set; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10243 #define shl_load innocuous_shl_load
10244
10245 /* System header to define __stub macros and hopefully few prototypes,
10246     which can conflict with char shl_load (); below.
10247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248     <limits.h> exists even on freestanding compilers.  */
10249
10250 #ifdef __STDC__
10251 # include <limits.h>
10252 #else
10253 # include <assert.h>
10254 #endif
10255
10256 #undef shl_load
10257
10258 /* Override any gcc2 internal prototype to avoid an error.  */
10259 #ifdef __cplusplus
10260 extern "C"
10261 {
10262 #endif
10263 /* We use char because int might match the return type of a gcc2
10264    builtin and then its argument prototype would still apply.  */
10265 char shl_load ();
10266 /* The GNU C library defines this for functions which it implements
10267     to always fail with ENOSYS.  Some functions are actually named
10268     something starting with __ and the normal name is an alias.  */
10269 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10270 choke me
10271 #else
10272 char (*f) () = shl_load;
10273 #endif
10274 #ifdef __cplusplus
10275 }
10276 #endif
10277
10278 int
10279 main ()
10280 {
10281 return f != shl_load;
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288   (eval $ac_link) 2>conftest.er1
10289   ac_status=$?
10290   grep -v '^ *+' conftest.er1 >conftest.err
10291   rm -f conftest.er1
10292   cat conftest.err >&5
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } &&
10295          { ac_try='test -z "$ac_c_werror_flag"
10296                          || test ! -s conftest.err'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; } &&
10302          { ac_try='test -s conftest$ac_exeext'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   ac_cv_func_shl_load=yes
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313 ac_cv_func_shl_load=no
10314 fi
10315 rm -f conftest.err conftest.$ac_objext \
10316       conftest$ac_exeext conftest.$ac_ext
10317 fi
10318 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10319 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10320 if test $ac_cv_func_shl_load = yes; then
10321   lt_cv_dlopen="shl_load"
10322 else
10323   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10324 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10325 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   ac_check_lib_save_LIBS=$LIBS
10329 LIBS="-ldld  $LIBS"
10330 cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h.  */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h.  */
10336
10337 /* Override any gcc2 internal prototype to avoid an error.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 /* We use char because int might match the return type of a gcc2
10342    builtin and then its argument prototype would still apply.  */
10343 char shl_load ();
10344 int
10345 main ()
10346 {
10347 shl_load ();
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext conftest$ac_exeext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354   (eval $ac_link) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -z "$ac_c_werror_flag"
10362                          || test ! -s conftest.err'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; } &&
10368          { ac_try='test -s conftest$ac_exeext'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   ac_cv_lib_dld_shl_load=yes
10375 else
10376   echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 ac_cv_lib_dld_shl_load=no
10380 fi
10381 rm -f conftest.err conftest.$ac_objext \
10382       conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_lib_save_LIBS
10384 fi
10385 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10386 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10387 if test $ac_cv_lib_dld_shl_load = yes; then
10388   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10389 else
10390   echo "$as_me:$LINENO: checking for dlopen" >&5
10391 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10392 if test "${ac_cv_func_dlopen+set}" = set; then
10393   echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395   cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10403 #define dlopen innocuous_dlopen
10404
10405 /* System header to define __stub macros and hopefully few prototypes,
10406     which can conflict with char dlopen (); below.
10407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408     <limits.h> exists even on freestanding compilers.  */
10409
10410 #ifdef __STDC__
10411 # include <limits.h>
10412 #else
10413 # include <assert.h>
10414 #endif
10415
10416 #undef dlopen
10417
10418 /* Override any gcc2 internal prototype to avoid an error.  */
10419 #ifdef __cplusplus
10420 extern "C"
10421 {
10422 #endif
10423 /* We use char because int might match the return type of a gcc2
10424    builtin and then its argument prototype would still apply.  */
10425 char dlopen ();
10426 /* The GNU C library defines this for functions which it implements
10427     to always fail with ENOSYS.  Some functions are actually named
10428     something starting with __ and the normal name is an alias.  */
10429 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10430 choke me
10431 #else
10432 char (*f) () = dlopen;
10433 #endif
10434 #ifdef __cplusplus
10435 }
10436 #endif
10437
10438 int
10439 main ()
10440 {
10441 return f != dlopen;
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448   (eval $ac_link) 2>conftest.er1
10449   ac_status=$?
10450   grep -v '^ *+' conftest.er1 >conftest.err
10451   rm -f conftest.er1
10452   cat conftest.err >&5
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } &&
10455          { ac_try='test -z "$ac_c_werror_flag"
10456                          || test ! -s conftest.err'
10457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458   (eval $ac_try) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; } &&
10462          { ac_try='test -s conftest$ac_exeext'
10463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464   (eval $ac_try) 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; }; then
10468   ac_cv_func_dlopen=yes
10469 else
10470   echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 ac_cv_func_dlopen=no
10474 fi
10475 rm -f conftest.err conftest.$ac_objext \
10476       conftest$ac_exeext conftest.$ac_ext
10477 fi
10478 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10479 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10480 if test $ac_cv_func_dlopen = yes; then
10481   lt_cv_dlopen="dlopen"
10482 else
10483   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-ldl  $LIBS"
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h.  */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h.  */
10496
10497 /* Override any gcc2 internal prototype to avoid an error.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 /* We use char because int might match the return type of a gcc2
10502    builtin and then its argument prototype would still apply.  */
10503 char dlopen ();
10504 int
10505 main ()
10506 {
10507 dlopen ();
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514   (eval $ac_link) 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -z "$ac_c_werror_flag"
10522                          || test ! -s conftest.err'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest$ac_exeext'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; }; then
10534   ac_cv_lib_dl_dlopen=yes
10535 else
10536   echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 ac_cv_lib_dl_dlopen=no
10540 fi
10541 rm -f conftest.err conftest.$ac_objext \
10542       conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10544 fi
10545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10547 if test $ac_cv_lib_dl_dlopen = yes; then
10548   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10549 else
10550   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10551 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10552 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-lsvld  $LIBS"
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563
10564 /* Override any gcc2 internal prototype to avoid an error.  */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 /* We use char because int might match the return type of a gcc2
10569    builtin and then its argument prototype would still apply.  */
10570 char dlopen ();
10571 int
10572 main ()
10573 {
10574 dlopen ();
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581   (eval $ac_link) 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -z "$ac_c_werror_flag"
10589                          || test ! -s conftest.err'
10590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591   (eval $ac_try) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; } &&
10595          { ac_try='test -s conftest$ac_exeext'
10596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597   (eval $ac_try) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }; then
10601   ac_cv_lib_svld_dlopen=yes
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 ac_cv_lib_svld_dlopen=no
10607 fi
10608 rm -f conftest.err conftest.$ac_objext \
10609       conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10611 fi
10612 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10613 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10614 if test $ac_cv_lib_svld_dlopen = yes; then
10615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10616 else
10617   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10618 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10619 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622   ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-ldld  $LIBS"
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630
10631 /* Override any gcc2 internal prototype to avoid an error.  */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 /* We use char because int might match the return type of a gcc2
10636    builtin and then its argument prototype would still apply.  */
10637 char dld_link ();
10638 int
10639 main ()
10640 {
10641 dld_link ();
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648   (eval $ac_link) 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } &&
10655          { ac_try='test -z "$ac_c_werror_flag"
10656                          || test ! -s conftest.err'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; } &&
10662          { ac_try='test -s conftest$ac_exeext'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668   ac_cv_lib_dld_dld_link=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_cv_lib_dld_dld_link=no
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676       conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10678 fi
10679 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10680 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10681 if test $ac_cv_lib_dld_dld_link = yes; then
10682   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10683 fi
10684
10685
10686 fi
10687
10688
10689 fi
10690
10691
10692 fi
10693
10694
10695 fi
10696
10697
10698 fi
10699
10700     ;;
10701   esac
10702
10703   if test "x$lt_cv_dlopen" != xno; then
10704     enable_dlopen=yes
10705   else
10706     enable_dlopen=no
10707   fi
10708
10709   case $lt_cv_dlopen in
10710   dlopen)
10711     save_CPPFLAGS="$CPPFLAGS"
10712     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10713
10714     save_LDFLAGS="$LDFLAGS"
10715     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10716
10717     save_LIBS="$LIBS"
10718     LIBS="$lt_cv_dlopen_libs $LIBS"
10719
10720     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10721 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10722 if test "${lt_cv_dlopen_self+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725           if test "$cross_compiling" = yes; then :
10726   lt_cv_dlopen_self=cross
10727 else
10728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10729   lt_status=$lt_dlunknown
10730   cat > conftest.$ac_ext <<EOF
10731 #line 10731 "configure"
10732 #include "confdefs.h"
10733
10734 #if HAVE_DLFCN_H
10735 #include <dlfcn.h>
10736 #endif
10737
10738 #include <stdio.h>
10739
10740 #ifdef RTLD_GLOBAL
10741 #  define LT_DLGLOBAL           RTLD_GLOBAL
10742 #else
10743 #  ifdef DL_GLOBAL
10744 #    define LT_DLGLOBAL         DL_GLOBAL
10745 #  else
10746 #    define LT_DLGLOBAL         0
10747 #  endif
10748 #endif
10749
10750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10751    find out it does not work in some platform. */
10752 #ifndef LT_DLLAZY_OR_NOW
10753 #  ifdef RTLD_LAZY
10754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10755 #  else
10756 #    ifdef DL_LAZY
10757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10758 #    else
10759 #      ifdef RTLD_NOW
10760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10761 #      else
10762 #        ifdef DL_NOW
10763 #          define LT_DLLAZY_OR_NOW      DL_NOW
10764 #        else
10765 #          define LT_DLLAZY_OR_NOW      0
10766 #        endif
10767 #      endif
10768 #    endif
10769 #  endif
10770 #endif
10771
10772 #ifdef __cplusplus
10773 extern "C" void exit (int);
10774 #endif
10775
10776 void fnord() { int i=42;}
10777 int main ()
10778 {
10779   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10780   int status = $lt_dlunknown;
10781
10782   if (self)
10783     {
10784       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10785       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10786       /* dlclose (self); */
10787     }
10788
10789     exit (status);
10790 }
10791 EOF
10792   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793   (eval $ac_link) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10797     (./conftest; exit; ) 2>/dev/null
10798     lt_status=$?
10799     case x$lt_status in
10800       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10801       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10802       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10803     esac
10804   else :
10805     # compilation failed
10806     lt_cv_dlopen_self=no
10807   fi
10808 fi
10809 rm -fr conftest*
10810
10811
10812 fi
10813 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10814 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10815
10816     if test "x$lt_cv_dlopen_self" = xyes; then
10817       LDFLAGS="$LDFLAGS $link_static_flag"
10818       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10819 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10820 if test "${lt_cv_dlopen_self_static+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823           if test "$cross_compiling" = yes; then :
10824   lt_cv_dlopen_self_static=cross
10825 else
10826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10827   lt_status=$lt_dlunknown
10828   cat > conftest.$ac_ext <<EOF
10829 #line 10829 "configure"
10830 #include "confdefs.h"
10831
10832 #if HAVE_DLFCN_H
10833 #include <dlfcn.h>
10834 #endif
10835
10836 #include <stdio.h>
10837
10838 #ifdef RTLD_GLOBAL
10839 #  define LT_DLGLOBAL           RTLD_GLOBAL
10840 #else
10841 #  ifdef DL_GLOBAL
10842 #    define LT_DLGLOBAL         DL_GLOBAL
10843 #  else
10844 #    define LT_DLGLOBAL         0
10845 #  endif
10846 #endif
10847
10848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10849    find out it does not work in some platform. */
10850 #ifndef LT_DLLAZY_OR_NOW
10851 #  ifdef RTLD_LAZY
10852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10853 #  else
10854 #    ifdef DL_LAZY
10855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10856 #    else
10857 #      ifdef RTLD_NOW
10858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10859 #      else
10860 #        ifdef DL_NOW
10861 #          define LT_DLLAZY_OR_NOW      DL_NOW
10862 #        else
10863 #          define LT_DLLAZY_OR_NOW      0
10864 #        endif
10865 #      endif
10866 #    endif
10867 #  endif
10868 #endif
10869
10870 #ifdef __cplusplus
10871 extern "C" void exit (int);
10872 #endif
10873
10874 void fnord() { int i=42;}
10875 int main ()
10876 {
10877   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10878   int status = $lt_dlunknown;
10879
10880   if (self)
10881     {
10882       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10883       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10884       /* dlclose (self); */
10885     }
10886
10887     exit (status);
10888 }
10889 EOF
10890   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891   (eval $ac_link) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10895     (./conftest; exit; ) 2>/dev/null
10896     lt_status=$?
10897     case x$lt_status in
10898       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10899       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10900       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10901     esac
10902   else :
10903     # compilation failed
10904     lt_cv_dlopen_self_static=no
10905   fi
10906 fi
10907 rm -fr conftest*
10908
10909
10910 fi
10911 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10912 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10913     fi
10914
10915     CPPFLAGS="$save_CPPFLAGS"
10916     LDFLAGS="$save_LDFLAGS"
10917     LIBS="$save_LIBS"
10918     ;;
10919   esac
10920
10921   case $lt_cv_dlopen_self in
10922   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10923   *) enable_dlopen_self=unknown ;;
10924   esac
10925
10926   case $lt_cv_dlopen_self_static in
10927   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10928   *) enable_dlopen_self_static=unknown ;;
10929   esac
10930 fi
10931
10932
10933 # Report which librarie types wil actually be built
10934 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10935 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10936 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10937 echo "${ECHO_T}$can_build_shared" >&6
10938
10939 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10940 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10941 test "$can_build_shared" = "no" && enable_shared=no
10942
10943 # On AIX, shared libraries and static libraries use the same namespace, and
10944 # are all built from PIC.
10945 case "$host_os" in
10946 aix3*)
10947   test "$enable_shared" = yes && enable_static=no
10948   if test -n "$RANLIB"; then
10949     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10950     postinstall_cmds='$RANLIB $lib'
10951   fi
10952   ;;
10953
10954 aix4* | aix5*)
10955   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10956     test "$enable_shared" = yes && enable_static=no
10957   fi
10958   ;;
10959   darwin* | rhapsody*)
10960   if test "$GCC" = yes; then
10961     archive_cmds_need_lc=no
10962     case "$host_os" in
10963     rhapsody* | darwin1.[012])
10964       allow_undefined_flag='-undefined suppress'
10965       ;;
10966     *) # Darwin 1.3 on
10967       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10968         allow_undefined_flag='-flat_namespace -undefined suppress'
10969       else
10970         case ${MACOSX_DEPLOYMENT_TARGET} in
10971           10.[012])
10972             allow_undefined_flag='-flat_namespace -undefined suppress'
10973             ;;
10974           10.*)
10975             allow_undefined_flag='-undefined dynamic_lookup'
10976             ;;
10977         esac
10978       fi
10979       ;;
10980     esac
10981     output_verbose_link_cmd='echo'
10982     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10983     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10984     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10985     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}'
10986     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}'
10987     hardcode_direct=no
10988     hardcode_automatic=yes
10989     hardcode_shlibpath_var=unsupported
10990     whole_archive_flag_spec='-all_load $convenience'
10991     link_all_deplibs=yes
10992   else
10993     ld_shlibs=no
10994   fi
10995     ;;
10996 esac
10997 echo "$as_me:$LINENO: result: $enable_shared" >&5
10998 echo "${ECHO_T}$enable_shared" >&6
10999
11000 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11001 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11002 # Make sure either enable_shared or enable_static is yes.
11003 test "$enable_shared" = yes || enable_static=yes
11004 echo "$as_me:$LINENO: result: $enable_static" >&5
11005 echo "${ECHO_T}$enable_static" >&6
11006
11007 # The else clause should only fire when bootstrapping the
11008 # libtool distribution, otherwise you forgot to ship ltmain.sh
11009 # with your package, and you will get complaints that there are
11010 # no rules to generate ltmain.sh.
11011 if test -f "$ltmain"; then
11012   # See if we are running on zsh, and set the options which allow our commands through
11013   # without removal of \ escapes.
11014   if test -n "${ZSH_VERSION+set}" ; then
11015     setopt NO_GLOB_SUBST
11016   fi
11017   # Now quote all the things that may contain metacharacters while being
11018   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11019   # variables and quote the copies for generation of the libtool script.
11020   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11021     SED SHELL STRIP \
11022     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11023     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11024     deplibs_check_method reload_flag reload_cmds need_locks \
11025     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11026     lt_cv_sys_global_symbol_to_c_name_address \
11027     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11028     old_postinstall_cmds old_postuninstall_cmds \
11029     compiler \
11030     CC \
11031     LD \
11032     lt_prog_compiler_wl \
11033     lt_prog_compiler_pic \
11034     lt_prog_compiler_static \
11035     lt_prog_compiler_no_builtin_flag \
11036     export_dynamic_flag_spec \
11037     thread_safe_flag_spec \
11038     whole_archive_flag_spec \
11039     enable_shared_with_static_runtimes \
11040     old_archive_cmds \
11041     old_archive_from_new_cmds \
11042     predep_objects \
11043     postdep_objects \
11044     predeps \
11045     postdeps \
11046     compiler_lib_search_path \
11047     archive_cmds \
11048     archive_expsym_cmds \
11049     postinstall_cmds \
11050     postuninstall_cmds \
11051     old_archive_from_expsyms_cmds \
11052     allow_undefined_flag \
11053     no_undefined_flag \
11054     export_symbols_cmds \
11055     hardcode_libdir_flag_spec \
11056     hardcode_libdir_flag_spec_ld \
11057     hardcode_libdir_separator \
11058     hardcode_automatic \
11059     module_cmds \
11060     module_expsym_cmds \
11061     lt_cv_prog_compiler_c_o \
11062     exclude_expsyms \
11063     include_expsyms; do
11064
11065     case $var in
11066     old_archive_cmds | \
11067     old_archive_from_new_cmds | \
11068     archive_cmds | \
11069     archive_expsym_cmds | \
11070     module_cmds | \
11071     module_expsym_cmds | \
11072     old_archive_from_expsyms_cmds | \
11073     export_symbols_cmds | \
11074     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11075     postinstall_cmds | postuninstall_cmds | \
11076     old_postinstall_cmds | old_postuninstall_cmds | \
11077     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11078       # Double-quote double-evaled strings.
11079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11080       ;;
11081     *)
11082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11083       ;;
11084     esac
11085   done
11086
11087   case $lt_echo in
11088   *'\$0 --fallback-echo"')
11089     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11090     ;;
11091   esac
11092
11093 cfgfile="${ofile}T"
11094   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11095   $rm -f "$cfgfile"
11096   { echo "$as_me:$LINENO: creating $ofile" >&5
11097 echo "$as_me: creating $ofile" >&6;}
11098
11099   cat <<__EOF__ >> "$cfgfile"
11100 #! $SHELL
11101
11102 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11103 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11104 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11105 #
11106 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11107 # Free Software Foundation, Inc.
11108 #
11109 # This file is part of GNU Libtool:
11110 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11111 #
11112 # This program is free software; you can redistribute it and/or modify
11113 # it under the terms of the GNU General Public License as published by
11114 # the Free Software Foundation; either version 2 of the License, or
11115 # (at your option) any later version.
11116 #
11117 # This program is distributed in the hope that it will be useful, but
11118 # WITHOUT ANY WARRANTY; without even the implied warranty of
11119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11120 # General Public License for more details.
11121 #
11122 # You should have received a copy of the GNU General Public License
11123 # along with this program; if not, write to the Free Software
11124 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11125 #
11126 # As a special exception to the GNU General Public License, if you
11127 # distribute this file as part of a program that contains a
11128 # configuration script generated by Autoconf, you may include it under
11129 # the same distribution terms that you use for the rest of that program.
11130
11131 # A sed program that does not truncate output.
11132 SED=$lt_SED
11133
11134 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11135 Xsed="$SED -e s/^X//"
11136
11137 # The HP-UX ksh and POSIX shell print the target directory to stdout
11138 # if CDPATH is set.
11139 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11140
11141 # The names of the tagged configurations supported by this script.
11142 available_tags=
11143
11144 # ### BEGIN LIBTOOL CONFIG
11145
11146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11147
11148 # Shell to use when invoking shell scripts.
11149 SHELL=$lt_SHELL
11150
11151 # Whether or not to build shared libraries.
11152 build_libtool_libs=$enable_shared
11153
11154 # Whether or not to build static libraries.
11155 build_old_libs=$enable_static
11156
11157 # Whether or not to add -lc for building shared libraries.
11158 build_libtool_need_lc=$archive_cmds_need_lc
11159
11160 # Whether or not to disallow shared libs when runtime libs are static
11161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11162
11163 # Whether or not to optimize for fast installation.
11164 fast_install=$enable_fast_install
11165
11166 # The host system.
11167 host_alias=$host_alias
11168 host=$host
11169
11170 # An echo program that does not interpret backslashes.
11171 echo=$lt_echo
11172
11173 # The archiver.
11174 AR=$lt_AR
11175 AR_FLAGS=$lt_AR_FLAGS
11176
11177 # A C compiler.
11178 LTCC=$lt_LTCC
11179
11180 # A language-specific compiler.
11181 CC=$lt_compiler
11182
11183 # Is the compiler the GNU C compiler?
11184 with_gcc=$GCC
11185
11186 # An ERE matcher.
11187 EGREP=$lt_EGREP
11188
11189 # The linker used to build libraries.
11190 LD=$lt_LD
11191
11192 # Whether we need hard or soft links.
11193 LN_S=$lt_LN_S
11194
11195 # A BSD-compatible nm program.
11196 NM=$lt_NM
11197
11198 # A symbol stripping program
11199 STRIP=$lt_STRIP
11200
11201 # Used to examine libraries when file_magic_cmd begins "file"
11202 MAGIC_CMD=$MAGIC_CMD
11203
11204 # Used on cygwin: DLL creation program.
11205 DLLTOOL="$DLLTOOL"
11206
11207 # Used on cygwin: object dumper.
11208 OBJDUMP="$OBJDUMP"
11209
11210 # Used on cygwin: assembler.
11211 AS="$AS"
11212
11213 # The name of the directory that contains temporary libtool files.
11214 objdir=$objdir
11215
11216 # How to create reloadable object files.
11217 reload_flag=$lt_reload_flag
11218 reload_cmds=$lt_reload_cmds
11219
11220 # How to pass a linker flag through the compiler.
11221 wl=$lt_lt_prog_compiler_wl
11222
11223 # Object file suffix (normally "o").
11224 objext="$ac_objext"
11225
11226 # Old archive suffix (normally "a").
11227 libext="$libext"
11228
11229 # Shared library suffix (normally ".so").
11230 shrext_cmds='$shrext_cmds'
11231
11232 # Executable file suffix (normally "").
11233 exeext="$exeext"
11234
11235 # Additional compiler flags for building library objects.
11236 pic_flag=$lt_lt_prog_compiler_pic
11237 pic_mode=$pic_mode
11238
11239 # What is the maximum length of a command?
11240 max_cmd_len=$lt_cv_sys_max_cmd_len
11241
11242 # Does compiler simultaneously support -c and -o options?
11243 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11244
11245 # Must we lock files when doing compilation ?
11246 need_locks=$lt_need_locks
11247
11248 # Do we need the lib prefix for modules?
11249 need_lib_prefix=$need_lib_prefix
11250
11251 # Do we need a version for libraries?
11252 need_version=$need_version
11253
11254 # Whether dlopen is supported.
11255 dlopen_support=$enable_dlopen
11256
11257 # Whether dlopen of programs is supported.
11258 dlopen_self=$enable_dlopen_self
11259
11260 # Whether dlopen of statically linked programs is supported.
11261 dlopen_self_static=$enable_dlopen_self_static
11262
11263 # Compiler flag to prevent dynamic linking.
11264 link_static_flag=$lt_lt_prog_compiler_static
11265
11266 # Compiler flag to turn off builtin functions.
11267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11268
11269 # Compiler flag to allow reflexive dlopens.
11270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11271
11272 # Compiler flag to generate shared objects directly from archives.
11273 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11274
11275 # Compiler flag to generate thread-safe objects.
11276 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11277
11278 # Library versioning type.
11279 version_type=$version_type
11280
11281 # Format of library name prefix.
11282 libname_spec=$lt_libname_spec
11283
11284 # List of archive names.  First name is the real one, the rest are links.
11285 # The last name is the one that the linker finds with -lNAME.
11286 library_names_spec=$lt_library_names_spec
11287
11288 # The coded name of the library, if different from the real name.
11289 soname_spec=$lt_soname_spec
11290
11291 # Commands used to build and install an old-style archive.
11292 RANLIB=$lt_RANLIB
11293 old_archive_cmds=$lt_old_archive_cmds
11294 old_postinstall_cmds=$lt_old_postinstall_cmds
11295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11296
11297 # Create an old-style archive from a shared archive.
11298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11299
11300 # Create a temporary old-style archive to link instead of a shared archive.
11301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11302
11303 # Commands used to build and install a shared archive.
11304 archive_cmds=$lt_archive_cmds
11305 archive_expsym_cmds=$lt_archive_expsym_cmds
11306 postinstall_cmds=$lt_postinstall_cmds
11307 postuninstall_cmds=$lt_postuninstall_cmds
11308
11309 # Commands used to build a loadable module (assumed same as above if empty)
11310 module_cmds=$lt_module_cmds
11311 module_expsym_cmds=$lt_module_expsym_cmds
11312
11313 # Commands to strip libraries.
11314 old_striplib=$lt_old_striplib
11315 striplib=$lt_striplib
11316
11317 # Dependencies to place before the objects being linked to create a
11318 # shared library.
11319 predep_objects=$lt_predep_objects
11320
11321 # Dependencies to place after the objects being linked to create a
11322 # shared library.
11323 postdep_objects=$lt_postdep_objects
11324
11325 # Dependencies to place before the objects being linked to create a
11326 # shared library.
11327 predeps=$lt_predeps
11328
11329 # Dependencies to place after the objects being linked to create a
11330 # shared library.
11331 postdeps=$lt_postdeps
11332
11333 # The library search path used internally by the compiler when linking
11334 # a shared library.
11335 compiler_lib_search_path=$lt_compiler_lib_search_path
11336
11337 # Method to check whether dependent libraries are shared objects.
11338 deplibs_check_method=$lt_deplibs_check_method
11339
11340 # Command to use when deplibs_check_method == file_magic.
11341 file_magic_cmd=$lt_file_magic_cmd
11342
11343 # Flag that allows shared libraries with undefined symbols to be built.
11344 allow_undefined_flag=$lt_allow_undefined_flag
11345
11346 # Flag that forces no undefined symbols.
11347 no_undefined_flag=$lt_no_undefined_flag
11348
11349 # Commands used to finish a libtool library installation in a directory.
11350 finish_cmds=$lt_finish_cmds
11351
11352 # Same as above, but a single script fragment to be evaled but not shown.
11353 finish_eval=$lt_finish_eval
11354
11355 # Take the output of nm and produce a listing of raw symbols and C names.
11356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11357
11358 # Transform the output of nm in a proper C declaration
11359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11360
11361 # Transform the output of nm in a C name address pair
11362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11363
11364 # This is the shared library runtime path variable.
11365 runpath_var=$runpath_var
11366
11367 # This is the shared library path variable.
11368 shlibpath_var=$shlibpath_var
11369
11370 # Is shlibpath searched before the hard-coded library search path?
11371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11372
11373 # How to hardcode a shared library path into an executable.
11374 hardcode_action=$hardcode_action
11375
11376 # Whether we should hardcode library paths into libraries.
11377 hardcode_into_libs=$hardcode_into_libs
11378
11379 # Flag to hardcode \$libdir into a binary during linking.
11380 # This must work even if \$libdir does not exist.
11381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11382
11383 # If ld is used when linking, flag to hardcode \$libdir into
11384 # a binary during linking. This must work even if \$libdir does
11385 # not exist.
11386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11387
11388 # Whether we need a single -rpath flag with a separated argument.
11389 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11390
11391 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11392 # resulting binary.
11393 hardcode_direct=$hardcode_direct
11394
11395 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11396 # resulting binary.
11397 hardcode_minus_L=$hardcode_minus_L
11398
11399 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11400 # the resulting binary.
11401 hardcode_shlibpath_var=$hardcode_shlibpath_var
11402
11403 # Set to yes if building a shared library automatically hardcodes DIR into the library
11404 # and all subsequent libraries and executables linked against it.
11405 hardcode_automatic=$hardcode_automatic
11406
11407 # Variables whose values should be saved in libtool wrapper scripts and
11408 # restored at relink time.
11409 variables_saved_for_relink="$variables_saved_for_relink"
11410
11411 # Whether libtool must link a program against all its dependency libraries.
11412 link_all_deplibs=$link_all_deplibs
11413
11414 # Compile-time system search path for libraries
11415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11416
11417 # Run-time system search path for libraries
11418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11419
11420 # Fix the shell variable \$srcfile for the compiler.
11421 fix_srcfile_path="$fix_srcfile_path"
11422
11423 # Set to yes if exported symbols are required.
11424 always_export_symbols=$always_export_symbols
11425
11426 # The commands to list exported symbols.
11427 export_symbols_cmds=$lt_export_symbols_cmds
11428
11429 # The commands to extract the exported symbol list from a shared archive.
11430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11431
11432 # Symbols that should not be listed in the preloaded symbols.
11433 exclude_expsyms=$lt_exclude_expsyms
11434
11435 # Symbols that must always be exported.
11436 include_expsyms=$lt_include_expsyms
11437
11438 # ### END LIBTOOL CONFIG
11439
11440 __EOF__
11441
11442
11443   case $host_os in
11444   aix3*)
11445     cat <<\EOF >> "$cfgfile"
11446
11447 # AIX sometimes has problems with the GCC collect2 program.  For some
11448 # reason, if we set the COLLECT_NAMES environment variable, the problems
11449 # vanish in a puff of smoke.
11450 if test "X${COLLECT_NAMES+set}" != Xset; then
11451   COLLECT_NAMES=
11452   export COLLECT_NAMES
11453 fi
11454 EOF
11455     ;;
11456   esac
11457
11458   # We use sed instead of cat because bash on DJGPP gets confused if
11459   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11460   # text mode, it properly converts lines to CR/LF.  This bash problem
11461   # is reportedly fixed, but why not run on old versions too?
11462   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11463
11464   mv -f "$cfgfile" "$ofile" || \
11465     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11466   chmod +x "$ofile"
11467
11468 else
11469   # If there is no Makefile yet, we rely on a make rule to execute
11470   # `config.status --recheck' to rerun these tests and create the
11471   # libtool script then.
11472   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11473   if test -f "$ltmain_in"; then
11474     test -f Makefile && make "$ltmain"
11475   fi
11476 fi
11477
11478
11479 ac_ext=c
11480 ac_cpp='$CPP $CPPFLAGS'
11481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11484
11485 CC="$lt_save_CC"
11486
11487
11488 # Check whether --with-tags or --without-tags was given.
11489 if test "${with_tags+set}" = set; then
11490   withval="$with_tags"
11491   tagnames="$withval"
11492 fi;
11493
11494 if test -f "$ltmain" && test -n "$tagnames"; then
11495   if test ! -f "${ofile}"; then
11496     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11497 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11498   fi
11499
11500   if test -z "$LTCC"; then
11501     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11502     if test -z "$LTCC"; then
11503       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11504 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11505     else
11506       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11507 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11508     fi
11509   fi
11510
11511   # Extract list of available tagged configurations in $ofile.
11512   # Note that this assumes the entire list is on one line.
11513   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11514
11515   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11516   for tagname in $tagnames; do
11517     IFS="$lt_save_ifs"
11518     # Check whether tagname contains only valid characters
11519     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11520     "") ;;
11521     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11522 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11523    { (exit 1); exit 1; }; }
11524         ;;
11525     esac
11526
11527     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11528     then
11529       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11530 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11531    { (exit 1); exit 1; }; }
11532     fi
11533
11534     # Update the list of available tags.
11535     if test -n "$tagname"; then
11536       echo appending configuration tag \"$tagname\" to $ofile
11537
11538       case $tagname in
11539       CXX)
11540         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11541           ac_ext=cc
11542 ac_cpp='$CXXCPP $CPPFLAGS'
11543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11546
11547
11548
11549
11550 archive_cmds_need_lc_CXX=no
11551 allow_undefined_flag_CXX=
11552 always_export_symbols_CXX=no
11553 archive_expsym_cmds_CXX=
11554 export_dynamic_flag_spec_CXX=
11555 hardcode_direct_CXX=no
11556 hardcode_libdir_flag_spec_CXX=
11557 hardcode_libdir_flag_spec_ld_CXX=
11558 hardcode_libdir_separator_CXX=
11559 hardcode_minus_L_CXX=no
11560 hardcode_automatic_CXX=no
11561 module_cmds_CXX=
11562 module_expsym_cmds_CXX=
11563 link_all_deplibs_CXX=unknown
11564 old_archive_cmds_CXX=$old_archive_cmds
11565 no_undefined_flag_CXX=
11566 whole_archive_flag_spec_CXX=
11567 enable_shared_with_static_runtimes_CXX=no
11568
11569 # Dependencies to place before and after the object being linked:
11570 predep_objects_CXX=
11571 postdep_objects_CXX=
11572 predeps_CXX=
11573 postdeps_CXX=
11574 compiler_lib_search_path_CXX=
11575
11576 # Source file extension for C++ test sources.
11577 ac_ext=cc
11578
11579 # Object file extension for compiled C++ test sources.
11580 objext=o
11581 objext_CXX=$objext
11582
11583 # Code to be used in simple compile tests
11584 lt_simple_compile_test_code="int some_variable = 0;\n"
11585
11586 # Code to be used in simple link tests
11587 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11588
11589 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11590
11591 # If no C compiler was specified, use CC.
11592 LTCC=${LTCC-"$CC"}
11593
11594 # Allow CC to be a program name with arguments.
11595 compiler=$CC
11596
11597
11598 # Allow CC to be a program name with arguments.
11599 lt_save_CC=$CC
11600 lt_save_LD=$LD
11601 lt_save_GCC=$GCC
11602 GCC=$GXX
11603 lt_save_with_gnu_ld=$with_gnu_ld
11604 lt_save_path_LD=$lt_cv_path_LD
11605 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11606   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11607 else
11608   unset lt_cv_prog_gnu_ld
11609 fi
11610 if test -n "${lt_cv_path_LDCXX+set}"; then
11611   lt_cv_path_LD=$lt_cv_path_LDCXX
11612 else
11613   unset lt_cv_path_LD
11614 fi
11615 test -z "${LDCXX+set}" || LD=$LDCXX
11616 CC=${CXX-"c++"}
11617 compiler=$CC
11618 compiler_CXX=$CC
11619 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11620
11621 # We don't want -fno-exception wen compiling C++ code, so set the
11622 # no_builtin_flag separately
11623 if test "$GXX" = yes; then
11624   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11625 else
11626   lt_prog_compiler_no_builtin_flag_CXX=
11627 fi
11628
11629 if test "$GXX" = yes; then
11630   # Set up default GNU C++ configuration
11631
11632
11633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11634 if test "${with_gnu_ld+set}" = set; then
11635   withval="$with_gnu_ld"
11636   test "$withval" = no || with_gnu_ld=yes
11637 else
11638   with_gnu_ld=no
11639 fi;
11640 ac_prog=ld
11641 if test "$GCC" = yes; then
11642   # Check if gcc -print-prog-name=ld gives a path.
11643   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11644 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11645   case $host in
11646   *-*-mingw*)
11647     # gcc leaves a trailing carriage return which upsets mingw
11648     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11649   *)
11650     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11651   esac
11652   case $ac_prog in
11653     # Accept absolute paths.
11654     [\\/]* | ?:[\\/]*)
11655       re_direlt='/[^/][^/]*/\.\./'
11656       # Canonicalize the pathname of ld
11657       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11658       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11659         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11660       done
11661       test -z "$LD" && LD="$ac_prog"
11662       ;;
11663   "")
11664     # If it fails, then pretend we aren't using GCC.
11665     ac_prog=ld
11666     ;;
11667   *)
11668     # If it is relative, then search for the first ld in PATH.
11669     with_gnu_ld=unknown
11670     ;;
11671   esac
11672 elif test "$with_gnu_ld" = yes; then
11673   echo "$as_me:$LINENO: checking for GNU ld" >&5
11674 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11675 else
11676   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11677 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11678 fi
11679 if test "${lt_cv_path_LD+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   if test -z "$LD"; then
11683   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11684   for ac_dir in $PATH; do
11685     IFS="$lt_save_ifs"
11686     test -z "$ac_dir" && ac_dir=.
11687     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11688       lt_cv_path_LD="$ac_dir/$ac_prog"
11689       # Check to see if the program is GNU ld.  I'd rather use --version,
11690       # but apparently some GNU ld's only accept -v.
11691       # Break only if it was the GNU/non-GNU ld that we prefer.
11692       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11693       *GNU* | *'with BFD'*)
11694         test "$with_gnu_ld" != no && break
11695         ;;
11696       *)
11697         test "$with_gnu_ld" != yes && break
11698         ;;
11699       esac
11700     fi
11701   done
11702   IFS="$lt_save_ifs"
11703 else
11704   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11705 fi
11706 fi
11707
11708 LD="$lt_cv_path_LD"
11709 if test -n "$LD"; then
11710   echo "$as_me:$LINENO: result: $LD" >&5
11711 echo "${ECHO_T}$LD" >&6
11712 else
11713   echo "$as_me:$LINENO: result: no" >&5
11714 echo "${ECHO_T}no" >&6
11715 fi
11716 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11717 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11718    { (exit 1); exit 1; }; }
11719 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11720 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11721 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11725 case `$LD -v 2>&1 </dev/null` in
11726 *GNU* | *'with BFD'*)
11727   lt_cv_prog_gnu_ld=yes
11728   ;;
11729 *)
11730   lt_cv_prog_gnu_ld=no
11731   ;;
11732 esac
11733 fi
11734 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11735 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11736 with_gnu_ld=$lt_cv_prog_gnu_ld
11737
11738
11739
11740   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11741   # archiving commands below assume that GNU ld is being used.
11742   if test "$with_gnu_ld" = yes; then
11743     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11744     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'
11745
11746     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11747     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11748
11749     # If archive_cmds runs LD, not CC, wlarc should be empty
11750     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11751     #     investigate it a little bit more. (MM)
11752     wlarc='${wl}'
11753
11754     # ancient GNU ld didn't support --whole-archive et. al.
11755     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11756         grep 'no-whole-archive' > /dev/null; then
11757       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11758     else
11759       whole_archive_flag_spec_CXX=
11760     fi
11761   else
11762     with_gnu_ld=no
11763     wlarc=
11764
11765     # A generic and very simple default shared library creation
11766     # command for GNU C++ for the case where it uses the native
11767     # linker, instead of GNU ld.  If possible, this setting should
11768     # overridden to take advantage of the native linker features on
11769     # the platform it is being used on.
11770     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11771   fi
11772
11773   # Commands to make compiler produce verbose output that lists
11774   # what "hidden" libraries, object files and flags are used when
11775   # linking a shared library.
11776   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11777
11778 else
11779   GXX=no
11780   with_gnu_ld=no
11781   wlarc=
11782 fi
11783
11784 # PORTME: fill in a description of your system's C++ link characteristics
11785 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11786 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11787 ld_shlibs_CXX=yes
11788 case $host_os in
11789   aix3*)
11790     # FIXME: insert proper C++ library support
11791     ld_shlibs_CXX=no
11792     ;;
11793   aix4* | aix5*)
11794     if test "$host_cpu" = ia64; then
11795       # On IA64, the linker does run time linking by default, so we don't
11796       # have to do anything special.
11797       aix_use_runtimelinking=no
11798       exp_sym_flag='-Bexport'
11799       no_entry_flag=""
11800     else
11801       aix_use_runtimelinking=no
11802
11803       # Test if we are trying to use run time linking or normal
11804       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11805       # need to do runtime linking.
11806       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11807         for ld_flag in $LDFLAGS; do
11808           case $ld_flag in
11809           *-brtl*)
11810             aix_use_runtimelinking=yes
11811             break
11812             ;;
11813           esac
11814         done
11815       esac
11816
11817       exp_sym_flag='-bexport'
11818       no_entry_flag='-bnoentry'
11819     fi
11820
11821     # When large executables or shared objects are built, AIX ld can
11822     # have problems creating the table of contents.  If linking a library
11823     # or program results in "error TOC overflow" add -mminimal-toc to
11824     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11825     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11826
11827     archive_cmds_CXX=''
11828     hardcode_direct_CXX=yes
11829     hardcode_libdir_separator_CXX=':'
11830     link_all_deplibs_CXX=yes
11831
11832     if test "$GXX" = yes; then
11833       case $host_os in aix4.012|aix4.012.*)
11834       # We only want to do this on AIX 4.2 and lower, the check
11835       # below for broken collect2 doesn't work under 4.3+
11836         collect2name=`${CC} -print-prog-name=collect2`
11837         if test -f "$collect2name" && \
11838            strings "$collect2name" | grep resolve_lib_name >/dev/null
11839         then
11840           # We have reworked collect2
11841           hardcode_direct_CXX=yes
11842         else
11843           # We have old collect2
11844           hardcode_direct_CXX=unsupported
11845           # It fails to find uninstalled libraries when the uninstalled
11846           # path is not listed in the libpath.  Setting hardcode_minus_L
11847           # to unsupported forces relinking
11848           hardcode_minus_L_CXX=yes
11849           hardcode_libdir_flag_spec_CXX='-L$libdir'
11850           hardcode_libdir_separator_CXX=
11851         fi
11852       esac
11853       shared_flag='-shared'
11854     else
11855       # not using gcc
11856       if test "$host_cpu" = ia64; then
11857         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11858         # chokes on -Wl,-G. The following line is correct:
11859         shared_flag='-G'
11860       else
11861         if test "$aix_use_runtimelinking" = yes; then
11862           shared_flag='${wl}-G'
11863         else
11864           shared_flag='${wl}-bM:SRE'
11865         fi
11866       fi
11867     fi
11868
11869     # It seems that -bexpall does not export symbols beginning with
11870     # underscore (_), so it is better to generate a list of symbols to export.
11871     always_export_symbols_CXX=yes
11872     if test "$aix_use_runtimelinking" = yes; then
11873       # Warning - without using the other runtime loading flags (-brtl),
11874       # -berok will link without error, but may produce a broken library.
11875       allow_undefined_flag_CXX='-berok'
11876       # Determine the default libpath from the value encoded in an empty executable.
11877       cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883
11884 int
11885 main ()
11886 {
11887
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } &&
11901          { ac_try='test -z "$ac_cxx_werror_flag"
11902                          || test ! -s conftest.err'
11903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904   (eval $ac_try) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest$ac_exeext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914
11915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11916 }'`
11917 # Check for a 64-bit object if we didn't find anything.
11918 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; }
11919 }'`; fi
11920 else
11921   echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 fi
11925 rm -f conftest.err conftest.$ac_objext \
11926       conftest$ac_exeext conftest.$ac_ext
11927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11928
11929       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11930
11931       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"
11932      else
11933       if test "$host_cpu" = ia64; then
11934         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11935         allow_undefined_flag_CXX="-z nodefs"
11936         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"
11937       else
11938         # Determine the default libpath from the value encoded in an empty executable.
11939         cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945
11946 int
11947 main ()
11948 {
11949
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11956   (eval $ac_link) 2>conftest.er1
11957   ac_status=$?
11958   grep -v '^ *+' conftest.er1 >conftest.err
11959   rm -f conftest.er1
11960   cat conftest.err >&5
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); } &&
11963          { ac_try='test -z "$ac_cxx_werror_flag"
11964                          || test ! -s conftest.err'
11965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966   (eval $ac_try) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; } &&
11970          { ac_try='test -s conftest$ac_exeext'
11971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972   (eval $ac_try) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976
11977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11978 }'`
11979 # Check for a 64-bit object if we didn't find anything.
11980 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; }
11981 }'`; fi
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 fi
11987 rm -f conftest.err conftest.$ac_objext \
11988       conftest$ac_exeext conftest.$ac_ext
11989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11990
11991         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11992         # Warning - without using the other run time loading flags,
11993         # -berok will link without error, but may produce a broken library.
11994         no_undefined_flag_CXX=' ${wl}-bernotok'
11995         allow_undefined_flag_CXX=' ${wl}-berok'
11996         # -bexpall does not export symbols beginning with underscore (_)
11997         always_export_symbols_CXX=yes
11998         # Exported symbols can be pulled into shared objects from archives
11999         whole_archive_flag_spec_CXX=' '
12000         archive_cmds_need_lc_CXX=yes
12001         # This is similar to how AIX traditionally builds it's shared libraries.
12002         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'
12003       fi
12004     fi
12005     ;;
12006   chorus*)
12007     case $cc_basename in
12008       *)
12009         # FIXME: insert proper C++ library support
12010         ld_shlibs_CXX=no
12011         ;;
12012     esac
12013     ;;
12014
12015   cygwin* | mingw* | pw32*)
12016     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12017     # as there is no search path for DLLs.
12018     hardcode_libdir_flag_spec_CXX='-L$libdir'
12019     allow_undefined_flag_CXX=unsupported
12020     always_export_symbols_CXX=no
12021     enable_shared_with_static_runtimes_CXX=yes
12022
12023     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12024       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'
12025       # If the export-symbols file already is a .def file (1st line
12026       # is EXPORTS), use it as is; otherwise, prepend...
12027       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12028         cp $export_symbols $output_objdir/$soname.def;
12029       else
12030         echo EXPORTS > $output_objdir/$soname.def;
12031         cat $export_symbols >> $output_objdir/$soname.def;
12032       fi~
12033       $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'
12034     else
12035       ld_shlibs_CXX=no
12036     fi
12037   ;;
12038
12039   darwin* | rhapsody*)
12040   if test "$GXX" = yes; then
12041     archive_cmds_need_lc_CXX=no
12042     case "$host_os" in
12043     rhapsody* | darwin1.[012])
12044       allow_undefined_flag_CXX='-undefined suppress'
12045       ;;
12046     *) # Darwin 1.3 on
12047       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12048         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12049       else
12050         case ${MACOSX_DEPLOYMENT_TARGET} in
12051           10.[012])
12052             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12053             ;;
12054           10.*)
12055             allow_undefined_flag_CXX='-undefined dynamic_lookup'
12056             ;;
12057         esac
12058       fi
12059       ;;
12060     esac
12061     lt_int_apple_cc_single_mod=no
12062     output_verbose_link_cmd='echo'
12063     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12064       lt_int_apple_cc_single_mod=yes
12065     fi
12066     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12067       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12068     else
12069       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'
12070     fi
12071     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12072
12073     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12074     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12075       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}'
12076     else
12077       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}'
12078     fi
12079     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}'
12080     hardcode_direct_CXX=no
12081     hardcode_automatic_CXX=yes
12082     hardcode_shlibpath_var_CXX=unsupported
12083     whole_archive_flag_spec_CXX='-all_load $convenience'
12084     link_all_deplibs_CXX=yes
12085   else
12086     ld_shlibs_CXX=no
12087   fi
12088     ;;
12089
12090   dgux*)
12091     case $cc_basename in
12092       ec++)
12093         # FIXME: insert proper C++ library support
12094         ld_shlibs_CXX=no
12095         ;;
12096       ghcx)
12097         # Green Hills C++ Compiler
12098         # FIXME: insert proper C++ library support
12099         ld_shlibs_CXX=no
12100         ;;
12101       *)
12102         # FIXME: insert proper C++ library support
12103         ld_shlibs_CXX=no
12104         ;;
12105     esac
12106     ;;
12107   freebsd12*)
12108     # C++ shared libraries reported to be fairly broken before switch to ELF
12109     ld_shlibs_CXX=no
12110     ;;
12111   freebsd-elf*)
12112     archive_cmds_need_lc_CXX=no
12113     ;;
12114   freebsd* | kfreebsd*-gnu)
12115     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12116     # conventions
12117     ld_shlibs_CXX=yes
12118     ;;
12119   gnu*)
12120     ;;
12121   hpux9*)
12122     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12123     hardcode_libdir_separator_CXX=:
12124     export_dynamic_flag_spec_CXX='${wl}-E'
12125     hardcode_direct_CXX=yes
12126     hardcode_minus_L_CXX=yes # Not in the search PATH,
12127                                 # but as the default
12128                                 # location of the library.
12129
12130     case $cc_basename in
12131     CC)
12132       # FIXME: insert proper C++ library support
12133       ld_shlibs_CXX=no
12134       ;;
12135     aCC)
12136       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'
12137       # Commands to make compiler produce verbose output that lists
12138       # what "hidden" libraries, object files and flags are used when
12139       # linking a shared library.
12140       #
12141       # There doesn't appear to be a way to prevent this compiler from
12142       # explicitly linking system object files so we need to strip them
12143       # from the output so that they don't get included in the library
12144       # dependencies.
12145       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'
12146       ;;
12147     *)
12148       if test "$GXX" = yes; then
12149         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'
12150       else
12151         # FIXME: insert proper C++ library support
12152         ld_shlibs_CXX=no
12153       fi
12154       ;;
12155     esac
12156     ;;
12157   hpux10*|hpux11*)
12158     if test $with_gnu_ld = no; then
12159       case "$host_cpu" in
12160       hppa*64*)
12161         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12162         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12163         hardcode_libdir_separator_CXX=:
12164         ;;
12165       ia64*)
12166         hardcode_libdir_flag_spec_CXX='-L$libdir'
12167         ;;
12168       *)
12169         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12170         hardcode_libdir_separator_CXX=:
12171         export_dynamic_flag_spec_CXX='${wl}-E'
12172         ;;
12173       esac
12174     fi
12175     case "$host_cpu" in
12176     hppa*64*)
12177       hardcode_direct_CXX=no
12178       hardcode_shlibpath_var_CXX=no
12179       ;;
12180     ia64*)
12181       hardcode_direct_CXX=no
12182       hardcode_shlibpath_var_CXX=no
12183       hardcode_minus_L_CXX=yes # Not in the search PATH,
12184                                               # but as the default
12185                                               # location of the library.
12186       ;;
12187     *)
12188       hardcode_direct_CXX=yes
12189       hardcode_minus_L_CXX=yes # Not in the search PATH,
12190                                               # but as the default
12191                                               # location of the library.
12192       ;;
12193     esac
12194
12195     case $cc_basename in
12196       CC)
12197         # FIXME: insert proper C++ library support
12198         ld_shlibs_CXX=no
12199         ;;
12200       aCC)
12201         case "$host_cpu" in
12202         hppa*64*|ia64*)
12203           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12204           ;;
12205         *)
12206           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207           ;;
12208         esac
12209         # Commands to make compiler produce verbose output that lists
12210         # what "hidden" libraries, object files and flags are used when
12211         # linking a shared library.
12212         #
12213         # There doesn't appear to be a way to prevent this compiler from
12214         # explicitly linking system object files so we need to strip them
12215         # from the output so that they don't get included in the library
12216         # dependencies.
12217         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'
12218         ;;
12219       *)
12220         if test "$GXX" = yes; then
12221           if test $with_gnu_ld = no; then
12222             case "$host_cpu" in
12223             ia64*|hppa*64*)
12224               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12225               ;;
12226             *)
12227               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'
12228               ;;
12229             esac
12230           fi
12231         else
12232           # FIXME: insert proper C++ library support
12233           ld_shlibs_CXX=no
12234         fi
12235         ;;
12236     esac
12237     ;;
12238   irix5* | irix6*)
12239     case $cc_basename in
12240       CC)
12241         # SGI C++
12242         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'
12243
12244         # Archives containing C++ object files must be created using
12245         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12246         # necessary to make sure instantiated templates are included
12247         # in the archive.
12248         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12249         ;;
12250       *)
12251         if test "$GXX" = yes; then
12252           if test "$with_gnu_ld" = no; then
12253             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'
12254           else
12255             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'
12256           fi
12257         fi
12258         link_all_deplibs_CXX=yes
12259         ;;
12260     esac
12261     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262     hardcode_libdir_separator_CXX=:
12263     ;;
12264   linux*)
12265     case $cc_basename in
12266       KCC)
12267         # Kuck and Associates, Inc. (KAI) C++ Compiler
12268
12269         # KCC will only create a shared library if the output file
12270         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12271         # to its proper name (with version) after linking.
12272         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'
12273         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'
12274         # Commands to make compiler produce verbose output that lists
12275         # what "hidden" libraries, object files and flags are used when
12276         # linking a shared library.
12277         #
12278         # There doesn't appear to be a way to prevent this compiler from
12279         # explicitly linking system object files so we need to strip them
12280         # from the output so that they don't get included in the library
12281         # dependencies.
12282         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'
12283
12284         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12285         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12286
12287         # Archives containing C++ object files must be created using
12288         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12289         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12290         ;;
12291       icpc)
12292         # Intel C++
12293         with_gnu_ld=yes
12294         archive_cmds_need_lc_CXX=no
12295         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12296         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'
12297         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12298         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12299         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12300         ;;
12301       cxx)
12302         # Compaq C++
12303         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12304         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'
12305
12306         runpath_var=LD_RUN_PATH
12307         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12308         hardcode_libdir_separator_CXX=:
12309
12310         # Commands to make compiler produce verbose output that lists
12311         # what "hidden" libraries, object files and flags are used when
12312         # linking a shared library.
12313         #
12314         # There doesn't appear to be a way to prevent this compiler from
12315         # explicitly linking system object files so we need to strip them
12316         # from the output so that they don't get included in the library
12317         # dependencies.
12318         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'
12319         ;;
12320     esac
12321     ;;
12322   lynxos*)
12323     # FIXME: insert proper C++ library support
12324     ld_shlibs_CXX=no
12325     ;;
12326   m88k*)
12327     # FIXME: insert proper C++ library support
12328     ld_shlibs_CXX=no
12329     ;;
12330   mvs*)
12331     case $cc_basename in
12332       cxx)
12333         # FIXME: insert proper C++ library support
12334         ld_shlibs_CXX=no
12335         ;;
12336       *)
12337         # FIXME: insert proper C++ library support
12338         ld_shlibs_CXX=no
12339         ;;
12340     esac
12341     ;;
12342   netbsd*)
12343     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12344       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12345       wlarc=
12346       hardcode_libdir_flag_spec_CXX='-R$libdir'
12347       hardcode_direct_CXX=yes
12348       hardcode_shlibpath_var_CXX=no
12349     fi
12350     # Workaround some broken pre-1.5 toolchains
12351     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12352     ;;
12353   osf3*)
12354     case $cc_basename in
12355       KCC)
12356         # Kuck and Associates, Inc. (KAI) C++ Compiler
12357
12358         # KCC will only create a shared library if the output file
12359         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12360         # to its proper name (with version) after linking.
12361         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'
12362
12363         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12364         hardcode_libdir_separator_CXX=:
12365
12366         # Archives containing C++ object files must be created using
12367         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12368         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12369
12370         ;;
12371       RCC)
12372         # Rational C++ 2.4.1
12373         # FIXME: insert proper C++ library support
12374         ld_shlibs_CXX=no
12375         ;;
12376       cxx)
12377         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12378         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'
12379
12380         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12381         hardcode_libdir_separator_CXX=:
12382
12383         # Commands to make compiler produce verbose output that lists
12384         # what "hidden" libraries, object files and flags are used when
12385         # linking a shared library.
12386         #
12387         # There doesn't appear to be a way to prevent this compiler from
12388         # explicitly linking system object files so we need to strip them
12389         # from the output so that they don't get included in the library
12390         # dependencies.
12391         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'
12392         ;;
12393       *)
12394         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12395           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12396           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'
12397
12398           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12399           hardcode_libdir_separator_CXX=:
12400
12401           # Commands to make compiler produce verbose output that lists
12402           # what "hidden" libraries, object files and flags are used when
12403           # linking a shared library.
12404           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12405
12406         else
12407           # FIXME: insert proper C++ library support
12408           ld_shlibs_CXX=no
12409         fi
12410         ;;
12411     esac
12412     ;;
12413   osf4* | osf5*)
12414     case $cc_basename in
12415       KCC)
12416         # Kuck and Associates, Inc. (KAI) C++ Compiler
12417
12418         # KCC will only create a shared library if the output file
12419         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12420         # to its proper name (with version) after linking.
12421         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'
12422
12423         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12424         hardcode_libdir_separator_CXX=:
12425
12426         # Archives containing C++ object files must be created using
12427         # the KAI C++ compiler.
12428         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12429         ;;
12430       RCC)
12431         # Rational C++ 2.4.1
12432         # FIXME: insert proper C++ library support
12433         ld_shlibs_CXX=no
12434         ;;
12435       cxx)
12436         allow_undefined_flag_CXX=' -expect_unresolved \*'
12437         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'
12438         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12439           echo "-hidden">> $lib.exp~
12440           $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~
12441           $rm $lib.exp'
12442
12443         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12444         hardcode_libdir_separator_CXX=:
12445
12446         # Commands to make compiler produce verbose output that lists
12447         # what "hidden" libraries, object files and flags are used when
12448         # linking a shared library.
12449         #
12450         # There doesn't appear to be a way to prevent this compiler from
12451         # explicitly linking system object files so we need to strip them
12452         # from the output so that they don't get included in the library
12453         # dependencies.
12454         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'
12455         ;;
12456       *)
12457         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12458           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12459          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'
12460
12461           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12462           hardcode_libdir_separator_CXX=:
12463
12464           # Commands to make compiler produce verbose output that lists
12465           # what "hidden" libraries, object files and flags are used when
12466           # linking a shared library.
12467           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12468
12469         else
12470           # FIXME: insert proper C++ library support
12471           ld_shlibs_CXX=no
12472         fi
12473         ;;
12474     esac
12475     ;;
12476   psos*)
12477     # FIXME: insert proper C++ library support
12478     ld_shlibs_CXX=no
12479     ;;
12480   sco*)
12481     archive_cmds_need_lc_CXX=no
12482     case $cc_basename in
12483       CC)
12484         # FIXME: insert proper C++ library support
12485         ld_shlibs_CXX=no
12486         ;;
12487       *)
12488         # FIXME: insert proper C++ library support
12489         ld_shlibs_CXX=no
12490         ;;
12491     esac
12492     ;;
12493   sunos4*)
12494     case $cc_basename in
12495       CC)
12496         # Sun C++ 4.x
12497         # FIXME: insert proper C++ library support
12498         ld_shlibs_CXX=no
12499         ;;
12500       lcc)
12501         # Lucid
12502         # FIXME: insert proper C++ library support
12503         ld_shlibs_CXX=no
12504         ;;
12505       *)
12506         # FIXME: insert proper C++ library support
12507         ld_shlibs_CXX=no
12508         ;;
12509     esac
12510     ;;
12511   solaris*)
12512     case $cc_basename in
12513       CC)
12514         # Sun C++ 4.2, 5.x and Centerline C++
12515         no_undefined_flag_CXX=' -zdefs'
12516         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12517         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12518         $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'
12519
12520         hardcode_libdir_flag_spec_CXX='-R$libdir'
12521         hardcode_shlibpath_var_CXX=no
12522         case $host_os in
12523           solaris2.0-5 | solaris2.0-5.*) ;;
12524           *)
12525             # The C++ compiler is used as linker so we must use $wl
12526             # flag to pass the commands to the underlying system
12527             # linker.
12528             # Supported since Solaris 2.6 (maybe 2.5.1?)
12529             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12530             ;;
12531         esac
12532         link_all_deplibs_CXX=yes
12533
12534         # Commands to make compiler produce verbose output that lists
12535         # what "hidden" libraries, object files and flags are used when
12536         # linking a shared library.
12537         #
12538         # There doesn't appear to be a way to prevent this compiler from
12539         # explicitly linking system object files so we need to strip them
12540         # from the output so that they don't get included in the library
12541         # dependencies.
12542         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'
12543
12544         # Archives containing C++ object files must be created using
12545         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12546         # necessary to make sure instantiated templates are included
12547         # in the archive.
12548         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12549         ;;
12550       gcx)
12551         # Green Hills C++ Compiler
12552         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12553
12554         # The C++ compiler must be used to create the archive.
12555         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12556         ;;
12557       *)
12558         # GNU C++ compiler with Solaris linker
12559         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12560           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12561           if $CC --version | grep -v '^2\.7' > /dev/null; then
12562             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12563             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12564                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12565
12566             # Commands to make compiler produce verbose output that lists
12567             # what "hidden" libraries, object files and flags are used when
12568             # linking a shared library.
12569             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12570           else
12571             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12572             # platform.
12573             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12574             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12575                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12576
12577             # Commands to make compiler produce verbose output that lists
12578             # what "hidden" libraries, object files and flags are used when
12579             # linking a shared library.
12580             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12581           fi
12582
12583           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12584         fi
12585         ;;
12586     esac
12587     ;;
12588   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12589     archive_cmds_need_lc_CXX=no
12590     ;;
12591   tandem*)
12592     case $cc_basename in
12593       NCC)
12594         # NonStop-UX NCC 3.20
12595         # FIXME: insert proper C++ library support
12596         ld_shlibs_CXX=no
12597         ;;
12598       *)
12599         # FIXME: insert proper C++ library support
12600         ld_shlibs_CXX=no
12601         ;;
12602     esac
12603     ;;
12604   vxworks*)
12605     # FIXME: insert proper C++ library support
12606     ld_shlibs_CXX=no
12607     ;;
12608   *)
12609     # FIXME: insert proper C++ library support
12610     ld_shlibs_CXX=no
12611     ;;
12612 esac
12613 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12614 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12615 test "$ld_shlibs_CXX" = no && can_build_shared=no
12616
12617 GCC_CXX="$GXX"
12618 LD_CXX="$LD"
12619
12620 ## CAVEAT EMPTOR:
12621 ## There is no encapsulation within the following macros, do not change
12622 ## the running order or otherwise move them around unless you know exactly
12623 ## what you are doing...
12624
12625 cat > conftest.$ac_ext <<EOF
12626 class Foo
12627 {
12628 public:
12629   Foo (void) { a = 0; }
12630 private:
12631   int a;
12632 };
12633 EOF
12634
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636   (eval $ac_compile) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; then
12640   # Parse the compiler output and extract the necessary
12641   # objects, libraries and library flags.
12642
12643   # Sentinel used to keep track of whether or not we are before
12644   # the conftest object file.
12645   pre_test_object_deps_done=no
12646
12647   # The `*' in the case matches for architectures that use `case' in
12648   # $output_verbose_cmd can trigger glob expansion during the loop
12649   # eval without this substitution.
12650   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12651
12652   for p in `eval $output_verbose_link_cmd`; do
12653     case $p in
12654
12655     -L* | -R* | -l*)
12656        # Some compilers place space between "-{L,R}" and the path.
12657        # Remove the space.
12658        if test $p = "-L" \
12659           || test $p = "-R"; then
12660          prev=$p
12661          continue
12662        else
12663          prev=
12664        fi
12665
12666        if test "$pre_test_object_deps_done" = no; then
12667          case $p in
12668          -L* | -R*)
12669            # Internal compiler library paths should come after those
12670            # provided the user.  The postdeps already come after the
12671            # user supplied libs so there is no need to process them.
12672            if test -z "$compiler_lib_search_path_CXX"; then
12673              compiler_lib_search_path_CXX="${prev}${p}"
12674            else
12675              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12676            fi
12677            ;;
12678          # The "-l" case would never come before the object being
12679          # linked, so don't bother handling this case.
12680          esac
12681        else
12682          if test -z "$postdeps_CXX"; then
12683            postdeps_CXX="${prev}${p}"
12684          else
12685            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12686          fi
12687        fi
12688        ;;
12689
12690     *.$objext)
12691        # This assumes that the test object file only shows up
12692        # once in the compiler output.
12693        if test "$p" = "conftest.$objext"; then
12694          pre_test_object_deps_done=yes
12695          continue
12696        fi
12697
12698        if test "$pre_test_object_deps_done" = no; then
12699          if test -z "$predep_objects_CXX"; then
12700            predep_objects_CXX="$p"
12701          else
12702            predep_objects_CXX="$predep_objects_CXX $p"
12703          fi
12704        else
12705          if test -z "$postdep_objects_CXX"; then
12706            postdep_objects_CXX="$p"
12707          else
12708            postdep_objects_CXX="$postdep_objects_CXX $p"
12709          fi
12710        fi
12711        ;;
12712
12713     *) ;; # Ignore the rest.
12714
12715     esac
12716   done
12717
12718   # Clean up.
12719   rm -f a.out a.exe
12720 else
12721   echo "libtool.m4: error: problem compiling CXX test program"
12722 fi
12723
12724 $rm -f confest.$objext
12725
12726 case " $postdeps_CXX " in
12727 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12728 esac
12729
12730 lt_prog_compiler_wl_CXX=
12731 lt_prog_compiler_pic_CXX=
12732 lt_prog_compiler_static_CXX=
12733
12734 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12736
12737   # C++ specific cases for pic, static, wl, etc.
12738   if test "$GXX" = yes; then
12739     lt_prog_compiler_wl_CXX='-Wl,'
12740     lt_prog_compiler_static_CXX='-static'
12741
12742     case $host_os in
12743     aix*)
12744       # All AIX code is PIC.
12745       if test "$host_cpu" = ia64; then
12746         # AIX 5 now supports IA64 processor
12747         lt_prog_compiler_static_CXX='-Bstatic'
12748       fi
12749       ;;
12750     amigaos*)
12751       # FIXME: we need at least 68020 code to build shared libraries, but
12752       # adding the `-m68020' flag to GCC prevents building anything better,
12753       # like `-m68040'.
12754       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12755       ;;
12756     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12757       # PIC is the default for these OSes.
12758       ;;
12759     mingw* | os2* | pw32*)
12760       # This hack is so that the source file can tell whether it is being
12761       # built for inclusion in a dll (and should export symbols for example).
12762       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12763       ;;
12764     darwin* | rhapsody*)
12765       # PIC is the default on this platform
12766       # Common symbols not allowed in MH_DYLIB files
12767       lt_prog_compiler_pic_CXX='-fno-common'
12768       ;;
12769     *djgpp*)
12770       # DJGPP does not support shared libraries at all
12771       lt_prog_compiler_pic_CXX=
12772       ;;
12773     sysv4*MP*)
12774       if test -d /usr/nec; then
12775         lt_prog_compiler_pic_CXX=-Kconform_pic
12776       fi
12777       ;;
12778     hpux*)
12779       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12780       # not for PA HP-UX.
12781       case "$host_cpu" in
12782       hppa*64*|ia64*)
12783         ;;
12784       *)
12785         lt_prog_compiler_pic_CXX='-fPIC'
12786         ;;
12787       esac
12788       ;;
12789     *)
12790       lt_prog_compiler_pic_CXX='-fPIC'
12791       ;;
12792     esac
12793   else
12794     case $host_os in
12795       aix4* | aix5*)
12796         # All AIX code is PIC.
12797         if test "$host_cpu" = ia64; then
12798           # AIX 5 now supports IA64 processor
12799           lt_prog_compiler_static_CXX='-Bstatic'
12800         else
12801           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12802         fi
12803         ;;
12804       chorus*)
12805         case $cc_basename in
12806         cxch68)
12807           # Green Hills C++ Compiler
12808           # _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"
12809           ;;
12810         esac
12811         ;;
12812       dgux*)
12813         case $cc_basename in
12814           ec++)
12815             lt_prog_compiler_pic_CXX='-KPIC'
12816             ;;
12817           ghcx)
12818             # Green Hills C++ Compiler
12819             lt_prog_compiler_pic_CXX='-pic'
12820             ;;
12821           *)
12822             ;;
12823         esac
12824         ;;
12825       freebsd* | kfreebsd*-gnu)
12826         # FreeBSD uses GNU C++
12827         ;;
12828       hpux9* | hpux10* | hpux11*)
12829         case $cc_basename in
12830           CC)
12831             lt_prog_compiler_wl_CXX='-Wl,'
12832             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12833             if test "$host_cpu" != ia64; then
12834               lt_prog_compiler_pic_CXX='+Z'
12835             fi
12836             ;;
12837           aCC)
12838             lt_prog_compiler_wl_CXX='-Wl,'
12839             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12840             case "$host_cpu" in
12841             hppa*64*|ia64*)
12842               # +Z the default
12843               ;;
12844             *)
12845               lt_prog_compiler_pic_CXX='+Z'
12846               ;;
12847             esac
12848             ;;
12849           *)
12850             ;;
12851         esac
12852         ;;
12853       irix5* | irix6* | nonstopux*)
12854         case $cc_basename in
12855           CC)
12856             lt_prog_compiler_wl_CXX='-Wl,'
12857             lt_prog_compiler_static_CXX='-non_shared'
12858             # CC pic flag -KPIC is the default.
12859             ;;
12860           *)
12861             ;;
12862         esac
12863         ;;
12864       linux*)
12865         case $cc_basename in
12866           KCC)
12867             # KAI C++ Compiler
12868             lt_prog_compiler_wl_CXX='--backend -Wl,'
12869             lt_prog_compiler_pic_CXX='-fPIC'
12870             ;;
12871           icpc)
12872             # Intel C++
12873             lt_prog_compiler_wl_CXX='-Wl,'
12874             lt_prog_compiler_pic_CXX='-KPIC'
12875             lt_prog_compiler_static_CXX='-static'
12876             ;;
12877           cxx)
12878             # Compaq C++
12879             # Make sure the PIC flag is empty.  It appears that all Alpha
12880             # Linux and Compaq Tru64 Unix objects are PIC.
12881             lt_prog_compiler_pic_CXX=
12882             lt_prog_compiler_static_CXX='-non_shared'
12883             ;;
12884           *)
12885             ;;
12886         esac
12887         ;;
12888       lynxos*)
12889         ;;
12890       m88k*)
12891         ;;
12892       mvs*)
12893         case $cc_basename in
12894           cxx)
12895             lt_prog_compiler_pic_CXX='-W c,exportall'
12896             ;;
12897           *)
12898             ;;
12899         esac
12900         ;;
12901       netbsd*)
12902         ;;
12903       osf3* | osf4* | osf5*)
12904         case $cc_basename in
12905           KCC)
12906             lt_prog_compiler_wl_CXX='--backend -Wl,'
12907             ;;
12908           RCC)
12909             # Rational C++ 2.4.1
12910             lt_prog_compiler_pic_CXX='-pic'
12911             ;;
12912           cxx)
12913             # Digital/Compaq C++
12914             lt_prog_compiler_wl_CXX='-Wl,'
12915             # Make sure the PIC flag is empty.  It appears that all Alpha
12916             # Linux and Compaq Tru64 Unix objects are PIC.
12917             lt_prog_compiler_pic_CXX=
12918             lt_prog_compiler_static_CXX='-non_shared'
12919             ;;
12920           *)
12921             ;;
12922         esac
12923         ;;
12924       psos*)
12925         ;;
12926       sco*)
12927         case $cc_basename in
12928           CC)
12929             lt_prog_compiler_pic_CXX='-fPIC'
12930             ;;
12931           *)
12932             ;;
12933         esac
12934         ;;
12935       solaris*)
12936         case $cc_basename in
12937           CC)
12938             # Sun C++ 4.2, 5.x and Centerline C++
12939             lt_prog_compiler_pic_CXX='-KPIC'
12940             lt_prog_compiler_static_CXX='-Bstatic'
12941             lt_prog_compiler_wl_CXX='-Qoption ld '
12942             ;;
12943           gcx)
12944             # Green Hills C++ Compiler
12945             lt_prog_compiler_pic_CXX='-PIC'
12946             ;;
12947           *)
12948             ;;
12949         esac
12950         ;;
12951       sunos4*)
12952         case $cc_basename in
12953           CC)
12954             # Sun C++ 4.x
12955             lt_prog_compiler_pic_CXX='-pic'
12956             lt_prog_compiler_static_CXX='-Bstatic'
12957             ;;
12958           lcc)
12959             # Lucid
12960             lt_prog_compiler_pic_CXX='-pic'
12961             ;;
12962           *)
12963             ;;
12964         esac
12965         ;;
12966       tandem*)
12967         case $cc_basename in
12968           NCC)
12969             # NonStop-UX NCC 3.20
12970             lt_prog_compiler_pic_CXX='-KPIC'
12971             ;;
12972           *)
12973             ;;
12974         esac
12975         ;;
12976       unixware*)
12977         ;;
12978       vxworks*)
12979         ;;
12980       *)
12981         lt_prog_compiler_can_build_shared_CXX=no
12982         ;;
12983     esac
12984   fi
12985
12986 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12987 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12988
12989 #
12990 # Check to make sure the PIC flag actually works.
12991 #
12992 if test -n "$lt_prog_compiler_pic_CXX"; then
12993
12994 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12995 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12996 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   lt_prog_compiler_pic_works_CXX=no
13000   ac_outfile=conftest.$ac_objext
13001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13002    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13003    # Insert the option either (1) after the last *FLAGS variable, or
13004    # (2) before a word containing "conftest.", or (3) at the end.
13005    # Note that $ac_compile itself does not contain backslashes and begins
13006    # with a dollar sign (not a hyphen), so the echo should work correctly.
13007    # The option is referenced via a variable to avoid confusing sed.
13008    lt_compile=`echo "$ac_compile" | $SED \
13009    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13011    -e 's:$: $lt_compiler_flag:'`
13012    (eval echo "\"\$as_me:13012: $lt_compile\"" >&5)
13013    (eval "$lt_compile" 2>conftest.err)
13014    ac_status=$?
13015    cat conftest.err >&5
13016    echo "$as_me:13016: \$? = $ac_status" >&5
13017    if (exit $ac_status) && test -s "$ac_outfile"; then
13018      # The compiler can only warn and ignore the option if not recognized
13019      # So say no if there are warnings
13020      if test ! -s conftest.err; then
13021        lt_prog_compiler_pic_works_CXX=yes
13022      fi
13023    fi
13024    $rm conftest*
13025
13026 fi
13027 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13028 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13029
13030 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13031     case $lt_prog_compiler_pic_CXX in
13032      "" | " "*) ;;
13033      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13034      esac
13035 else
13036     lt_prog_compiler_pic_CXX=
13037      lt_prog_compiler_can_build_shared_CXX=no
13038 fi
13039
13040 fi
13041 case "$host_os" in
13042   # For platforms which do not support PIC, -DPIC is meaningless:
13043   *djgpp*)
13044     lt_prog_compiler_pic_CXX=
13045     ;;
13046   *)
13047     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13048     ;;
13049 esac
13050
13051 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13053 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   lt_cv_prog_compiler_c_o_CXX=no
13057    $rm -r conftest 2>/dev/null
13058    mkdir conftest
13059    cd conftest
13060    mkdir out
13061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13062
13063    lt_compiler_flag="-o out/conftest2.$ac_objext"
13064    # Insert the option either (1) after the last *FLAGS variable, or
13065    # (2) before a word containing "conftest.", or (3) at the end.
13066    # Note that $ac_compile itself does not contain backslashes and begins
13067    # with a dollar sign (not a hyphen), so the echo should work correctly.
13068    lt_compile=`echo "$ac_compile" | $SED \
13069    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13071    -e 's:$: $lt_compiler_flag:'`
13072    (eval echo "\"\$as_me:13072: $lt_compile\"" >&5)
13073    (eval "$lt_compile" 2>out/conftest.err)
13074    ac_status=$?
13075    cat out/conftest.err >&5
13076    echo "$as_me:13076: \$? = $ac_status" >&5
13077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13078    then
13079      # The compiler can only warn and ignore the option if not recognized
13080      # So say no if there are warnings
13081      if test ! -s out/conftest.err; then
13082        lt_cv_prog_compiler_c_o_CXX=yes
13083      fi
13084    fi
13085    chmod u+w .
13086    $rm conftest*
13087    # SGI C++ compiler will create directory out/ii_files/ for
13088    # template instantiation
13089    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13090    $rm out/* && rmdir out
13091    cd ..
13092    rmdir conftest
13093    $rm conftest*
13094
13095 fi
13096 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13098
13099
13100 hard_links="nottested"
13101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13102   # do not overwrite the value of need_locks provided by the user
13103   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13105   hard_links=yes
13106   $rm conftest*
13107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108   touch conftest.a
13109   ln conftest.a conftest.b 2>&5 || hard_links=no
13110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13111   echo "$as_me:$LINENO: result: $hard_links" >&5
13112 echo "${ECHO_T}$hard_links" >&6
13113   if test "$hard_links" = no; then
13114     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13116     need_locks=warn
13117   fi
13118 else
13119   need_locks=no
13120 fi
13121
13122 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13124
13125   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13126   case $host_os in
13127   aix4* | aix5*)
13128     # If we're using GNU nm, then we don't want the "-C" option.
13129     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13130     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13131       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'
13132     else
13133       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'
13134     fi
13135     ;;
13136   pw32*)
13137     export_symbols_cmds_CXX="$ltdll_cmds"
13138   ;;
13139   cygwin* | mingw*)
13140     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13141   ;;
13142   *)
13143     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13144   ;;
13145   esac
13146
13147 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13148 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13149 test "$ld_shlibs_CXX" = no && can_build_shared=no
13150
13151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13152 if test "$GCC" = yes; then
13153   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13154 fi
13155
13156 #
13157 # Do we need to explicitly link libc?
13158 #
13159 case "x$archive_cmds_need_lc_CXX" in
13160 x|xyes)
13161   # Assume -lc should be added
13162   archive_cmds_need_lc_CXX=yes
13163
13164   if test "$enable_shared" = yes && test "$GCC" = yes; then
13165     case $archive_cmds_CXX in
13166     *'~'*)
13167       # FIXME: we may have to deal with multi-command sequences.
13168       ;;
13169     '$CC '*)
13170       # Test whether the compiler implicitly links with -lc since on some
13171       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13172       # to ld, don't add -lc before -lgcc.
13173       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13174 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13175       $rm conftest*
13176       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13177
13178       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179   (eval $ac_compile) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } 2>conftest.err; then
13183         soname=conftest
13184         lib=conftest
13185         libobjs=conftest.$ac_objext
13186         deplibs=
13187         wl=$lt_prog_compiler_wl_CXX
13188         compiler_flags=-v
13189         linker_flags=-v
13190         verstring=
13191         output_objdir=.
13192         libname=conftest
13193         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13194         allow_undefined_flag_CXX=
13195         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13196   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }
13200         then
13201           archive_cmds_need_lc_CXX=no
13202         else
13203           archive_cmds_need_lc_CXX=yes
13204         fi
13205         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13206       else
13207         cat conftest.err 1>&5
13208       fi
13209       $rm conftest*
13210       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13211 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13212       ;;
13213     esac
13214   fi
13215   ;;
13216 esac
13217
13218 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13219 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13220 library_names_spec=
13221 libname_spec='lib$name'
13222 soname_spec=
13223 shrext_cmds=".so"
13224 postinstall_cmds=
13225 postuninstall_cmds=
13226 finish_cmds=
13227 finish_eval=
13228 shlibpath_var=
13229 shlibpath_overrides_runpath=unknown
13230 version_type=none
13231 dynamic_linker="$host_os ld.so"
13232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13233 if test "$GCC" = yes; then
13234   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13235   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13236     # if the path contains ";" then we assume it to be the separator
13237     # otherwise default to the standard path separator (i.e. ":") - it is
13238     # assumed that no part of a normal pathname contains ";" but that should
13239     # okay in the real world where ";" in dirpaths is itself problematic.
13240     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13241   else
13242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13243   fi
13244 else
13245   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13246 fi
13247 need_lib_prefix=unknown
13248 hardcode_into_libs=no
13249
13250 # when you set need_version to no, make sure it does not cause -set_version
13251 # flags to be left without arguments
13252 need_version=unknown
13253
13254 case $host_os in
13255 aix3*)
13256   version_type=linux
13257   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13258   shlibpath_var=LIBPATH
13259
13260   # AIX 3 has no versioning support, so we append a major version to the name.
13261   soname_spec='${libname}${release}${shared_ext}$major'
13262   ;;
13263
13264 aix4* | aix5*)
13265   version_type=linux
13266   need_lib_prefix=no
13267   need_version=no
13268   hardcode_into_libs=yes
13269   if test "$host_cpu" = ia64; then
13270     # AIX 5 supports IA64
13271     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13272     shlibpath_var=LD_LIBRARY_PATH
13273   else
13274     # With GCC up to 2.95.x, collect2 would create an import file
13275     # for dependence libraries.  The import file would start with
13276     # the line `#! .'.  This would cause the generated library to
13277     # depend on `.', always an invalid library.  This was fixed in
13278     # development snapshots of GCC prior to 3.0.
13279     case $host_os in
13280       aix4 | aix4.[01] | aix4.[01].*)
13281       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13282            echo ' yes '
13283            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13284         :
13285       else
13286         can_build_shared=no
13287       fi
13288       ;;
13289     esac
13290     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13291     # soname into executable. Probably we can add versioning support to
13292     # collect2, so additional links can be useful in future.
13293     if test "$aix_use_runtimelinking" = yes; then
13294       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13295       # instead of lib<name>.a to let people know that these are not
13296       # typical AIX shared libraries.
13297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298     else
13299       # We preserve .a as extension for shared libraries through AIX4.2
13300       # and later when we are not doing run time linking.
13301       library_names_spec='${libname}${release}.a $libname.a'
13302       soname_spec='${libname}${release}${shared_ext}$major'
13303     fi
13304     shlibpath_var=LIBPATH
13305   fi
13306   ;;
13307
13308 amigaos*)
13309   library_names_spec='$libname.ixlibrary $libname.a'
13310   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13311   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'
13312   ;;
13313
13314 beos*)
13315   library_names_spec='${libname}${shared_ext}'
13316   dynamic_linker="$host_os ld.so"
13317   shlibpath_var=LIBRARY_PATH
13318   ;;
13319
13320 bsdi4*)
13321   version_type=linux
13322   need_version=no
13323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324   soname_spec='${libname}${release}${shared_ext}$major'
13325   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13326   shlibpath_var=LD_LIBRARY_PATH
13327   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13328   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13329   # the default ld.so.conf also contains /usr/contrib/lib and
13330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13331   # libtool to hard-code these into programs
13332   ;;
13333
13334 cygwin* | mingw* | pw32*)
13335   version_type=windows
13336   shrext_cmds=".dll"
13337   need_version=no
13338   need_lib_prefix=no
13339
13340   case $GCC,$host_os in
13341   yes,cygwin* | yes,mingw* | yes,pw32*)
13342     library_names_spec='$libname.dll.a'
13343     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13344     postinstall_cmds='base_file=`basename \${file}`~
13345       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13346       dldir=$destdir/`dirname \$dlpath`~
13347       test -d \$dldir || mkdir -p \$dldir~
13348       $install_prog $dir/$dlname \$dldir/$dlname'
13349     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13350       dlpath=$dir/\$dldll~
13351        $rm \$dlpath'
13352     shlibpath_overrides_runpath=yes
13353
13354     case $host_os in
13355     cygwin*)
13356       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13357       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13358       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13359       ;;
13360     mingw*)
13361       # MinGW DLLs use traditional 'lib' prefix
13362       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13363       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13364       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13365         # It is most probably a Windows format PATH printed by
13366         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13367         # path with ; separators, and with drive letters. We can handle the
13368         # drive letters (cygwin fileutils understands them), so leave them,
13369         # especially as we might pass files found there to a mingw objdump,
13370         # which wouldn't understand a cygwinified path. Ahh.
13371         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13372       else
13373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13374       fi
13375       ;;
13376     pw32*)
13377       # pw32 DLLs use 'pw' prefix rather than 'lib'
13378       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13379       ;;
13380     esac
13381     ;;
13382
13383   *)
13384     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13385     ;;
13386   esac
13387   dynamic_linker='Win32 ld.exe'
13388   # FIXME: first we should search . and the directory the executable is in
13389   shlibpath_var=PATH
13390   ;;
13391
13392 darwin* | rhapsody*)
13393   dynamic_linker="$host_os dyld"
13394   version_type=darwin
13395   need_lib_prefix=no
13396   need_version=no
13397   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13398   soname_spec='${libname}${release}${major}$shared_ext'
13399   shlibpath_overrides_runpath=yes
13400   shlibpath_var=DYLD_LIBRARY_PATH
13401   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13402   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13403   if test "$GCC" = yes; then
13404     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"`
13405   else
13406     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13407   fi
13408   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13409   ;;
13410
13411 dgux*)
13412   version_type=linux
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13416   soname_spec='${libname}${release}${shared_ext}$major'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   ;;
13419
13420 freebsd1*)
13421   dynamic_linker=no
13422   ;;
13423
13424 kfreebsd*-gnu)
13425   version_type=linux
13426   need_lib_prefix=no
13427   need_version=no
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13429   soname_spec='${libname}${release}${shared_ext}$major'
13430   shlibpath_var=LD_LIBRARY_PATH
13431   shlibpath_overrides_runpath=no
13432   hardcode_into_libs=yes
13433   dynamic_linker='GNU ld.so'
13434   ;;
13435
13436 freebsd*)
13437   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13438   version_type=freebsd-$objformat
13439   case $version_type in
13440     freebsd-elf*)
13441       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13442       need_version=no
13443       need_lib_prefix=no
13444       ;;
13445     freebsd-*)
13446       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13447       need_version=yes
13448       ;;
13449   esac
13450   shlibpath_var=LD_LIBRARY_PATH
13451   case $host_os in
13452   freebsd2*)
13453     shlibpath_overrides_runpath=yes
13454     ;;
13455   freebsd3.01* | freebsdelf3.01*)
13456     shlibpath_overrides_runpath=yes
13457     hardcode_into_libs=yes
13458     ;;
13459   *) # from 3.2 on
13460     shlibpath_overrides_runpath=no
13461     hardcode_into_libs=yes
13462     ;;
13463   esac
13464   ;;
13465
13466 gnu*)
13467   version_type=linux
13468   need_lib_prefix=no
13469   need_version=no
13470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13471   soname_spec='${libname}${release}${shared_ext}$major'
13472   shlibpath_var=LD_LIBRARY_PATH
13473   hardcode_into_libs=yes
13474   ;;
13475
13476 hpux9* | hpux10* | hpux11*)
13477   # Give a soname corresponding to the major version so that dld.sl refuses to
13478   # link against other versions.
13479   version_type=sunos
13480   need_lib_prefix=no
13481   need_version=no
13482   case "$host_cpu" in
13483   ia64*)
13484     shrext_cmds='.so'
13485     hardcode_into_libs=yes
13486     dynamic_linker="$host_os dld.so"
13487     shlibpath_var=LD_LIBRARY_PATH
13488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490     soname_spec='${libname}${release}${shared_ext}$major'
13491     if test "X$HPUX_IA64_MODE" = X32; then
13492       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13493     else
13494       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13495     fi
13496     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13497     ;;
13498    hppa*64*)
13499      shrext_cmds='.sl'
13500      hardcode_into_libs=yes
13501      dynamic_linker="$host_os dld.sl"
13502      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13503      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13504      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505      soname_spec='${libname}${release}${shared_ext}$major'
13506      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13507      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13508      ;;
13509    *)
13510     shrext_cmds='.sl'
13511     dynamic_linker="$host_os dld.sl"
13512     shlibpath_var=SHLIB_PATH
13513     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13515     soname_spec='${libname}${release}${shared_ext}$major'
13516     ;;
13517   esac
13518   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13519   postinstall_cmds='chmod 555 $lib'
13520   ;;
13521
13522 irix5* | irix6* | nonstopux*)
13523   case $host_os in
13524     nonstopux*) version_type=nonstopux ;;
13525     *)
13526         if test "$lt_cv_prog_gnu_ld" = yes; then
13527                 version_type=linux
13528         else
13529                 version_type=irix
13530         fi ;;
13531   esac
13532   need_lib_prefix=no
13533   need_version=no
13534   soname_spec='${libname}${release}${shared_ext}$major'
13535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13536   case $host_os in
13537   irix5* | nonstopux*)
13538     libsuff= shlibsuff=
13539     ;;
13540   *)
13541     case $LD in # libtool.m4 will add one of these switches to LD
13542     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13543       libsuff= shlibsuff= libmagic=32-bit;;
13544     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13545       libsuff=32 shlibsuff=N32 libmagic=N32;;
13546     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13547       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13548     *) libsuff= shlibsuff= libmagic=never-match;;
13549     esac
13550     ;;
13551   esac
13552   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13553   shlibpath_overrides_runpath=no
13554   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13555   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13556   hardcode_into_libs=yes
13557   ;;
13558
13559 # No shared lib support for Linux oldld, aout, or coff.
13560 linux*oldld* | linux*aout* | linux*coff*)
13561   dynamic_linker=no
13562   ;;
13563
13564 # This must be Linux ELF.
13565 linux*)
13566   version_type=linux
13567   need_lib_prefix=no
13568   need_version=no
13569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570   soname_spec='${libname}${release}${shared_ext}$major'
13571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13572   shlibpath_var=LD_LIBRARY_PATH
13573   shlibpath_overrides_runpath=no
13574   # This implies no fast_install, which is unacceptable.
13575   # Some rework will be needed to allow for fast_install
13576   # before this can be enabled.
13577   hardcode_into_libs=yes
13578
13579   # find out which ABI we are using
13580   libsuff=
13581   case "$host_cpu" in
13582   x86_64*|s390x*|powerpc64*)
13583     echo '#line 13583 "configure"' > conftest.$ac_ext
13584     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585   (eval $ac_compile) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; then
13589       case `/usr/bin/file conftest.$ac_objext` in
13590       *64-bit*)
13591         libsuff=64
13592         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13593         ;;
13594       esac
13595     fi
13596     rm -rf conftest*
13597     ;;
13598   esac
13599
13600   # Append ld.so.conf contents to the search path
13601   if test -f /etc/ld.so.conf; then
13602     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13603     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13604   fi
13605
13606   # We used to test for /lib/ld.so.1 and disable shared libraries on
13607   # powerpc, because MkLinux only supported shared libraries with the
13608   # GNU dynamic linker.  Since this was broken with cross compilers,
13609   # most powerpc-linux boxes support dynamic linking these days and
13610   # people can always --disable-shared, the test was removed, and we
13611   # assume the GNU/Linux dynamic linker is in use.
13612   dynamic_linker='GNU/Linux ld.so'
13613   ;;
13614
13615 knetbsd*-gnu)
13616   version_type=linux
13617   need_lib_prefix=no
13618   need_version=no
13619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13620   soname_spec='${libname}${release}${shared_ext}$major'
13621   shlibpath_var=LD_LIBRARY_PATH
13622   shlibpath_overrides_runpath=no
13623   hardcode_into_libs=yes
13624   dynamic_linker='GNU ld.so'
13625   ;;
13626
13627 netbsd*)
13628   version_type=sunos
13629   need_lib_prefix=no
13630   need_version=no
13631   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13633     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13634     dynamic_linker='NetBSD (a.out) ld.so'
13635   else
13636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13637     soname_spec='${libname}${release}${shared_ext}$major'
13638     dynamic_linker='NetBSD ld.elf_so'
13639   fi
13640   shlibpath_var=LD_LIBRARY_PATH
13641   shlibpath_overrides_runpath=yes
13642   hardcode_into_libs=yes
13643   ;;
13644
13645 newsos6)
13646   version_type=linux
13647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13648   shlibpath_var=LD_LIBRARY_PATH
13649   shlibpath_overrides_runpath=yes
13650   ;;
13651
13652 nto-qnx*)
13653   version_type=linux
13654   need_lib_prefix=no
13655   need_version=no
13656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657   soname_spec='${libname}${release}${shared_ext}$major'
13658   shlibpath_var=LD_LIBRARY_PATH
13659   shlibpath_overrides_runpath=yes
13660   ;;
13661
13662 openbsd*)
13663   version_type=sunos
13664   need_lib_prefix=no
13665   need_version=yes
13666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13668   shlibpath_var=LD_LIBRARY_PATH
13669   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13670     case $host_os in
13671       openbsd2.[89] | openbsd2.[89].*)
13672         shlibpath_overrides_runpath=no
13673         ;;
13674       *)
13675         shlibpath_overrides_runpath=yes
13676         ;;
13677       esac
13678   else
13679     shlibpath_overrides_runpath=yes
13680   fi
13681   ;;
13682
13683 os2*)
13684   libname_spec='$name'
13685   shrext_cmds=".dll"
13686   need_lib_prefix=no
13687   library_names_spec='$libname${shared_ext} $libname.a'
13688   dynamic_linker='OS/2 ld.exe'
13689   shlibpath_var=LIBPATH
13690   ;;
13691
13692 osf3* | osf4* | osf5*)
13693   version_type=osf
13694   need_lib_prefix=no
13695   need_version=no
13696   soname_spec='${libname}${release}${shared_ext}$major'
13697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698   shlibpath_var=LD_LIBRARY_PATH
13699   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13700   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13701   ;;
13702
13703 sco3.2v5*)
13704   version_type=osf
13705   soname_spec='${libname}${release}${shared_ext}$major'
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707   shlibpath_var=LD_LIBRARY_PATH
13708   ;;
13709
13710 solaris*)
13711   version_type=linux
13712   need_lib_prefix=no
13713   need_version=no
13714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13715   soname_spec='${libname}${release}${shared_ext}$major'
13716   shlibpath_var=LD_LIBRARY_PATH
13717   shlibpath_overrides_runpath=yes
13718   hardcode_into_libs=yes
13719   # ldd complains unless libraries are executable
13720   postinstall_cmds='chmod +x $lib'
13721   ;;
13722
13723 sunos4*)
13724   version_type=sunos
13725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13726   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13727   shlibpath_var=LD_LIBRARY_PATH
13728   shlibpath_overrides_runpath=yes
13729   if test "$with_gnu_ld" = yes; then
13730     need_lib_prefix=no
13731   fi
13732   need_version=yes
13733   ;;
13734
13735 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13736   version_type=linux
13737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13738   soname_spec='${libname}${release}${shared_ext}$major'
13739   shlibpath_var=LD_LIBRARY_PATH
13740   case $host_vendor in
13741     sni)
13742       shlibpath_overrides_runpath=no
13743       need_lib_prefix=no
13744       export_dynamic_flag_spec='${wl}-Blargedynsym'
13745       runpath_var=LD_RUN_PATH
13746       ;;
13747     siemens)
13748       need_lib_prefix=no
13749       ;;
13750     motorola)
13751       need_lib_prefix=no
13752       need_version=no
13753       shlibpath_overrides_runpath=no
13754       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13755       ;;
13756   esac
13757   ;;
13758
13759 sysv4*MP*)
13760   if test -d /usr/nec ;then
13761     version_type=linux
13762     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13763     soname_spec='$libname${shared_ext}.$major'
13764     shlibpath_var=LD_LIBRARY_PATH
13765   fi
13766   ;;
13767
13768 uts4*)
13769   version_type=linux
13770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771   soname_spec='${libname}${release}${shared_ext}$major'
13772   shlibpath_var=LD_LIBRARY_PATH
13773   ;;
13774
13775 *)
13776   dynamic_linker=no
13777   ;;
13778 esac
13779 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13780 echo "${ECHO_T}$dynamic_linker" >&6
13781 test "$dynamic_linker" = no && can_build_shared=no
13782
13783 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13784 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13785 hardcode_action_CXX=
13786 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13787    test -n "$runpath_var CXX" || \
13788    test "X$hardcode_automatic_CXX"="Xyes" ; then
13789
13790   # We can hardcode non-existant directories.
13791   if test "$hardcode_direct_CXX" != no &&
13792      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13793      # have to relink, otherwise we might link with an installed library
13794      # when we should be linking with a yet-to-be-installed one
13795      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13796      test "$hardcode_minus_L_CXX" != no; then
13797     # Linking always hardcodes the temporary library directory.
13798     hardcode_action_CXX=relink
13799   else
13800     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13801     hardcode_action_CXX=immediate
13802   fi
13803 else
13804   # We cannot hardcode anything, or else we can only hardcode existing
13805   # directories.
13806   hardcode_action_CXX=unsupported
13807 fi
13808 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13809 echo "${ECHO_T}$hardcode_action_CXX" >&6
13810
13811 if test "$hardcode_action_CXX" = relink; then
13812   # Fast installation is not supported
13813   enable_fast_install=no
13814 elif test "$shlibpath_overrides_runpath" = yes ||
13815      test "$enable_shared" = no; then
13816   # Fast installation is not necessary
13817   enable_fast_install=needless
13818 fi
13819
13820 striplib=
13821 old_striplib=
13822 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13823 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13824 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13825   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13826   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13827   echo "$as_me:$LINENO: result: yes" >&5
13828 echo "${ECHO_T}yes" >&6
13829 else
13830 # FIXME - insert some real tests, host_os isn't really good enough
13831   case $host_os in
13832    darwin*)
13833        if test -n "$STRIP" ; then
13834          striplib="$STRIP -x"
13835          echo "$as_me:$LINENO: result: yes" >&5
13836 echo "${ECHO_T}yes" >&6
13837        else
13838   echo "$as_me:$LINENO: result: no" >&5
13839 echo "${ECHO_T}no" >&6
13840 fi
13841        ;;
13842    *)
13843   echo "$as_me:$LINENO: result: no" >&5
13844 echo "${ECHO_T}no" >&6
13845     ;;
13846   esac
13847 fi
13848
13849 if test "x$enable_dlopen" != xyes; then
13850   enable_dlopen=unknown
13851   enable_dlopen_self=unknown
13852   enable_dlopen_self_static=unknown
13853 else
13854   lt_cv_dlopen=no
13855   lt_cv_dlopen_libs=
13856
13857   case $host_os in
13858   beos*)
13859     lt_cv_dlopen="load_add_on"
13860     lt_cv_dlopen_libs=
13861     lt_cv_dlopen_self=yes
13862     ;;
13863
13864   mingw* | pw32*)
13865     lt_cv_dlopen="LoadLibrary"
13866     lt_cv_dlopen_libs=
13867    ;;
13868
13869   cygwin*)
13870     lt_cv_dlopen="dlopen"
13871     lt_cv_dlopen_libs=
13872    ;;
13873
13874   darwin*)
13875   # if libdl is installed we need to link against it
13876     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-ldl  $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889
13890 /* Override any gcc2 internal prototype to avoid an error.  */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 /* We use char because int might match the return type of a gcc2
13895    builtin and then its argument prototype would still apply.  */
13896 char dlopen ();
13897 int
13898 main ()
13899 {
13900 dlopen ();
13901   ;
13902   return 0;
13903 }
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907   (eval $ac_link) 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } &&
13914          { ac_try='test -z "$ac_cxx_werror_flag"
13915                          || test ! -s conftest.err'
13916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917   (eval $ac_try) 2>&5
13918   ac_status=$?
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); }; } &&
13921          { ac_try='test -s conftest$ac_exeext'
13922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923   (eval $ac_try) 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; }; then
13927   ac_cv_lib_dl_dlopen=yes
13928 else
13929   echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13931
13932 ac_cv_lib_dl_dlopen=no
13933 fi
13934 rm -f conftest.err conftest.$ac_objext \
13935       conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13937 fi
13938 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13940 if test $ac_cv_lib_dl_dlopen = yes; then
13941   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13942 else
13943
13944     lt_cv_dlopen="dyld"
13945     lt_cv_dlopen_libs=
13946     lt_cv_dlopen_self=yes
13947
13948 fi
13949
13950    ;;
13951
13952   *)
13953     echo "$as_me:$LINENO: checking for shl_load" >&5
13954 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13955 if test "${ac_cv_func_shl_load+set}" = set; then
13956   echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958   cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h.  */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h.  */
13964 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13966 #define shl_load innocuous_shl_load
13967
13968 /* System header to define __stub macros and hopefully few prototypes,
13969     which can conflict with char shl_load (); below.
13970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971     <limits.h> exists even on freestanding compilers.  */
13972
13973 #ifdef __STDC__
13974 # include <limits.h>
13975 #else
13976 # include <assert.h>
13977 #endif
13978
13979 #undef shl_load
13980
13981 /* Override any gcc2 internal prototype to avoid an error.  */
13982 #ifdef __cplusplus
13983 extern "C"
13984 {
13985 #endif
13986 /* We use char because int might match the return type of a gcc2
13987    builtin and then its argument prototype would still apply.  */
13988 char shl_load ();
13989 /* The GNU C library defines this for functions which it implements
13990     to always fail with ENOSYS.  Some functions are actually named
13991     something starting with __ and the normal name is an alias.  */
13992 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13993 choke me
13994 #else
13995 char (*f) () = shl_load;
13996 #endif
13997 #ifdef __cplusplus
13998 }
13999 #endif
14000
14001 int
14002 main ()
14003 {
14004 return f != shl_load;
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011   (eval $ac_link) 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_cxx_werror_flag"
14019                          || test ! -s conftest.err'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; } &&
14025          { ac_try='test -s conftest$ac_exeext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   ac_cv_func_shl_load=yes
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_cv_func_shl_load=no
14037 fi
14038 rm -f conftest.err conftest.$ac_objext \
14039       conftest$ac_exeext conftest.$ac_ext
14040 fi
14041 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14042 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14043 if test $ac_cv_func_shl_load = yes; then
14044   lt_cv_dlopen="shl_load"
14045 else
14046   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14047 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14048 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-ldld  $LIBS"
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059
14060 /* Override any gcc2 internal prototype to avoid an error.  */
14061 #ifdef __cplusplus
14062 extern "C"
14063 #endif
14064 /* We use char because int might match the return type of a gcc2
14065    builtin and then its argument prototype would still apply.  */
14066 char shl_load ();
14067 int
14068 main ()
14069 {
14070 shl_load ();
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext conftest$ac_exeext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077   (eval $ac_link) 2>conftest.er1
14078   ac_status=$?
14079   grep -v '^ *+' conftest.er1 >conftest.err
14080   rm -f conftest.er1
14081   cat conftest.err >&5
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -z "$ac_cxx_werror_flag"
14085                          || test ! -s conftest.err'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; } &&
14091          { ac_try='test -s conftest$ac_exeext'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; }; then
14097   ac_cv_lib_dld_shl_load=yes
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102 ac_cv_lib_dld_shl_load=no
14103 fi
14104 rm -f conftest.err conftest.$ac_objext \
14105       conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14107 fi
14108 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14109 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14110 if test $ac_cv_lib_dld_shl_load = yes; then
14111   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14112 else
14113   echo "$as_me:$LINENO: checking for dlopen" >&5
14114 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14115 if test "${ac_cv_func_dlopen+set}" = set; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14126 #define dlopen innocuous_dlopen
14127
14128 /* System header to define __stub macros and hopefully few prototypes,
14129     which can conflict with char dlopen (); below.
14130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14131     <limits.h> exists even on freestanding compilers.  */
14132
14133 #ifdef __STDC__
14134 # include <limits.h>
14135 #else
14136 # include <assert.h>
14137 #endif
14138
14139 #undef dlopen
14140
14141 /* Override any gcc2 internal prototype to avoid an error.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 {
14145 #endif
14146 /* We use char because int might match the return type of a gcc2
14147    builtin and then its argument prototype would still apply.  */
14148 char dlopen ();
14149 /* The GNU C library defines this for functions which it implements
14150     to always fail with ENOSYS.  Some functions are actually named
14151     something starting with __ and the normal name is an alias.  */
14152 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14153 choke me
14154 #else
14155 char (*f) () = dlopen;
14156 #endif
14157 #ifdef __cplusplus
14158 }
14159 #endif
14160
14161 int
14162 main ()
14163 {
14164 return f != dlopen;
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14171   (eval $ac_link) 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -z "$ac_cxx_werror_flag"
14179                          || test ! -s conftest.err'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest$ac_exeext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191   ac_cv_func_dlopen=yes
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 ac_cv_func_dlopen=no
14197 fi
14198 rm -f conftest.err conftest.$ac_objext \
14199       conftest$ac_exeext conftest.$ac_ext
14200 fi
14201 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14202 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14203 if test $ac_cv_func_dlopen = yes; then
14204   lt_cv_dlopen="dlopen"
14205 else
14206   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14207 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14209   echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211   ac_check_lib_save_LIBS=$LIBS
14212 LIBS="-ldl  $LIBS"
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h.  */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h.  */
14219
14220 /* Override any gcc2 internal prototype to avoid an error.  */
14221 #ifdef __cplusplus
14222 extern "C"
14223 #endif
14224 /* We use char because int might match the return type of a gcc2
14225    builtin and then its argument prototype would still apply.  */
14226 char dlopen ();
14227 int
14228 main ()
14229 {
14230 dlopen ();
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14237   (eval $ac_link) 2>conftest.er1
14238   ac_status=$?
14239   grep -v '^ *+' conftest.er1 >conftest.err
14240   rm -f conftest.er1
14241   cat conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); } &&
14244          { ac_try='test -z "$ac_cxx_werror_flag"
14245                          || test ! -s conftest.err'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest$ac_exeext'
14252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253   (eval $ac_try) 2>&5
14254   ac_status=$?
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); }; }; then
14257   ac_cv_lib_dl_dlopen=yes
14258 else
14259   echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 ac_cv_lib_dl_dlopen=no
14263 fi
14264 rm -f conftest.err conftest.$ac_objext \
14265       conftest$ac_exeext conftest.$ac_ext
14266 LIBS=$ac_check_lib_save_LIBS
14267 fi
14268 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14269 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14270 if test $ac_cv_lib_dl_dlopen = yes; then
14271   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14272 else
14273   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14274 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14275 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-lsvld  $LIBS"
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286
14287 /* Override any gcc2 internal prototype to avoid an error.  */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 /* We use char because int might match the return type of a gcc2
14292    builtin and then its argument prototype would still apply.  */
14293 char dlopen ();
14294 int
14295 main ()
14296 {
14297 dlopen ();
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304   (eval $ac_link) 2>conftest.er1
14305   ac_status=$?
14306   grep -v '^ *+' conftest.er1 >conftest.err
14307   rm -f conftest.er1
14308   cat conftest.err >&5
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -z "$ac_cxx_werror_flag"
14312                          || test ! -s conftest.err'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; } &&
14318          { ac_try='test -s conftest$ac_exeext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_lib_svld_dlopen=yes
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_cv_lib_svld_dlopen=no
14330 fi
14331 rm -f conftest.err conftest.$ac_objext \
14332       conftest$ac_exeext conftest.$ac_ext
14333 LIBS=$ac_check_lib_save_LIBS
14334 fi
14335 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14336 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14337 if test $ac_cv_lib_svld_dlopen = yes; then
14338   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14339 else
14340   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14341 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14342 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-ldld  $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353
14354 /* Override any gcc2 internal prototype to avoid an error.  */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 /* We use char because int might match the return type of a gcc2
14359    builtin and then its argument prototype would still apply.  */
14360 char dld_link ();
14361 int
14362 main ()
14363 {
14364 dld_link ();
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371   (eval $ac_link) 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -z "$ac_cxx_werror_flag"
14379                          || test ! -s conftest.err'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; } &&
14385          { ac_try='test -s conftest$ac_exeext'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; }; then
14391   ac_cv_lib_dld_dld_link=yes
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_cv_lib_dld_dld_link=no
14397 fi
14398 rm -f conftest.err conftest.$ac_objext \
14399       conftest$ac_exeext conftest.$ac_ext
14400 LIBS=$ac_check_lib_save_LIBS
14401 fi
14402 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14403 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14404 if test $ac_cv_lib_dld_dld_link = yes; then
14405   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14406 fi
14407
14408
14409 fi
14410
14411
14412 fi
14413
14414
14415 fi
14416
14417
14418 fi
14419
14420
14421 fi
14422
14423     ;;
14424   esac
14425
14426   if test "x$lt_cv_dlopen" != xno; then
14427     enable_dlopen=yes
14428   else
14429     enable_dlopen=no
14430   fi
14431
14432   case $lt_cv_dlopen in
14433   dlopen)
14434     save_CPPFLAGS="$CPPFLAGS"
14435     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14436
14437     save_LDFLAGS="$LDFLAGS"
14438     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14439
14440     save_LIBS="$LIBS"
14441     LIBS="$lt_cv_dlopen_libs $LIBS"
14442
14443     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14444 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14445 if test "${lt_cv_dlopen_self+set}" = set; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448           if test "$cross_compiling" = yes; then :
14449   lt_cv_dlopen_self=cross
14450 else
14451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14452   lt_status=$lt_dlunknown
14453   cat > conftest.$ac_ext <<EOF
14454 #line 14454 "configure"
14455 #include "confdefs.h"
14456
14457 #if HAVE_DLFCN_H
14458 #include <dlfcn.h>
14459 #endif
14460
14461 #include <stdio.h>
14462
14463 #ifdef RTLD_GLOBAL
14464 #  define LT_DLGLOBAL           RTLD_GLOBAL
14465 #else
14466 #  ifdef DL_GLOBAL
14467 #    define LT_DLGLOBAL         DL_GLOBAL
14468 #  else
14469 #    define LT_DLGLOBAL         0
14470 #  endif
14471 #endif
14472
14473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14474    find out it does not work in some platform. */
14475 #ifndef LT_DLLAZY_OR_NOW
14476 #  ifdef RTLD_LAZY
14477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14478 #  else
14479 #    ifdef DL_LAZY
14480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14481 #    else
14482 #      ifdef RTLD_NOW
14483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14484 #      else
14485 #        ifdef DL_NOW
14486 #          define LT_DLLAZY_OR_NOW      DL_NOW
14487 #        else
14488 #          define LT_DLLAZY_OR_NOW      0
14489 #        endif
14490 #      endif
14491 #    endif
14492 #  endif
14493 #endif
14494
14495 #ifdef __cplusplus
14496 extern "C" void exit (int);
14497 #endif
14498
14499 void fnord() { int i=42;}
14500 int main ()
14501 {
14502   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14503   int status = $lt_dlunknown;
14504
14505   if (self)
14506     {
14507       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14508       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14509       /* dlclose (self); */
14510     }
14511
14512     exit (status);
14513 }
14514 EOF
14515   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516   (eval $ac_link) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14520     (./conftest; exit; ) 2>/dev/null
14521     lt_status=$?
14522     case x$lt_status in
14523       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14524       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14525       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14526     esac
14527   else :
14528     # compilation failed
14529     lt_cv_dlopen_self=no
14530   fi
14531 fi
14532 rm -fr conftest*
14533
14534
14535 fi
14536 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14537 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14538
14539     if test "x$lt_cv_dlopen_self" = xyes; then
14540       LDFLAGS="$LDFLAGS $link_static_flag"
14541       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14542 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14543 if test "${lt_cv_dlopen_self_static+set}" = set; then
14544   echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546           if test "$cross_compiling" = yes; then :
14547   lt_cv_dlopen_self_static=cross
14548 else
14549   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14550   lt_status=$lt_dlunknown
14551   cat > conftest.$ac_ext <<EOF
14552 #line 14552 "configure"
14553 #include "confdefs.h"
14554
14555 #if HAVE_DLFCN_H
14556 #include <dlfcn.h>
14557 #endif
14558
14559 #include <stdio.h>
14560
14561 #ifdef RTLD_GLOBAL
14562 #  define LT_DLGLOBAL           RTLD_GLOBAL
14563 #else
14564 #  ifdef DL_GLOBAL
14565 #    define LT_DLGLOBAL         DL_GLOBAL
14566 #  else
14567 #    define LT_DLGLOBAL         0
14568 #  endif
14569 #endif
14570
14571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14572    find out it does not work in some platform. */
14573 #ifndef LT_DLLAZY_OR_NOW
14574 #  ifdef RTLD_LAZY
14575 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14576 #  else
14577 #    ifdef DL_LAZY
14578 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14579 #    else
14580 #      ifdef RTLD_NOW
14581 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14582 #      else
14583 #        ifdef DL_NOW
14584 #          define LT_DLLAZY_OR_NOW      DL_NOW
14585 #        else
14586 #          define LT_DLLAZY_OR_NOW      0
14587 #        endif
14588 #      endif
14589 #    endif
14590 #  endif
14591 #endif
14592
14593 #ifdef __cplusplus
14594 extern "C" void exit (int);
14595 #endif
14596
14597 void fnord() { int i=42;}
14598 int main ()
14599 {
14600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14601   int status = $lt_dlunknown;
14602
14603   if (self)
14604     {
14605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14606       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14607       /* dlclose (self); */
14608     }
14609
14610     exit (status);
14611 }
14612 EOF
14613   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614   (eval $ac_link) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14618     (./conftest; exit; ) 2>/dev/null
14619     lt_status=$?
14620     case x$lt_status in
14621       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14622       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14623       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14624     esac
14625   else :
14626     # compilation failed
14627     lt_cv_dlopen_self_static=no
14628   fi
14629 fi
14630 rm -fr conftest*
14631
14632
14633 fi
14634 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14635 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14636     fi
14637
14638     CPPFLAGS="$save_CPPFLAGS"
14639     LDFLAGS="$save_LDFLAGS"
14640     LIBS="$save_LIBS"
14641     ;;
14642   esac
14643
14644   case $lt_cv_dlopen_self in
14645   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14646   *) enable_dlopen_self=unknown ;;
14647   esac
14648
14649   case $lt_cv_dlopen_self_static in
14650   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14651   *) enable_dlopen_self_static=unknown ;;
14652   esac
14653 fi
14654
14655
14656 # The else clause should only fire when bootstrapping the
14657 # libtool distribution, otherwise you forgot to ship ltmain.sh
14658 # with your package, and you will get complaints that there are
14659 # no rules to generate ltmain.sh.
14660 if test -f "$ltmain"; then
14661   # See if we are running on zsh, and set the options which allow our commands through
14662   # without removal of \ escapes.
14663   if test -n "${ZSH_VERSION+set}" ; then
14664     setopt NO_GLOB_SUBST
14665   fi
14666   # Now quote all the things that may contain metacharacters while being
14667   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14668   # variables and quote the copies for generation of the libtool script.
14669   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14670     SED SHELL STRIP \
14671     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14672     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14673     deplibs_check_method reload_flag reload_cmds need_locks \
14674     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14675     lt_cv_sys_global_symbol_to_c_name_address \
14676     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14677     old_postinstall_cmds old_postuninstall_cmds \
14678     compiler_CXX \
14679     CC_CXX \
14680     LD_CXX \
14681     lt_prog_compiler_wl_CXX \
14682     lt_prog_compiler_pic_CXX \
14683     lt_prog_compiler_static_CXX \
14684     lt_prog_compiler_no_builtin_flag_CXX \
14685     export_dynamic_flag_spec_CXX \
14686     thread_safe_flag_spec_CXX \
14687     whole_archive_flag_spec_CXX \
14688     enable_shared_with_static_runtimes_CXX \
14689     old_archive_cmds_CXX \
14690     old_archive_from_new_cmds_CXX \
14691     predep_objects_CXX \
14692     postdep_objects_CXX \
14693     predeps_CXX \
14694     postdeps_CXX \
14695     compiler_lib_search_path_CXX \
14696     archive_cmds_CXX \
14697     archive_expsym_cmds_CXX \
14698     postinstall_cmds_CXX \
14699     postuninstall_cmds_CXX \
14700     old_archive_from_expsyms_cmds_CXX \
14701     allow_undefined_flag_CXX \
14702     no_undefined_flag_CXX \
14703     export_symbols_cmds_CXX \
14704     hardcode_libdir_flag_spec_CXX \
14705     hardcode_libdir_flag_spec_ld_CXX \
14706     hardcode_libdir_separator_CXX \
14707     hardcode_automatic_CXX \
14708     module_cmds_CXX \
14709     module_expsym_cmds_CXX \
14710     lt_cv_prog_compiler_c_o_CXX \
14711     exclude_expsyms_CXX \
14712     include_expsyms_CXX; do
14713
14714     case $var in
14715     old_archive_cmds_CXX | \
14716     old_archive_from_new_cmds_CXX | \
14717     archive_cmds_CXX | \
14718     archive_expsym_cmds_CXX | \
14719     module_cmds_CXX | \
14720     module_expsym_cmds_CXX | \
14721     old_archive_from_expsyms_cmds_CXX | \
14722     export_symbols_cmds_CXX | \
14723     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14724     postinstall_cmds | postuninstall_cmds | \
14725     old_postinstall_cmds | old_postuninstall_cmds | \
14726     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14727       # Double-quote double-evaled strings.
14728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14729       ;;
14730     *)
14731       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14732       ;;
14733     esac
14734   done
14735
14736   case $lt_echo in
14737   *'\$0 --fallback-echo"')
14738     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14739     ;;
14740   esac
14741
14742 cfgfile="$ofile"
14743
14744   cat <<__EOF__ >> "$cfgfile"
14745 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14746
14747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14748
14749 # Shell to use when invoking shell scripts.
14750 SHELL=$lt_SHELL
14751
14752 # Whether or not to build shared libraries.
14753 build_libtool_libs=$enable_shared
14754
14755 # Whether or not to build static libraries.
14756 build_old_libs=$enable_static
14757
14758 # Whether or not to add -lc for building shared libraries.
14759 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14760
14761 # Whether or not to disallow shared libs when runtime libs are static
14762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14763
14764 # Whether or not to optimize for fast installation.
14765 fast_install=$enable_fast_install
14766
14767 # The host system.
14768 host_alias=$host_alias
14769 host=$host
14770
14771 # An echo program that does not interpret backslashes.
14772 echo=$lt_echo
14773
14774 # The archiver.
14775 AR=$lt_AR
14776 AR_FLAGS=$lt_AR_FLAGS
14777
14778 # A C compiler.
14779 LTCC=$lt_LTCC
14780
14781 # A language-specific compiler.
14782 CC=$lt_compiler_CXX
14783
14784 # Is the compiler the GNU C compiler?
14785 with_gcc=$GCC_CXX
14786
14787 # An ERE matcher.
14788 EGREP=$lt_EGREP
14789
14790 # The linker used to build libraries.
14791 LD=$lt_LD_CXX
14792
14793 # Whether we need hard or soft links.
14794 LN_S=$lt_LN_S
14795
14796 # A BSD-compatible nm program.
14797 NM=$lt_NM
14798
14799 # A symbol stripping program
14800 STRIP=$lt_STRIP
14801
14802 # Used to examine libraries when file_magic_cmd begins "file"
14803 MAGIC_CMD=$MAGIC_CMD
14804
14805 # Used on cygwin: DLL creation program.
14806 DLLTOOL="$DLLTOOL"
14807
14808 # Used on cygwin: object dumper.
14809 OBJDUMP="$OBJDUMP"
14810
14811 # Used on cygwin: assembler.
14812 AS="$AS"
14813
14814 # The name of the directory that contains temporary libtool files.
14815 objdir=$objdir
14816
14817 # How to create reloadable object files.
14818 reload_flag=$lt_reload_flag
14819 reload_cmds=$lt_reload_cmds
14820
14821 # How to pass a linker flag through the compiler.
14822 wl=$lt_lt_prog_compiler_wl_CXX
14823
14824 # Object file suffix (normally "o").
14825 objext="$ac_objext"
14826
14827 # Old archive suffix (normally "a").
14828 libext="$libext"
14829
14830 # Shared library suffix (normally ".so").
14831 shrext_cmds='$shrext_cmds'
14832
14833 # Executable file suffix (normally "").
14834 exeext="$exeext"
14835
14836 # Additional compiler flags for building library objects.
14837 pic_flag=$lt_lt_prog_compiler_pic_CXX
14838 pic_mode=$pic_mode
14839
14840 # What is the maximum length of a command?
14841 max_cmd_len=$lt_cv_sys_max_cmd_len
14842
14843 # Does compiler simultaneously support -c and -o options?
14844 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14845
14846 # Must we lock files when doing compilation ?
14847 need_locks=$lt_need_locks
14848
14849 # Do we need the lib prefix for modules?
14850 need_lib_prefix=$need_lib_prefix
14851
14852 # Do we need a version for libraries?
14853 need_version=$need_version
14854
14855 # Whether dlopen is supported.
14856 dlopen_support=$enable_dlopen
14857
14858 # Whether dlopen of programs is supported.
14859 dlopen_self=$enable_dlopen_self
14860
14861 # Whether dlopen of statically linked programs is supported.
14862 dlopen_self_static=$enable_dlopen_self_static
14863
14864 # Compiler flag to prevent dynamic linking.
14865 link_static_flag=$lt_lt_prog_compiler_static_CXX
14866
14867 # Compiler flag to turn off builtin functions.
14868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14869
14870 # Compiler flag to allow reflexive dlopens.
14871 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14872
14873 # Compiler flag to generate shared objects directly from archives.
14874 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14875
14876 # Compiler flag to generate thread-safe objects.
14877 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14878
14879 # Library versioning type.
14880 version_type=$version_type
14881
14882 # Format of library name prefix.
14883 libname_spec=$lt_libname_spec
14884
14885 # List of archive names.  First name is the real one, the rest are links.
14886 # The last name is the one that the linker finds with -lNAME.
14887 library_names_spec=$lt_library_names_spec
14888
14889 # The coded name of the library, if different from the real name.
14890 soname_spec=$lt_soname_spec
14891
14892 # Commands used to build and install an old-style archive.
14893 RANLIB=$lt_RANLIB
14894 old_archive_cmds=$lt_old_archive_cmds_CXX
14895 old_postinstall_cmds=$lt_old_postinstall_cmds
14896 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14897
14898 # Create an old-style archive from a shared archive.
14899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14900
14901 # Create a temporary old-style archive to link instead of a shared archive.
14902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14903
14904 # Commands used to build and install a shared archive.
14905 archive_cmds=$lt_archive_cmds_CXX
14906 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14907 postinstall_cmds=$lt_postinstall_cmds
14908 postuninstall_cmds=$lt_postuninstall_cmds
14909
14910 # Commands used to build a loadable module (assumed same as above if empty)
14911 module_cmds=$lt_module_cmds_CXX
14912 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14913
14914 # Commands to strip libraries.
14915 old_striplib=$lt_old_striplib
14916 striplib=$lt_striplib
14917
14918 # Dependencies to place before the objects being linked to create a
14919 # shared library.
14920 predep_objects=$lt_predep_objects_CXX
14921
14922 # Dependencies to place after the objects being linked to create a
14923 # shared library.
14924 postdep_objects=$lt_postdep_objects_CXX
14925
14926 # Dependencies to place before the objects being linked to create a
14927 # shared library.
14928 predeps=$lt_predeps_CXX
14929
14930 # Dependencies to place after the objects being linked to create a
14931 # shared library.
14932 postdeps=$lt_postdeps_CXX
14933
14934 # The library search path used internally by the compiler when linking
14935 # a shared library.
14936 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14937
14938 # Method to check whether dependent libraries are shared objects.
14939 deplibs_check_method=$lt_deplibs_check_method
14940
14941 # Command to use when deplibs_check_method == file_magic.
14942 file_magic_cmd=$lt_file_magic_cmd
14943
14944 # Flag that allows shared libraries with undefined symbols to be built.
14945 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14946
14947 # Flag that forces no undefined symbols.
14948 no_undefined_flag=$lt_no_undefined_flag_CXX
14949
14950 # Commands used to finish a libtool library installation in a directory.
14951 finish_cmds=$lt_finish_cmds
14952
14953 # Same as above, but a single script fragment to be evaled but not shown.
14954 finish_eval=$lt_finish_eval
14955
14956 # Take the output of nm and produce a listing of raw symbols and C names.
14957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14958
14959 # Transform the output of nm in a proper C declaration
14960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14961
14962 # Transform the output of nm in a C name address pair
14963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14964
14965 # This is the shared library runtime path variable.
14966 runpath_var=$runpath_var
14967
14968 # This is the shared library path variable.
14969 shlibpath_var=$shlibpath_var
14970
14971 # Is shlibpath searched before the hard-coded library search path?
14972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14973
14974 # How to hardcode a shared library path into an executable.
14975 hardcode_action=$hardcode_action_CXX
14976
14977 # Whether we should hardcode library paths into libraries.
14978 hardcode_into_libs=$hardcode_into_libs
14979
14980 # Flag to hardcode \$libdir into a binary during linking.
14981 # This must work even if \$libdir does not exist.
14982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14983
14984 # If ld is used when linking, flag to hardcode \$libdir into
14985 # a binary during linking. This must work even if \$libdir does
14986 # not exist.
14987 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14988
14989 # Whether we need a single -rpath flag with a separated argument.
14990 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14991
14992 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14993 # resulting binary.
14994 hardcode_direct=$hardcode_direct_CXX
14995
14996 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14997 # resulting binary.
14998 hardcode_minus_L=$hardcode_minus_L_CXX
14999
15000 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15001 # the resulting binary.
15002 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15003
15004 # Set to yes if building a shared library automatically hardcodes DIR into the library
15005 # and all subsequent libraries and executables linked against it.
15006 hardcode_automatic=$hardcode_automatic_CXX
15007
15008 # Variables whose values should be saved in libtool wrapper scripts and
15009 # restored at relink time.
15010 variables_saved_for_relink="$variables_saved_for_relink"
15011
15012 # Whether libtool must link a program against all its dependency libraries.
15013 link_all_deplibs=$link_all_deplibs_CXX
15014
15015 # Compile-time system search path for libraries
15016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15017
15018 # Run-time system search path for libraries
15019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15020
15021 # Fix the shell variable \$srcfile for the compiler.
15022 fix_srcfile_path="$fix_srcfile_path_CXX"
15023
15024 # Set to yes if exported symbols are required.
15025 always_export_symbols=$always_export_symbols_CXX
15026
15027 # The commands to list exported symbols.
15028 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15029
15030 # The commands to extract the exported symbol list from a shared archive.
15031 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15032
15033 # Symbols that should not be listed in the preloaded symbols.
15034 exclude_expsyms=$lt_exclude_expsyms_CXX
15035
15036 # Symbols that must always be exported.
15037 include_expsyms=$lt_include_expsyms_CXX
15038
15039 # ### END LIBTOOL TAG CONFIG: $tagname
15040
15041 __EOF__
15042
15043
15044 else
15045   # If there is no Makefile yet, we rely on a make rule to execute
15046   # `config.status --recheck' to rerun these tests and create the
15047   # libtool script then.
15048   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15049   if test -f "$ltmain_in"; then
15050     test -f Makefile && make "$ltmain"
15051   fi
15052 fi
15053
15054
15055 ac_ext=c
15056 ac_cpp='$CPP $CPPFLAGS'
15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15060
15061 CC=$lt_save_CC
15062 LDCXX=$LD
15063 LD=$lt_save_LD
15064 GCC=$lt_save_GCC
15065 with_gnu_ldcxx=$with_gnu_ld
15066 with_gnu_ld=$lt_save_with_gnu_ld
15067 lt_cv_path_LDCXX=$lt_cv_path_LD
15068 lt_cv_path_LD=$lt_save_path_LD
15069 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15070 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15071
15072         else
15073           tagname=""
15074         fi
15075         ;;
15076
15077       F77)
15078         if test -n "$F77" && test "X$F77" != "Xno"; then
15079
15080 ac_ext=f
15081 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15082 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15083 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15084
15085
15086 archive_cmds_need_lc_F77=no
15087 allow_undefined_flag_F77=
15088 always_export_symbols_F77=no
15089 archive_expsym_cmds_F77=
15090 export_dynamic_flag_spec_F77=
15091 hardcode_direct_F77=no
15092 hardcode_libdir_flag_spec_F77=
15093 hardcode_libdir_flag_spec_ld_F77=
15094 hardcode_libdir_separator_F77=
15095 hardcode_minus_L_F77=no
15096 hardcode_automatic_F77=no
15097 module_cmds_F77=
15098 module_expsym_cmds_F77=
15099 link_all_deplibs_F77=unknown
15100 old_archive_cmds_F77=$old_archive_cmds
15101 no_undefined_flag_F77=
15102 whole_archive_flag_spec_F77=
15103 enable_shared_with_static_runtimes_F77=no
15104
15105 # Source file extension for f77 test sources.
15106 ac_ext=f
15107
15108 # Object file extension for compiled f77 test sources.
15109 objext=o
15110 objext_F77=$objext
15111
15112 # Code to be used in simple compile tests
15113 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15114
15115 # Code to be used in simple link tests
15116 lt_simple_link_test_code="      program t\n      end\n"
15117
15118 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15119
15120 # If no C compiler was specified, use CC.
15121 LTCC=${LTCC-"$CC"}
15122
15123 # Allow CC to be a program name with arguments.
15124 compiler=$CC
15125
15126
15127 # Allow CC to be a program name with arguments.
15128 lt_save_CC="$CC"
15129 CC=${F77-"f77"}
15130 compiler=$CC
15131 compiler_F77=$CC
15132 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15133
15134 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15135 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15136 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15137 echo "${ECHO_T}$can_build_shared" >&6
15138
15139 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15140 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15141 test "$can_build_shared" = "no" && enable_shared=no
15142
15143 # On AIX, shared libraries and static libraries use the same namespace, and
15144 # are all built from PIC.
15145 case "$host_os" in
15146 aix3*)
15147   test "$enable_shared" = yes && enable_static=no
15148   if test -n "$RANLIB"; then
15149     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15150     postinstall_cmds='$RANLIB $lib'
15151   fi
15152   ;;
15153 aix4* | aix5*)
15154   test "$enable_shared" = yes && enable_static=no
15155   ;;
15156 esac
15157 echo "$as_me:$LINENO: result: $enable_shared" >&5
15158 echo "${ECHO_T}$enable_shared" >&6
15159
15160 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15161 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15162 # Make sure either enable_shared or enable_static is yes.
15163 test "$enable_shared" = yes || enable_static=yes
15164 echo "$as_me:$LINENO: result: $enable_static" >&5
15165 echo "${ECHO_T}$enable_static" >&6
15166
15167 test "$ld_shlibs_F77" = no && can_build_shared=no
15168
15169 GCC_F77="$G77"
15170 LD_F77="$LD"
15171
15172 lt_prog_compiler_wl_F77=
15173 lt_prog_compiler_pic_F77=
15174 lt_prog_compiler_static_F77=
15175
15176 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15177 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15178
15179   if test "$GCC" = yes; then
15180     lt_prog_compiler_wl_F77='-Wl,'
15181     lt_prog_compiler_static_F77='-static'
15182
15183     case $host_os in
15184       aix*)
15185       # All AIX code is PIC.
15186       if test "$host_cpu" = ia64; then
15187         # AIX 5 now supports IA64 processor
15188         lt_prog_compiler_static_F77='-Bstatic'
15189       fi
15190       ;;
15191
15192     amigaos*)
15193       # FIXME: we need at least 68020 code to build shared libraries, but
15194       # adding the `-m68020' flag to GCC prevents building anything better,
15195       # like `-m68040'.
15196       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15197       ;;
15198
15199     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15200       # PIC is the default for these OSes.
15201       ;;
15202
15203     mingw* | pw32* | os2*)
15204       # This hack is so that the source file can tell whether it is being
15205       # built for inclusion in a dll (and should export symbols for example).
15206       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15207       ;;
15208
15209     darwin* | rhapsody*)
15210       # PIC is the default on this platform
15211       # Common symbols not allowed in MH_DYLIB files
15212       lt_prog_compiler_pic_F77='-fno-common'
15213       ;;
15214
15215     msdosdjgpp*)
15216       # Just because we use GCC doesn't mean we suddenly get shared libraries
15217       # on systems that don't support them.
15218       lt_prog_compiler_can_build_shared_F77=no
15219       enable_shared=no
15220       ;;
15221
15222     sysv4*MP*)
15223       if test -d /usr/nec; then
15224         lt_prog_compiler_pic_F77=-Kconform_pic
15225       fi
15226       ;;
15227
15228     hpux*)
15229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15230       # not for PA HP-UX.
15231       case "$host_cpu" in
15232       hppa*64*|ia64*)
15233         # +Z the default
15234         ;;
15235       *)
15236         lt_prog_compiler_pic_F77='-fPIC'
15237         ;;
15238       esac
15239       ;;
15240
15241     *)
15242       lt_prog_compiler_pic_F77='-fPIC'
15243       ;;
15244     esac
15245   else
15246     # PORTME Check for flag to pass linker flags through the system compiler.
15247     case $host_os in
15248     aix*)
15249       lt_prog_compiler_wl_F77='-Wl,'
15250       if test "$host_cpu" = ia64; then
15251         # AIX 5 now supports IA64 processor
15252         lt_prog_compiler_static_F77='-Bstatic'
15253       else
15254         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15255       fi
15256       ;;
15257
15258     mingw* | pw32* | os2*)
15259       # This hack is so that the source file can tell whether it is being
15260       # built for inclusion in a dll (and should export symbols for example).
15261       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15262       ;;
15263
15264     hpux9* | hpux10* | hpux11*)
15265       lt_prog_compiler_wl_F77='-Wl,'
15266       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15267       # not for PA HP-UX.
15268       case "$host_cpu" in
15269       hppa*64*|ia64*)
15270         # +Z the default
15271         ;;
15272       *)
15273         lt_prog_compiler_pic_F77='+Z'
15274         ;;
15275       esac
15276       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15277       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15278       ;;
15279
15280     irix5* | irix6* | nonstopux*)
15281       lt_prog_compiler_wl_F77='-Wl,'
15282       # PIC (with -KPIC) is the default.
15283       lt_prog_compiler_static_F77='-non_shared'
15284       ;;
15285
15286     newsos6)
15287       lt_prog_compiler_pic_F77='-KPIC'
15288       lt_prog_compiler_static_F77='-Bstatic'
15289       ;;
15290
15291     linux*)
15292       case $CC in
15293       icc* | ecc*)
15294         lt_prog_compiler_wl_F77='-Wl,'
15295         lt_prog_compiler_pic_F77='-KPIC'
15296         lt_prog_compiler_static_F77='-static'
15297         ;;
15298       ccc*)
15299         lt_prog_compiler_wl_F77='-Wl,'
15300         # All Alpha code is PIC.
15301         lt_prog_compiler_static_F77='-non_shared'
15302         ;;
15303       esac
15304       ;;
15305
15306     osf3* | osf4* | osf5*)
15307       lt_prog_compiler_wl_F77='-Wl,'
15308       # All OSF/1 code is PIC.
15309       lt_prog_compiler_static_F77='-non_shared'
15310       ;;
15311
15312     sco3.2v5*)
15313       lt_prog_compiler_pic_F77='-Kpic'
15314       lt_prog_compiler_static_F77='-dn'
15315       ;;
15316
15317     solaris*)
15318       lt_prog_compiler_wl_F77='-Wl,'
15319       lt_prog_compiler_pic_F77='-KPIC'
15320       lt_prog_compiler_static_F77='-Bstatic'
15321       ;;
15322
15323     sunos4*)
15324       lt_prog_compiler_wl_F77='-Qoption ld '
15325       lt_prog_compiler_pic_F77='-PIC'
15326       lt_prog_compiler_static_F77='-Bstatic'
15327       ;;
15328
15329     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15330       lt_prog_compiler_wl_F77='-Wl,'
15331       lt_prog_compiler_pic_F77='-KPIC'
15332       lt_prog_compiler_static_F77='-Bstatic'
15333       ;;
15334
15335     sysv4*MP*)
15336       if test -d /usr/nec ;then
15337         lt_prog_compiler_pic_F77='-Kconform_pic'
15338         lt_prog_compiler_static_F77='-Bstatic'
15339       fi
15340       ;;
15341
15342     uts4*)
15343       lt_prog_compiler_pic_F77='-pic'
15344       lt_prog_compiler_static_F77='-Bstatic'
15345       ;;
15346
15347     *)
15348       lt_prog_compiler_can_build_shared_F77=no
15349       ;;
15350     esac
15351   fi
15352
15353 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15354 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15355
15356 #
15357 # Check to make sure the PIC flag actually works.
15358 #
15359 if test -n "$lt_prog_compiler_pic_F77"; then
15360
15361 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15363 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   lt_prog_compiler_pic_works_F77=no
15367   ac_outfile=conftest.$ac_objext
15368    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15369    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15370    # Insert the option either (1) after the last *FLAGS variable, or
15371    # (2) before a word containing "conftest.", or (3) at the end.
15372    # Note that $ac_compile itself does not contain backslashes and begins
15373    # with a dollar sign (not a hyphen), so the echo should work correctly.
15374    # The option is referenced via a variable to avoid confusing sed.
15375    lt_compile=`echo "$ac_compile" | $SED \
15376    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15378    -e 's:$: $lt_compiler_flag:'`
15379    (eval echo "\"\$as_me:15379: $lt_compile\"" >&5)
15380    (eval "$lt_compile" 2>conftest.err)
15381    ac_status=$?
15382    cat conftest.err >&5
15383    echo "$as_me:15383: \$? = $ac_status" >&5
15384    if (exit $ac_status) && test -s "$ac_outfile"; then
15385      # The compiler can only warn and ignore the option if not recognized
15386      # So say no if there are warnings
15387      if test ! -s conftest.err; then
15388        lt_prog_compiler_pic_works_F77=yes
15389      fi
15390    fi
15391    $rm conftest*
15392
15393 fi
15394 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15395 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15396
15397 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15398     case $lt_prog_compiler_pic_F77 in
15399      "" | " "*) ;;
15400      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15401      esac
15402 else
15403     lt_prog_compiler_pic_F77=
15404      lt_prog_compiler_can_build_shared_F77=no
15405 fi
15406
15407 fi
15408 case "$host_os" in
15409   # For platforms which do not support PIC, -DPIC is meaningless:
15410   *djgpp*)
15411     lt_prog_compiler_pic_F77=
15412     ;;
15413   *)
15414     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15415     ;;
15416 esac
15417
15418 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15420 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   lt_cv_prog_compiler_c_o_F77=no
15424    $rm -r conftest 2>/dev/null
15425    mkdir conftest
15426    cd conftest
15427    mkdir out
15428    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429
15430    lt_compiler_flag="-o out/conftest2.$ac_objext"
15431    # Insert the option either (1) after the last *FLAGS variable, or
15432    # (2) before a word containing "conftest.", or (3) at the end.
15433    # Note that $ac_compile itself does not contain backslashes and begins
15434    # with a dollar sign (not a hyphen), so the echo should work correctly.
15435    lt_compile=`echo "$ac_compile" | $SED \
15436    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15438    -e 's:$: $lt_compiler_flag:'`
15439    (eval echo "\"\$as_me:15439: $lt_compile\"" >&5)
15440    (eval "$lt_compile" 2>out/conftest.err)
15441    ac_status=$?
15442    cat out/conftest.err >&5
15443    echo "$as_me:15443: \$? = $ac_status" >&5
15444    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15445    then
15446      # The compiler can only warn and ignore the option if not recognized
15447      # So say no if there are warnings
15448      if test ! -s out/conftest.err; then
15449        lt_cv_prog_compiler_c_o_F77=yes
15450      fi
15451    fi
15452    chmod u+w .
15453    $rm conftest*
15454    # SGI C++ compiler will create directory out/ii_files/ for
15455    # template instantiation
15456    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15457    $rm out/* && rmdir out
15458    cd ..
15459    rmdir conftest
15460    $rm conftest*
15461
15462 fi
15463 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15464 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15465
15466
15467 hard_links="nottested"
15468 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15469   # do not overwrite the value of need_locks provided by the user
15470   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15471 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15472   hard_links=yes
15473   $rm conftest*
15474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15475   touch conftest.a
15476   ln conftest.a conftest.b 2>&5 || hard_links=no
15477   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15478   echo "$as_me:$LINENO: result: $hard_links" >&5
15479 echo "${ECHO_T}$hard_links" >&6
15480   if test "$hard_links" = no; then
15481     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15482 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15483     need_locks=warn
15484   fi
15485 else
15486   need_locks=no
15487 fi
15488
15489 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15490 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15491
15492   runpath_var=
15493   allow_undefined_flag_F77=
15494   enable_shared_with_static_runtimes_F77=no
15495   archive_cmds_F77=
15496   archive_expsym_cmds_F77=
15497   old_archive_From_new_cmds_F77=
15498   old_archive_from_expsyms_cmds_F77=
15499   export_dynamic_flag_spec_F77=
15500   whole_archive_flag_spec_F77=
15501   thread_safe_flag_spec_F77=
15502   hardcode_libdir_flag_spec_F77=
15503   hardcode_libdir_flag_spec_ld_F77=
15504   hardcode_libdir_separator_F77=
15505   hardcode_direct_F77=no
15506   hardcode_minus_L_F77=no
15507   hardcode_shlibpath_var_F77=unsupported
15508   link_all_deplibs_F77=unknown
15509   hardcode_automatic_F77=no
15510   module_cmds_F77=
15511   module_expsym_cmds_F77=
15512   always_export_symbols_F77=no
15513   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15514   # include_expsyms should be a list of space-separated symbols to be *always*
15515   # included in the symbol list
15516   include_expsyms_F77=
15517   # exclude_expsyms can be an extended regexp of symbols to exclude
15518   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15519   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15520   # as well as any symbol that contains `d'.
15521   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15522   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15523   # platforms (ab)use it in PIC code, but their linkers get confused if
15524   # the symbol is explicitly referenced.  Since portable code cannot
15525   # rely on this symbol name, it's probably fine to never include it in
15526   # preloaded symbol tables.
15527   extract_expsyms_cmds=
15528
15529   case $host_os in
15530   cygwin* | mingw* | pw32*)
15531     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15532     # When not using gcc, we currently assume that we are using
15533     # Microsoft Visual C++.
15534     if test "$GCC" != yes; then
15535       with_gnu_ld=no
15536     fi
15537     ;;
15538   openbsd*)
15539     with_gnu_ld=no
15540     ;;
15541   esac
15542
15543   ld_shlibs_F77=yes
15544   if test "$with_gnu_ld" = yes; then
15545     # If archive_cmds runs LD, not CC, wlarc should be empty
15546     wlarc='${wl}'
15547
15548     # See if GNU ld supports shared libraries.
15549     case $host_os in
15550     aix3* | aix4* | aix5*)
15551       # On AIX/PPC, the GNU linker is very broken
15552       if test "$host_cpu" != ia64; then
15553         ld_shlibs_F77=no
15554         cat <<EOF 1>&2
15555
15556 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15557 *** to be unable to reliably create shared libraries on AIX.
15558 *** Therefore, libtool is disabling shared libraries support.  If you
15559 *** really care for shared libraries, you may want to modify your PATH
15560 *** so that a non-GNU linker is found, and then restart.
15561
15562 EOF
15563       fi
15564       ;;
15565
15566     amigaos*)
15567       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)'
15568       hardcode_libdir_flag_spec_F77='-L$libdir'
15569       hardcode_minus_L_F77=yes
15570
15571       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15572       # that the semantics of dynamic libraries on AmigaOS, at least up
15573       # to version 4, is to share data among multiple programs linked
15574       # with the same dynamic library.  Since this doesn't match the
15575       # behavior of shared libraries on other platforms, we can't use
15576       # them.
15577       ld_shlibs_F77=no
15578       ;;
15579
15580     beos*)
15581       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15582         allow_undefined_flag_F77=unsupported
15583         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15584         # support --undefined.  This deserves some investigation.  FIXME
15585         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586       else
15587         ld_shlibs_F77=no
15588       fi
15589       ;;
15590
15591     cygwin* | mingw* | pw32*)
15592       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15593       # as there is no search path for DLLs.
15594       hardcode_libdir_flag_spec_F77='-L$libdir'
15595       allow_undefined_flag_F77=unsupported
15596       always_export_symbols_F77=no
15597       enable_shared_with_static_runtimes_F77=yes
15598       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15599
15600       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15601         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15602         # If the export-symbols file already is a .def file (1st line
15603         # is EXPORTS), use it as is; otherwise, prepend...
15604         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15605           cp $export_symbols $output_objdir/$soname.def;
15606         else
15607           echo EXPORTS > $output_objdir/$soname.def;
15608           cat $export_symbols >> $output_objdir/$soname.def;
15609         fi~
15610         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15611       else
15612         ld_shlibs=no
15613       fi
15614       ;;
15615
15616     netbsd*)
15617       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15618         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15619         wlarc=
15620       else
15621         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15622         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15623       fi
15624       ;;
15625
15626     solaris* | sysv5*)
15627       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15628         ld_shlibs_F77=no
15629         cat <<EOF 1>&2
15630
15631 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15632 *** create shared libraries on Solaris systems.  Therefore, libtool
15633 *** is disabling shared libraries support.  We urge you to upgrade GNU
15634 *** binutils to release 2.9.1 or newer.  Another option is to modify
15635 *** your PATH or compiler configuration so that the native linker is
15636 *** used, and then restart.
15637
15638 EOF
15639       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15640         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15641         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15642       else
15643         ld_shlibs_F77=no
15644       fi
15645       ;;
15646
15647     sunos4*)
15648       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15649       wlarc=
15650       hardcode_direct_F77=yes
15651       hardcode_shlibpath_var_F77=no
15652       ;;
15653
15654   linux*)
15655     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15656         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657         archive_cmds_F77="$tmp_archive_cmds"
15658       supports_anon_versioning=no
15659       case `$LD -v 2>/dev/null` in
15660         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15661         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15662         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15663         *\ 2.11.*) ;; # other 2.11 versions
15664         *) supports_anon_versioning=yes ;;
15665       esac
15666       if test $supports_anon_versioning = yes; then
15667         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15669 $echo "local: *; };" >> $output_objdir/$libname.ver~
15670         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15671       else
15672         archive_expsym_cmds_F77="$tmp_archive_cmds"
15673       fi
15674     else
15675       ld_shlibs_F77=no
15676     fi
15677     ;;
15678
15679     *)
15680       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15681         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15682         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15683       else
15684         ld_shlibs_F77=no
15685       fi
15686       ;;
15687     esac
15688
15689     if test "$ld_shlibs_F77" = yes; then
15690       runpath_var=LD_RUN_PATH
15691       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15692       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15693       # ancient GNU ld didn't support --whole-archive et. al.
15694       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15695         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15696       else
15697         whole_archive_flag_spec_F77=
15698       fi
15699     fi
15700   else
15701     # PORTME fill in a description of your system's linker (not GNU ld)
15702     case $host_os in
15703     aix3*)
15704       allow_undefined_flag_F77=unsupported
15705       always_export_symbols_F77=yes
15706       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'
15707       # Note: this linker hardcodes the directories in LIBPATH if there
15708       # are no directories specified by -L.
15709       hardcode_minus_L_F77=yes
15710       if test "$GCC" = yes && test -z "$link_static_flag"; then
15711         # Neither direct hardcoding nor static linking is supported with a
15712         # broken collect2.
15713         hardcode_direct_F77=unsupported
15714       fi
15715       ;;
15716
15717     aix4* | aix5*)
15718       if test "$host_cpu" = ia64; then
15719         # On IA64, the linker does run time linking by default, so we don't
15720         # have to do anything special.
15721         aix_use_runtimelinking=no
15722         exp_sym_flag='-Bexport'
15723         no_entry_flag=""
15724       else
15725         # If we're using GNU nm, then we don't want the "-C" option.
15726         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15727         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15728           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'
15729         else
15730           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'
15731         fi
15732         aix_use_runtimelinking=no
15733
15734         # Test if we are trying to use run time linking or normal
15735         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15736         # need to do runtime linking.
15737         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15738           for ld_flag in $LDFLAGS; do
15739           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15740             aix_use_runtimelinking=yes
15741             break
15742           fi
15743           done
15744         esac
15745
15746         exp_sym_flag='-bexport'
15747         no_entry_flag='-bnoentry'
15748       fi
15749
15750       # When large executables or shared objects are built, AIX ld can
15751       # have problems creating the table of contents.  If linking a library
15752       # or program results in "error TOC overflow" add -mminimal-toc to
15753       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15754       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15755
15756       archive_cmds_F77=''
15757       hardcode_direct_F77=yes
15758       hardcode_libdir_separator_F77=':'
15759       link_all_deplibs_F77=yes
15760
15761       if test "$GCC" = yes; then
15762         case $host_os in aix4.012|aix4.012.*)
15763         # We only want to do this on AIX 4.2 and lower, the check
15764         # below for broken collect2 doesn't work under 4.3+
15765           collect2name=`${CC} -print-prog-name=collect2`
15766           if test -f "$collect2name" && \
15767            strings "$collect2name" | grep resolve_lib_name >/dev/null
15768           then
15769           # We have reworked collect2
15770           hardcode_direct_F77=yes
15771           else
15772           # We have old collect2
15773           hardcode_direct_F77=unsupported
15774           # It fails to find uninstalled libraries when the uninstalled
15775           # path is not listed in the libpath.  Setting hardcode_minus_L
15776           # to unsupported forces relinking
15777           hardcode_minus_L_F77=yes
15778           hardcode_libdir_flag_spec_F77='-L$libdir'
15779           hardcode_libdir_separator_F77=
15780           fi
15781         esac
15782         shared_flag='-shared'
15783       else
15784         # not using gcc
15785         if test "$host_cpu" = ia64; then
15786         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15787         # chokes on -Wl,-G. The following line is correct:
15788           shared_flag='-G'
15789         else
15790         if test "$aix_use_runtimelinking" = yes; then
15791             shared_flag='${wl}-G'
15792           else
15793             shared_flag='${wl}-bM:SRE'
15794         fi
15795         fi
15796       fi
15797
15798       # It seems that -bexpall does not export symbols beginning with
15799       # underscore (_), so it is better to generate a list of symbols to export.
15800       always_export_symbols_F77=yes
15801       if test "$aix_use_runtimelinking" = yes; then
15802         # Warning - without using the other runtime loading flags (-brtl),
15803         # -berok will link without error, but may produce a broken library.
15804         allow_undefined_flag_F77='-berok'
15805        # Determine the default libpath from the value encoded in an empty executable.
15806        cat >conftest.$ac_ext <<_ACEOF
15807       program main
15808
15809       end
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813   (eval $ac_link) 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } &&
15820          { ac_try='test -z "$ac_f77_werror_flag"
15821                          || test ! -s conftest.err'
15822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823   (eval $ac_try) 2>&5
15824   ac_status=$?
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); }; } &&
15827          { ac_try='test -s conftest$ac_exeext'
15828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829   (eval $ac_try) 2>&5
15830   ac_status=$?
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); }; }; then
15833
15834 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15835 }'`
15836 # Check for a 64-bit object if we didn't find anything.
15837 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; }
15838 }'`; fi
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 fi
15844 rm -f conftest.err conftest.$ac_objext \
15845       conftest$ac_exeext conftest.$ac_ext
15846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15847
15848        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15849         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"
15850        else
15851         if test "$host_cpu" = ia64; then
15852           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15853           allow_undefined_flag_F77="-z nodefs"
15854           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"
15855         else
15856          # Determine the default libpath from the value encoded in an empty executable.
15857          cat >conftest.$ac_ext <<_ACEOF
15858       program main
15859
15860       end
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864   (eval $ac_link) 2>conftest.er1
15865   ac_status=$?
15866   grep -v '^ *+' conftest.er1 >conftest.err
15867   rm -f conftest.er1
15868   cat conftest.err >&5
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); } &&
15871          { ac_try='test -z "$ac_f77_werror_flag"
15872                          || test ! -s conftest.err'
15873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874   (eval $ac_try) 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; } &&
15878          { ac_try='test -s conftest$ac_exeext'
15879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880   (eval $ac_try) 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }; }; then
15884
15885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15886 }'`
15887 # Check for a 64-bit object if we didn't find anything.
15888 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; }
15889 }'`; fi
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 fi
15895 rm -f conftest.err conftest.$ac_objext \
15896       conftest$ac_exeext conftest.$ac_ext
15897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15898
15899          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15900           # Warning - without using the other run time loading flags,
15901           # -berok will link without error, but may produce a broken library.
15902           no_undefined_flag_F77=' ${wl}-bernotok'
15903           allow_undefined_flag_F77=' ${wl}-berok'
15904           # -bexpall does not export symbols beginning with underscore (_)
15905           always_export_symbols_F77=yes
15906           # Exported symbols can be pulled into shared objects from archives
15907           whole_archive_flag_spec_F77=' '
15908           archive_cmds_need_lc_F77=yes
15909           # This is similar to how AIX traditionally builds it's shared libraries.
15910           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'
15911         fi
15912       fi
15913       ;;
15914
15915     amigaos*)
15916       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)'
15917       hardcode_libdir_flag_spec_F77='-L$libdir'
15918       hardcode_minus_L_F77=yes
15919       # see comment about different semantics on the GNU ld section
15920       ld_shlibs_F77=no
15921       ;;
15922
15923     bsdi4*)
15924       export_dynamic_flag_spec_F77=-rdynamic
15925       ;;
15926
15927     cygwin* | mingw* | pw32*)
15928       # When not using gcc, we currently assume that we are using
15929       # Microsoft Visual C++.
15930       # hardcode_libdir_flag_spec is actually meaningless, as there is
15931       # no search path for DLLs.
15932       hardcode_libdir_flag_spec_F77=' '
15933       allow_undefined_flag_F77=unsupported
15934       # Tell ltmain to make .lib files, not .a files.
15935       libext=lib
15936       # Tell ltmain to make .dll files, not .so files.
15937       shrext_cmds=".dll"
15938       # FIXME: Setting linknames here is a bad hack.
15939       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15940       # The linker will automatically build a .lib file if we build a DLL.
15941       old_archive_From_new_cmds_F77='true'
15942       # FIXME: Should let the user specify the lib program.
15943       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15944       fix_srcfile_path='`cygpath -w "$srcfile"`'
15945       enable_shared_with_static_runtimes_F77=yes
15946       ;;
15947
15948     darwin* | rhapsody*)
15949     if test "$GXX" = yes ; then
15950       archive_cmds_need_lc_F77=no
15951       case "$host_os" in
15952       rhapsody* | darwin1.[012])
15953         allow_undefined_flag_F77='-undefined suppress'
15954         ;;
15955       *) # Darwin 1.3 on
15956       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15957         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15958       else
15959         case ${MACOSX_DEPLOYMENT_TARGET} in
15960           10.[012])
15961             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15962             ;;
15963           10.*)
15964             allow_undefined_flag_F77='-undefined dynamic_lookup'
15965             ;;
15966         esac
15967       fi
15968         ;;
15969       esac
15970         lt_int_apple_cc_single_mod=no
15971         output_verbose_link_cmd='echo'
15972         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15973           lt_int_apple_cc_single_mod=yes
15974         fi
15975         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15976           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15977         else
15978         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'
15979       fi
15980       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15981       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15982         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15983           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}'
15984         else
15985           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}'
15986         fi
15987           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}'
15988       hardcode_direct_F77=no
15989       hardcode_automatic_F77=yes
15990       hardcode_shlibpath_var_F77=unsupported
15991       whole_archive_flag_spec_F77='-all_load $convenience'
15992       link_all_deplibs_F77=yes
15993     else
15994       ld_shlibs_F77=no
15995     fi
15996       ;;
15997
15998     dgux*)
15999       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000       hardcode_libdir_flag_spec_F77='-L$libdir'
16001       hardcode_shlibpath_var_F77=no
16002       ;;
16003
16004     freebsd1*)
16005       ld_shlibs_F77=no
16006       ;;
16007
16008     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16009     # support.  Future versions do this automatically, but an explicit c++rt0.o
16010     # does not break anything, and helps significantly (at the cost of a little
16011     # extra space).
16012     freebsd2.2*)
16013       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16014       hardcode_libdir_flag_spec_F77='-R$libdir'
16015       hardcode_direct_F77=yes
16016       hardcode_shlibpath_var_F77=no
16017       ;;
16018
16019     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16020     freebsd2*)
16021       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16022       hardcode_direct_F77=yes
16023       hardcode_minus_L_F77=yes
16024       hardcode_shlibpath_var_F77=no
16025       ;;
16026
16027     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16028     freebsd* | kfreebsd*-gnu)
16029       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16030       hardcode_libdir_flag_spec_F77='-R$libdir'
16031       hardcode_direct_F77=yes
16032       hardcode_shlibpath_var_F77=no
16033       ;;
16034
16035     hpux9*)
16036       if test "$GCC" = yes; then
16037         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'
16038       else
16039         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'
16040       fi
16041       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16042       hardcode_libdir_separator_F77=:
16043       hardcode_direct_F77=yes
16044
16045       # hardcode_minus_L: Not really in the search PATH,
16046       # but as the default location of the library.
16047       hardcode_minus_L_F77=yes
16048       export_dynamic_flag_spec_F77='${wl}-E'
16049       ;;
16050
16051     hpux10* | hpux11*)
16052       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16053         case "$host_cpu" in
16054         hppa*64*|ia64*)
16055           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056           ;;
16057         *)
16058           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16059           ;;
16060         esac
16061       else
16062         case "$host_cpu" in
16063         hppa*64*|ia64*)
16064           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16065           ;;
16066         *)
16067           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16068           ;;
16069         esac
16070       fi
16071       if test "$with_gnu_ld" = no; then
16072         case "$host_cpu" in
16073         hppa*64*)
16074           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16075           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16076           hardcode_libdir_separator_F77=:
16077           hardcode_direct_F77=no
16078           hardcode_shlibpath_var_F77=no
16079           ;;
16080         ia64*)
16081           hardcode_libdir_flag_spec_F77='-L$libdir'
16082           hardcode_direct_F77=no
16083           hardcode_shlibpath_var_F77=no
16084
16085           # hardcode_minus_L: Not really in the search PATH,
16086           # but as the default location of the library.
16087           hardcode_minus_L_F77=yes
16088           ;;
16089         *)
16090           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16091           hardcode_libdir_separator_F77=:
16092           hardcode_direct_F77=yes
16093           export_dynamic_flag_spec_F77='${wl}-E'
16094
16095           # hardcode_minus_L: Not really in the search PATH,
16096           # but as the default location of the library.
16097           hardcode_minus_L_F77=yes
16098           ;;
16099         esac
16100       fi
16101       ;;
16102
16103     irix5* | irix6* | nonstopux*)
16104       if test "$GCC" = yes; then
16105         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'
16106       else
16107         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'
16108         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16109       fi
16110       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16111       hardcode_libdir_separator_F77=:
16112       link_all_deplibs_F77=yes
16113       ;;
16114
16115     netbsd*)
16116       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16117         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16118       else
16119         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16120       fi
16121       hardcode_libdir_flag_spec_F77='-R$libdir'
16122       hardcode_direct_F77=yes
16123       hardcode_shlibpath_var_F77=no
16124       ;;
16125
16126     newsos6)
16127       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128       hardcode_direct_F77=yes
16129       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16130       hardcode_libdir_separator_F77=:
16131       hardcode_shlibpath_var_F77=no
16132       ;;
16133
16134     openbsd*)
16135       hardcode_direct_F77=yes
16136       hardcode_shlibpath_var_F77=no
16137       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16138         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16139         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16140         export_dynamic_flag_spec_F77='${wl}-E'
16141       else
16142        case $host_os in
16143          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16144            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145            hardcode_libdir_flag_spec_F77='-R$libdir'
16146            ;;
16147          *)
16148            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16149            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16150            ;;
16151        esac
16152       fi
16153       ;;
16154
16155     os2*)
16156       hardcode_libdir_flag_spec_F77='-L$libdir'
16157       hardcode_minus_L_F77=yes
16158       allow_undefined_flag_F77=unsupported
16159       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'
16160       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16161       ;;
16162
16163     osf3*)
16164       if test "$GCC" = yes; then
16165         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16166         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'
16167       else
16168         allow_undefined_flag_F77=' -expect_unresolved \*'
16169         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'
16170       fi
16171       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16172       hardcode_libdir_separator_F77=:
16173       ;;
16174
16175     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16176       if test "$GCC" = yes; then
16177         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16178         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'
16179         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16180       else
16181         allow_undefined_flag_F77=' -expect_unresolved \*'
16182         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'
16183         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~
16184         $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'
16185
16186         # Both c and cxx compiler support -rpath directly
16187         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16188       fi
16189       hardcode_libdir_separator_F77=:
16190       ;;
16191
16192     sco3.2v5*)
16193       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194       hardcode_shlibpath_var_F77=no
16195       export_dynamic_flag_spec_F77='${wl}-Bexport'
16196       runpath_var=LD_RUN_PATH
16197       hardcode_runpath_var=yes
16198       ;;
16199
16200     solaris*)
16201       no_undefined_flag_F77=' -z text'
16202       if test "$GCC" = yes; then
16203         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16204         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16205           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16206       else
16207         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16209         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16210       fi
16211       hardcode_libdir_flag_spec_F77='-R$libdir'
16212       hardcode_shlibpath_var_F77=no
16213       case $host_os in
16214       solaris2.[0-5] | solaris2.[0-5].*) ;;
16215       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16216         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16217       esac
16218       link_all_deplibs_F77=yes
16219       ;;
16220
16221     sunos4*)
16222       if test "x$host_vendor" = xsequent; then
16223         # Use $CC to link under sequent, because it throws in some extra .o
16224         # files that make .init and .fini sections work.
16225         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16226       else
16227         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16228       fi
16229       hardcode_libdir_flag_spec_F77='-L$libdir'
16230       hardcode_direct_F77=yes
16231       hardcode_minus_L_F77=yes
16232       hardcode_shlibpath_var_F77=no
16233       ;;
16234
16235     sysv4)
16236       case $host_vendor in
16237         sni)
16238           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16239           hardcode_direct_F77=yes # is this really true???
16240         ;;
16241         siemens)
16242           ## LD is ld it makes a PLAMLIB
16243           ## CC just makes a GrossModule.
16244           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16245           reload_cmds_F77='$CC -r -o $output$reload_objs'
16246           hardcode_direct_F77=no
16247         ;;
16248         motorola)
16249           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16250           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16251         ;;
16252       esac
16253       runpath_var='LD_RUN_PATH'
16254       hardcode_shlibpath_var_F77=no
16255       ;;
16256
16257     sysv4.3*)
16258       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259       hardcode_shlibpath_var_F77=no
16260       export_dynamic_flag_spec_F77='-Bexport'
16261       ;;
16262
16263     sysv4*MP*)
16264       if test -d /usr/nec; then
16265         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266         hardcode_shlibpath_var_F77=no
16267         runpath_var=LD_RUN_PATH
16268         hardcode_runpath_var=yes
16269         ld_shlibs_F77=yes
16270       fi
16271       ;;
16272
16273     sysv4.2uw2*)
16274       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16275       hardcode_direct_F77=yes
16276       hardcode_minus_L_F77=no
16277       hardcode_shlibpath_var_F77=no
16278       hardcode_runpath_var=yes
16279       runpath_var=LD_RUN_PATH
16280       ;;
16281
16282    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16283       no_undefined_flag_F77='${wl}-z ${wl}text'
16284       if test "$GCC" = yes; then
16285         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16286       else
16287         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16288       fi
16289       runpath_var='LD_RUN_PATH'
16290       hardcode_shlibpath_var_F77=no
16291       ;;
16292
16293     sysv5*)
16294       no_undefined_flag_F77=' -z text'
16295       # $CC -shared without GNU ld will not create a library from C++
16296       # object files and a static libstdc++, better avoid it by now
16297       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16299                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16300       hardcode_libdir_flag_spec_F77=
16301       hardcode_shlibpath_var_F77=no
16302       runpath_var='LD_RUN_PATH'
16303       ;;
16304
16305     uts4*)
16306       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16307       hardcode_libdir_flag_spec_F77='-L$libdir'
16308       hardcode_shlibpath_var_F77=no
16309       ;;
16310
16311     *)
16312       ld_shlibs_F77=no
16313       ;;
16314     esac
16315   fi
16316
16317 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16318 echo "${ECHO_T}$ld_shlibs_F77" >&6
16319 test "$ld_shlibs_F77" = no && can_build_shared=no
16320
16321 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16322 if test "$GCC" = yes; then
16323   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16324 fi
16325
16326 #
16327 # Do we need to explicitly link libc?
16328 #
16329 case "x$archive_cmds_need_lc_F77" in
16330 x|xyes)
16331   # Assume -lc should be added
16332   archive_cmds_need_lc_F77=yes
16333
16334   if test "$enable_shared" = yes && test "$GCC" = yes; then
16335     case $archive_cmds_F77 in
16336     *'~'*)
16337       # FIXME: we may have to deal with multi-command sequences.
16338       ;;
16339     '$CC '*)
16340       # Test whether the compiler implicitly links with -lc since on some
16341       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16342       # to ld, don't add -lc before -lgcc.
16343       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16344 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16345       $rm conftest*
16346       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16347
16348       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349   (eval $ac_compile) 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } 2>conftest.err; then
16353         soname=conftest
16354         lib=conftest
16355         libobjs=conftest.$ac_objext
16356         deplibs=
16357         wl=$lt_prog_compiler_wl_F77
16358         compiler_flags=-v
16359         linker_flags=-v
16360         verstring=
16361         output_objdir=.
16362         libname=conftest
16363         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16364         allow_undefined_flag_F77=
16365         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16366   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16367   ac_status=$?
16368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369   (exit $ac_status); }
16370         then
16371           archive_cmds_need_lc_F77=no
16372         else
16373           archive_cmds_need_lc_F77=yes
16374         fi
16375         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16376       else
16377         cat conftest.err 1>&5
16378       fi
16379       $rm conftest*
16380       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16381 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16382       ;;
16383     esac
16384   fi
16385   ;;
16386 esac
16387
16388 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16389 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16390 library_names_spec=
16391 libname_spec='lib$name'
16392 soname_spec=
16393 shrext_cmds=".so"
16394 postinstall_cmds=
16395 postuninstall_cmds=
16396 finish_cmds=
16397 finish_eval=
16398 shlibpath_var=
16399 shlibpath_overrides_runpath=unknown
16400 version_type=none
16401 dynamic_linker="$host_os ld.so"
16402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16403 if test "$GCC" = yes; then
16404   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16405   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16406     # if the path contains ";" then we assume it to be the separator
16407     # otherwise default to the standard path separator (i.e. ":") - it is
16408     # assumed that no part of a normal pathname contains ";" but that should
16409     # okay in the real world where ";" in dirpaths is itself problematic.
16410     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16411   else
16412     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16413   fi
16414 else
16415   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16416 fi
16417 need_lib_prefix=unknown
16418 hardcode_into_libs=no
16419
16420 # when you set need_version to no, make sure it does not cause -set_version
16421 # flags to be left without arguments
16422 need_version=unknown
16423
16424 case $host_os in
16425 aix3*)
16426   version_type=linux
16427   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16428   shlibpath_var=LIBPATH
16429
16430   # AIX 3 has no versioning support, so we append a major version to the name.
16431   soname_spec='${libname}${release}${shared_ext}$major'
16432   ;;
16433
16434 aix4* | aix5*)
16435   version_type=linux
16436   need_lib_prefix=no
16437   need_version=no
16438   hardcode_into_libs=yes
16439   if test "$host_cpu" = ia64; then
16440     # AIX 5 supports IA64
16441     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16442     shlibpath_var=LD_LIBRARY_PATH
16443   else
16444     # With GCC up to 2.95.x, collect2 would create an import file
16445     # for dependence libraries.  The import file would start with
16446     # the line `#! .'.  This would cause the generated library to
16447     # depend on `.', always an invalid library.  This was fixed in
16448     # development snapshots of GCC prior to 3.0.
16449     case $host_os in
16450       aix4 | aix4.[01] | aix4.[01].*)
16451       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16452            echo ' yes '
16453            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16454         :
16455       else
16456         can_build_shared=no
16457       fi
16458       ;;
16459     esac
16460     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16461     # soname into executable. Probably we can add versioning support to
16462     # collect2, so additional links can be useful in future.
16463     if test "$aix_use_runtimelinking" = yes; then
16464       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16465       # instead of lib<name>.a to let people know that these are not
16466       # typical AIX shared libraries.
16467       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468     else
16469       # We preserve .a as extension for shared libraries through AIX4.2
16470       # and later when we are not doing run time linking.
16471       library_names_spec='${libname}${release}.a $libname.a'
16472       soname_spec='${libname}${release}${shared_ext}$major'
16473     fi
16474     shlibpath_var=LIBPATH
16475   fi
16476   ;;
16477
16478 amigaos*)
16479   library_names_spec='$libname.ixlibrary $libname.a'
16480   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16481   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'
16482   ;;
16483
16484 beos*)
16485   library_names_spec='${libname}${shared_ext}'
16486   dynamic_linker="$host_os ld.so"
16487   shlibpath_var=LIBRARY_PATH
16488   ;;
16489
16490 bsdi4*)
16491   version_type=linux
16492   need_version=no
16493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16494   soname_spec='${libname}${release}${shared_ext}$major'
16495   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16496   shlibpath_var=LD_LIBRARY_PATH
16497   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16498   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16499   # the default ld.so.conf also contains /usr/contrib/lib and
16500   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16501   # libtool to hard-code these into programs
16502   ;;
16503
16504 cygwin* | mingw* | pw32*)
16505   version_type=windows
16506   shrext_cmds=".dll"
16507   need_version=no
16508   need_lib_prefix=no
16509
16510   case $GCC,$host_os in
16511   yes,cygwin* | yes,mingw* | yes,pw32*)
16512     library_names_spec='$libname.dll.a'
16513     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16514     postinstall_cmds='base_file=`basename \${file}`~
16515       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16516       dldir=$destdir/`dirname \$dlpath`~
16517       test -d \$dldir || mkdir -p \$dldir~
16518       $install_prog $dir/$dlname \$dldir/$dlname'
16519     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16520       dlpath=$dir/\$dldll~
16521        $rm \$dlpath'
16522     shlibpath_overrides_runpath=yes
16523
16524     case $host_os in
16525     cygwin*)
16526       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16527       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16528       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16529       ;;
16530     mingw*)
16531       # MinGW DLLs use traditional 'lib' prefix
16532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16533       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16534       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16535         # It is most probably a Windows format PATH printed by
16536         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16537         # path with ; separators, and with drive letters. We can handle the
16538         # drive letters (cygwin fileutils understands them), so leave them,
16539         # especially as we might pass files found there to a mingw objdump,
16540         # which wouldn't understand a cygwinified path. Ahh.
16541         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16542       else
16543         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16544       fi
16545       ;;
16546     pw32*)
16547       # pw32 DLLs use 'pw' prefix rather than 'lib'
16548       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16549       ;;
16550     esac
16551     ;;
16552
16553   *)
16554     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16555     ;;
16556   esac
16557   dynamic_linker='Win32 ld.exe'
16558   # FIXME: first we should search . and the directory the executable is in
16559   shlibpath_var=PATH
16560   ;;
16561
16562 darwin* | rhapsody*)
16563   dynamic_linker="$host_os dyld"
16564   version_type=darwin
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16568   soname_spec='${libname}${release}${major}$shared_ext'
16569   shlibpath_overrides_runpath=yes
16570   shlibpath_var=DYLD_LIBRARY_PATH
16571   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16572   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16573   if test "$GCC" = yes; then
16574     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"`
16575   else
16576     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16577   fi
16578   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16579   ;;
16580
16581 dgux*)
16582   version_type=linux
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   shlibpath_var=LD_LIBRARY_PATH
16588   ;;
16589
16590 freebsd1*)
16591   dynamic_linker=no
16592   ;;
16593
16594 kfreebsd*-gnu)
16595   version_type=linux
16596   need_lib_prefix=no
16597   need_version=no
16598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16599   soname_spec='${libname}${release}${shared_ext}$major'
16600   shlibpath_var=LD_LIBRARY_PATH
16601   shlibpath_overrides_runpath=no
16602   hardcode_into_libs=yes
16603   dynamic_linker='GNU ld.so'
16604   ;;
16605
16606 freebsd*)
16607   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16608   version_type=freebsd-$objformat
16609   case $version_type in
16610     freebsd-elf*)
16611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16612       need_version=no
16613       need_lib_prefix=no
16614       ;;
16615     freebsd-*)
16616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16617       need_version=yes
16618       ;;
16619   esac
16620   shlibpath_var=LD_LIBRARY_PATH
16621   case $host_os in
16622   freebsd2*)
16623     shlibpath_overrides_runpath=yes
16624     ;;
16625   freebsd3.01* | freebsdelf3.01*)
16626     shlibpath_overrides_runpath=yes
16627     hardcode_into_libs=yes
16628     ;;
16629   *) # from 3.2 on
16630     shlibpath_overrides_runpath=no
16631     hardcode_into_libs=yes
16632     ;;
16633   esac
16634   ;;
16635
16636 gnu*)
16637   version_type=linux
16638   need_lib_prefix=no
16639   need_version=no
16640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16641   soname_spec='${libname}${release}${shared_ext}$major'
16642   shlibpath_var=LD_LIBRARY_PATH
16643   hardcode_into_libs=yes
16644   ;;
16645
16646 hpux9* | hpux10* | hpux11*)
16647   # Give a soname corresponding to the major version so that dld.sl refuses to
16648   # link against other versions.
16649   version_type=sunos
16650   need_lib_prefix=no
16651   need_version=no
16652   case "$host_cpu" in
16653   ia64*)
16654     shrext_cmds='.so'
16655     hardcode_into_libs=yes
16656     dynamic_linker="$host_os dld.so"
16657     shlibpath_var=LD_LIBRARY_PATH
16658     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660     soname_spec='${libname}${release}${shared_ext}$major'
16661     if test "X$HPUX_IA64_MODE" = X32; then
16662       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16663     else
16664       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16665     fi
16666     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16667     ;;
16668    hppa*64*)
16669      shrext_cmds='.sl'
16670      hardcode_into_libs=yes
16671      dynamic_linker="$host_os dld.sl"
16672      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16673      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675      soname_spec='${libname}${release}${shared_ext}$major'
16676      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16677      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16678      ;;
16679    *)
16680     shrext_cmds='.sl'
16681     dynamic_linker="$host_os dld.sl"
16682     shlibpath_var=SHLIB_PATH
16683     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685     soname_spec='${libname}${release}${shared_ext}$major'
16686     ;;
16687   esac
16688   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16689   postinstall_cmds='chmod 555 $lib'
16690   ;;
16691
16692 irix5* | irix6* | nonstopux*)
16693   case $host_os in
16694     nonstopux*) version_type=nonstopux ;;
16695     *)
16696         if test "$lt_cv_prog_gnu_ld" = yes; then
16697                 version_type=linux
16698         else
16699                 version_type=irix
16700         fi ;;
16701   esac
16702   need_lib_prefix=no
16703   need_version=no
16704   soname_spec='${libname}${release}${shared_ext}$major'
16705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16706   case $host_os in
16707   irix5* | nonstopux*)
16708     libsuff= shlibsuff=
16709     ;;
16710   *)
16711     case $LD in # libtool.m4 will add one of these switches to LD
16712     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16713       libsuff= shlibsuff= libmagic=32-bit;;
16714     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16715       libsuff=32 shlibsuff=N32 libmagic=N32;;
16716     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16717       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16718     *) libsuff= shlibsuff= libmagic=never-match;;
16719     esac
16720     ;;
16721   esac
16722   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16723   shlibpath_overrides_runpath=no
16724   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16725   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16726   hardcode_into_libs=yes
16727   ;;
16728
16729 # No shared lib support for Linux oldld, aout, or coff.
16730 linux*oldld* | linux*aout* | linux*coff*)
16731   dynamic_linker=no
16732   ;;
16733
16734 # This must be Linux ELF.
16735 linux*)
16736   version_type=linux
16737   need_lib_prefix=no
16738   need_version=no
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16742   shlibpath_var=LD_LIBRARY_PATH
16743   shlibpath_overrides_runpath=no
16744   # This implies no fast_install, which is unacceptable.
16745   # Some rework will be needed to allow for fast_install
16746   # before this can be enabled.
16747   hardcode_into_libs=yes
16748
16749   # find out which ABI we are using
16750   libsuff=
16751   case "$host_cpu" in
16752   x86_64*|s390x*|powerpc64*)
16753     echo '#line 16753 "configure"' > conftest.$ac_ext
16754     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16755   (eval $ac_compile) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; then
16759       case `/usr/bin/file conftest.$ac_objext` in
16760       *64-bit*)
16761         libsuff=64
16762         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16763         ;;
16764       esac
16765     fi
16766     rm -rf conftest*
16767     ;;
16768   esac
16769
16770   # Append ld.so.conf contents to the search path
16771   if test -f /etc/ld.so.conf; then
16772     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16773     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16774   fi
16775
16776   # We used to test for /lib/ld.so.1 and disable shared libraries on
16777   # powerpc, because MkLinux only supported shared libraries with the
16778   # GNU dynamic linker.  Since this was broken with cross compilers,
16779   # most powerpc-linux boxes support dynamic linking these days and
16780   # people can always --disable-shared, the test was removed, and we
16781   # assume the GNU/Linux dynamic linker is in use.
16782   dynamic_linker='GNU/Linux ld.so'
16783   ;;
16784
16785 knetbsd*-gnu)
16786   version_type=linux
16787   need_lib_prefix=no
16788   need_version=no
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   shlibpath_overrides_runpath=no
16793   hardcode_into_libs=yes
16794   dynamic_linker='GNU ld.so'
16795   ;;
16796
16797 netbsd*)
16798   version_type=sunos
16799   need_lib_prefix=no
16800   need_version=no
16801   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16803     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16804     dynamic_linker='NetBSD (a.out) ld.so'
16805   else
16806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16807     soname_spec='${libname}${release}${shared_ext}$major'
16808     dynamic_linker='NetBSD ld.elf_so'
16809   fi
16810   shlibpath_var=LD_LIBRARY_PATH
16811   shlibpath_overrides_runpath=yes
16812   hardcode_into_libs=yes
16813   ;;
16814
16815 newsos6)
16816   version_type=linux
16817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818   shlibpath_var=LD_LIBRARY_PATH
16819   shlibpath_overrides_runpath=yes
16820   ;;
16821
16822 nto-qnx*)
16823   version_type=linux
16824   need_lib_prefix=no
16825   need_version=no
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827   soname_spec='${libname}${release}${shared_ext}$major'
16828   shlibpath_var=LD_LIBRARY_PATH
16829   shlibpath_overrides_runpath=yes
16830   ;;
16831
16832 openbsd*)
16833   version_type=sunos
16834   need_lib_prefix=no
16835   need_version=yes
16836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16837   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16838   shlibpath_var=LD_LIBRARY_PATH
16839   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16840     case $host_os in
16841       openbsd2.[89] | openbsd2.[89].*)
16842         shlibpath_overrides_runpath=no
16843         ;;
16844       *)
16845         shlibpath_overrides_runpath=yes
16846         ;;
16847       esac
16848   else
16849     shlibpath_overrides_runpath=yes
16850   fi
16851   ;;
16852
16853 os2*)
16854   libname_spec='$name'
16855   shrext_cmds=".dll"
16856   need_lib_prefix=no
16857   library_names_spec='$libname${shared_ext} $libname.a'
16858   dynamic_linker='OS/2 ld.exe'
16859   shlibpath_var=LIBPATH
16860   ;;
16861
16862 osf3* | osf4* | osf5*)
16863   version_type=osf
16864   need_lib_prefix=no
16865   need_version=no
16866   soname_spec='${libname}${release}${shared_ext}$major'
16867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868   shlibpath_var=LD_LIBRARY_PATH
16869   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16870   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16871   ;;
16872
16873 sco3.2v5*)
16874   version_type=osf
16875   soname_spec='${libname}${release}${shared_ext}$major'
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877   shlibpath_var=LD_LIBRARY_PATH
16878   ;;
16879
16880 solaris*)
16881   version_type=linux
16882   need_lib_prefix=no
16883   need_version=no
16884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885   soname_spec='${libname}${release}${shared_ext}$major'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   shlibpath_overrides_runpath=yes
16888   hardcode_into_libs=yes
16889   # ldd complains unless libraries are executable
16890   postinstall_cmds='chmod +x $lib'
16891   ;;
16892
16893 sunos4*)
16894   version_type=sunos
16895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16896   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16897   shlibpath_var=LD_LIBRARY_PATH
16898   shlibpath_overrides_runpath=yes
16899   if test "$with_gnu_ld" = yes; then
16900     need_lib_prefix=no
16901   fi
16902   need_version=yes
16903   ;;
16904
16905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16906   version_type=linux
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   shlibpath_var=LD_LIBRARY_PATH
16910   case $host_vendor in
16911     sni)
16912       shlibpath_overrides_runpath=no
16913       need_lib_prefix=no
16914       export_dynamic_flag_spec='${wl}-Blargedynsym'
16915       runpath_var=LD_RUN_PATH
16916       ;;
16917     siemens)
16918       need_lib_prefix=no
16919       ;;
16920     motorola)
16921       need_lib_prefix=no
16922       need_version=no
16923       shlibpath_overrides_runpath=no
16924       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16925       ;;
16926   esac
16927   ;;
16928
16929 sysv4*MP*)
16930   if test -d /usr/nec ;then
16931     version_type=linux
16932     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16933     soname_spec='$libname${shared_ext}.$major'
16934     shlibpath_var=LD_LIBRARY_PATH
16935   fi
16936   ;;
16937
16938 uts4*)
16939   version_type=linux
16940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   shlibpath_var=LD_LIBRARY_PATH
16943   ;;
16944
16945 *)
16946   dynamic_linker=no
16947   ;;
16948 esac
16949 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16950 echo "${ECHO_T}$dynamic_linker" >&6
16951 test "$dynamic_linker" = no && can_build_shared=no
16952
16953 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16954 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16955 hardcode_action_F77=
16956 if test -n "$hardcode_libdir_flag_spec_F77" || \
16957    test -n "$runpath_var F77" || \
16958    test "X$hardcode_automatic_F77"="Xyes" ; then
16959
16960   # We can hardcode non-existant directories.
16961   if test "$hardcode_direct_F77" != no &&
16962      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16963      # have to relink, otherwise we might link with an installed library
16964      # when we should be linking with a yet-to-be-installed one
16965      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16966      test "$hardcode_minus_L_F77" != no; then
16967     # Linking always hardcodes the temporary library directory.
16968     hardcode_action_F77=relink
16969   else
16970     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16971     hardcode_action_F77=immediate
16972   fi
16973 else
16974   # We cannot hardcode anything, or else we can only hardcode existing
16975   # directories.
16976   hardcode_action_F77=unsupported
16977 fi
16978 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16979 echo "${ECHO_T}$hardcode_action_F77" >&6
16980
16981 if test "$hardcode_action_F77" = relink; then
16982   # Fast installation is not supported
16983   enable_fast_install=no
16984 elif test "$shlibpath_overrides_runpath" = yes ||
16985      test "$enable_shared" = no; then
16986   # Fast installation is not necessary
16987   enable_fast_install=needless
16988 fi
16989
16990 striplib=
16991 old_striplib=
16992 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16993 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16994 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16995   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16996   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16997   echo "$as_me:$LINENO: result: yes" >&5
16998 echo "${ECHO_T}yes" >&6
16999 else
17000 # FIXME - insert some real tests, host_os isn't really good enough
17001   case $host_os in
17002    darwin*)
17003        if test -n "$STRIP" ; then
17004          striplib="$STRIP -x"
17005          echo "$as_me:$LINENO: result: yes" >&5
17006 echo "${ECHO_T}yes" >&6
17007        else
17008   echo "$as_me:$LINENO: result: no" >&5
17009 echo "${ECHO_T}no" >&6
17010 fi
17011        ;;
17012    *)
17013   echo "$as_me:$LINENO: result: no" >&5
17014 echo "${ECHO_T}no" >&6
17015     ;;
17016   esac
17017 fi
17018
17019
17020
17021 # The else clause should only fire when bootstrapping the
17022 # libtool distribution, otherwise you forgot to ship ltmain.sh
17023 # with your package, and you will get complaints that there are
17024 # no rules to generate ltmain.sh.
17025 if test -f "$ltmain"; then
17026   # See if we are running on zsh, and set the options which allow our commands through
17027   # without removal of \ escapes.
17028   if test -n "${ZSH_VERSION+set}" ; then
17029     setopt NO_GLOB_SUBST
17030   fi
17031   # Now quote all the things that may contain metacharacters while being
17032   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17033   # variables and quote the copies for generation of the libtool script.
17034   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17035     SED SHELL STRIP \
17036     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17037     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17038     deplibs_check_method reload_flag reload_cmds need_locks \
17039     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17040     lt_cv_sys_global_symbol_to_c_name_address \
17041     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17042     old_postinstall_cmds old_postuninstall_cmds \
17043     compiler_F77 \
17044     CC_F77 \
17045     LD_F77 \
17046     lt_prog_compiler_wl_F77 \
17047     lt_prog_compiler_pic_F77 \
17048     lt_prog_compiler_static_F77 \
17049     lt_prog_compiler_no_builtin_flag_F77 \
17050     export_dynamic_flag_spec_F77 \
17051     thread_safe_flag_spec_F77 \
17052     whole_archive_flag_spec_F77 \
17053     enable_shared_with_static_runtimes_F77 \
17054     old_archive_cmds_F77 \
17055     old_archive_from_new_cmds_F77 \
17056     predep_objects_F77 \
17057     postdep_objects_F77 \
17058     predeps_F77 \
17059     postdeps_F77 \
17060     compiler_lib_search_path_F77 \
17061     archive_cmds_F77 \
17062     archive_expsym_cmds_F77 \
17063     postinstall_cmds_F77 \
17064     postuninstall_cmds_F77 \
17065     old_archive_from_expsyms_cmds_F77 \
17066     allow_undefined_flag_F77 \
17067     no_undefined_flag_F77 \
17068     export_symbols_cmds_F77 \
17069     hardcode_libdir_flag_spec_F77 \
17070     hardcode_libdir_flag_spec_ld_F77 \
17071     hardcode_libdir_separator_F77 \
17072     hardcode_automatic_F77 \
17073     module_cmds_F77 \
17074     module_expsym_cmds_F77 \
17075     lt_cv_prog_compiler_c_o_F77 \
17076     exclude_expsyms_F77 \
17077     include_expsyms_F77; do
17078
17079     case $var in
17080     old_archive_cmds_F77 | \
17081     old_archive_from_new_cmds_F77 | \
17082     archive_cmds_F77 | \
17083     archive_expsym_cmds_F77 | \
17084     module_cmds_F77 | \
17085     module_expsym_cmds_F77 | \
17086     old_archive_from_expsyms_cmds_F77 | \
17087     export_symbols_cmds_F77 | \
17088     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17089     postinstall_cmds | postuninstall_cmds | \
17090     old_postinstall_cmds | old_postuninstall_cmds | \
17091     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17092       # Double-quote double-evaled strings.
17093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17094       ;;
17095     *)
17096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17097       ;;
17098     esac
17099   done
17100
17101   case $lt_echo in
17102   *'\$0 --fallback-echo"')
17103     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17104     ;;
17105   esac
17106
17107 cfgfile="$ofile"
17108
17109   cat <<__EOF__ >> "$cfgfile"
17110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17111
17112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17113
17114 # Shell to use when invoking shell scripts.
17115 SHELL=$lt_SHELL
17116
17117 # Whether or not to build shared libraries.
17118 build_libtool_libs=$enable_shared
17119
17120 # Whether or not to build static libraries.
17121 build_old_libs=$enable_static
17122
17123 # Whether or not to add -lc for building shared libraries.
17124 build_libtool_need_lc=$archive_cmds_need_lc_F77
17125
17126 # Whether or not to disallow shared libs when runtime libs are static
17127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17128
17129 # Whether or not to optimize for fast installation.
17130 fast_install=$enable_fast_install
17131
17132 # The host system.
17133 host_alias=$host_alias
17134 host=$host
17135
17136 # An echo program that does not interpret backslashes.
17137 echo=$lt_echo
17138
17139 # The archiver.
17140 AR=$lt_AR
17141 AR_FLAGS=$lt_AR_FLAGS
17142
17143 # A C compiler.
17144 LTCC=$lt_LTCC
17145
17146 # A language-specific compiler.
17147 CC=$lt_compiler_F77
17148
17149 # Is the compiler the GNU C compiler?
17150 with_gcc=$GCC_F77
17151
17152 # An ERE matcher.
17153 EGREP=$lt_EGREP
17154
17155 # The linker used to build libraries.
17156 LD=$lt_LD_F77
17157
17158 # Whether we need hard or soft links.
17159 LN_S=$lt_LN_S
17160
17161 # A BSD-compatible nm program.
17162 NM=$lt_NM
17163
17164 # A symbol stripping program
17165 STRIP=$lt_STRIP
17166
17167 # Used to examine libraries when file_magic_cmd begins "file"
17168 MAGIC_CMD=$MAGIC_CMD
17169
17170 # Used on cygwin: DLL creation program.
17171 DLLTOOL="$DLLTOOL"
17172
17173 # Used on cygwin: object dumper.
17174 OBJDUMP="$OBJDUMP"
17175
17176 # Used on cygwin: assembler.
17177 AS="$AS"
17178
17179 # The name of the directory that contains temporary libtool files.
17180 objdir=$objdir
17181
17182 # How to create reloadable object files.
17183 reload_flag=$lt_reload_flag
17184 reload_cmds=$lt_reload_cmds
17185
17186 # How to pass a linker flag through the compiler.
17187 wl=$lt_lt_prog_compiler_wl_F77
17188
17189 # Object file suffix (normally "o").
17190 objext="$ac_objext"
17191
17192 # Old archive suffix (normally "a").
17193 libext="$libext"
17194
17195 # Shared library suffix (normally ".so").
17196 shrext_cmds='$shrext_cmds'
17197
17198 # Executable file suffix (normally "").
17199 exeext="$exeext"
17200
17201 # Additional compiler flags for building library objects.
17202 pic_flag=$lt_lt_prog_compiler_pic_F77
17203 pic_mode=$pic_mode
17204
17205 # What is the maximum length of a command?
17206 max_cmd_len=$lt_cv_sys_max_cmd_len
17207
17208 # Does compiler simultaneously support -c and -o options?
17209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17210
17211 # Must we lock files when doing compilation ?
17212 need_locks=$lt_need_locks
17213
17214 # Do we need the lib prefix for modules?
17215 need_lib_prefix=$need_lib_prefix
17216
17217 # Do we need a version for libraries?
17218 need_version=$need_version
17219
17220 # Whether dlopen is supported.
17221 dlopen_support=$enable_dlopen
17222
17223 # Whether dlopen of programs is supported.
17224 dlopen_self=$enable_dlopen_self
17225
17226 # Whether dlopen of statically linked programs is supported.
17227 dlopen_self_static=$enable_dlopen_self_static
17228
17229 # Compiler flag to prevent dynamic linking.
17230 link_static_flag=$lt_lt_prog_compiler_static_F77
17231
17232 # Compiler flag to turn off builtin functions.
17233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17234
17235 # Compiler flag to allow reflexive dlopens.
17236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17237
17238 # Compiler flag to generate shared objects directly from archives.
17239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17240
17241 # Compiler flag to generate thread-safe objects.
17242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17243
17244 # Library versioning type.
17245 version_type=$version_type
17246
17247 # Format of library name prefix.
17248 libname_spec=$lt_libname_spec
17249
17250 # List of archive names.  First name is the real one, the rest are links.
17251 # The last name is the one that the linker finds with -lNAME.
17252 library_names_spec=$lt_library_names_spec
17253
17254 # The coded name of the library, if different from the real name.
17255 soname_spec=$lt_soname_spec
17256
17257 # Commands used to build and install an old-style archive.
17258 RANLIB=$lt_RANLIB
17259 old_archive_cmds=$lt_old_archive_cmds_F77
17260 old_postinstall_cmds=$lt_old_postinstall_cmds
17261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17262
17263 # Create an old-style archive from a shared archive.
17264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17265
17266 # Create a temporary old-style archive to link instead of a shared archive.
17267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17268
17269 # Commands used to build and install a shared archive.
17270 archive_cmds=$lt_archive_cmds_F77
17271 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17272 postinstall_cmds=$lt_postinstall_cmds
17273 postuninstall_cmds=$lt_postuninstall_cmds
17274
17275 # Commands used to build a loadable module (assumed same as above if empty)
17276 module_cmds=$lt_module_cmds_F77
17277 module_expsym_cmds=$lt_module_expsym_cmds_F77
17278
17279 # Commands to strip libraries.
17280 old_striplib=$lt_old_striplib
17281 striplib=$lt_striplib
17282
17283 # Dependencies to place before the objects being linked to create a
17284 # shared library.
17285 predep_objects=$lt_predep_objects_F77
17286
17287 # Dependencies to place after the objects being linked to create a
17288 # shared library.
17289 postdep_objects=$lt_postdep_objects_F77
17290
17291 # Dependencies to place before the objects being linked to create a
17292 # shared library.
17293 predeps=$lt_predeps_F77
17294
17295 # Dependencies to place after the objects being linked to create a
17296 # shared library.
17297 postdeps=$lt_postdeps_F77
17298
17299 # The library search path used internally by the compiler when linking
17300 # a shared library.
17301 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17302
17303 # Method to check whether dependent libraries are shared objects.
17304 deplibs_check_method=$lt_deplibs_check_method
17305
17306 # Command to use when deplibs_check_method == file_magic.
17307 file_magic_cmd=$lt_file_magic_cmd
17308
17309 # Flag that allows shared libraries with undefined symbols to be built.
17310 allow_undefined_flag=$lt_allow_undefined_flag_F77
17311
17312 # Flag that forces no undefined symbols.
17313 no_undefined_flag=$lt_no_undefined_flag_F77
17314
17315 # Commands used to finish a libtool library installation in a directory.
17316 finish_cmds=$lt_finish_cmds
17317
17318 # Same as above, but a single script fragment to be evaled but not shown.
17319 finish_eval=$lt_finish_eval
17320
17321 # Take the output of nm and produce a listing of raw symbols and C names.
17322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17323
17324 # Transform the output of nm in a proper C declaration
17325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17326
17327 # Transform the output of nm in a C name address pair
17328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17329
17330 # This is the shared library runtime path variable.
17331 runpath_var=$runpath_var
17332
17333 # This is the shared library path variable.
17334 shlibpath_var=$shlibpath_var
17335
17336 # Is shlibpath searched before the hard-coded library search path?
17337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17338
17339 # How to hardcode a shared library path into an executable.
17340 hardcode_action=$hardcode_action_F77
17341
17342 # Whether we should hardcode library paths into libraries.
17343 hardcode_into_libs=$hardcode_into_libs
17344
17345 # Flag to hardcode \$libdir into a binary during linking.
17346 # This must work even if \$libdir does not exist.
17347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17348
17349 # If ld is used when linking, flag to hardcode \$libdir into
17350 # a binary during linking. This must work even if \$libdir does
17351 # not exist.
17352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17353
17354 # Whether we need a single -rpath flag with a separated argument.
17355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17356
17357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17358 # resulting binary.
17359 hardcode_direct=$hardcode_direct_F77
17360
17361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17362 # resulting binary.
17363 hardcode_minus_L=$hardcode_minus_L_F77
17364
17365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17366 # the resulting binary.
17367 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17368
17369 # Set to yes if building a shared library automatically hardcodes DIR into the library
17370 # and all subsequent libraries and executables linked against it.
17371 hardcode_automatic=$hardcode_automatic_F77
17372
17373 # Variables whose values should be saved in libtool wrapper scripts and
17374 # restored at relink time.
17375 variables_saved_for_relink="$variables_saved_for_relink"
17376
17377 # Whether libtool must link a program against all its dependency libraries.
17378 link_all_deplibs=$link_all_deplibs_F77
17379
17380 # Compile-time system search path for libraries
17381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17382
17383 # Run-time system search path for libraries
17384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17385
17386 # Fix the shell variable \$srcfile for the compiler.
17387 fix_srcfile_path="$fix_srcfile_path_F77"
17388
17389 # Set to yes if exported symbols are required.
17390 always_export_symbols=$always_export_symbols_F77
17391
17392 # The commands to list exported symbols.
17393 export_symbols_cmds=$lt_export_symbols_cmds_F77
17394
17395 # The commands to extract the exported symbol list from a shared archive.
17396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17397
17398 # Symbols that should not be listed in the preloaded symbols.
17399 exclude_expsyms=$lt_exclude_expsyms_F77
17400
17401 # Symbols that must always be exported.
17402 include_expsyms=$lt_include_expsyms_F77
17403
17404 # ### END LIBTOOL TAG CONFIG: $tagname
17405
17406 __EOF__
17407
17408
17409 else
17410   # If there is no Makefile yet, we rely on a make rule to execute
17411   # `config.status --recheck' to rerun these tests and create the
17412   # libtool script then.
17413   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17414   if test -f "$ltmain_in"; then
17415     test -f Makefile && make "$ltmain"
17416   fi
17417 fi
17418
17419
17420 ac_ext=c
17421 ac_cpp='$CPP $CPPFLAGS'
17422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17425
17426 CC="$lt_save_CC"
17427
17428         else
17429           tagname=""
17430         fi
17431         ;;
17432
17433       GCJ)
17434         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17435
17436
17437
17438 # Source file extension for Java test sources.
17439 ac_ext=java
17440
17441 # Object file extension for compiled Java test sources.
17442 objext=o
17443 objext_GCJ=$objext
17444
17445 # Code to be used in simple compile tests
17446 lt_simple_compile_test_code="class foo {}\n"
17447
17448 # Code to be used in simple link tests
17449 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17450
17451 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17452
17453 # If no C compiler was specified, use CC.
17454 LTCC=${LTCC-"$CC"}
17455
17456 # Allow CC to be a program name with arguments.
17457 compiler=$CC
17458
17459
17460 # Allow CC to be a program name with arguments.
17461 lt_save_CC="$CC"
17462 CC=${GCJ-"gcj"}
17463 compiler=$CC
17464 compiler_GCJ=$CC
17465
17466 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17467 archive_cmds_need_lc_GCJ=no
17468
17469 ## CAVEAT EMPTOR:
17470 ## There is no encapsulation within the following macros, do not change
17471 ## the running order or otherwise move them around unless you know exactly
17472 ## what you are doing...
17473
17474 lt_prog_compiler_no_builtin_flag_GCJ=
17475
17476 if test "$GCC" = yes; then
17477   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17478
17479
17480 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17481 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17482 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17483   echo $ECHO_N "(cached) $ECHO_C" >&6
17484 else
17485   lt_cv_prog_compiler_rtti_exceptions=no
17486   ac_outfile=conftest.$ac_objext
17487    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17488    lt_compiler_flag="-fno-rtti -fno-exceptions"
17489    # Insert the option either (1) after the last *FLAGS variable, or
17490    # (2) before a word containing "conftest.", or (3) at the end.
17491    # Note that $ac_compile itself does not contain backslashes and begins
17492    # with a dollar sign (not a hyphen), so the echo should work correctly.
17493    # The option is referenced via a variable to avoid confusing sed.
17494    lt_compile=`echo "$ac_compile" | $SED \
17495    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17497    -e 's:$: $lt_compiler_flag:'`
17498    (eval echo "\"\$as_me:17498: $lt_compile\"" >&5)
17499    (eval "$lt_compile" 2>conftest.err)
17500    ac_status=$?
17501    cat conftest.err >&5
17502    echo "$as_me:17502: \$? = $ac_status" >&5
17503    if (exit $ac_status) && test -s "$ac_outfile"; then
17504      # The compiler can only warn and ignore the option if not recognized
17505      # So say no if there are warnings
17506      if test ! -s conftest.err; then
17507        lt_cv_prog_compiler_rtti_exceptions=yes
17508      fi
17509    fi
17510    $rm conftest*
17511
17512 fi
17513 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17514 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17515
17516 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17517     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17518 else
17519     :
17520 fi
17521
17522 fi
17523
17524 lt_prog_compiler_wl_GCJ=
17525 lt_prog_compiler_pic_GCJ=
17526 lt_prog_compiler_static_GCJ=
17527
17528 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17530
17531   if test "$GCC" = yes; then
17532     lt_prog_compiler_wl_GCJ='-Wl,'
17533     lt_prog_compiler_static_GCJ='-static'
17534
17535     case $host_os in
17536       aix*)
17537       # All AIX code is PIC.
17538       if test "$host_cpu" = ia64; then
17539         # AIX 5 now supports IA64 processor
17540         lt_prog_compiler_static_GCJ='-Bstatic'
17541       fi
17542       ;;
17543
17544     amigaos*)
17545       # FIXME: we need at least 68020 code to build shared libraries, but
17546       # adding the `-m68020' flag to GCC prevents building anything better,
17547       # like `-m68040'.
17548       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17549       ;;
17550
17551     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17552       # PIC is the default for these OSes.
17553       ;;
17554
17555     mingw* | pw32* | os2*)
17556       # This hack is so that the source file can tell whether it is being
17557       # built for inclusion in a dll (and should export symbols for example).
17558       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17559       ;;
17560
17561     darwin* | rhapsody*)
17562       # PIC is the default on this platform
17563       # Common symbols not allowed in MH_DYLIB files
17564       lt_prog_compiler_pic_GCJ='-fno-common'
17565       ;;
17566
17567     msdosdjgpp*)
17568       # Just because we use GCC doesn't mean we suddenly get shared libraries
17569       # on systems that don't support them.
17570       lt_prog_compiler_can_build_shared_GCJ=no
17571       enable_shared=no
17572       ;;
17573
17574     sysv4*MP*)
17575       if test -d /usr/nec; then
17576         lt_prog_compiler_pic_GCJ=-Kconform_pic
17577       fi
17578       ;;
17579
17580     hpux*)
17581       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17582       # not for PA HP-UX.
17583       case "$host_cpu" in
17584       hppa*64*|ia64*)
17585         # +Z the default
17586         ;;
17587       *)
17588         lt_prog_compiler_pic_GCJ='-fPIC'
17589         ;;
17590       esac
17591       ;;
17592
17593     *)
17594       lt_prog_compiler_pic_GCJ='-fPIC'
17595       ;;
17596     esac
17597   else
17598     # PORTME Check for flag to pass linker flags through the system compiler.
17599     case $host_os in
17600     aix*)
17601       lt_prog_compiler_wl_GCJ='-Wl,'
17602       if test "$host_cpu" = ia64; then
17603         # AIX 5 now supports IA64 processor
17604         lt_prog_compiler_static_GCJ='-Bstatic'
17605       else
17606         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17607       fi
17608       ;;
17609
17610     mingw* | pw32* | os2*)
17611       # This hack is so that the source file can tell whether it is being
17612       # built for inclusion in a dll (and should export symbols for example).
17613       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17614       ;;
17615
17616     hpux9* | hpux10* | hpux11*)
17617       lt_prog_compiler_wl_GCJ='-Wl,'
17618       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17619       # not for PA HP-UX.
17620       case "$host_cpu" in
17621       hppa*64*|ia64*)
17622         # +Z the default
17623         ;;
17624       *)
17625         lt_prog_compiler_pic_GCJ='+Z'
17626         ;;
17627       esac
17628       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17629       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17630       ;;
17631
17632     irix5* | irix6* | nonstopux*)
17633       lt_prog_compiler_wl_GCJ='-Wl,'
17634       # PIC (with -KPIC) is the default.
17635       lt_prog_compiler_static_GCJ='-non_shared'
17636       ;;
17637
17638     newsos6)
17639       lt_prog_compiler_pic_GCJ='-KPIC'
17640       lt_prog_compiler_static_GCJ='-Bstatic'
17641       ;;
17642
17643     linux*)
17644       case $CC in
17645       icc* | ecc*)
17646         lt_prog_compiler_wl_GCJ='-Wl,'
17647         lt_prog_compiler_pic_GCJ='-KPIC'
17648         lt_prog_compiler_static_GCJ='-static'
17649         ;;
17650       ccc*)
17651         lt_prog_compiler_wl_GCJ='-Wl,'
17652         # All Alpha code is PIC.
17653         lt_prog_compiler_static_GCJ='-non_shared'
17654         ;;
17655       esac
17656       ;;
17657
17658     osf3* | osf4* | osf5*)
17659       lt_prog_compiler_wl_GCJ='-Wl,'
17660       # All OSF/1 code is PIC.
17661       lt_prog_compiler_static_GCJ='-non_shared'
17662       ;;
17663
17664     sco3.2v5*)
17665       lt_prog_compiler_pic_GCJ='-Kpic'
17666       lt_prog_compiler_static_GCJ='-dn'
17667       ;;
17668
17669     solaris*)
17670       lt_prog_compiler_wl_GCJ='-Wl,'
17671       lt_prog_compiler_pic_GCJ='-KPIC'
17672       lt_prog_compiler_static_GCJ='-Bstatic'
17673       ;;
17674
17675     sunos4*)
17676       lt_prog_compiler_wl_GCJ='-Qoption ld '
17677       lt_prog_compiler_pic_GCJ='-PIC'
17678       lt_prog_compiler_static_GCJ='-Bstatic'
17679       ;;
17680
17681     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17682       lt_prog_compiler_wl_GCJ='-Wl,'
17683       lt_prog_compiler_pic_GCJ='-KPIC'
17684       lt_prog_compiler_static_GCJ='-Bstatic'
17685       ;;
17686
17687     sysv4*MP*)
17688       if test -d /usr/nec ;then
17689         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17690         lt_prog_compiler_static_GCJ='-Bstatic'
17691       fi
17692       ;;
17693
17694     uts4*)
17695       lt_prog_compiler_pic_GCJ='-pic'
17696       lt_prog_compiler_static_GCJ='-Bstatic'
17697       ;;
17698
17699     *)
17700       lt_prog_compiler_can_build_shared_GCJ=no
17701       ;;
17702     esac
17703   fi
17704
17705 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17706 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17707
17708 #
17709 # Check to make sure the PIC flag actually works.
17710 #
17711 if test -n "$lt_prog_compiler_pic_GCJ"; then
17712
17713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17715 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17716   echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718   lt_prog_compiler_pic_works_GCJ=no
17719   ac_outfile=conftest.$ac_objext
17720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17721    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17722    # Insert the option either (1) after the last *FLAGS variable, or
17723    # (2) before a word containing "conftest.", or (3) at the end.
17724    # Note that $ac_compile itself does not contain backslashes and begins
17725    # with a dollar sign (not a hyphen), so the echo should work correctly.
17726    # The option is referenced via a variable to avoid confusing sed.
17727    lt_compile=`echo "$ac_compile" | $SED \
17728    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17730    -e 's:$: $lt_compiler_flag:'`
17731    (eval echo "\"\$as_me:17731: $lt_compile\"" >&5)
17732    (eval "$lt_compile" 2>conftest.err)
17733    ac_status=$?
17734    cat conftest.err >&5
17735    echo "$as_me:17735: \$? = $ac_status" >&5
17736    if (exit $ac_status) && test -s "$ac_outfile"; then
17737      # The compiler can only warn and ignore the option if not recognized
17738      # So say no if there are warnings
17739      if test ! -s conftest.err; then
17740        lt_prog_compiler_pic_works_GCJ=yes
17741      fi
17742    fi
17743    $rm conftest*
17744
17745 fi
17746 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17747 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17748
17749 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17750     case $lt_prog_compiler_pic_GCJ in
17751      "" | " "*) ;;
17752      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17753      esac
17754 else
17755     lt_prog_compiler_pic_GCJ=
17756      lt_prog_compiler_can_build_shared_GCJ=no
17757 fi
17758
17759 fi
17760 case "$host_os" in
17761   # For platforms which do not support PIC, -DPIC is meaningless:
17762   *djgpp*)
17763     lt_prog_compiler_pic_GCJ=
17764     ;;
17765   *)
17766     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17767     ;;
17768 esac
17769
17770 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17772 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   lt_cv_prog_compiler_c_o_GCJ=no
17776    $rm -r conftest 2>/dev/null
17777    mkdir conftest
17778    cd conftest
17779    mkdir out
17780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17781
17782    lt_compiler_flag="-o out/conftest2.$ac_objext"
17783    # Insert the option either (1) after the last *FLAGS variable, or
17784    # (2) before a word containing "conftest.", or (3) at the end.
17785    # Note that $ac_compile itself does not contain backslashes and begins
17786    # with a dollar sign (not a hyphen), so the echo should work correctly.
17787    lt_compile=`echo "$ac_compile" | $SED \
17788    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17790    -e 's:$: $lt_compiler_flag:'`
17791    (eval echo "\"\$as_me:17791: $lt_compile\"" >&5)
17792    (eval "$lt_compile" 2>out/conftest.err)
17793    ac_status=$?
17794    cat out/conftest.err >&5
17795    echo "$as_me:17795: \$? = $ac_status" >&5
17796    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17797    then
17798      # The compiler can only warn and ignore the option if not recognized
17799      # So say no if there are warnings
17800      if test ! -s out/conftest.err; then
17801        lt_cv_prog_compiler_c_o_GCJ=yes
17802      fi
17803    fi
17804    chmod u+w .
17805    $rm conftest*
17806    # SGI C++ compiler will create directory out/ii_files/ for
17807    # template instantiation
17808    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17809    $rm out/* && rmdir out
17810    cd ..
17811    rmdir conftest
17812    $rm conftest*
17813
17814 fi
17815 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17817
17818
17819 hard_links="nottested"
17820 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17821   # do not overwrite the value of need_locks provided by the user
17822   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17823 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17824   hard_links=yes
17825   $rm conftest*
17826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17827   touch conftest.a
17828   ln conftest.a conftest.b 2>&5 || hard_links=no
17829   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17830   echo "$as_me:$LINENO: result: $hard_links" >&5
17831 echo "${ECHO_T}$hard_links" >&6
17832   if test "$hard_links" = no; then
17833     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17834 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17835     need_locks=warn
17836   fi
17837 else
17838   need_locks=no
17839 fi
17840
17841 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17843
17844   runpath_var=
17845   allow_undefined_flag_GCJ=
17846   enable_shared_with_static_runtimes_GCJ=no
17847   archive_cmds_GCJ=
17848   archive_expsym_cmds_GCJ=
17849   old_archive_From_new_cmds_GCJ=
17850   old_archive_from_expsyms_cmds_GCJ=
17851   export_dynamic_flag_spec_GCJ=
17852   whole_archive_flag_spec_GCJ=
17853   thread_safe_flag_spec_GCJ=
17854   hardcode_libdir_flag_spec_GCJ=
17855   hardcode_libdir_flag_spec_ld_GCJ=
17856   hardcode_libdir_separator_GCJ=
17857   hardcode_direct_GCJ=no
17858   hardcode_minus_L_GCJ=no
17859   hardcode_shlibpath_var_GCJ=unsupported
17860   link_all_deplibs_GCJ=unknown
17861   hardcode_automatic_GCJ=no
17862   module_cmds_GCJ=
17863   module_expsym_cmds_GCJ=
17864   always_export_symbols_GCJ=no
17865   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17866   # include_expsyms should be a list of space-separated symbols to be *always*
17867   # included in the symbol list
17868   include_expsyms_GCJ=
17869   # exclude_expsyms can be an extended regexp of symbols to exclude
17870   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17871   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17872   # as well as any symbol that contains `d'.
17873   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17874   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17875   # platforms (ab)use it in PIC code, but their linkers get confused if
17876   # the symbol is explicitly referenced.  Since portable code cannot
17877   # rely on this symbol name, it's probably fine to never include it in
17878   # preloaded symbol tables.
17879   extract_expsyms_cmds=
17880
17881   case $host_os in
17882   cygwin* | mingw* | pw32*)
17883     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17884     # When not using gcc, we currently assume that we are using
17885     # Microsoft Visual C++.
17886     if test "$GCC" != yes; then
17887       with_gnu_ld=no
17888     fi
17889     ;;
17890   openbsd*)
17891     with_gnu_ld=no
17892     ;;
17893   esac
17894
17895   ld_shlibs_GCJ=yes
17896   if test "$with_gnu_ld" = yes; then
17897     # If archive_cmds runs LD, not CC, wlarc should be empty
17898     wlarc='${wl}'
17899
17900     # See if GNU ld supports shared libraries.
17901     case $host_os in
17902     aix3* | aix4* | aix5*)
17903       # On AIX/PPC, the GNU linker is very broken
17904       if test "$host_cpu" != ia64; then
17905         ld_shlibs_GCJ=no
17906         cat <<EOF 1>&2
17907
17908 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17909 *** to be unable to reliably create shared libraries on AIX.
17910 *** Therefore, libtool is disabling shared libraries support.  If you
17911 *** really care for shared libraries, you may want to modify your PATH
17912 *** so that a non-GNU linker is found, and then restart.
17913
17914 EOF
17915       fi
17916       ;;
17917
17918     amigaos*)
17919       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)'
17920       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17921       hardcode_minus_L_GCJ=yes
17922
17923       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17924       # that the semantics of dynamic libraries on AmigaOS, at least up
17925       # to version 4, is to share data among multiple programs linked
17926       # with the same dynamic library.  Since this doesn't match the
17927       # behavior of shared libraries on other platforms, we can't use
17928       # them.
17929       ld_shlibs_GCJ=no
17930       ;;
17931
17932     beos*)
17933       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17934         allow_undefined_flag_GCJ=unsupported
17935         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17936         # support --undefined.  This deserves some investigation.  FIXME
17937         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17938       else
17939         ld_shlibs_GCJ=no
17940       fi
17941       ;;
17942
17943     cygwin* | mingw* | pw32*)
17944       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17945       # as there is no search path for DLLs.
17946       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17947       allow_undefined_flag_GCJ=unsupported
17948       always_export_symbols_GCJ=no
17949       enable_shared_with_static_runtimes_GCJ=yes
17950       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17951
17952       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17953         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17954         # If the export-symbols file already is a .def file (1st line
17955         # is EXPORTS), use it as is; otherwise, prepend...
17956         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17957           cp $export_symbols $output_objdir/$soname.def;
17958         else
17959           echo EXPORTS > $output_objdir/$soname.def;
17960           cat $export_symbols >> $output_objdir/$soname.def;
17961         fi~
17962         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17963       else
17964         ld_shlibs=no
17965       fi
17966       ;;
17967
17968     netbsd*)
17969       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17970         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17971         wlarc=
17972       else
17973         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17974         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17975       fi
17976       ;;
17977
17978     solaris* | sysv5*)
17979       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17980         ld_shlibs_GCJ=no
17981         cat <<EOF 1>&2
17982
17983 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17984 *** create shared libraries on Solaris systems.  Therefore, libtool
17985 *** is disabling shared libraries support.  We urge you to upgrade GNU
17986 *** binutils to release 2.9.1 or newer.  Another option is to modify
17987 *** your PATH or compiler configuration so that the native linker is
17988 *** used, and then restart.
17989
17990 EOF
17991       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17992         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17994       else
17995         ld_shlibs_GCJ=no
17996       fi
17997       ;;
17998
17999     sunos4*)
18000       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18001       wlarc=
18002       hardcode_direct_GCJ=yes
18003       hardcode_shlibpath_var_GCJ=no
18004       ;;
18005
18006   linux*)
18007     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18008         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009         archive_cmds_GCJ="$tmp_archive_cmds"
18010       supports_anon_versioning=no
18011       case `$LD -v 2>/dev/null` in
18012         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18013         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18014         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18015         *\ 2.11.*) ;; # other 2.11 versions
18016         *) supports_anon_versioning=yes ;;
18017       esac
18018       if test $supports_anon_versioning = yes; then
18019         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18021 $echo "local: *; };" >> $output_objdir/$libname.ver~
18022         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18023       else
18024         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18025       fi
18026     else
18027       ld_shlibs_GCJ=no
18028     fi
18029     ;;
18030
18031     *)
18032       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18033         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18034         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18035       else
18036         ld_shlibs_GCJ=no
18037       fi
18038       ;;
18039     esac
18040
18041     if test "$ld_shlibs_GCJ" = yes; then
18042       runpath_var=LD_RUN_PATH
18043       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18044       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18045       # ancient GNU ld didn't support --whole-archive et. al.
18046       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18047         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18048       else
18049         whole_archive_flag_spec_GCJ=
18050       fi
18051     fi
18052   else
18053     # PORTME fill in a description of your system's linker (not GNU ld)
18054     case $host_os in
18055     aix3*)
18056       allow_undefined_flag_GCJ=unsupported
18057       always_export_symbols_GCJ=yes
18058       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'
18059       # Note: this linker hardcodes the directories in LIBPATH if there
18060       # are no directories specified by -L.
18061       hardcode_minus_L_GCJ=yes
18062       if test "$GCC" = yes && test -z "$link_static_flag"; then
18063         # Neither direct hardcoding nor static linking is supported with a
18064         # broken collect2.
18065         hardcode_direct_GCJ=unsupported
18066       fi
18067       ;;
18068
18069     aix4* | aix5*)
18070       if test "$host_cpu" = ia64; then
18071         # On IA64, the linker does run time linking by default, so we don't
18072         # have to do anything special.
18073         aix_use_runtimelinking=no
18074         exp_sym_flag='-Bexport'
18075         no_entry_flag=""
18076       else
18077         # If we're using GNU nm, then we don't want the "-C" option.
18078         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18079         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18080           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'
18081         else
18082           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'
18083         fi
18084         aix_use_runtimelinking=no
18085
18086         # Test if we are trying to use run time linking or normal
18087         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18088         # need to do runtime linking.
18089         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18090           for ld_flag in $LDFLAGS; do
18091           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18092             aix_use_runtimelinking=yes
18093             break
18094           fi
18095           done
18096         esac
18097
18098         exp_sym_flag='-bexport'
18099         no_entry_flag='-bnoentry'
18100       fi
18101
18102       # When large executables or shared objects are built, AIX ld can
18103       # have problems creating the table of contents.  If linking a library
18104       # or program results in "error TOC overflow" add -mminimal-toc to
18105       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18106       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18107
18108       archive_cmds_GCJ=''
18109       hardcode_direct_GCJ=yes
18110       hardcode_libdir_separator_GCJ=':'
18111       link_all_deplibs_GCJ=yes
18112
18113       if test "$GCC" = yes; then
18114         case $host_os in aix4.012|aix4.012.*)
18115         # We only want to do this on AIX 4.2 and lower, the check
18116         # below for broken collect2 doesn't work under 4.3+
18117           collect2name=`${CC} -print-prog-name=collect2`
18118           if test -f "$collect2name" && \
18119            strings "$collect2name" | grep resolve_lib_name >/dev/null
18120           then
18121           # We have reworked collect2
18122           hardcode_direct_GCJ=yes
18123           else
18124           # We have old collect2
18125           hardcode_direct_GCJ=unsupported
18126           # It fails to find uninstalled libraries when the uninstalled
18127           # path is not listed in the libpath.  Setting hardcode_minus_L
18128           # to unsupported forces relinking
18129           hardcode_minus_L_GCJ=yes
18130           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131           hardcode_libdir_separator_GCJ=
18132           fi
18133         esac
18134         shared_flag='-shared'
18135       else
18136         # not using gcc
18137         if test "$host_cpu" = ia64; then
18138         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18139         # chokes on -Wl,-G. The following line is correct:
18140           shared_flag='-G'
18141         else
18142         if test "$aix_use_runtimelinking" = yes; then
18143             shared_flag='${wl}-G'
18144           else
18145             shared_flag='${wl}-bM:SRE'
18146         fi
18147         fi
18148       fi
18149
18150       # It seems that -bexpall does not export symbols beginning with
18151       # underscore (_), so it is better to generate a list of symbols to export.
18152       always_export_symbols_GCJ=yes
18153       if test "$aix_use_runtimelinking" = yes; then
18154         # Warning - without using the other runtime loading flags (-brtl),
18155         # -berok will link without error, but may produce a broken library.
18156         allow_undefined_flag_GCJ='-berok'
18157        # Determine the default libpath from the value encoded in an empty executable.
18158        cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164
18165 int
18166 main ()
18167 {
18168
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175   (eval $ac_link) 2>conftest.er1
18176   ac_status=$?
18177   grep -v '^ *+' conftest.er1 >conftest.err
18178   rm -f conftest.er1
18179   cat conftest.err >&5
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); } &&
18182          { ac_try='test -z "$ac_c_werror_flag"
18183                          || test ! -s conftest.err'
18184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185   (eval $ac_try) 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; } &&
18189          { ac_try='test -s conftest$ac_exeext'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195
18196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18197 }'`
18198 # Check for a 64-bit object if we didn't find anything.
18199 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; }
18200 }'`; fi
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205 fi
18206 rm -f conftest.err conftest.$ac_objext \
18207       conftest$ac_exeext conftest.$ac_ext
18208 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18209
18210        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18211         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"
18212        else
18213         if test "$host_cpu" = ia64; then
18214           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18215           allow_undefined_flag_GCJ="-z nodefs"
18216           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"
18217         else
18218          # Determine the default libpath from the value encoded in an empty executable.
18219          cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h.  */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h.  */
18225
18226 int
18227 main ()
18228 {
18229
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -z "$ac_c_werror_flag"
18244                          || test ! -s conftest.err'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256
18257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18258 }'`
18259 # Check for a 64-bit object if we didn't find anything.
18260 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; }
18261 }'`; fi
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266 fi
18267 rm -f conftest.err conftest.$ac_objext \
18268       conftest$ac_exeext conftest.$ac_ext
18269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18270
18271          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18272           # Warning - without using the other run time loading flags,
18273           # -berok will link without error, but may produce a broken library.
18274           no_undefined_flag_GCJ=' ${wl}-bernotok'
18275           allow_undefined_flag_GCJ=' ${wl}-berok'
18276           # -bexpall does not export symbols beginning with underscore (_)
18277           always_export_symbols_GCJ=yes
18278           # Exported symbols can be pulled into shared objects from archives
18279           whole_archive_flag_spec_GCJ=' '
18280           archive_cmds_need_lc_GCJ=yes
18281           # This is similar to how AIX traditionally builds it's shared libraries.
18282           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'
18283         fi
18284       fi
18285       ;;
18286
18287     amigaos*)
18288       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)'
18289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18290       hardcode_minus_L_GCJ=yes
18291       # see comment about different semantics on the GNU ld section
18292       ld_shlibs_GCJ=no
18293       ;;
18294
18295     bsdi4*)
18296       export_dynamic_flag_spec_GCJ=-rdynamic
18297       ;;
18298
18299     cygwin* | mingw* | pw32*)
18300       # When not using gcc, we currently assume that we are using
18301       # Microsoft Visual C++.
18302       # hardcode_libdir_flag_spec is actually meaningless, as there is
18303       # no search path for DLLs.
18304       hardcode_libdir_flag_spec_GCJ=' '
18305       allow_undefined_flag_GCJ=unsupported
18306       # Tell ltmain to make .lib files, not .a files.
18307       libext=lib
18308       # Tell ltmain to make .dll files, not .so files.
18309       shrext_cmds=".dll"
18310       # FIXME: Setting linknames here is a bad hack.
18311       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18312       # The linker will automatically build a .lib file if we build a DLL.
18313       old_archive_From_new_cmds_GCJ='true'
18314       # FIXME: Should let the user specify the lib program.
18315       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18316       fix_srcfile_path='`cygpath -w "$srcfile"`'
18317       enable_shared_with_static_runtimes_GCJ=yes
18318       ;;
18319
18320     darwin* | rhapsody*)
18321     if test "$GXX" = yes ; then
18322       archive_cmds_need_lc_GCJ=no
18323       case "$host_os" in
18324       rhapsody* | darwin1.[012])
18325         allow_undefined_flag_GCJ='-undefined suppress'
18326         ;;
18327       *) # Darwin 1.3 on
18328       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18329         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18330       else
18331         case ${MACOSX_DEPLOYMENT_TARGET} in
18332           10.[012])
18333             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18334             ;;
18335           10.*)
18336             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18337             ;;
18338         esac
18339       fi
18340         ;;
18341       esac
18342         lt_int_apple_cc_single_mod=no
18343         output_verbose_link_cmd='echo'
18344         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18345           lt_int_apple_cc_single_mod=yes
18346         fi
18347         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18348           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18349         else
18350         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'
18351       fi
18352       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18353       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18354         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18355           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}'
18356         else
18357           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}'
18358         fi
18359           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}'
18360       hardcode_direct_GCJ=no
18361       hardcode_automatic_GCJ=yes
18362       hardcode_shlibpath_var_GCJ=unsupported
18363       whole_archive_flag_spec_GCJ='-all_load $convenience'
18364       link_all_deplibs_GCJ=yes
18365     else
18366       ld_shlibs_GCJ=no
18367     fi
18368       ;;
18369
18370     dgux*)
18371       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18372       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18373       hardcode_shlibpath_var_GCJ=no
18374       ;;
18375
18376     freebsd1*)
18377       ld_shlibs_GCJ=no
18378       ;;
18379
18380     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18381     # support.  Future versions do this automatically, but an explicit c++rt0.o
18382     # does not break anything, and helps significantly (at the cost of a little
18383     # extra space).
18384     freebsd2.2*)
18385       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18386       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18387       hardcode_direct_GCJ=yes
18388       hardcode_shlibpath_var_GCJ=no
18389       ;;
18390
18391     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18392     freebsd2*)
18393       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18394       hardcode_direct_GCJ=yes
18395       hardcode_minus_L_GCJ=yes
18396       hardcode_shlibpath_var_GCJ=no
18397       ;;
18398
18399     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18400     freebsd* | kfreebsd*-gnu)
18401       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18402       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18403       hardcode_direct_GCJ=yes
18404       hardcode_shlibpath_var_GCJ=no
18405       ;;
18406
18407     hpux9*)
18408       if test "$GCC" = yes; then
18409         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'
18410       else
18411         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'
18412       fi
18413       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18414       hardcode_libdir_separator_GCJ=:
18415       hardcode_direct_GCJ=yes
18416
18417       # hardcode_minus_L: Not really in the search PATH,
18418       # but as the default location of the library.
18419       hardcode_minus_L_GCJ=yes
18420       export_dynamic_flag_spec_GCJ='${wl}-E'
18421       ;;
18422
18423     hpux10* | hpux11*)
18424       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18425         case "$host_cpu" in
18426         hppa*64*|ia64*)
18427           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18428           ;;
18429         *)
18430           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18431           ;;
18432         esac
18433       else
18434         case "$host_cpu" in
18435         hppa*64*|ia64*)
18436           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18437           ;;
18438         *)
18439           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18440           ;;
18441         esac
18442       fi
18443       if test "$with_gnu_ld" = no; then
18444         case "$host_cpu" in
18445         hppa*64*)
18446           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18447           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18448           hardcode_libdir_separator_GCJ=:
18449           hardcode_direct_GCJ=no
18450           hardcode_shlibpath_var_GCJ=no
18451           ;;
18452         ia64*)
18453           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18454           hardcode_direct_GCJ=no
18455           hardcode_shlibpath_var_GCJ=no
18456
18457           # hardcode_minus_L: Not really in the search PATH,
18458           # but as the default location of the library.
18459           hardcode_minus_L_GCJ=yes
18460           ;;
18461         *)
18462           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18463           hardcode_libdir_separator_GCJ=:
18464           hardcode_direct_GCJ=yes
18465           export_dynamic_flag_spec_GCJ='${wl}-E'
18466
18467           # hardcode_minus_L: Not really in the search PATH,
18468           # but as the default location of the library.
18469           hardcode_minus_L_GCJ=yes
18470           ;;
18471         esac
18472       fi
18473       ;;
18474
18475     irix5* | irix6* | nonstopux*)
18476       if test "$GCC" = yes; then
18477         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'
18478       else
18479         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'
18480         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18481       fi
18482       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18483       hardcode_libdir_separator_GCJ=:
18484       link_all_deplibs_GCJ=yes
18485       ;;
18486
18487     netbsd*)
18488       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18489         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18490       else
18491         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18492       fi
18493       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18494       hardcode_direct_GCJ=yes
18495       hardcode_shlibpath_var_GCJ=no
18496       ;;
18497
18498     newsos6)
18499       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18500       hardcode_direct_GCJ=yes
18501       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18502       hardcode_libdir_separator_GCJ=:
18503       hardcode_shlibpath_var_GCJ=no
18504       ;;
18505
18506     openbsd*)
18507       hardcode_direct_GCJ=yes
18508       hardcode_shlibpath_var_GCJ=no
18509       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18510         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18511         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18512         export_dynamic_flag_spec_GCJ='${wl}-E'
18513       else
18514        case $host_os in
18515          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18516            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18517            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18518            ;;
18519          *)
18520            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18521            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18522            ;;
18523        esac
18524       fi
18525       ;;
18526
18527     os2*)
18528       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18529       hardcode_minus_L_GCJ=yes
18530       allow_undefined_flag_GCJ=unsupported
18531       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'
18532       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18533       ;;
18534
18535     osf3*)
18536       if test "$GCC" = yes; then
18537         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18538         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'
18539       else
18540         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18541         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'
18542       fi
18543       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18544       hardcode_libdir_separator_GCJ=:
18545       ;;
18546
18547     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18548       if test "$GCC" = yes; then
18549         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18550         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'
18551         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18552       else
18553         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18554         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'
18555         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~
18556         $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'
18557
18558         # Both c and cxx compiler support -rpath directly
18559         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18560       fi
18561       hardcode_libdir_separator_GCJ=:
18562       ;;
18563
18564     sco3.2v5*)
18565       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18566       hardcode_shlibpath_var_GCJ=no
18567       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18568       runpath_var=LD_RUN_PATH
18569       hardcode_runpath_var=yes
18570       ;;
18571
18572     solaris*)
18573       no_undefined_flag_GCJ=' -z text'
18574       if test "$GCC" = yes; then
18575         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18576         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18577           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18578       else
18579         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18580         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18581         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18582       fi
18583       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18584       hardcode_shlibpath_var_GCJ=no
18585       case $host_os in
18586       solaris2.[0-5] | solaris2.[0-5].*) ;;
18587       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18588         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18589       esac
18590       link_all_deplibs_GCJ=yes
18591       ;;
18592
18593     sunos4*)
18594       if test "x$host_vendor" = xsequent; then
18595         # Use $CC to link under sequent, because it throws in some extra .o
18596         # files that make .init and .fini sections work.
18597         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18598       else
18599         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18600       fi
18601       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18602       hardcode_direct_GCJ=yes
18603       hardcode_minus_L_GCJ=yes
18604       hardcode_shlibpath_var_GCJ=no
18605       ;;
18606
18607     sysv4)
18608       case $host_vendor in
18609         sni)
18610           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18611           hardcode_direct_GCJ=yes # is this really true???
18612         ;;
18613         siemens)
18614           ## LD is ld it makes a PLAMLIB
18615           ## CC just makes a GrossModule.
18616           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18617           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18618           hardcode_direct_GCJ=no
18619         ;;
18620         motorola)
18621           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18622           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18623         ;;
18624       esac
18625       runpath_var='LD_RUN_PATH'
18626       hardcode_shlibpath_var_GCJ=no
18627       ;;
18628
18629     sysv4.3*)
18630       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18631       hardcode_shlibpath_var_GCJ=no
18632       export_dynamic_flag_spec_GCJ='-Bexport'
18633       ;;
18634
18635     sysv4*MP*)
18636       if test -d /usr/nec; then
18637         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18638         hardcode_shlibpath_var_GCJ=no
18639         runpath_var=LD_RUN_PATH
18640         hardcode_runpath_var=yes
18641         ld_shlibs_GCJ=yes
18642       fi
18643       ;;
18644
18645     sysv4.2uw2*)
18646       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18647       hardcode_direct_GCJ=yes
18648       hardcode_minus_L_GCJ=no
18649       hardcode_shlibpath_var_GCJ=no
18650       hardcode_runpath_var=yes
18651       runpath_var=LD_RUN_PATH
18652       ;;
18653
18654    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18655       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18656       if test "$GCC" = yes; then
18657         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18658       else
18659         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18660       fi
18661       runpath_var='LD_RUN_PATH'
18662       hardcode_shlibpath_var_GCJ=no
18663       ;;
18664
18665     sysv5*)
18666       no_undefined_flag_GCJ=' -z text'
18667       # $CC -shared without GNU ld will not create a library from C++
18668       # object files and a static libstdc++, better avoid it by now
18669       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18670       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18671                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18672       hardcode_libdir_flag_spec_GCJ=
18673       hardcode_shlibpath_var_GCJ=no
18674       runpath_var='LD_RUN_PATH'
18675       ;;
18676
18677     uts4*)
18678       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18679       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18680       hardcode_shlibpath_var_GCJ=no
18681       ;;
18682
18683     *)
18684       ld_shlibs_GCJ=no
18685       ;;
18686     esac
18687   fi
18688
18689 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18690 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18691 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18692
18693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18694 if test "$GCC" = yes; then
18695   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18696 fi
18697
18698 #
18699 # Do we need to explicitly link libc?
18700 #
18701 case "x$archive_cmds_need_lc_GCJ" in
18702 x|xyes)
18703   # Assume -lc should be added
18704   archive_cmds_need_lc_GCJ=yes
18705
18706   if test "$enable_shared" = yes && test "$GCC" = yes; then
18707     case $archive_cmds_GCJ in
18708     *'~'*)
18709       # FIXME: we may have to deal with multi-command sequences.
18710       ;;
18711     '$CC '*)
18712       # Test whether the compiler implicitly links with -lc since on some
18713       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18714       # to ld, don't add -lc before -lgcc.
18715       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18716 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18717       $rm conftest*
18718       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18719
18720       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18721   (eval $ac_compile) 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); } 2>conftest.err; then
18725         soname=conftest
18726         lib=conftest
18727         libobjs=conftest.$ac_objext
18728         deplibs=
18729         wl=$lt_prog_compiler_wl_GCJ
18730         compiler_flags=-v
18731         linker_flags=-v
18732         verstring=
18733         output_objdir=.
18734         libname=conftest
18735         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18736         allow_undefined_flag_GCJ=
18737         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18738   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }
18742         then
18743           archive_cmds_need_lc_GCJ=no
18744         else
18745           archive_cmds_need_lc_GCJ=yes
18746         fi
18747         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18748       else
18749         cat conftest.err 1>&5
18750       fi
18751       $rm conftest*
18752       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18753 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18754       ;;
18755     esac
18756   fi
18757   ;;
18758 esac
18759
18760 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18761 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18762 library_names_spec=
18763 libname_spec='lib$name'
18764 soname_spec=
18765 shrext_cmds=".so"
18766 postinstall_cmds=
18767 postuninstall_cmds=
18768 finish_cmds=
18769 finish_eval=
18770 shlibpath_var=
18771 shlibpath_overrides_runpath=unknown
18772 version_type=none
18773 dynamic_linker="$host_os ld.so"
18774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18775 if test "$GCC" = yes; then
18776   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18777   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18778     # if the path contains ";" then we assume it to be the separator
18779     # otherwise default to the standard path separator (i.e. ":") - it is
18780     # assumed that no part of a normal pathname contains ";" but that should
18781     # okay in the real world where ";" in dirpaths is itself problematic.
18782     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18783   else
18784     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18785   fi
18786 else
18787   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18788 fi
18789 need_lib_prefix=unknown
18790 hardcode_into_libs=no
18791
18792 # when you set need_version to no, make sure it does not cause -set_version
18793 # flags to be left without arguments
18794 need_version=unknown
18795
18796 case $host_os in
18797 aix3*)
18798   version_type=linux
18799   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18800   shlibpath_var=LIBPATH
18801
18802   # AIX 3 has no versioning support, so we append a major version to the name.
18803   soname_spec='${libname}${release}${shared_ext}$major'
18804   ;;
18805
18806 aix4* | aix5*)
18807   version_type=linux
18808   need_lib_prefix=no
18809   need_version=no
18810   hardcode_into_libs=yes
18811   if test "$host_cpu" = ia64; then
18812     # AIX 5 supports IA64
18813     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18814     shlibpath_var=LD_LIBRARY_PATH
18815   else
18816     # With GCC up to 2.95.x, collect2 would create an import file
18817     # for dependence libraries.  The import file would start with
18818     # the line `#! .'.  This would cause the generated library to
18819     # depend on `.', always an invalid library.  This was fixed in
18820     # development snapshots of GCC prior to 3.0.
18821     case $host_os in
18822       aix4 | aix4.[01] | aix4.[01].*)
18823       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18824            echo ' yes '
18825            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18826         :
18827       else
18828         can_build_shared=no
18829       fi
18830       ;;
18831     esac
18832     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18833     # soname into executable. Probably we can add versioning support to
18834     # collect2, so additional links can be useful in future.
18835     if test "$aix_use_runtimelinking" = yes; then
18836       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18837       # instead of lib<name>.a to let people know that these are not
18838       # typical AIX shared libraries.
18839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840     else
18841       # We preserve .a as extension for shared libraries through AIX4.2
18842       # and later when we are not doing run time linking.
18843       library_names_spec='${libname}${release}.a $libname.a'
18844       soname_spec='${libname}${release}${shared_ext}$major'
18845     fi
18846     shlibpath_var=LIBPATH
18847   fi
18848   ;;
18849
18850 amigaos*)
18851   library_names_spec='$libname.ixlibrary $libname.a'
18852   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18853   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'
18854   ;;
18855
18856 beos*)
18857   library_names_spec='${libname}${shared_ext}'
18858   dynamic_linker="$host_os ld.so"
18859   shlibpath_var=LIBRARY_PATH
18860   ;;
18861
18862 bsdi4*)
18863   version_type=linux
18864   need_version=no
18865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866   soname_spec='${libname}${release}${shared_ext}$major'
18867   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18868   shlibpath_var=LD_LIBRARY_PATH
18869   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18870   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18871   # the default ld.so.conf also contains /usr/contrib/lib and
18872   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18873   # libtool to hard-code these into programs
18874   ;;
18875
18876 cygwin* | mingw* | pw32*)
18877   version_type=windows
18878   shrext_cmds=".dll"
18879   need_version=no
18880   need_lib_prefix=no
18881
18882   case $GCC,$host_os in
18883   yes,cygwin* | yes,mingw* | yes,pw32*)
18884     library_names_spec='$libname.dll.a'
18885     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18886     postinstall_cmds='base_file=`basename \${file}`~
18887       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18888       dldir=$destdir/`dirname \$dlpath`~
18889       test -d \$dldir || mkdir -p \$dldir~
18890       $install_prog $dir/$dlname \$dldir/$dlname'
18891     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18892       dlpath=$dir/\$dldll~
18893        $rm \$dlpath'
18894     shlibpath_overrides_runpath=yes
18895
18896     case $host_os in
18897     cygwin*)
18898       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18899       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18900       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18901       ;;
18902     mingw*)
18903       # MinGW DLLs use traditional 'lib' prefix
18904       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18905       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18906       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18907         # It is most probably a Windows format PATH printed by
18908         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18909         # path with ; separators, and with drive letters. We can handle the
18910         # drive letters (cygwin fileutils understands them), so leave them,
18911         # especially as we might pass files found there to a mingw objdump,
18912         # which wouldn't understand a cygwinified path. Ahh.
18913         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18914       else
18915         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18916       fi
18917       ;;
18918     pw32*)
18919       # pw32 DLLs use 'pw' prefix rather than 'lib'
18920       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18921       ;;
18922     esac
18923     ;;
18924
18925   *)
18926     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18927     ;;
18928   esac
18929   dynamic_linker='Win32 ld.exe'
18930   # FIXME: first we should search . and the directory the executable is in
18931   shlibpath_var=PATH
18932   ;;
18933
18934 darwin* | rhapsody*)
18935   dynamic_linker="$host_os dyld"
18936   version_type=darwin
18937   need_lib_prefix=no
18938   need_version=no
18939   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18940   soname_spec='${libname}${release}${major}$shared_ext'
18941   shlibpath_overrides_runpath=yes
18942   shlibpath_var=DYLD_LIBRARY_PATH
18943   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18944   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18945   if test "$GCC" = yes; then
18946     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"`
18947   else
18948     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18949   fi
18950   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18951   ;;
18952
18953 dgux*)
18954   version_type=linux
18955   need_lib_prefix=no
18956   need_version=no
18957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18958   soname_spec='${libname}${release}${shared_ext}$major'
18959   shlibpath_var=LD_LIBRARY_PATH
18960   ;;
18961
18962 freebsd1*)
18963   dynamic_linker=no
18964   ;;
18965
18966 kfreebsd*-gnu)
18967   version_type=linux
18968   need_lib_prefix=no
18969   need_version=no
18970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18971   soname_spec='${libname}${release}${shared_ext}$major'
18972   shlibpath_var=LD_LIBRARY_PATH
18973   shlibpath_overrides_runpath=no
18974   hardcode_into_libs=yes
18975   dynamic_linker='GNU ld.so'
18976   ;;
18977
18978 freebsd*)
18979   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18980   version_type=freebsd-$objformat
18981   case $version_type in
18982     freebsd-elf*)
18983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18984       need_version=no
18985       need_lib_prefix=no
18986       ;;
18987     freebsd-*)
18988       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18989       need_version=yes
18990       ;;
18991   esac
18992   shlibpath_var=LD_LIBRARY_PATH
18993   case $host_os in
18994   freebsd2*)
18995     shlibpath_overrides_runpath=yes
18996     ;;
18997   freebsd3.01* | freebsdelf3.01*)
18998     shlibpath_overrides_runpath=yes
18999     hardcode_into_libs=yes
19000     ;;
19001   *) # from 3.2 on
19002     shlibpath_overrides_runpath=no
19003     hardcode_into_libs=yes
19004     ;;
19005   esac
19006   ;;
19007
19008 gnu*)
19009   version_type=linux
19010   need_lib_prefix=no
19011   need_version=no
19012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19013   soname_spec='${libname}${release}${shared_ext}$major'
19014   shlibpath_var=LD_LIBRARY_PATH
19015   hardcode_into_libs=yes
19016   ;;
19017
19018 hpux9* | hpux10* | hpux11*)
19019   # Give a soname corresponding to the major version so that dld.sl refuses to
19020   # link against other versions.
19021   version_type=sunos
19022   need_lib_prefix=no
19023   need_version=no
19024   case "$host_cpu" in
19025   ia64*)
19026     shrext_cmds='.so'
19027     hardcode_into_libs=yes
19028     dynamic_linker="$host_os dld.so"
19029     shlibpath_var=LD_LIBRARY_PATH
19030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19032     soname_spec='${libname}${release}${shared_ext}$major'
19033     if test "X$HPUX_IA64_MODE" = X32; then
19034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19035     else
19036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19037     fi
19038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19039     ;;
19040    hppa*64*)
19041      shrext_cmds='.sl'
19042      hardcode_into_libs=yes
19043      dynamic_linker="$host_os dld.sl"
19044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047      soname_spec='${libname}${release}${shared_ext}$major'
19048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19050      ;;
19051    *)
19052     shrext_cmds='.sl'
19053     dynamic_linker="$host_os dld.sl"
19054     shlibpath_var=SHLIB_PATH
19055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19057     soname_spec='${libname}${release}${shared_ext}$major'
19058     ;;
19059   esac
19060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19061   postinstall_cmds='chmod 555 $lib'
19062   ;;
19063
19064 irix5* | irix6* | nonstopux*)
19065   case $host_os in
19066     nonstopux*) version_type=nonstopux ;;
19067     *)
19068         if test "$lt_cv_prog_gnu_ld" = yes; then
19069                 version_type=linux
19070         else
19071                 version_type=irix
19072         fi ;;
19073   esac
19074   need_lib_prefix=no
19075   need_version=no
19076   soname_spec='${libname}${release}${shared_ext}$major'
19077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19078   case $host_os in
19079   irix5* | nonstopux*)
19080     libsuff= shlibsuff=
19081     ;;
19082   *)
19083     case $LD in # libtool.m4 will add one of these switches to LD
19084     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19085       libsuff= shlibsuff= libmagic=32-bit;;
19086     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19087       libsuff=32 shlibsuff=N32 libmagic=N32;;
19088     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19089       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19090     *) libsuff= shlibsuff= libmagic=never-match;;
19091     esac
19092     ;;
19093   esac
19094   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19095   shlibpath_overrides_runpath=no
19096   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19097   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19098   hardcode_into_libs=yes
19099   ;;
19100
19101 # No shared lib support for Linux oldld, aout, or coff.
19102 linux*oldld* | linux*aout* | linux*coff*)
19103   dynamic_linker=no
19104   ;;
19105
19106 # This must be Linux ELF.
19107 linux*)
19108   version_type=linux
19109   need_lib_prefix=no
19110   need_version=no
19111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112   soname_spec='${libname}${release}${shared_ext}$major'
19113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19114   shlibpath_var=LD_LIBRARY_PATH
19115   shlibpath_overrides_runpath=no
19116   # This implies no fast_install, which is unacceptable.
19117   # Some rework will be needed to allow for fast_install
19118   # before this can be enabled.
19119   hardcode_into_libs=yes
19120
19121   # find out which ABI we are using
19122   libsuff=
19123   case "$host_cpu" in
19124   x86_64*|s390x*|powerpc64*)
19125     echo '#line 19125 "configure"' > conftest.$ac_ext
19126     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19127   (eval $ac_compile) 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; then
19131       case `/usr/bin/file conftest.$ac_objext` in
19132       *64-bit*)
19133         libsuff=64
19134         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19135         ;;
19136       esac
19137     fi
19138     rm -rf conftest*
19139     ;;
19140   esac
19141
19142   # Append ld.so.conf contents to the search path
19143   if test -f /etc/ld.so.conf; then
19144     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19145     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19146   fi
19147
19148   # We used to test for /lib/ld.so.1 and disable shared libraries on
19149   # powerpc, because MkLinux only supported shared libraries with the
19150   # GNU dynamic linker.  Since this was broken with cross compilers,
19151   # most powerpc-linux boxes support dynamic linking these days and
19152   # people can always --disable-shared, the test was removed, and we
19153   # assume the GNU/Linux dynamic linker is in use.
19154   dynamic_linker='GNU/Linux ld.so'
19155   ;;
19156
19157 knetbsd*-gnu)
19158   version_type=linux
19159   need_lib_prefix=no
19160   need_version=no
19161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19162   soname_spec='${libname}${release}${shared_ext}$major'
19163   shlibpath_var=LD_LIBRARY_PATH
19164   shlibpath_overrides_runpath=no
19165   hardcode_into_libs=yes
19166   dynamic_linker='GNU ld.so'
19167   ;;
19168
19169 netbsd*)
19170   version_type=sunos
19171   need_lib_prefix=no
19172   need_version=no
19173   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19175     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19176     dynamic_linker='NetBSD (a.out) ld.so'
19177   else
19178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19179     soname_spec='${libname}${release}${shared_ext}$major'
19180     dynamic_linker='NetBSD ld.elf_so'
19181   fi
19182   shlibpath_var=LD_LIBRARY_PATH
19183   shlibpath_overrides_runpath=yes
19184   hardcode_into_libs=yes
19185   ;;
19186
19187 newsos6)
19188   version_type=linux
19189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19190   shlibpath_var=LD_LIBRARY_PATH
19191   shlibpath_overrides_runpath=yes
19192   ;;
19193
19194 nto-qnx*)
19195   version_type=linux
19196   need_lib_prefix=no
19197   need_version=no
19198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19199   soname_spec='${libname}${release}${shared_ext}$major'
19200   shlibpath_var=LD_LIBRARY_PATH
19201   shlibpath_overrides_runpath=yes
19202   ;;
19203
19204 openbsd*)
19205   version_type=sunos
19206   need_lib_prefix=no
19207   need_version=yes
19208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19210   shlibpath_var=LD_LIBRARY_PATH
19211   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19212     case $host_os in
19213       openbsd2.[89] | openbsd2.[89].*)
19214         shlibpath_overrides_runpath=no
19215         ;;
19216       *)
19217         shlibpath_overrides_runpath=yes
19218         ;;
19219       esac
19220   else
19221     shlibpath_overrides_runpath=yes
19222   fi
19223   ;;
19224
19225 os2*)
19226   libname_spec='$name'
19227   shrext_cmds=".dll"
19228   need_lib_prefix=no
19229   library_names_spec='$libname${shared_ext} $libname.a'
19230   dynamic_linker='OS/2 ld.exe'
19231   shlibpath_var=LIBPATH
19232   ;;
19233
19234 osf3* | osf4* | osf5*)
19235   version_type=osf
19236   need_lib_prefix=no
19237   need_version=no
19238   soname_spec='${libname}${release}${shared_ext}$major'
19239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19240   shlibpath_var=LD_LIBRARY_PATH
19241   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19242   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19243   ;;
19244
19245 sco3.2v5*)
19246   version_type=osf
19247   soname_spec='${libname}${release}${shared_ext}$major'
19248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249   shlibpath_var=LD_LIBRARY_PATH
19250   ;;
19251
19252 solaris*)
19253   version_type=linux
19254   need_lib_prefix=no
19255   need_version=no
19256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19257   soname_spec='${libname}${release}${shared_ext}$major'
19258   shlibpath_var=LD_LIBRARY_PATH
19259   shlibpath_overrides_runpath=yes
19260   hardcode_into_libs=yes
19261   # ldd complains unless libraries are executable
19262   postinstall_cmds='chmod +x $lib'
19263   ;;
19264
19265 sunos4*)
19266   version_type=sunos
19267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19268   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19269   shlibpath_var=LD_LIBRARY_PATH
19270   shlibpath_overrides_runpath=yes
19271   if test "$with_gnu_ld" = yes; then
19272     need_lib_prefix=no
19273   fi
19274   need_version=yes
19275   ;;
19276
19277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19278   version_type=linux
19279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19280   soname_spec='${libname}${release}${shared_ext}$major'
19281   shlibpath_var=LD_LIBRARY_PATH
19282   case $host_vendor in
19283     sni)
19284       shlibpath_overrides_runpath=no
19285       need_lib_prefix=no
19286       export_dynamic_flag_spec='${wl}-Blargedynsym'
19287       runpath_var=LD_RUN_PATH
19288       ;;
19289     siemens)
19290       need_lib_prefix=no
19291       ;;
19292     motorola)
19293       need_lib_prefix=no
19294       need_version=no
19295       shlibpath_overrides_runpath=no
19296       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19297       ;;
19298   esac
19299   ;;
19300
19301 sysv4*MP*)
19302   if test -d /usr/nec ;then
19303     version_type=linux
19304     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19305     soname_spec='$libname${shared_ext}.$major'
19306     shlibpath_var=LD_LIBRARY_PATH
19307   fi
19308   ;;
19309
19310 uts4*)
19311   version_type=linux
19312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313   soname_spec='${libname}${release}${shared_ext}$major'
19314   shlibpath_var=LD_LIBRARY_PATH
19315   ;;
19316
19317 *)
19318   dynamic_linker=no
19319   ;;
19320 esac
19321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19322 echo "${ECHO_T}$dynamic_linker" >&6
19323 test "$dynamic_linker" = no && can_build_shared=no
19324
19325 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19327 hardcode_action_GCJ=
19328 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19329    test -n "$runpath_var GCJ" || \
19330    test "X$hardcode_automatic_GCJ"="Xyes" ; then
19331
19332   # We can hardcode non-existant directories.
19333   if test "$hardcode_direct_GCJ" != no &&
19334      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19335      # have to relink, otherwise we might link with an installed library
19336      # when we should be linking with a yet-to-be-installed one
19337      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19338      test "$hardcode_minus_L_GCJ" != no; then
19339     # Linking always hardcodes the temporary library directory.
19340     hardcode_action_GCJ=relink
19341   else
19342     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19343     hardcode_action_GCJ=immediate
19344   fi
19345 else
19346   # We cannot hardcode anything, or else we can only hardcode existing
19347   # directories.
19348   hardcode_action_GCJ=unsupported
19349 fi
19350 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19351 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19352
19353 if test "$hardcode_action_GCJ" = relink; then
19354   # Fast installation is not supported
19355   enable_fast_install=no
19356 elif test "$shlibpath_overrides_runpath" = yes ||
19357      test "$enable_shared" = no; then
19358   # Fast installation is not necessary
19359   enable_fast_install=needless
19360 fi
19361
19362 striplib=
19363 old_striplib=
19364 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19367   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19368   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19369   echo "$as_me:$LINENO: result: yes" >&5
19370 echo "${ECHO_T}yes" >&6
19371 else
19372 # FIXME - insert some real tests, host_os isn't really good enough
19373   case $host_os in
19374    darwin*)
19375        if test -n "$STRIP" ; then
19376          striplib="$STRIP -x"
19377          echo "$as_me:$LINENO: result: yes" >&5
19378 echo "${ECHO_T}yes" >&6
19379        else
19380   echo "$as_me:$LINENO: result: no" >&5
19381 echo "${ECHO_T}no" >&6
19382 fi
19383        ;;
19384    *)
19385   echo "$as_me:$LINENO: result: no" >&5
19386 echo "${ECHO_T}no" >&6
19387     ;;
19388   esac
19389 fi
19390
19391 if test "x$enable_dlopen" != xyes; then
19392   enable_dlopen=unknown
19393   enable_dlopen_self=unknown
19394   enable_dlopen_self_static=unknown
19395 else
19396   lt_cv_dlopen=no
19397   lt_cv_dlopen_libs=
19398
19399   case $host_os in
19400   beos*)
19401     lt_cv_dlopen="load_add_on"
19402     lt_cv_dlopen_libs=
19403     lt_cv_dlopen_self=yes
19404     ;;
19405
19406   mingw* | pw32*)
19407     lt_cv_dlopen="LoadLibrary"
19408     lt_cv_dlopen_libs=
19409    ;;
19410
19411   cygwin*)
19412     lt_cv_dlopen="dlopen"
19413     lt_cv_dlopen_libs=
19414    ;;
19415
19416   darwin*)
19417   # if libdl is installed we need to link against it
19418     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19419 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19420 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-ldl  $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431
19432 /* Override any gcc2 internal prototype to avoid an error.  */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 /* We use char because int might match the return type of a gcc2
19437    builtin and then its argument prototype would still apply.  */
19438 char dlopen ();
19439 int
19440 main ()
19441 {
19442 dlopen ();
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449   (eval $ac_link) 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } &&
19456          { ac_try='test -z "$ac_c_werror_flag"
19457                          || test ! -s conftest.err'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest$ac_exeext'
19464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465   (eval $ac_try) 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; }; then
19469   ac_cv_lib_dl_dlopen=yes
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_cv_lib_dl_dlopen=no
19475 fi
19476 rm -f conftest.err conftest.$ac_objext \
19477       conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19481 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19482 if test $ac_cv_lib_dl_dlopen = yes; then
19483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19484 else
19485
19486     lt_cv_dlopen="dyld"
19487     lt_cv_dlopen_libs=
19488     lt_cv_dlopen_self=yes
19489
19490 fi
19491
19492    ;;
19493
19494   *)
19495     echo "$as_me:$LINENO: checking for shl_load" >&5
19496 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19497 if test "${ac_cv_func_shl_load+set}" = set; then
19498   echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500   cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19508 #define shl_load innocuous_shl_load
19509
19510 /* System header to define __stub macros and hopefully few prototypes,
19511     which can conflict with char shl_load (); below.
19512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19513     <limits.h> exists even on freestanding compilers.  */
19514
19515 #ifdef __STDC__
19516 # include <limits.h>
19517 #else
19518 # include <assert.h>
19519 #endif
19520
19521 #undef shl_load
19522
19523 /* Override any gcc2 internal prototype to avoid an error.  */
19524 #ifdef __cplusplus
19525 extern "C"
19526 {
19527 #endif
19528 /* We use char because int might match the return type of a gcc2
19529    builtin and then its argument prototype would still apply.  */
19530 char shl_load ();
19531 /* The GNU C library defines this for functions which it implements
19532     to always fail with ENOSYS.  Some functions are actually named
19533     something starting with __ and the normal name is an alias.  */
19534 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19535 choke me
19536 #else
19537 char (*f) () = shl_load;
19538 #endif
19539 #ifdef __cplusplus
19540 }
19541 #endif
19542
19543 int
19544 main ()
19545 {
19546 return f != shl_load;
19547   ;
19548   return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19553   (eval $ac_link) 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } &&
19560          { ac_try='test -z "$ac_c_werror_flag"
19561                          || test ! -s conftest.err'
19562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563   (eval $ac_try) 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; } &&
19567          { ac_try='test -s conftest$ac_exeext'
19568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569   (eval $ac_try) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; }; then
19573   ac_cv_func_shl_load=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578 ac_cv_func_shl_load=no
19579 fi
19580 rm -f conftest.err conftest.$ac_objext \
19581       conftest$ac_exeext conftest.$ac_ext
19582 fi
19583 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19584 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19585 if test $ac_cv_func_shl_load = yes; then
19586   lt_cv_dlopen="shl_load"
19587 else
19588   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19589 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-ldld  $LIBS"
19595 cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h.  */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h.  */
19601
19602 /* Override any gcc2 internal prototype to avoid an error.  */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 /* We use char because int might match the return type of a gcc2
19607    builtin and then its argument prototype would still apply.  */
19608 char shl_load ();
19609 int
19610 main ()
19611 {
19612 shl_load ();
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619   (eval $ac_link) 2>conftest.er1
19620   ac_status=$?
19621   grep -v '^ *+' conftest.er1 >conftest.err
19622   rm -f conftest.er1
19623   cat conftest.err >&5
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); } &&
19626          { ac_try='test -z "$ac_c_werror_flag"
19627                          || test ! -s conftest.err'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; } &&
19633          { ac_try='test -s conftest$ac_exeext'
19634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635   (eval $ac_try) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   ac_cv_lib_dld_shl_load=yes
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 ac_cv_lib_dld_shl_load=no
19645 fi
19646 rm -f conftest.err conftest.$ac_objext \
19647       conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19649 fi
19650 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19651 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19652 if test $ac_cv_lib_dld_shl_load = yes; then
19653   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19654 else
19655   echo "$as_me:$LINENO: checking for dlopen" >&5
19656 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19657 if test "${ac_cv_func_dlopen+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19668 #define dlopen innocuous_dlopen
19669
19670 /* System header to define __stub macros and hopefully few prototypes,
19671     which can conflict with char dlopen (); below.
19672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673     <limits.h> exists even on freestanding compilers.  */
19674
19675 #ifdef __STDC__
19676 # include <limits.h>
19677 #else
19678 # include <assert.h>
19679 #endif
19680
19681 #undef dlopen
19682
19683 /* Override any gcc2 internal prototype to avoid an error.  */
19684 #ifdef __cplusplus
19685 extern "C"
19686 {
19687 #endif
19688 /* We use char because int might match the return type of a gcc2
19689    builtin and then its argument prototype would still apply.  */
19690 char dlopen ();
19691 /* The GNU C library defines this for functions which it implements
19692     to always fail with ENOSYS.  Some functions are actually named
19693     something starting with __ and the normal name is an alias.  */
19694 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19695 choke me
19696 #else
19697 char (*f) () = dlopen;
19698 #endif
19699 #ifdef __cplusplus
19700 }
19701 #endif
19702
19703 int
19704 main ()
19705 {
19706 return f != dlopen;
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19713   (eval $ac_link) 2>conftest.er1
19714   ac_status=$?
19715   grep -v '^ *+' conftest.er1 >conftest.err
19716   rm -f conftest.er1
19717   cat conftest.err >&5
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } &&
19720          { ac_try='test -z "$ac_c_werror_flag"
19721                          || test ! -s conftest.err'
19722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723   (eval $ac_try) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; } &&
19727          { ac_try='test -s conftest$ac_exeext'
19728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729   (eval $ac_try) 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; }; then
19733   ac_cv_func_dlopen=yes
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 ac_cv_func_dlopen=no
19739 fi
19740 rm -f conftest.err conftest.$ac_objext \
19741       conftest$ac_exeext conftest.$ac_ext
19742 fi
19743 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19744 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19745 if test $ac_cv_func_dlopen = yes; then
19746   lt_cv_dlopen="dlopen"
19747 else
19748   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-ldl  $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h.  */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h.  */
19761
19762 /* Override any gcc2 internal prototype to avoid an error.  */
19763 #ifdef __cplusplus
19764 extern "C"
19765 #endif
19766 /* We use char because int might match the return type of a gcc2
19767    builtin and then its argument prototype would still apply.  */
19768 char dlopen ();
19769 int
19770 main ()
19771 {
19772 dlopen ();
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779   (eval $ac_link) 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); } &&
19786          { ac_try='test -z "$ac_c_werror_flag"
19787                          || test ! -s conftest.err'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest$ac_exeext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_cv_lib_dl_dlopen=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_cv_lib_dl_dlopen=no
19805 fi
19806 rm -f conftest.err conftest.$ac_objext \
19807       conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19809 fi
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19812 if test $ac_cv_lib_dl_dlopen = yes; then
19813   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19814 else
19815   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19816 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19817 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19818   echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820   ac_check_lib_save_LIBS=$LIBS
19821 LIBS="-lsvld  $LIBS"
19822 cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828
19829 /* Override any gcc2 internal prototype to avoid an error.  */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 /* We use char because int might match the return type of a gcc2
19834    builtin and then its argument prototype would still apply.  */
19835 char dlopen ();
19836 int
19837 main ()
19838 {
19839 dlopen ();
19840   ;
19841   return 0;
19842 }
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19846   (eval $ac_link) 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } &&
19853          { ac_try='test -z "$ac_c_werror_flag"
19854                          || test ! -s conftest.err'
19855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856   (eval $ac_try) 2>&5
19857   ac_status=$?
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); }; } &&
19860          { ac_try='test -s conftest$ac_exeext'
19861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862   (eval $ac_try) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; }; then
19866   ac_cv_lib_svld_dlopen=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ac_cv_lib_svld_dlopen=no
19872 fi
19873 rm -f conftest.err conftest.$ac_objext \
19874       conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19876 fi
19877 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19878 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19879 if test $ac_cv_lib_svld_dlopen = yes; then
19880   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19881 else
19882   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19883 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19884 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   ac_check_lib_save_LIBS=$LIBS
19888 LIBS="-ldld  $LIBS"
19889 cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h.  */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h.  */
19895
19896 /* Override any gcc2 internal prototype to avoid an error.  */
19897 #ifdef __cplusplus
19898 extern "C"
19899 #endif
19900 /* We use char because int might match the return type of a gcc2
19901    builtin and then its argument prototype would still apply.  */
19902 char dld_link ();
19903 int
19904 main ()
19905 {
19906 dld_link ();
19907   ;
19908   return 0;
19909 }
19910 _ACEOF
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913   (eval $ac_link) 2>conftest.er1
19914   ac_status=$?
19915   grep -v '^ *+' conftest.er1 >conftest.err
19916   rm -f conftest.er1
19917   cat conftest.err >&5
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); } &&
19920          { ac_try='test -z "$ac_c_werror_flag"
19921                          || test ! -s conftest.err'
19922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923   (eval $ac_try) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; } &&
19927          { ac_try='test -s conftest$ac_exeext'
19928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929   (eval $ac_try) 2>&5
19930   ac_status=$?
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); }; }; then
19933   ac_cv_lib_dld_dld_link=yes
19934 else
19935   echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ac_cv_lib_dld_dld_link=no
19939 fi
19940 rm -f conftest.err conftest.$ac_objext \
19941       conftest$ac_exeext conftest.$ac_ext
19942 LIBS=$ac_check_lib_save_LIBS
19943 fi
19944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19945 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19946 if test $ac_cv_lib_dld_dld_link = yes; then
19947   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19948 fi
19949
19950
19951 fi
19952
19953
19954 fi
19955
19956
19957 fi
19958
19959
19960 fi
19961
19962
19963 fi
19964
19965     ;;
19966   esac
19967
19968   if test "x$lt_cv_dlopen" != xno; then
19969     enable_dlopen=yes
19970   else
19971     enable_dlopen=no
19972   fi
19973
19974   case $lt_cv_dlopen in
19975   dlopen)
19976     save_CPPFLAGS="$CPPFLAGS"
19977     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19978
19979     save_LDFLAGS="$LDFLAGS"
19980     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19981
19982     save_LIBS="$LIBS"
19983     LIBS="$lt_cv_dlopen_libs $LIBS"
19984
19985     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19986 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19987 if test "${lt_cv_dlopen_self+set}" = set; then
19988   echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990           if test "$cross_compiling" = yes; then :
19991   lt_cv_dlopen_self=cross
19992 else
19993   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19994   lt_status=$lt_dlunknown
19995   cat > conftest.$ac_ext <<EOF
19996 #line 19996 "configure"
19997 #include "confdefs.h"
19998
19999 #if HAVE_DLFCN_H
20000 #include <dlfcn.h>
20001 #endif
20002
20003 #include <stdio.h>
20004
20005 #ifdef RTLD_GLOBAL
20006 #  define LT_DLGLOBAL           RTLD_GLOBAL
20007 #else
20008 #  ifdef DL_GLOBAL
20009 #    define LT_DLGLOBAL         DL_GLOBAL
20010 #  else
20011 #    define LT_DLGLOBAL         0
20012 #  endif
20013 #endif
20014
20015 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20016    find out it does not work in some platform. */
20017 #ifndef LT_DLLAZY_OR_NOW
20018 #  ifdef RTLD_LAZY
20019 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20020 #  else
20021 #    ifdef DL_LAZY
20022 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20023 #    else
20024 #      ifdef RTLD_NOW
20025 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20026 #      else
20027 #        ifdef DL_NOW
20028 #          define LT_DLLAZY_OR_NOW      DL_NOW
20029 #        else
20030 #          define LT_DLLAZY_OR_NOW      0
20031 #        endif
20032 #      endif
20033 #    endif
20034 #  endif
20035 #endif
20036
20037 #ifdef __cplusplus
20038 extern "C" void exit (int);
20039 #endif
20040
20041 void fnord() { int i=42;}
20042 int main ()
20043 {
20044   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20045   int status = $lt_dlunknown;
20046
20047   if (self)
20048     {
20049       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20050       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20051       /* dlclose (self); */
20052     }
20053
20054     exit (status);
20055 }
20056 EOF
20057   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20058   (eval $ac_link) 2>&5
20059   ac_status=$?
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20062     (./conftest; exit; ) 2>/dev/null
20063     lt_status=$?
20064     case x$lt_status in
20065       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20066       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20067       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20068     esac
20069   else :
20070     # compilation failed
20071     lt_cv_dlopen_self=no
20072   fi
20073 fi
20074 rm -fr conftest*
20075
20076
20077 fi
20078 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20079 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20080
20081     if test "x$lt_cv_dlopen_self" = xyes; then
20082       LDFLAGS="$LDFLAGS $link_static_flag"
20083       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20084 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20085 if test "${lt_cv_dlopen_self_static+set}" = set; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088           if test "$cross_compiling" = yes; then :
20089   lt_cv_dlopen_self_static=cross
20090 else
20091   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20092   lt_status=$lt_dlunknown
20093   cat > conftest.$ac_ext <<EOF
20094 #line 20094 "configure"
20095 #include "confdefs.h"
20096
20097 #if HAVE_DLFCN_H
20098 #include <dlfcn.h>
20099 #endif
20100
20101 #include <stdio.h>
20102
20103 #ifdef RTLD_GLOBAL
20104 #  define LT_DLGLOBAL           RTLD_GLOBAL
20105 #else
20106 #  ifdef DL_GLOBAL
20107 #    define LT_DLGLOBAL         DL_GLOBAL
20108 #  else
20109 #    define LT_DLGLOBAL         0
20110 #  endif
20111 #endif
20112
20113 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20114    find out it does not work in some platform. */
20115 #ifndef LT_DLLAZY_OR_NOW
20116 #  ifdef RTLD_LAZY
20117 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20118 #  else
20119 #    ifdef DL_LAZY
20120 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20121 #    else
20122 #      ifdef RTLD_NOW
20123 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20124 #      else
20125 #        ifdef DL_NOW
20126 #          define LT_DLLAZY_OR_NOW      DL_NOW
20127 #        else
20128 #          define LT_DLLAZY_OR_NOW      0
20129 #        endif
20130 #      endif
20131 #    endif
20132 #  endif
20133 #endif
20134
20135 #ifdef __cplusplus
20136 extern "C" void exit (int);
20137 #endif
20138
20139 void fnord() { int i=42;}
20140 int main ()
20141 {
20142   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20143   int status = $lt_dlunknown;
20144
20145   if (self)
20146     {
20147       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20148       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20149       /* dlclose (self); */
20150     }
20151
20152     exit (status);
20153 }
20154 EOF
20155   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20156   (eval $ac_link) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20160     (./conftest; exit; ) 2>/dev/null
20161     lt_status=$?
20162     case x$lt_status in
20163       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20164       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20165       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20166     esac
20167   else :
20168     # compilation failed
20169     lt_cv_dlopen_self_static=no
20170   fi
20171 fi
20172 rm -fr conftest*
20173
20174
20175 fi
20176 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20177 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20178     fi
20179
20180     CPPFLAGS="$save_CPPFLAGS"
20181     LDFLAGS="$save_LDFLAGS"
20182     LIBS="$save_LIBS"
20183     ;;
20184   esac
20185
20186   case $lt_cv_dlopen_self in
20187   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20188   *) enable_dlopen_self=unknown ;;
20189   esac
20190
20191   case $lt_cv_dlopen_self_static in
20192   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20193   *) enable_dlopen_self_static=unknown ;;
20194   esac
20195 fi
20196
20197
20198 # The else clause should only fire when bootstrapping the
20199 # libtool distribution, otherwise you forgot to ship ltmain.sh
20200 # with your package, and you will get complaints that there are
20201 # no rules to generate ltmain.sh.
20202 if test -f "$ltmain"; then
20203   # See if we are running on zsh, and set the options which allow our commands through
20204   # without removal of \ escapes.
20205   if test -n "${ZSH_VERSION+set}" ; then
20206     setopt NO_GLOB_SUBST
20207   fi
20208   # Now quote all the things that may contain metacharacters while being
20209   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20210   # variables and quote the copies for generation of the libtool script.
20211   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20212     SED SHELL STRIP \
20213     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20214     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20215     deplibs_check_method reload_flag reload_cmds need_locks \
20216     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20217     lt_cv_sys_global_symbol_to_c_name_address \
20218     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20219     old_postinstall_cmds old_postuninstall_cmds \
20220     compiler_GCJ \
20221     CC_GCJ \
20222     LD_GCJ \
20223     lt_prog_compiler_wl_GCJ \
20224     lt_prog_compiler_pic_GCJ \
20225     lt_prog_compiler_static_GCJ \
20226     lt_prog_compiler_no_builtin_flag_GCJ \
20227     export_dynamic_flag_spec_GCJ \
20228     thread_safe_flag_spec_GCJ \
20229     whole_archive_flag_spec_GCJ \
20230     enable_shared_with_static_runtimes_GCJ \
20231     old_archive_cmds_GCJ \
20232     old_archive_from_new_cmds_GCJ \
20233     predep_objects_GCJ \
20234     postdep_objects_GCJ \
20235     predeps_GCJ \
20236     postdeps_GCJ \
20237     compiler_lib_search_path_GCJ \
20238     archive_cmds_GCJ \
20239     archive_expsym_cmds_GCJ \
20240     postinstall_cmds_GCJ \
20241     postuninstall_cmds_GCJ \
20242     old_archive_from_expsyms_cmds_GCJ \
20243     allow_undefined_flag_GCJ \
20244     no_undefined_flag_GCJ \
20245     export_symbols_cmds_GCJ \
20246     hardcode_libdir_flag_spec_GCJ \
20247     hardcode_libdir_flag_spec_ld_GCJ \
20248     hardcode_libdir_separator_GCJ \
20249     hardcode_automatic_GCJ \
20250     module_cmds_GCJ \
20251     module_expsym_cmds_GCJ \
20252     lt_cv_prog_compiler_c_o_GCJ \
20253     exclude_expsyms_GCJ \
20254     include_expsyms_GCJ; do
20255
20256     case $var in
20257     old_archive_cmds_GCJ | \
20258     old_archive_from_new_cmds_GCJ | \
20259     archive_cmds_GCJ | \
20260     archive_expsym_cmds_GCJ | \
20261     module_cmds_GCJ | \
20262     module_expsym_cmds_GCJ | \
20263     old_archive_from_expsyms_cmds_GCJ | \
20264     export_symbols_cmds_GCJ | \
20265     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20266     postinstall_cmds | postuninstall_cmds | \
20267     old_postinstall_cmds | old_postuninstall_cmds | \
20268     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20269       # Double-quote double-evaled strings.
20270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20271       ;;
20272     *)
20273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20274       ;;
20275     esac
20276   done
20277
20278   case $lt_echo in
20279   *'\$0 --fallback-echo"')
20280     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20281     ;;
20282   esac
20283
20284 cfgfile="$ofile"
20285
20286   cat <<__EOF__ >> "$cfgfile"
20287 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20288
20289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20290
20291 # Shell to use when invoking shell scripts.
20292 SHELL=$lt_SHELL
20293
20294 # Whether or not to build shared libraries.
20295 build_libtool_libs=$enable_shared
20296
20297 # Whether or not to build static libraries.
20298 build_old_libs=$enable_static
20299
20300 # Whether or not to add -lc for building shared libraries.
20301 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20302
20303 # Whether or not to disallow shared libs when runtime libs are static
20304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20305
20306 # Whether or not to optimize for fast installation.
20307 fast_install=$enable_fast_install
20308
20309 # The host system.
20310 host_alias=$host_alias
20311 host=$host
20312
20313 # An echo program that does not interpret backslashes.
20314 echo=$lt_echo
20315
20316 # The archiver.
20317 AR=$lt_AR
20318 AR_FLAGS=$lt_AR_FLAGS
20319
20320 # A C compiler.
20321 LTCC=$lt_LTCC
20322
20323 # A language-specific compiler.
20324 CC=$lt_compiler_GCJ
20325
20326 # Is the compiler the GNU C compiler?
20327 with_gcc=$GCC_GCJ
20328
20329 # An ERE matcher.
20330 EGREP=$lt_EGREP
20331
20332 # The linker used to build libraries.
20333 LD=$lt_LD_GCJ
20334
20335 # Whether we need hard or soft links.
20336 LN_S=$lt_LN_S
20337
20338 # A BSD-compatible nm program.
20339 NM=$lt_NM
20340
20341 # A symbol stripping program
20342 STRIP=$lt_STRIP
20343
20344 # Used to examine libraries when file_magic_cmd begins "file"
20345 MAGIC_CMD=$MAGIC_CMD
20346
20347 # Used on cygwin: DLL creation program.
20348 DLLTOOL="$DLLTOOL"
20349
20350 # Used on cygwin: object dumper.
20351 OBJDUMP="$OBJDUMP"
20352
20353 # Used on cygwin: assembler.
20354 AS="$AS"
20355
20356 # The name of the directory that contains temporary libtool files.
20357 objdir=$objdir
20358
20359 # How to create reloadable object files.
20360 reload_flag=$lt_reload_flag
20361 reload_cmds=$lt_reload_cmds
20362
20363 # How to pass a linker flag through the compiler.
20364 wl=$lt_lt_prog_compiler_wl_GCJ
20365
20366 # Object file suffix (normally "o").
20367 objext="$ac_objext"
20368
20369 # Old archive suffix (normally "a").
20370 libext="$libext"
20371
20372 # Shared library suffix (normally ".so").
20373 shrext_cmds='$shrext_cmds'
20374
20375 # Executable file suffix (normally "").
20376 exeext="$exeext"
20377
20378 # Additional compiler flags for building library objects.
20379 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20380 pic_mode=$pic_mode
20381
20382 # What is the maximum length of a command?
20383 max_cmd_len=$lt_cv_sys_max_cmd_len
20384
20385 # Does compiler simultaneously support -c and -o options?
20386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20387
20388 # Must we lock files when doing compilation ?
20389 need_locks=$lt_need_locks
20390
20391 # Do we need the lib prefix for modules?
20392 need_lib_prefix=$need_lib_prefix
20393
20394 # Do we need a version for libraries?
20395 need_version=$need_version
20396
20397 # Whether dlopen is supported.
20398 dlopen_support=$enable_dlopen
20399
20400 # Whether dlopen of programs is supported.
20401 dlopen_self=$enable_dlopen_self
20402
20403 # Whether dlopen of statically linked programs is supported.
20404 dlopen_self_static=$enable_dlopen_self_static
20405
20406 # Compiler flag to prevent dynamic linking.
20407 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20408
20409 # Compiler flag to turn off builtin functions.
20410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20411
20412 # Compiler flag to allow reflexive dlopens.
20413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20414
20415 # Compiler flag to generate shared objects directly from archives.
20416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20417
20418 # Compiler flag to generate thread-safe objects.
20419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20420
20421 # Library versioning type.
20422 version_type=$version_type
20423
20424 # Format of library name prefix.
20425 libname_spec=$lt_libname_spec
20426
20427 # List of archive names.  First name is the real one, the rest are links.
20428 # The last name is the one that the linker finds with -lNAME.
20429 library_names_spec=$lt_library_names_spec
20430
20431 # The coded name of the library, if different from the real name.
20432 soname_spec=$lt_soname_spec
20433
20434 # Commands used to build and install an old-style archive.
20435 RANLIB=$lt_RANLIB
20436 old_archive_cmds=$lt_old_archive_cmds_GCJ
20437 old_postinstall_cmds=$lt_old_postinstall_cmds
20438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20439
20440 # Create an old-style archive from a shared archive.
20441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20442
20443 # Create a temporary old-style archive to link instead of a shared archive.
20444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20445
20446 # Commands used to build and install a shared archive.
20447 archive_cmds=$lt_archive_cmds_GCJ
20448 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20449 postinstall_cmds=$lt_postinstall_cmds
20450 postuninstall_cmds=$lt_postuninstall_cmds
20451
20452 # Commands used to build a loadable module (assumed same as above if empty)
20453 module_cmds=$lt_module_cmds_GCJ
20454 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20455
20456 # Commands to strip libraries.
20457 old_striplib=$lt_old_striplib
20458 striplib=$lt_striplib
20459
20460 # Dependencies to place before the objects being linked to create a
20461 # shared library.
20462 predep_objects=$lt_predep_objects_GCJ
20463
20464 # Dependencies to place after the objects being linked to create a
20465 # shared library.
20466 postdep_objects=$lt_postdep_objects_GCJ
20467
20468 # Dependencies to place before the objects being linked to create a
20469 # shared library.
20470 predeps=$lt_predeps_GCJ
20471
20472 # Dependencies to place after the objects being linked to create a
20473 # shared library.
20474 postdeps=$lt_postdeps_GCJ
20475
20476 # The library search path used internally by the compiler when linking
20477 # a shared library.
20478 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20479
20480 # Method to check whether dependent libraries are shared objects.
20481 deplibs_check_method=$lt_deplibs_check_method
20482
20483 # Command to use when deplibs_check_method == file_magic.
20484 file_magic_cmd=$lt_file_magic_cmd
20485
20486 # Flag that allows shared libraries with undefined symbols to be built.
20487 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20488
20489 # Flag that forces no undefined symbols.
20490 no_undefined_flag=$lt_no_undefined_flag_GCJ
20491
20492 # Commands used to finish a libtool library installation in a directory.
20493 finish_cmds=$lt_finish_cmds
20494
20495 # Same as above, but a single script fragment to be evaled but not shown.
20496 finish_eval=$lt_finish_eval
20497
20498 # Take the output of nm and produce a listing of raw symbols and C names.
20499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20500
20501 # Transform the output of nm in a proper C declaration
20502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20503
20504 # Transform the output of nm in a C name address pair
20505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20506
20507 # This is the shared library runtime path variable.
20508 runpath_var=$runpath_var
20509
20510 # This is the shared library path variable.
20511 shlibpath_var=$shlibpath_var
20512
20513 # Is shlibpath searched before the hard-coded library search path?
20514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20515
20516 # How to hardcode a shared library path into an executable.
20517 hardcode_action=$hardcode_action_GCJ
20518
20519 # Whether we should hardcode library paths into libraries.
20520 hardcode_into_libs=$hardcode_into_libs
20521
20522 # Flag to hardcode \$libdir into a binary during linking.
20523 # This must work even if \$libdir does not exist.
20524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20525
20526 # If ld is used when linking, flag to hardcode \$libdir into
20527 # a binary during linking. This must work even if \$libdir does
20528 # not exist.
20529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20530
20531 # Whether we need a single -rpath flag with a separated argument.
20532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20533
20534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20535 # resulting binary.
20536 hardcode_direct=$hardcode_direct_GCJ
20537
20538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20539 # resulting binary.
20540 hardcode_minus_L=$hardcode_minus_L_GCJ
20541
20542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20543 # the resulting binary.
20544 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20545
20546 # Set to yes if building a shared library automatically hardcodes DIR into the library
20547 # and all subsequent libraries and executables linked against it.
20548 hardcode_automatic=$hardcode_automatic_GCJ
20549
20550 # Variables whose values should be saved in libtool wrapper scripts and
20551 # restored at relink time.
20552 variables_saved_for_relink="$variables_saved_for_relink"
20553
20554 # Whether libtool must link a program against all its dependency libraries.
20555 link_all_deplibs=$link_all_deplibs_GCJ
20556
20557 # Compile-time system search path for libraries
20558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20559
20560 # Run-time system search path for libraries
20561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20562
20563 # Fix the shell variable \$srcfile for the compiler.
20564 fix_srcfile_path="$fix_srcfile_path_GCJ"
20565
20566 # Set to yes if exported symbols are required.
20567 always_export_symbols=$always_export_symbols_GCJ
20568
20569 # The commands to list exported symbols.
20570 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20571
20572 # The commands to extract the exported symbol list from a shared archive.
20573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20574
20575 # Symbols that should not be listed in the preloaded symbols.
20576 exclude_expsyms=$lt_exclude_expsyms_GCJ
20577
20578 # Symbols that must always be exported.
20579 include_expsyms=$lt_include_expsyms_GCJ
20580
20581 # ### END LIBTOOL TAG CONFIG: $tagname
20582
20583 __EOF__
20584
20585
20586 else
20587   # If there is no Makefile yet, we rely on a make rule to execute
20588   # `config.status --recheck' to rerun these tests and create the
20589   # libtool script then.
20590   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20591   if test -f "$ltmain_in"; then
20592     test -f Makefile && make "$ltmain"
20593   fi
20594 fi
20595
20596
20597 ac_ext=c
20598 ac_cpp='$CPP $CPPFLAGS'
20599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
20603 CC="$lt_save_CC"
20604
20605         else
20606           tagname=""
20607         fi
20608         ;;
20609
20610       RC)
20611
20612
20613
20614 # Source file extension for RC test sources.
20615 ac_ext=rc
20616
20617 # Object file extension for compiled RC test sources.
20618 objext=o
20619 objext_RC=$objext
20620
20621 # Code to be used in simple compile tests
20622 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20623
20624 # Code to be used in simple link tests
20625 lt_simple_link_test_code="$lt_simple_compile_test_code"
20626
20627 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20628
20629 # If no C compiler was specified, use CC.
20630 LTCC=${LTCC-"$CC"}
20631
20632 # Allow CC to be a program name with arguments.
20633 compiler=$CC
20634
20635
20636 # Allow CC to be a program name with arguments.
20637 lt_save_CC="$CC"
20638 CC=${RC-"windres"}
20639 compiler=$CC
20640 compiler_RC=$CC
20641 lt_cv_prog_compiler_c_o_RC=yes
20642
20643 # The else clause should only fire when bootstrapping the
20644 # libtool distribution, otherwise you forgot to ship ltmain.sh
20645 # with your package, and you will get complaints that there are
20646 # no rules to generate ltmain.sh.
20647 if test -f "$ltmain"; then
20648   # See if we are running on zsh, and set the options which allow our commands through
20649   # without removal of \ escapes.
20650   if test -n "${ZSH_VERSION+set}" ; then
20651     setopt NO_GLOB_SUBST
20652   fi
20653   # Now quote all the things that may contain metacharacters while being
20654   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20655   # variables and quote the copies for generation of the libtool script.
20656   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20657     SED SHELL STRIP \
20658     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20659     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20660     deplibs_check_method reload_flag reload_cmds need_locks \
20661     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20662     lt_cv_sys_global_symbol_to_c_name_address \
20663     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20664     old_postinstall_cmds old_postuninstall_cmds \
20665     compiler_RC \
20666     CC_RC \
20667     LD_RC \
20668     lt_prog_compiler_wl_RC \
20669     lt_prog_compiler_pic_RC \
20670     lt_prog_compiler_static_RC \
20671     lt_prog_compiler_no_builtin_flag_RC \
20672     export_dynamic_flag_spec_RC \
20673     thread_safe_flag_spec_RC \
20674     whole_archive_flag_spec_RC \
20675     enable_shared_with_static_runtimes_RC \
20676     old_archive_cmds_RC \
20677     old_archive_from_new_cmds_RC \
20678     predep_objects_RC \
20679     postdep_objects_RC \
20680     predeps_RC \
20681     postdeps_RC \
20682     compiler_lib_search_path_RC \
20683     archive_cmds_RC \
20684     archive_expsym_cmds_RC \
20685     postinstall_cmds_RC \
20686     postuninstall_cmds_RC \
20687     old_archive_from_expsyms_cmds_RC \
20688     allow_undefined_flag_RC \
20689     no_undefined_flag_RC \
20690     export_symbols_cmds_RC \
20691     hardcode_libdir_flag_spec_RC \
20692     hardcode_libdir_flag_spec_ld_RC \
20693     hardcode_libdir_separator_RC \
20694     hardcode_automatic_RC \
20695     module_cmds_RC \
20696     module_expsym_cmds_RC \
20697     lt_cv_prog_compiler_c_o_RC \
20698     exclude_expsyms_RC \
20699     include_expsyms_RC; do
20700
20701     case $var in
20702     old_archive_cmds_RC | \
20703     old_archive_from_new_cmds_RC | \
20704     archive_cmds_RC | \
20705     archive_expsym_cmds_RC | \
20706     module_cmds_RC | \
20707     module_expsym_cmds_RC | \
20708     old_archive_from_expsyms_cmds_RC | \
20709     export_symbols_cmds_RC | \
20710     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20711     postinstall_cmds | postuninstall_cmds | \
20712     old_postinstall_cmds | old_postuninstall_cmds | \
20713     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20714       # Double-quote double-evaled strings.
20715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20716       ;;
20717     *)
20718       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20719       ;;
20720     esac
20721   done
20722
20723   case $lt_echo in
20724   *'\$0 --fallback-echo"')
20725     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20726     ;;
20727   esac
20728
20729 cfgfile="$ofile"
20730
20731   cat <<__EOF__ >> "$cfgfile"
20732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20733
20734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20735
20736 # Shell to use when invoking shell scripts.
20737 SHELL=$lt_SHELL
20738
20739 # Whether or not to build shared libraries.
20740 build_libtool_libs=$enable_shared
20741
20742 # Whether or not to build static libraries.
20743 build_old_libs=$enable_static
20744
20745 # Whether or not to add -lc for building shared libraries.
20746 build_libtool_need_lc=$archive_cmds_need_lc_RC
20747
20748 # Whether or not to disallow shared libs when runtime libs are static
20749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20750
20751 # Whether or not to optimize for fast installation.
20752 fast_install=$enable_fast_install
20753
20754 # The host system.
20755 host_alias=$host_alias
20756 host=$host
20757
20758 # An echo program that does not interpret backslashes.
20759 echo=$lt_echo
20760
20761 # The archiver.
20762 AR=$lt_AR
20763 AR_FLAGS=$lt_AR_FLAGS
20764
20765 # A C compiler.
20766 LTCC=$lt_LTCC
20767
20768 # A language-specific compiler.
20769 CC=$lt_compiler_RC
20770
20771 # Is the compiler the GNU C compiler?
20772 with_gcc=$GCC_RC
20773
20774 # An ERE matcher.
20775 EGREP=$lt_EGREP
20776
20777 # The linker used to build libraries.
20778 LD=$lt_LD_RC
20779
20780 # Whether we need hard or soft links.
20781 LN_S=$lt_LN_S
20782
20783 # A BSD-compatible nm program.
20784 NM=$lt_NM
20785
20786 # A symbol stripping program
20787 STRIP=$lt_STRIP
20788
20789 # Used to examine libraries when file_magic_cmd begins "file"
20790 MAGIC_CMD=$MAGIC_CMD
20791
20792 # Used on cygwin: DLL creation program.
20793 DLLTOOL="$DLLTOOL"
20794
20795 # Used on cygwin: object dumper.
20796 OBJDUMP="$OBJDUMP"
20797
20798 # Used on cygwin: assembler.
20799 AS="$AS"
20800
20801 # The name of the directory that contains temporary libtool files.
20802 objdir=$objdir
20803
20804 # How to create reloadable object files.
20805 reload_flag=$lt_reload_flag
20806 reload_cmds=$lt_reload_cmds
20807
20808 # How to pass a linker flag through the compiler.
20809 wl=$lt_lt_prog_compiler_wl_RC
20810
20811 # Object file suffix (normally "o").
20812 objext="$ac_objext"
20813
20814 # Old archive suffix (normally "a").
20815 libext="$libext"
20816
20817 # Shared library suffix (normally ".so").
20818 shrext_cmds='$shrext_cmds'
20819
20820 # Executable file suffix (normally "").
20821 exeext="$exeext"
20822
20823 # Additional compiler flags for building library objects.
20824 pic_flag=$lt_lt_prog_compiler_pic_RC
20825 pic_mode=$pic_mode
20826
20827 # What is the maximum length of a command?
20828 max_cmd_len=$lt_cv_sys_max_cmd_len
20829
20830 # Does compiler simultaneously support -c and -o options?
20831 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20832
20833 # Must we lock files when doing compilation ?
20834 need_locks=$lt_need_locks
20835
20836 # Do we need the lib prefix for modules?
20837 need_lib_prefix=$need_lib_prefix
20838
20839 # Do we need a version for libraries?
20840 need_version=$need_version
20841
20842 # Whether dlopen is supported.
20843 dlopen_support=$enable_dlopen
20844
20845 # Whether dlopen of programs is supported.
20846 dlopen_self=$enable_dlopen_self
20847
20848 # Whether dlopen of statically linked programs is supported.
20849 dlopen_self_static=$enable_dlopen_self_static
20850
20851 # Compiler flag to prevent dynamic linking.
20852 link_static_flag=$lt_lt_prog_compiler_static_RC
20853
20854 # Compiler flag to turn off builtin functions.
20855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20856
20857 # Compiler flag to allow reflexive dlopens.
20858 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20859
20860 # Compiler flag to generate shared objects directly from archives.
20861 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20862
20863 # Compiler flag to generate thread-safe objects.
20864 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20865
20866 # Library versioning type.
20867 version_type=$version_type
20868
20869 # Format of library name prefix.
20870 libname_spec=$lt_libname_spec
20871
20872 # List of archive names.  First name is the real one, the rest are links.
20873 # The last name is the one that the linker finds with -lNAME.
20874 library_names_spec=$lt_library_names_spec
20875
20876 # The coded name of the library, if different from the real name.
20877 soname_spec=$lt_soname_spec
20878
20879 # Commands used to build and install an old-style archive.
20880 RANLIB=$lt_RANLIB
20881 old_archive_cmds=$lt_old_archive_cmds_RC
20882 old_postinstall_cmds=$lt_old_postinstall_cmds
20883 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20884
20885 # Create an old-style archive from a shared archive.
20886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20887
20888 # Create a temporary old-style archive to link instead of a shared archive.
20889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20890
20891 # Commands used to build and install a shared archive.
20892 archive_cmds=$lt_archive_cmds_RC
20893 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20894 postinstall_cmds=$lt_postinstall_cmds
20895 postuninstall_cmds=$lt_postuninstall_cmds
20896
20897 # Commands used to build a loadable module (assumed same as above if empty)
20898 module_cmds=$lt_module_cmds_RC
20899 module_expsym_cmds=$lt_module_expsym_cmds_RC
20900
20901 # Commands to strip libraries.
20902 old_striplib=$lt_old_striplib
20903 striplib=$lt_striplib
20904
20905 # Dependencies to place before the objects being linked to create a
20906 # shared library.
20907 predep_objects=$lt_predep_objects_RC
20908
20909 # Dependencies to place after the objects being linked to create a
20910 # shared library.
20911 postdep_objects=$lt_postdep_objects_RC
20912
20913 # Dependencies to place before the objects being linked to create a
20914 # shared library.
20915 predeps=$lt_predeps_RC
20916
20917 # Dependencies to place after the objects being linked to create a
20918 # shared library.
20919 postdeps=$lt_postdeps_RC
20920
20921 # The library search path used internally by the compiler when linking
20922 # a shared library.
20923 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20924
20925 # Method to check whether dependent libraries are shared objects.
20926 deplibs_check_method=$lt_deplibs_check_method
20927
20928 # Command to use when deplibs_check_method == file_magic.
20929 file_magic_cmd=$lt_file_magic_cmd
20930
20931 # Flag that allows shared libraries with undefined symbols to be built.
20932 allow_undefined_flag=$lt_allow_undefined_flag_RC
20933
20934 # Flag that forces no undefined symbols.
20935 no_undefined_flag=$lt_no_undefined_flag_RC
20936
20937 # Commands used to finish a libtool library installation in a directory.
20938 finish_cmds=$lt_finish_cmds
20939
20940 # Same as above, but a single script fragment to be evaled but not shown.
20941 finish_eval=$lt_finish_eval
20942
20943 # Take the output of nm and produce a listing of raw symbols and C names.
20944 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20945
20946 # Transform the output of nm in a proper C declaration
20947 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20948
20949 # Transform the output of nm in a C name address pair
20950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20951
20952 # This is the shared library runtime path variable.
20953 runpath_var=$runpath_var
20954
20955 # This is the shared library path variable.
20956 shlibpath_var=$shlibpath_var
20957
20958 # Is shlibpath searched before the hard-coded library search path?
20959 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20960
20961 # How to hardcode a shared library path into an executable.
20962 hardcode_action=$hardcode_action_RC
20963
20964 # Whether we should hardcode library paths into libraries.
20965 hardcode_into_libs=$hardcode_into_libs
20966
20967 # Flag to hardcode \$libdir into a binary during linking.
20968 # This must work even if \$libdir does not exist.
20969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20970
20971 # If ld is used when linking, flag to hardcode \$libdir into
20972 # a binary during linking. This must work even if \$libdir does
20973 # not exist.
20974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20975
20976 # Whether we need a single -rpath flag with a separated argument.
20977 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20978
20979 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20980 # resulting binary.
20981 hardcode_direct=$hardcode_direct_RC
20982
20983 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20984 # resulting binary.
20985 hardcode_minus_L=$hardcode_minus_L_RC
20986
20987 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20988 # the resulting binary.
20989 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20990
20991 # Set to yes if building a shared library automatically hardcodes DIR into the library
20992 # and all subsequent libraries and executables linked against it.
20993 hardcode_automatic=$hardcode_automatic_RC
20994
20995 # Variables whose values should be saved in libtool wrapper scripts and
20996 # restored at relink time.
20997 variables_saved_for_relink="$variables_saved_for_relink"
20998
20999 # Whether libtool must link a program against all its dependency libraries.
21000 link_all_deplibs=$link_all_deplibs_RC
21001
21002 # Compile-time system search path for libraries
21003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21004
21005 # Run-time system search path for libraries
21006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21007
21008 # Fix the shell variable \$srcfile for the compiler.
21009 fix_srcfile_path="$fix_srcfile_path_RC"
21010
21011 # Set to yes if exported symbols are required.
21012 always_export_symbols=$always_export_symbols_RC
21013
21014 # The commands to list exported symbols.
21015 export_symbols_cmds=$lt_export_symbols_cmds_RC
21016
21017 # The commands to extract the exported symbol list from a shared archive.
21018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21019
21020 # Symbols that should not be listed in the preloaded symbols.
21021 exclude_expsyms=$lt_exclude_expsyms_RC
21022
21023 # Symbols that must always be exported.
21024 include_expsyms=$lt_include_expsyms_RC
21025
21026 # ### END LIBTOOL TAG CONFIG: $tagname
21027
21028 __EOF__
21029
21030
21031 else
21032   # If there is no Makefile yet, we rely on a make rule to execute
21033   # `config.status --recheck' to rerun these tests and create the
21034   # libtool script then.
21035   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21036   if test -f "$ltmain_in"; then
21037     test -f Makefile && make "$ltmain"
21038   fi
21039 fi
21040
21041
21042 ac_ext=c
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047
21048 CC="$lt_save_CC"
21049
21050         ;;
21051
21052       *)
21053         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21054 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21055    { (exit 1); exit 1; }; }
21056         ;;
21057       esac
21058
21059       # Append the new tag name to the list of available tags.
21060       if test -n "$tagname" ; then
21061       available_tags="$available_tags $tagname"
21062     fi
21063     fi
21064   done
21065   IFS="$lt_save_ifs"
21066
21067   # Now substitute the updated list of available tags.
21068   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21069     mv "${ofile}T" "$ofile"
21070     chmod +x "$ofile"
21071   else
21072     rm -f "${ofile}T"
21073     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21074 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21075    { (exit 1); exit 1; }; }
21076   fi
21077 fi
21078
21079
21080
21081 # This can be used to rebuild libtool when needed
21082 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21083
21084 # Always use our own libtool.
21085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21086
21087 # Prevent multiple expansion
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109 # Checks for typedefs, structures, and compiler characteristics.
21110 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21111 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21112 if test "${ac_cv_c_const+set}" = set; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115   cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h.  */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h.  */
21121
21122 int
21123 main ()
21124 {
21125 /* FIXME: Include the comments suggested by Paul. */
21126 #ifndef __cplusplus
21127   /* Ultrix mips cc rejects this.  */
21128   typedef int charset[2];
21129   const charset x;
21130   /* SunOS 4.1.1 cc rejects this.  */
21131   char const *const *ccp;
21132   char **p;
21133   /* NEC SVR4.0.2 mips cc rejects this.  */
21134   struct point {int x, y;};
21135   static struct point const zero = {0,0};
21136   /* AIX XL C 1.02.0.0 rejects this.
21137      It does not let you subtract one const X* pointer from another in
21138      an arm of an if-expression whose if-part is not a constant
21139      expression */
21140   const char *g = "string";
21141   ccp = &g + (g ? g-g : 0);
21142   /* HPUX 7.0 cc rejects these. */
21143   ++ccp;
21144   p = (char**) ccp;
21145   ccp = (char const *const *) p;
21146   { /* SCO 3.2v4 cc rejects this.  */
21147     char *t;
21148     char const *s = 0 ? (char *) 0 : (char const *) 0;
21149
21150     *t++ = 0;
21151   }
21152   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21153     int x[] = {25, 17};
21154     const int *foo = &x[0];
21155     ++foo;
21156   }
21157   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21158     typedef const int *iptr;
21159     iptr p = 0;
21160     ++p;
21161   }
21162   { /* AIX XL C 1.02.0.0 rejects this saying
21163        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21164     struct s { int j; const int *ap[3]; };
21165     struct s *b; b->j = 5;
21166   }
21167   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21168     const int foo = 10;
21169   }
21170 #endif
21171
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178   (eval $ac_compile) 2>conftest.er1
21179   ac_status=$?
21180   grep -v '^ *+' conftest.er1 >conftest.err
21181   rm -f conftest.er1
21182   cat conftest.err >&5
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } &&
21185          { ac_try='test -z "$ac_c_werror_flag"
21186                          || test ! -s conftest.err'
21187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188   (eval $ac_try) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; } &&
21192          { ac_try='test -s conftest.$ac_objext'
21193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194   (eval $ac_try) 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); }; }; then
21198   ac_cv_c_const=yes
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203 ac_cv_c_const=no
21204 fi
21205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 fi
21207 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21208 echo "${ECHO_T}$ac_cv_c_const" >&6
21209 if test $ac_cv_c_const = no; then
21210
21211 cat >>confdefs.h <<\_ACEOF
21212 #define const
21213 _ACEOF
21214
21215 fi
21216
21217 echo "$as_me:$LINENO: checking for size_t" >&5
21218 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21219 if test "${ac_cv_type_size_t+set}" = set; then
21220   echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222   cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h.  */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h.  */
21228 $ac_includes_default
21229 int
21230 main ()
21231 {
21232 if ((size_t *) 0)
21233   return 0;
21234 if (sizeof (size_t))
21235   return 0;
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21242   (eval $ac_compile) 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_c_werror_flag"
21250                          || test ! -s conftest.err'
21251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252   (eval $ac_try) 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; } &&
21256          { ac_try='test -s conftest.$ac_objext'
21257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258   (eval $ac_try) 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); }; }; then
21262   ac_cv_type_size_t=yes
21263 else
21264   echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21266
21267 ac_cv_type_size_t=no
21268 fi
21269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21270 fi
21271 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21272 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21273 if test $ac_cv_type_size_t = yes; then
21274   :
21275 else
21276
21277 cat >>confdefs.h <<_ACEOF
21278 #define size_t unsigned
21279 _ACEOF
21280
21281 fi
21282
21283 echo "$as_me:$LINENO: checking for long" >&5
21284 echo $ECHO_N "checking for long... $ECHO_C" >&6
21285 if test "${ac_cv_type_long+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294 $ac_includes_default
21295 int
21296 main ()
21297 {
21298 if ((long *) 0)
21299   return 0;
21300 if (sizeof (long))
21301   return 0;
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21308   (eval $ac_compile) 2>conftest.er1
21309   ac_status=$?
21310   grep -v '^ *+' conftest.er1 >conftest.err
21311   rm -f conftest.er1
21312   cat conftest.err >&5
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); } &&
21315          { ac_try='test -z "$ac_c_werror_flag"
21316                          || test ! -s conftest.err'
21317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318   (eval $ac_try) 2>&5
21319   ac_status=$?
21320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321   (exit $ac_status); }; } &&
21322          { ac_try='test -s conftest.$ac_objext'
21323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324   (eval $ac_try) 2>&5
21325   ac_status=$?
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); }; }; then
21328   ac_cv_type_long=yes
21329 else
21330   echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333 ac_cv_type_long=no
21334 fi
21335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21336 fi
21337 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21338 echo "${ECHO_T}$ac_cv_type_long" >&6
21339
21340 echo "$as_me:$LINENO: checking size of long" >&5
21341 echo $ECHO_N "checking size of long... $ECHO_C" >&6
21342 if test "${ac_cv_sizeof_long+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345   if test "$ac_cv_type_long" = yes; then
21346   # The cast to unsigned long works around a bug in the HP C Compiler
21347   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21348   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21349   # This bug is HP SR number 8606223364.
21350   if test "$cross_compiling" = yes; then
21351   # Depending upon the size, compute the lo and hi bounds.
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 $ac_includes_default
21359 int
21360 main ()
21361 {
21362 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21363 test_array [0] = 0
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21371   (eval $ac_compile) 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } &&
21378          { ac_try='test -z "$ac_c_werror_flag"
21379                          || test ! -s conftest.err'
21380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381   (eval $ac_try) 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; } &&
21385          { ac_try='test -s conftest.$ac_objext'
21386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387   (eval $ac_try) 2>&5
21388   ac_status=$?
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); }; }; then
21391   ac_lo=0 ac_mid=0
21392   while :; do
21393     cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 $ac_includes_default
21400 int
21401 main ()
21402 {
21403 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21404 test_array [0] = 0
21405
21406   ;
21407   return 0;
21408 }
21409 _ACEOF
21410 rm -f conftest.$ac_objext
21411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21412   (eval $ac_compile) 2>conftest.er1
21413   ac_status=$?
21414   grep -v '^ *+' conftest.er1 >conftest.err
21415   rm -f conftest.er1
21416   cat conftest.err >&5
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); } &&
21419          { ac_try='test -z "$ac_c_werror_flag"
21420                          || test ! -s conftest.err'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; } &&
21426          { ac_try='test -s conftest.$ac_objext'
21427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428   (eval $ac_try) 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   ac_hi=$ac_mid; break
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437 ac_lo=`expr $ac_mid + 1`
21438                     if test $ac_lo -le $ac_mid; then
21439                       ac_lo= ac_hi=
21440                       break
21441                     fi
21442                     ac_mid=`expr 2 '*' $ac_mid + 1`
21443 fi
21444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21445   done
21446 else
21447   echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 $ac_includes_default
21457 int
21458 main ()
21459 {
21460 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21461 test_array [0] = 0
21462
21463   ;
21464   return 0;
21465 }
21466 _ACEOF
21467 rm -f conftest.$ac_objext
21468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21469   (eval $ac_compile) 2>conftest.er1
21470   ac_status=$?
21471   grep -v '^ *+' conftest.er1 >conftest.err
21472   rm -f conftest.er1
21473   cat conftest.err >&5
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); } &&
21476          { ac_try='test -z "$ac_c_werror_flag"
21477                          || test ! -s conftest.err'
21478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479   (eval $ac_try) 2>&5
21480   ac_status=$?
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); }; } &&
21483          { ac_try='test -s conftest.$ac_objext'
21484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485   (eval $ac_try) 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); }; }; then
21489   ac_hi=-1 ac_mid=-1
21490   while :; do
21491     cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 $ac_includes_default
21498 int
21499 main ()
21500 {
21501 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21502 test_array [0] = 0
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510   (eval $ac_compile) 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } &&
21517          { ac_try='test -z "$ac_c_werror_flag"
21518                          || test ! -s conftest.err'
21519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520   (eval $ac_try) 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; } &&
21524          { ac_try='test -s conftest.$ac_objext'
21525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526   (eval $ac_try) 2>&5
21527   ac_status=$?
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); }; }; then
21530   ac_lo=$ac_mid; break
21531 else
21532   echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21534
21535 ac_hi=`expr '(' $ac_mid ')' - 1`
21536                        if test $ac_mid -le $ac_hi; then
21537                          ac_lo= ac_hi=
21538                          break
21539                        fi
21540                        ac_mid=`expr 2 '*' $ac_mid`
21541 fi
21542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21543   done
21544 else
21545   echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547
21548 ac_lo= ac_hi=
21549 fi
21550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21551 fi
21552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21553 # Binary search between lo and hi bounds.
21554 while test "x$ac_lo" != "x$ac_hi"; do
21555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21556   cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562 $ac_includes_default
21563 int
21564 main ()
21565 {
21566 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21567 test_array [0] = 0
21568
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575   (eval $ac_compile) 2>conftest.er1
21576   ac_status=$?
21577   grep -v '^ *+' conftest.er1 >conftest.err
21578   rm -f conftest.er1
21579   cat conftest.err >&5
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); } &&
21582          { ac_try='test -z "$ac_c_werror_flag"
21583                          || test ! -s conftest.err'
21584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585   (eval $ac_try) 2>&5
21586   ac_status=$?
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); }; } &&
21589          { ac_try='test -s conftest.$ac_objext'
21590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591   (eval $ac_try) 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; }; then
21595   ac_hi=$ac_mid
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 ac_lo=`expr '(' $ac_mid ')' + 1`
21601 fi
21602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21603 done
21604 case $ac_lo in
21605 ?*) ac_cv_sizeof_long=$ac_lo;;
21606 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21607 See \`config.log' for more details." >&5
21608 echo "$as_me: error: cannot compute sizeof (long), 77
21609 See \`config.log' for more details." >&2;}
21610    { (exit 1); exit 1; }; } ;;
21611 esac
21612 else
21613   if test "$cross_compiling" = yes; then
21614   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21615 See \`config.log' for more details." >&5
21616 echo "$as_me: error: cannot run test program while cross compiling
21617 See \`config.log' for more details." >&2;}
21618    { (exit 1); exit 1; }; }
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 $ac_includes_default
21627 long longval () { return (long) (sizeof (long)); }
21628 unsigned long ulongval () { return (long) (sizeof (long)); }
21629 #include <stdio.h>
21630 #include <stdlib.h>
21631 int
21632 main ()
21633 {
21634
21635   FILE *f = fopen ("conftest.val", "w");
21636   if (! f)
21637     exit (1);
21638   if (((long) (sizeof (long))) < 0)
21639     {
21640       long i = longval ();
21641       if (i != ((long) (sizeof (long))))
21642         exit (1);
21643       fprintf (f, "%ld\n", i);
21644     }
21645   else
21646     {
21647       unsigned long i = ulongval ();
21648       if (i != ((long) (sizeof (long))))
21649         exit (1);
21650       fprintf (f, "%lu\n", i);
21651     }
21652   exit (ferror (f) || fclose (f) != 0);
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest$ac_exeext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660   (eval $ac_link) 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665   (eval $ac_try) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; }; then
21669   ac_cv_sizeof_long=`cat conftest.val`
21670 else
21671   echo "$as_me: program exited with status $ac_status" >&5
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 ( exit $ac_status )
21676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21677 See \`config.log' for more details." >&5
21678 echo "$as_me: error: cannot compute sizeof (long), 77
21679 See \`config.log' for more details." >&2;}
21680    { (exit 1); exit 1; }; }
21681 fi
21682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21683 fi
21684 fi
21685 rm -f conftest.val
21686 else
21687   ac_cv_sizeof_long=0
21688 fi
21689 fi
21690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21691 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
21692 cat >>confdefs.h <<_ACEOF
21693 #define SIZEOF_LONG $ac_cv_sizeof_long
21694 _ACEOF
21695
21696
21697
21698 # Checks for library functions.
21699
21700
21701
21702
21703
21704 for ac_func in strchr strdup strstr timegm strcasecmp
21705 do
21706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21707 echo "$as_me:$LINENO: checking for $ac_func" >&5
21708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21709 if eval "test \"\${$as_ac_var+set}\" = set"; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712   cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21720 #define $ac_func innocuous_$ac_func
21721
21722 /* System header to define __stub macros and hopefully few prototypes,
21723     which can conflict with char $ac_func (); below.
21724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21725     <limits.h> exists even on freestanding compilers.  */
21726
21727 #ifdef __STDC__
21728 # include <limits.h>
21729 #else
21730 # include <assert.h>
21731 #endif
21732
21733 #undef $ac_func
21734
21735 /* Override any gcc2 internal prototype to avoid an error.  */
21736 #ifdef __cplusplus
21737 extern "C"
21738 {
21739 #endif
21740 /* We use char because int might match the return type of a gcc2
21741    builtin and then its argument prototype would still apply.  */
21742 char $ac_func ();
21743 /* The GNU C library defines this for functions which it implements
21744     to always fail with ENOSYS.  Some functions are actually named
21745     something starting with __ and the normal name is an alias.  */
21746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21747 choke me
21748 #else
21749 char (*f) () = $ac_func;
21750 #endif
21751 #ifdef __cplusplus
21752 }
21753 #endif
21754
21755 int
21756 main ()
21757 {
21758 return f != $ac_func;
21759   ;
21760   return 0;
21761 }
21762 _ACEOF
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21765   (eval $ac_link) 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } &&
21772          { ac_try='test -z "$ac_c_werror_flag"
21773                          || test ! -s conftest.err'
21774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775   (eval $ac_try) 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); }; } &&
21779          { ac_try='test -s conftest$ac_exeext'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; }; then
21785   eval "$as_ac_var=yes"
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 eval "$as_ac_var=no"
21791 fi
21792 rm -f conftest.err conftest.$ac_objext \
21793       conftest$ac_exeext conftest.$ac_ext
21794 fi
21795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21797 if test `eval echo '${'$as_ac_var'}'` = yes; then
21798   cat >>confdefs.h <<_ACEOF
21799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21800 _ACEOF
21801
21802 fi
21803 done
21804
21805
21806 for ac_header in dlfcn.h
21807 do
21808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21810   echo "$as_me:$LINENO: checking for $ac_header" >&5
21811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21813   echo $ECHO_N "(cached) $ECHO_C" >&6
21814 fi
21815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21817 else
21818   # Is the header compilable?
21819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h.  */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h.  */
21827 $ac_includes_default
21828 #include <$ac_header>
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21832   (eval $ac_compile) 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } &&
21839          { ac_try='test -z "$ac_c_werror_flag"
21840                          || test ! -s conftest.err'
21841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842   (eval $ac_try) 2>&5
21843   ac_status=$?
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); }; } &&
21846          { ac_try='test -s conftest.$ac_objext'
21847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21848   (eval $ac_try) 2>&5
21849   ac_status=$?
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); }; }; then
21852   ac_header_compiler=yes
21853 else
21854   echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ac_header_compiler=no
21858 fi
21859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21861 echo "${ECHO_T}$ac_header_compiler" >&6
21862
21863 # Is the header present?
21864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <$ac_header>
21873 _ACEOF
21874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21876   ac_status=$?
21877   grep -v '^ *+' conftest.er1 >conftest.err
21878   rm -f conftest.er1
21879   cat conftest.err >&5
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } >/dev/null; then
21882   if test -s conftest.err; then
21883     ac_cpp_err=$ac_c_preproc_warn_flag
21884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21885   else
21886     ac_cpp_err=
21887   fi
21888 else
21889   ac_cpp_err=yes
21890 fi
21891 if test -z "$ac_cpp_err"; then
21892   ac_header_preproc=yes
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897   ac_header_preproc=no
21898 fi
21899 rm -f conftest.err conftest.$ac_ext
21900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21901 echo "${ECHO_T}$ac_header_preproc" >&6
21902
21903 # So?  What about this header?
21904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21905   yes:no: )
21906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21910     ac_header_preproc=yes
21911     ;;
21912   no:yes:* )
21913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21915     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21916 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21917     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21919     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21920 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21923     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21925     (
21926       cat <<\_ASBOX
21927 ## ------------------------------------------------ ##
21928 ## Report this to mace-opensaml-users@internet2.edu ##
21929 ## ------------------------------------------------ ##
21930 _ASBOX
21931     ) |
21932       sed "s/^/$as_me: WARNING:     /" >&2
21933     ;;
21934 esac
21935 echo "$as_me:$LINENO: checking for $ac_header" >&5
21936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940   eval "$as_ac_Header=\$ac_header_preproc"
21941 fi
21942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21944
21945 fi
21946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947   cat >>confdefs.h <<_ACEOF
21948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21949 _ACEOF
21950
21951 fi
21952
21953 done
21954
21955 echo "$as_me:$LINENO: checking for dlclose" >&5
21956 echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
21957 if test "${ac_cv_func_dlclose+set}" = set; then
21958   echo $ECHO_N "(cached) $ECHO_C" >&6
21959 else
21960   cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h.  */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h.  */
21966 /* Define dlclose to an innocuous variant, in case <limits.h> declares dlclose.
21967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21968 #define dlclose innocuous_dlclose
21969
21970 /* System header to define __stub macros and hopefully few prototypes,
21971     which can conflict with char dlclose (); below.
21972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973     <limits.h> exists even on freestanding compilers.  */
21974
21975 #ifdef __STDC__
21976 # include <limits.h>
21977 #else
21978 # include <assert.h>
21979 #endif
21980
21981 #undef dlclose
21982
21983 /* Override any gcc2 internal prototype to avoid an error.  */
21984 #ifdef __cplusplus
21985 extern "C"
21986 {
21987 #endif
21988 /* We use char because int might match the return type of a gcc2
21989    builtin and then its argument prototype would still apply.  */
21990 char dlclose ();
21991 /* The GNU C library defines this for functions which it implements
21992     to always fail with ENOSYS.  Some functions are actually named
21993     something starting with __ and the normal name is an alias.  */
21994 #if defined (__stub_dlclose) || defined (__stub___dlclose)
21995 choke me
21996 #else
21997 char (*f) () = dlclose;
21998 #endif
21999 #ifdef __cplusplus
22000 }
22001 #endif
22002
22003 int
22004 main ()
22005 {
22006 return f != dlclose;
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext conftest$ac_exeext
22012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013   (eval $ac_link) 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } &&
22020          { ac_try='test -z "$ac_c_werror_flag"
22021                          || test ! -s conftest.err'
22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023   (eval $ac_try) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; } &&
22027          { ac_try='test -s conftest$ac_exeext'
22028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029   (eval $ac_try) 2>&5
22030   ac_status=$?
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); }; }; then
22033   ac_cv_func_dlclose=yes
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 ac_cv_func_dlclose=no
22039 fi
22040 rm -f conftest.err conftest.$ac_objext \
22041       conftest$ac_exeext conftest.$ac_ext
22042 fi
22043 echo "$as_me:$LINENO: result: $ac_cv_func_dlclose" >&5
22044 echo "${ECHO_T}$ac_cv_func_dlclose" >&6
22045 if test $ac_cv_func_dlclose = yes; then
22046   :
22047 else
22048
22049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22052   echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054   ac_check_lib_save_LIBS=$LIBS
22055 LIBS="-ldl  $LIBS"
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h.  */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h.  */
22062
22063 /* Override any gcc2 internal prototype to avoid an error.  */
22064 #ifdef __cplusplus
22065 extern "C"
22066 #endif
22067 /* We use char because int might match the return type of a gcc2
22068    builtin and then its argument prototype would still apply.  */
22069 char dlopen ();
22070 int
22071 main ()
22072 {
22073 dlopen ();
22074   ;
22075   return 0;
22076 }
22077 _ACEOF
22078 rm -f conftest.$ac_objext conftest$ac_exeext
22079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22080   (eval $ac_link) 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } &&
22087          { ac_try='test -z "$ac_c_werror_flag"
22088                          || test ! -s conftest.err'
22089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090   (eval $ac_try) 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; } &&
22094          { ac_try='test -s conftest$ac_exeext'
22095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096   (eval $ac_try) 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; }; then
22100   ac_cv_lib_dl_dlopen=yes
22101 else
22102   echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105 ac_cv_lib_dl_dlopen=no
22106 fi
22107 rm -f conftest.err conftest.$ac_objext \
22108       conftest$ac_exeext conftest.$ac_ext
22109 LIBS=$ac_check_lib_save_LIBS
22110 fi
22111 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22112 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22113 if test $ac_cv_lib_dl_dlopen = yes; then
22114   cat >>confdefs.h <<_ACEOF
22115 #define HAVE_LIBDL 1
22116 _ACEOF
22117
22118   LIBS="-ldl $LIBS"
22119
22120 fi
22121
22122 fi
22123
22124
22125 # checks for pthreads
22126
22127
22128
22129
22130 ac_ext=c
22131 ac_cpp='$CPP $CPPFLAGS'
22132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136 acx_pthread_ok=no
22137
22138 # We used to check for pthread.h first, but this fails if pthread.h
22139 # requires special compiler flags (e.g. on True64 or Sequent).
22140 # It gets checked for in the link test anyway.
22141
22142 # First of all, check if the user has set any of the PTHREAD_LIBS,
22143 # etcetera environment variables, and if threads linking works using
22144 # them:
22145 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22146         save_CFLAGS="$CFLAGS"
22147         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22148         save_LIBS="$LIBS"
22149         LIBS="$PTHREAD_LIBS $LIBS"
22150         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22151 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
22152         cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h.  */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h.  */
22158
22159 /* Override any gcc2 internal prototype to avoid an error.  */
22160 #ifdef __cplusplus
22161 extern "C"
22162 #endif
22163 /* We use char because int might match the return type of a gcc2
22164    builtin and then its argument prototype would still apply.  */
22165 char pthread_join ();
22166 int
22167 main ()
22168 {
22169 pthread_join ();
22170   ;
22171   return 0;
22172 }
22173 _ACEOF
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22176   (eval $ac_link) 2>conftest.er1
22177   ac_status=$?
22178   grep -v '^ *+' conftest.er1 >conftest.err
22179   rm -f conftest.er1
22180   cat conftest.err >&5
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); } &&
22183          { ac_try='test -z "$ac_c_werror_flag"
22184                          || test ! -s conftest.err'
22185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); }; } &&
22190          { ac_try='test -s conftest$ac_exeext'
22191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192   (eval $ac_try) 2>&5
22193   ac_status=$?
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); }; }; then
22196   acx_pthread_ok=yes
22197 else
22198   echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201 fi
22202 rm -f conftest.err conftest.$ac_objext \
22203       conftest$ac_exeext conftest.$ac_ext
22204         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22205 echo "${ECHO_T}$acx_pthread_ok" >&6
22206         if test x"$acx_pthread_ok" = xno; then
22207                 PTHREAD_LIBS=""
22208                 PTHREAD_CFLAGS=""
22209         fi
22210         LIBS="$save_LIBS"
22211         CFLAGS="$save_CFLAGS"
22212 fi
22213
22214 # We must check for the threads library under a number of different
22215 # names; the ordering is very important because some systems
22216 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22217 # libraries is broken (non-POSIX).
22218
22219 # Create a list of thread flags to try.  Items starting with a "-" are
22220 # C compiler flags, and other items are library names, except for "none"
22221 # which indicates that we try without any flags at all, and "pthread-config"
22222 # which is a program returning the flags for the Pth emulation library.
22223
22224 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22225
22226 # The ordering *is* (sometimes) important.  Some notes on the
22227 # individual items follow:
22228
22229 # pthreads: AIX (must check this before -lpthread)
22230 # none: in case threads are in libc; should be tried before -Kthread and
22231 #       other compiler flags to prevent continual compiler warnings
22232 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22233 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22234 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22235 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22236 # -pthreads: Solaris/gcc
22237 # -mthreads: Mingw32/gcc, Lynx/gcc
22238 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22239 #      doesn't hurt to check since this sometimes defines pthreads too;
22240 #      also defines -D_REENTRANT)
22241 #      ... -mt is also the pthreads flag for HP/aCC
22242 # pthread: Linux, etcetera
22243 # --thread-safe: KAI C++
22244 # pthread-config: use pthread-config program (for GNU Pth library)
22245
22246 case "${host_cpu}-${host_os}" in
22247         *solaris*)
22248
22249         # On Solaris (at least, for some versions), libc contains stubbed
22250         # (non-functional) versions of the pthreads routines, so link-based
22251         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22252         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22253         # a function called by this macro, so we could check for that, but
22254         # who knows whether they'll stub that too in a future libc.)  So,
22255         # we'll just look for -pthreads and -lpthread first:
22256
22257         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22258         ;;
22259 esac
22260
22261 if test x"$acx_pthread_ok" = xno; then
22262 for flag in $acx_pthread_flags; do
22263
22264         case $flag in
22265                 none)
22266                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22267 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22268                 ;;
22269
22270                 -*)
22271                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22272 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22273                 PTHREAD_CFLAGS="$flag"
22274                 ;;
22275
22276                 pthread-config)
22277                 # Extract the first word of "pthread-config", so it can be a program name with args.
22278 set dummy pthread-config; ac_word=$2
22279 echo "$as_me:$LINENO: checking for $ac_word" >&5
22280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22281 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22282   echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284   if test -n "$acx_pthread_config"; then
22285   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22286 else
22287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22288 for as_dir in $PATH
22289 do
22290   IFS=$as_save_IFS
22291   test -z "$as_dir" && as_dir=.
22292   for ac_exec_ext in '' $ac_executable_extensions; do
22293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22294     ac_cv_prog_acx_pthread_config="yes"
22295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22296     break 2
22297   fi
22298 done
22299 done
22300
22301   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22302 fi
22303 fi
22304 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22305 if test -n "$acx_pthread_config"; then
22306   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22307 echo "${ECHO_T}$acx_pthread_config" >&6
22308 else
22309   echo "$as_me:$LINENO: result: no" >&5
22310 echo "${ECHO_T}no" >&6
22311 fi
22312
22313                 if test x"$acx_pthread_config" = xno; then continue; fi
22314                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22315                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22316                 ;;
22317
22318                 *)
22319                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22320 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22321                 PTHREAD_LIBS="-l$flag"
22322                 ;;
22323         esac
22324
22325         save_LIBS="$LIBS"
22326         save_CFLAGS="$CFLAGS"
22327         LIBS="$PTHREAD_LIBS $LIBS"
22328         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22329
22330         # Check for various functions.  We must include pthread.h,
22331         # since some functions may be macros.  (On the Sequent, we
22332         # need a special flag -Kthread to make this header compile.)
22333         # We check for pthread_join because it is in -lpthread on IRIX
22334         # while pthread_create is in libc.  We check for pthread_attr_init
22335         # due to DEC craziness with -lpthreads.  We check for
22336         # pthread_cleanup_push because it is one of the few pthread
22337         # functions on Solaris that doesn't have a non-functional libc stub.
22338         # We try pthread_create on general principles.
22339         cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 #include <pthread.h>
22346 int
22347 main ()
22348 {
22349 pthread_t th; pthread_join(th, 0);
22350                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22351                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22352   ;
22353   return 0;
22354 }
22355 _ACEOF
22356 rm -f conftest.$ac_objext conftest$ac_exeext
22357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22358   (eval $ac_link) 2>conftest.er1
22359   ac_status=$?
22360   grep -v '^ *+' conftest.er1 >conftest.err
22361   rm -f conftest.er1
22362   cat conftest.err >&5
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); } &&
22365          { ac_try='test -z "$ac_c_werror_flag"
22366                          || test ! -s conftest.err'
22367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368   (eval $ac_try) 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; } &&
22372          { ac_try='test -s conftest$ac_exeext'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   acx_pthread_ok=yes
22379 else
22380   echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383 fi
22384 rm -f conftest.err conftest.$ac_objext \
22385       conftest$ac_exeext conftest.$ac_ext
22386
22387         LIBS="$save_LIBS"
22388         CFLAGS="$save_CFLAGS"
22389
22390         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22391 echo "${ECHO_T}$acx_pthread_ok" >&6
22392         if test "x$acx_pthread_ok" = xyes; then
22393                 break;
22394         fi
22395
22396         PTHREAD_LIBS=""
22397         PTHREAD_CFLAGS=""
22398 done
22399 fi
22400
22401 # Various other checks:
22402 if test "x$acx_pthread_ok" = xyes; then
22403         save_LIBS="$LIBS"
22404         LIBS="$PTHREAD_LIBS $LIBS"
22405         save_CFLAGS="$CFLAGS"
22406         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22407
22408         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22409         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22410 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22411         attr_name=unknown
22412         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22413             cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h.  */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h.  */
22419 #include <pthread.h>
22420 int
22421 main ()
22422 {
22423 int attr=$attr; return attr;
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430   (eval $ac_link) 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } &&
22437          { ac_try='test -z "$ac_c_werror_flag"
22438                          || test ! -s conftest.err'
22439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440   (eval $ac_try) 2>&5
22441   ac_status=$?
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); }; } &&
22444          { ac_try='test -s conftest$ac_exeext'
22445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; }; then
22450   attr_name=$attr; break
22451 else
22452   echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 fi
22456 rm -f conftest.err conftest.$ac_objext \
22457       conftest$ac_exeext conftest.$ac_ext
22458         done
22459         echo "$as_me:$LINENO: result: $attr_name" >&5
22460 echo "${ECHO_T}$attr_name" >&6
22461         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22462
22463 cat >>confdefs.h <<_ACEOF
22464 #define PTHREAD_CREATE_JOINABLE $attr_name
22465 _ACEOF
22466
22467         fi
22468
22469         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22470 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22471         flag=no
22472         case "${host_cpu}-${host_os}" in
22473                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22474                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22475                 *solaris*)
22476                 if test "$GCC" = "yes"; then
22477                     flag="-D_REENTRANT"
22478                 else
22479                     flag="-mt -D_REENTRANT"
22480                 fi
22481                 ;;
22482         esac
22483         echo "$as_me:$LINENO: result: ${flag}" >&5
22484 echo "${ECHO_T}${flag}" >&6
22485         if test "x$flag" != xno; then
22486             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22487         fi
22488
22489         LIBS="$save_LIBS"
22490         CFLAGS="$save_CFLAGS"
22491
22492         # More AIX lossage: must compile with xlc_r or cc_r
22493         if test x"$GCC" != xyes; then
22494           for ac_prog in xlc_r cc_r
22495 do
22496   # Extract the first word of "$ac_prog", so it can be a program name with args.
22497 set dummy $ac_prog; ac_word=$2
22498 echo "$as_me:$LINENO: checking for $ac_word" >&5
22499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22500 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   if test -n "$PTHREAD_CC"; then
22504   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22505 else
22506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22507 for as_dir in $PATH
22508 do
22509   IFS=$as_save_IFS
22510   test -z "$as_dir" && as_dir=.
22511   for ac_exec_ext in '' $ac_executable_extensions; do
22512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22513     ac_cv_prog_PTHREAD_CC="$ac_prog"
22514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22515     break 2
22516   fi
22517 done
22518 done
22519
22520 fi
22521 fi
22522 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22523 if test -n "$PTHREAD_CC"; then
22524   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22525 echo "${ECHO_T}$PTHREAD_CC" >&6
22526 else
22527   echo "$as_me:$LINENO: result: no" >&5
22528 echo "${ECHO_T}no" >&6
22529 fi
22530
22531   test -n "$PTHREAD_CC" && break
22532 done
22533 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22534
22535         else
22536           PTHREAD_CC=$CC
22537         fi
22538 else
22539         PTHREAD_CC="$CC"
22540 fi
22541
22542
22543
22544
22545
22546 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22547 if test x"$acx_pthread_ok" = xyes; then
22548         enable_threads="pthread"
22549         :
22550 else
22551         acx_pthread_ok=no
22552         enable_threads="no"
22553 fi
22554 ac_ext=c
22555 ac_cpp='$CPP $CPPFLAGS'
22556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22559
22560
22561 if test $enable_threads != "pthread"; then
22562     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22563 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22564    { (exit 1); exit 1; }; }
22565 else
22566
22567 cat >>confdefs.h <<\_ACEOF
22568 #define HAVE_PTHREAD 1
22569 _ACEOF
22570
22571
22572
22573 if test "$enable_threads" = "pthread"; then
22574   BUILD_PTHREAD_TRUE=
22575   BUILD_PTHREAD_FALSE='#'
22576 else
22577   BUILD_PTHREAD_TRUE='#'
22578   BUILD_PTHREAD_FALSE=
22579 fi
22580
22581     LIBS="$PTHREAD_LIBS $LIBS"
22582     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22583     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22584 fi
22585
22586
22587 for ac_func in pthread_rwlock_init
22588 do
22589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22590 echo "$as_me:$LINENO: checking for $ac_func" >&5
22591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22592 if eval "test \"\${$as_ac_var+set}\" = set"; then
22593   echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22603 #define $ac_func innocuous_$ac_func
22604
22605 /* System header to define __stub macros and hopefully few prototypes,
22606     which can conflict with char $ac_func (); below.
22607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22608     <limits.h> exists even on freestanding compilers.  */
22609
22610 #ifdef __STDC__
22611 # include <limits.h>
22612 #else
22613 # include <assert.h>
22614 #endif
22615
22616 #undef $ac_func
22617
22618 /* Override any gcc2 internal prototype to avoid an error.  */
22619 #ifdef __cplusplus
22620 extern "C"
22621 {
22622 #endif
22623 /* We use char because int might match the return type of a gcc2
22624    builtin and then its argument prototype would still apply.  */
22625 char $ac_func ();
22626 /* The GNU C library defines this for functions which it implements
22627     to always fail with ENOSYS.  Some functions are actually named
22628     something starting with __ and the normal name is an alias.  */
22629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22630 choke me
22631 #else
22632 char (*f) () = $ac_func;
22633 #endif
22634 #ifdef __cplusplus
22635 }
22636 #endif
22637
22638 int
22639 main ()
22640 {
22641 return f != $ac_func;
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22648   (eval $ac_link) 2>conftest.er1
22649   ac_status=$?
22650   grep -v '^ *+' conftest.er1 >conftest.err
22651   rm -f conftest.er1
22652   cat conftest.err >&5
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } &&
22655          { ac_try='test -z "$ac_c_werror_flag"
22656                          || test ! -s conftest.err'
22657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658   (eval $ac_try) 2>&5
22659   ac_status=$?
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); }; } &&
22662          { ac_try='test -s conftest$ac_exeext'
22663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664   (eval $ac_try) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; }; then
22668   eval "$as_ac_var=yes"
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673 eval "$as_ac_var=no"
22674 fi
22675 rm -f conftest.err conftest.$ac_objext \
22676       conftest$ac_exeext conftest.$ac_ext
22677 fi
22678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22680 if test `eval echo '${'$as_ac_var'}'` = yes; then
22681   cat >>confdefs.h <<_ACEOF
22682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22683 _ACEOF
22684
22685 fi
22686 done
22687
22688
22689 ac_ext=cc
22690 ac_cpp='$CXXCPP $CPPFLAGS'
22691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22694
22695
22696 # C++ requirements
22697 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22698 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22699 if test "${ac_cv_cxx_namespaces+set}" = set; then
22700   echo $ECHO_N "(cached) $ECHO_C" >&6
22701 else
22702
22703
22704  ac_ext=cc
22705 ac_cpp='$CXXCPP $CPPFLAGS'
22706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22709
22710  cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 namespace Outer { namespace Inner { int i = 0; }}
22717 int
22718 main ()
22719 {
22720 using namespace Outer::Inner; return i;
22721   ;
22722   return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22727   (eval $ac_compile) 2>conftest.er1
22728   ac_status=$?
22729   grep -v '^ *+' conftest.er1 >conftest.err
22730   rm -f conftest.er1
22731   cat conftest.err >&5
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } &&
22734          { ac_try='test -z "$ac_cxx_werror_flag"
22735                          || test ! -s conftest.err'
22736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737   (eval $ac_try) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; } &&
22741          { ac_try='test -s conftest.$ac_objext'
22742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743   (eval $ac_try) 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; }; then
22747   ac_cv_cxx_namespaces=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ac_cv_cxx_namespaces=no
22753 fi
22754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22755  ac_ext=cc
22756 ac_cpp='$CXXCPP $CPPFLAGS'
22757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22760
22761
22762 fi
22763 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22764 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22765 if test "$ac_cv_cxx_namespaces" = yes; then
22766
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_NAMESPACES 1
22769 _ACEOF
22770
22771 fi
22772
22773 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22774 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22775 if test "${ac_cv_cxx_have_stl+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778
22779
22780
22781  ac_ext=cc
22782 ac_cpp='$CXXCPP $CPPFLAGS'
22783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22786
22787  cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h.  */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h.  */
22793 #include <list>
22794 #include <deque>
22795 #ifdef HAVE_NAMESPACES
22796 using namespace std;
22797 #endif
22798 int
22799 main ()
22800 {
22801 list<int> x; x.push_back(5);
22802 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22803   ;
22804   return 0;
22805 }
22806 _ACEOF
22807 rm -f conftest.$ac_objext
22808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22809   (eval $ac_compile) 2>conftest.er1
22810   ac_status=$?
22811   grep -v '^ *+' conftest.er1 >conftest.err
22812   rm -f conftest.er1
22813   cat conftest.err >&5
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); } &&
22816          { ac_try='test -z "$ac_cxx_werror_flag"
22817                          || test ! -s conftest.err'
22818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819   (eval $ac_try) 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; } &&
22823          { ac_try='test -s conftest.$ac_objext'
22824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22825   (eval $ac_try) 2>&5
22826   ac_status=$?
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); }; }; then
22829   ac_cv_cxx_have_stl=yes
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834 ac_cv_cxx_have_stl=no
22835 fi
22836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22837  ac_ext=cc
22838 ac_cpp='$CXXCPP $CPPFLAGS'
22839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22842
22843
22844 fi
22845 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22846 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22847 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22848   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22849 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22850    { (exit 1); exit 1; }; }
22851 fi
22852
22853 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22854 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22855 if test "${ac_cv_cxx_namespaces+set}" = set; then
22856   echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22858
22859
22860  ac_ext=cc
22861 ac_cpp='$CXXCPP $CPPFLAGS'
22862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22865
22866  cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h.  */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h.  */
22872 namespace Outer { namespace Inner { int i = 0; }}
22873 int
22874 main ()
22875 {
22876 using namespace Outer::Inner; return i;
22877   ;
22878   return 0;
22879 }
22880 _ACEOF
22881 rm -f conftest.$ac_objext
22882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22883   (eval $ac_compile) 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } &&
22890          { ac_try='test -z "$ac_cxx_werror_flag"
22891                          || test ! -s conftest.err'
22892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893   (eval $ac_try) 2>&5
22894   ac_status=$?
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); }; } &&
22897          { ac_try='test -s conftest.$ac_objext'
22898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899   (eval $ac_try) 2>&5
22900   ac_status=$?
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); }; }; then
22903   ac_cv_cxx_namespaces=yes
22904 else
22905   echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908 ac_cv_cxx_namespaces=no
22909 fi
22910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22911  ac_ext=cc
22912 ac_cpp='$CXXCPP $CPPFLAGS'
22913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22916
22917
22918 fi
22919 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22920 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22921 if test "$ac_cv_cxx_namespaces" = yes; then
22922
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_NAMESPACES 1
22925 _ACEOF
22926
22927 fi
22928
22929
22930 # are covariant methods allowed?
22931 cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937  class base { public: virtual base *GetPtr( void ) { return this; } };
22938 int
22939 main ()
22940 {
22941  class derived: virtual public base { public: virtual derived *GetPtr( void ) { return this; } };
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext conftest$ac_exeext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22948   (eval $ac_link) 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } &&
22955          { ac_try='test -z "$ac_cxx_werror_flag"
22956                          || test ! -s conftest.err'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; } &&
22962          { ac_try='test -s conftest$ac_exeext'
22963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964   (eval $ac_try) 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); }; }; then
22968
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_COVARIANT_RETURNS 1
22971 _ACEOF
22972
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 fi
22978 rm -f conftest.err conftest.$ac_objext \
22979       conftest$ac_exeext conftest.$ac_ext
22980
22981 # log4shib settings (favor this version over the log4cpp code)
22982 # Extract the first word of "log4shib-config", so it can be a program name with args.
22983 set dummy log4shib-config; ac_word=$2
22984 echo "$as_me:$LINENO: checking for $ac_word" >&5
22985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22986 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22987   echo $ECHO_N "(cached) $ECHO_C" >&6
22988 else
22989   case $LOG4SHIB_CONFIG in
22990   [\\/]* | ?:[\\/]*)
22991   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22992   ;;
22993   *)
22994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22995 for as_dir in $PATH
22996 do
22997   IFS=$as_save_IFS
22998   test -z "$as_dir" && as_dir=.
22999   for ac_exec_ext in '' $ac_executable_extensions; do
23000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23001     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23003     break 2
23004   fi
23005 done
23006 done
23007
23008   ;;
23009 esac
23010 fi
23011 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23012
23013 if test -n "$LOG4SHIB_CONFIG"; then
23014   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23015 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23016 else
23017   echo "$as_me:$LINENO: result: no" >&5
23018 echo "${ECHO_T}no" >&6
23019 fi
23020
23021
23022 # Check whether --with-log4shib or --without-log4shib was given.
23023 if test "${with_log4shib+set}" = set; then
23024   withval="$with_log4shib"
23025
23026     LOG4SHIB_CONFIG="${with_log4shib}"
23027     if ! test -f "${LOG4SHIB_CONFIG}" ; then
23028         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23029     fi
23030
23031 fi;
23032 if test -f "${LOG4SHIB_CONFIG}"; then
23033     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23034     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23035
23036 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23037   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23038 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23039 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23040   echo $ECHO_N "(cached) $ECHO_C" >&6
23041 fi
23042 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23043 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23044 else
23045   # Is the header compilable?
23046 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23047 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23048 cat >conftest.$ac_ext <<_ACEOF
23049 /* confdefs.h.  */
23050 _ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h.  */
23054 $ac_includes_default
23055 #include <log4shib/CategoryStream.hh>
23056 _ACEOF
23057 rm -f conftest.$ac_objext
23058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23059   (eval $ac_compile) 2>conftest.er1
23060   ac_status=$?
23061   grep -v '^ *+' conftest.er1 >conftest.err
23062   rm -f conftest.er1
23063   cat conftest.err >&5
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); } &&
23066          { ac_try='test -z "$ac_cxx_werror_flag"
23067                          || test ! -s conftest.err'
23068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069   (eval $ac_try) 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; } &&
23073          { ac_try='test -s conftest.$ac_objext'
23074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075   (eval $ac_try) 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; }; then
23079   ac_header_compiler=yes
23080 else
23081   echo "$as_me: failed program was:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23083
23084 ac_header_compiler=no
23085 fi
23086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23088 echo "${ECHO_T}$ac_header_compiler" >&6
23089
23090 # Is the header present?
23091 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23092 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099 #include <log4shib/CategoryStream.hh>
23100 _ACEOF
23101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23103   ac_status=$?
23104   grep -v '^ *+' conftest.er1 >conftest.err
23105   rm -f conftest.er1
23106   cat conftest.err >&5
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); } >/dev/null; then
23109   if test -s conftest.err; then
23110     ac_cpp_err=$ac_cxx_preproc_warn_flag
23111     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23112   else
23113     ac_cpp_err=
23114   fi
23115 else
23116   ac_cpp_err=yes
23117 fi
23118 if test -z "$ac_cpp_err"; then
23119   ac_header_preproc=yes
23120 else
23121   echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124   ac_header_preproc=no
23125 fi
23126 rm -f conftest.err conftest.$ac_ext
23127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23128 echo "${ECHO_T}$ac_header_preproc" >&6
23129
23130 # So?  What about this header?
23131 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23132   yes:no: )
23133     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23134 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23135     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23136 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23137     ac_header_preproc=yes
23138     ;;
23139   no:yes:* )
23140     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23141 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23142     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23143 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23144     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23145 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23146     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23147 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23148     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23149 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23150     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23151 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23152     (
23153       cat <<\_ASBOX
23154 ## ------------------------------------------------ ##
23155 ## Report this to mace-opensaml-users@internet2.edu ##
23156 ## ------------------------------------------------ ##
23157 _ASBOX
23158     ) |
23159       sed "s/^/$as_me: WARNING:     /" >&2
23160     ;;
23161 esac
23162 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23163 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23164 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23165   echo $ECHO_N "(cached) $ECHO_C" >&6
23166 else
23167   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23168 fi
23169 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23170 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23171
23172 fi
23173 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23174   :
23175 else
23176   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23177 echo "$as_me: error: unable to find log4shib header files" >&2;}
23178    { (exit 1); exit 1; }; }
23179 fi
23180
23181
23182         cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 #include <log4shib/Category.hh>
23189 #include <log4shib/CategoryStream.hh>
23190 int
23191 main ()
23192 {
23193 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest.$ac_objext conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200   (eval $ac_link) 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } &&
23207          { ac_try='test -z "$ac_cxx_werror_flag"
23208                          || test ! -s conftest.err'
23209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210   (eval $ac_try) 2>&5
23211   ac_status=$?
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); }; } &&
23214          { ac_try='test -s conftest$ac_exeext'
23215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216   (eval $ac_try) 2>&5
23217   ac_status=$?
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); }; }; then
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define XMLTOOLING_LOG4SHIB 1
23223 _ACEOF
23224
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23230 echo "$as_me: error: unable to link with log4shib" >&2;}
23231    { (exit 1); exit 1; }; }
23232 fi
23233 rm -f conftest.err conftest.$ac_objext \
23234       conftest$ac_exeext conftest.$ac_ext
23235 else
23236     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23237 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23238     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23239 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23240
23241         # log4cpp settings
23242         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23243 set dummy log4cpp-config; ac_word=$2
23244 echo "$as_me:$LINENO: checking for $ac_word" >&5
23245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23246 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   case $LOG4CPP_CONFIG in
23250   [\\/]* | ?:[\\/]*)
23251   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23252   ;;
23253   *)
23254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23255 for as_dir in $PATH
23256 do
23257   IFS=$as_save_IFS
23258   test -z "$as_dir" && as_dir=.
23259   for ac_exec_ext in '' $ac_executable_extensions; do
23260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23261     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23263     break 2
23264   fi
23265 done
23266 done
23267
23268   ;;
23269 esac
23270 fi
23271 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23272
23273 if test -n "$LOG4CPP_CONFIG"; then
23274   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23275 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23276 else
23277   echo "$as_me:$LINENO: result: no" >&5
23278 echo "${ECHO_T}no" >&6
23279 fi
23280
23281
23282 # Check whether --with-log4cpp or --without-log4cpp was given.
23283 if test "${with_log4cpp+set}" = set; then
23284   withval="$with_log4cpp"
23285
23286             LOG4CPP_CONFIG="${with_log4cpp}"
23287             if ! test -f "${LOG4CPP_CONFIG}" ; then
23288                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23289             fi
23290
23291 fi;
23292         if test -f "${LOG4CPP_CONFIG}"; then
23293                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23294 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23295             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23296             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23297                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23298   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23299 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23300 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23301   echo $ECHO_N "(cached) $ECHO_C" >&6
23302 fi
23303 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23304 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23305 else
23306   # Is the header compilable?
23307 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23308 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h.  */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h.  */
23315 $ac_includes_default
23316 #include <log4cpp/CategoryStream.hh>
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23320   (eval $ac_compile) 2>conftest.er1
23321   ac_status=$?
23322   grep -v '^ *+' conftest.er1 >conftest.err
23323   rm -f conftest.er1
23324   cat conftest.err >&5
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); } &&
23327          { ac_try='test -z "$ac_cxx_werror_flag"
23328                          || test ! -s conftest.err'
23329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330   (eval $ac_try) 2>&5
23331   ac_status=$?
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); }; } &&
23334          { ac_try='test -s conftest.$ac_objext'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; }; then
23340   ac_header_compiler=yes
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345 ac_header_compiler=no
23346 fi
23347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23349 echo "${ECHO_T}$ac_header_compiler" >&6
23350
23351 # Is the header present?
23352 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23353 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23354 cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h.  */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h.  */
23360 #include <log4cpp/CategoryStream.hh>
23361 _ACEOF
23362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23364   ac_status=$?
23365   grep -v '^ *+' conftest.er1 >conftest.err
23366   rm -f conftest.er1
23367   cat conftest.err >&5
23368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369   (exit $ac_status); } >/dev/null; then
23370   if test -s conftest.err; then
23371     ac_cpp_err=$ac_cxx_preproc_warn_flag
23372     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23373   else
23374     ac_cpp_err=
23375   fi
23376 else
23377   ac_cpp_err=yes
23378 fi
23379 if test -z "$ac_cpp_err"; then
23380   ac_header_preproc=yes
23381 else
23382   echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385   ac_header_preproc=no
23386 fi
23387 rm -f conftest.err conftest.$ac_ext
23388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23389 echo "${ECHO_T}$ac_header_preproc" >&6
23390
23391 # So?  What about this header?
23392 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23393   yes:no: )
23394     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23395 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23396     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23397 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23398     ac_header_preproc=yes
23399     ;;
23400   no:yes:* )
23401     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23402 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23403     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23404 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23405     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23406 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23407     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23408 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23409     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23410 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23411     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23412 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23413     (
23414       cat <<\_ASBOX
23415 ## ------------------------------------------------ ##
23416 ## Report this to mace-opensaml-users@internet2.edu ##
23417 ## ------------------------------------------------ ##
23418 _ASBOX
23419     ) |
23420       sed "s/^/$as_me: WARNING:     /" >&2
23421     ;;
23422 esac
23423 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23424 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23425 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23426   echo $ECHO_N "(cached) $ECHO_C" >&6
23427 else
23428   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23429 fi
23430 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23431 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23432
23433 fi
23434 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23435   :
23436 else
23437   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23438 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23439    { (exit 1); exit 1; }; }
23440 fi
23441
23442
23443                 cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449 #include <log4cpp/Category.hh>
23450 #include <log4cpp/CategoryStream.hh>
23451 int
23452 main ()
23453 {
23454 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23455   ;
23456   return 0;
23457 }
23458 _ACEOF
23459 rm -f conftest.$ac_objext conftest$ac_exeext
23460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23461   (eval $ac_link) 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } &&
23468          { ac_try='test -z "$ac_cxx_werror_flag"
23469                          || test ! -s conftest.err'
23470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471   (eval $ac_try) 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); }; } &&
23475          { ac_try='test -s conftest$ac_exeext'
23476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477   (eval $ac_try) 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; }; then
23481
23482 cat >>confdefs.h <<\_ACEOF
23483 #define XMLTOOLING_LOG4CPP 1
23484 _ACEOF
23485
23486 else
23487   echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23491 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23492    { (exit 1); exit 1; }; }
23493 fi
23494 rm -f conftest.err conftest.$ac_objext \
23495       conftest$ac_exeext conftest.$ac_ext
23496         else
23497             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23498 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23499    { (exit 1); exit 1; }; }
23500         fi
23501 fi
23502
23503 # Xerces settings
23504
23505 # Check whether --with-xerces or --without-xerces was given.
23506 if test "${with_xerces+set}" = set; then
23507   withval="$with_xerces"
23508   if test x_$with_xerces != x_/usr; then
23509                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23510                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23511             fi
23512 fi;
23513 LIBS="-lxerces-c $LIBS"
23514 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23515   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23516 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23517 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23518   echo $ECHO_N "(cached) $ECHO_C" >&6
23519 fi
23520 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23521 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23522 else
23523   # Is the header compilable?
23524 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23525 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23526 cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h.  */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h.  */
23532 $ac_includes_default
23533 #include <xercesc/dom/DOM.hpp>
23534 _ACEOF
23535 rm -f conftest.$ac_objext
23536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23537   (eval $ac_compile) 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } &&
23544          { ac_try='test -z "$ac_cxx_werror_flag"
23545                          || test ! -s conftest.err'
23546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; } &&
23551          { ac_try='test -s conftest.$ac_objext'
23552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553   (eval $ac_try) 2>&5
23554   ac_status=$?
23555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556   (exit $ac_status); }; }; then
23557   ac_header_compiler=yes
23558 else
23559   echo "$as_me: failed program was:" >&5
23560 sed 's/^/| /' conftest.$ac_ext >&5
23561
23562 ac_header_compiler=no
23563 fi
23564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23566 echo "${ECHO_T}$ac_header_compiler" >&6
23567
23568 # Is the header present?
23569 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23570 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23571 cat >conftest.$ac_ext <<_ACEOF
23572 /* confdefs.h.  */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h.  */
23577 #include <xercesc/dom/DOM.hpp>
23578 _ACEOF
23579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } >/dev/null; then
23587   if test -s conftest.err; then
23588     ac_cpp_err=$ac_cxx_preproc_warn_flag
23589     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23590   else
23591     ac_cpp_err=
23592   fi
23593 else
23594   ac_cpp_err=yes
23595 fi
23596 if test -z "$ac_cpp_err"; then
23597   ac_header_preproc=yes
23598 else
23599   echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23601
23602   ac_header_preproc=no
23603 fi
23604 rm -f conftest.err conftest.$ac_ext
23605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23606 echo "${ECHO_T}$ac_header_preproc" >&6
23607
23608 # So?  What about this header?
23609 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23610   yes:no: )
23611     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23612 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23613     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23614 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23615     ac_header_preproc=yes
23616     ;;
23617   no:yes:* )
23618     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23619 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23620     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23621 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23622     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23623 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23624     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23625 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23626     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23627 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23628     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23629 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23630     (
23631       cat <<\_ASBOX
23632 ## ------------------------------------------------ ##
23633 ## Report this to mace-opensaml-users@internet2.edu ##
23634 ## ------------------------------------------------ ##
23635 _ASBOX
23636     ) |
23637       sed "s/^/$as_me: WARNING:     /" >&2
23638     ;;
23639 esac
23640 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23641 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23642 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23643   echo $ECHO_N "(cached) $ECHO_C" >&6
23644 else
23645   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23646 fi
23647 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23648 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23649
23650 fi
23651 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23652   :
23653 else
23654   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23655 echo "$as_me: error: unable to find xerces header files" >&2;}
23656    { (exit 1); exit 1; }; }
23657 fi
23658
23659
23660 echo "$as_me:$LINENO: checking Xerces version" >&5
23661 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23662 cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668 #include <xercesc/util/XercesVersion.hpp>
23669 int
23670 main ()
23671 {
23672 #if  _XERCES_VERSION != 20600
23673 int i = 0;
23674 #else
23675 #error cannot use version 2.6.0
23676 #endif
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } >/dev/null; then
23689   if test -s conftest.err; then
23690     ac_cpp_err=$ac_cxx_preproc_warn_flag
23691     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23692   else
23693     ac_cpp_err=
23694   fi
23695 else
23696   ac_cpp_err=yes
23697 fi
23698 if test -z "$ac_cpp_err"; then
23699   echo "$as_me:$LINENO: result: OK" >&5
23700 echo "${ECHO_T}OK" >&6
23701 else
23702   echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23704
23705   { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23706 See \`config.log' for more details." >&5
23707 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23708 See \`config.log' for more details." >&2;}
23709    { (exit 1); exit 1; }; }
23710 fi
23711 rm -f conftest.err conftest.$ac_ext
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 #include <xercesc/util/PlatformUtils.hpp>
23719 int
23720 main ()
23721 {
23722 xercesc::XMLPlatformUtils::Initialize()
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 rm -f conftest.$ac_objext conftest$ac_exeext
23728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23729   (eval $ac_link) 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } &&
23736          { ac_try='test -z "$ac_cxx_werror_flag"
23737                          || test ! -s conftest.err'
23738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739   (eval $ac_try) 2>&5
23740   ac_status=$?
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); }; } &&
23743          { ac_try='test -s conftest$ac_exeext'
23744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745   (eval $ac_try) 2>&5
23746   ac_status=$?
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); }; }; then
23749
23750 cat >>confdefs.h <<\_ACEOF
23751 #define HAVE_LIBXERCESC 1
23752 _ACEOF
23753
23754 else
23755   echo "$as_me: failed program was:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23757
23758 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23759 echo "$as_me: error: unable to link with Xerces" >&2;}
23760    { (exit 1); exit 1; }; }
23761 fi
23762 rm -f conftest.err conftest.$ac_objext \
23763       conftest$ac_exeext conftest.$ac_ext
23764
23765 echo "$as_me:$LINENO: checking whether Xerces is 64-bit clean" >&5
23766 echo $ECHO_N "checking whether Xerces is 64-bit clean... $ECHO_C" >&6
23767 cat >conftest.$ac_ext <<_ACEOF
23768 /* confdefs.h.  */
23769 _ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h.  */
23773 #include <xercesc/framework/MemBufInputSource.hpp>
23774 int
23775 main ()
23776 {
23777 using namespace XERCES_CPP_NAMESPACE;
23778       XMLFilePos testvar;
23779
23780   ;
23781   return 0;
23782 }
23783 _ACEOF
23784 rm -f conftest.$ac_objext
23785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23786   (eval $ac_compile) 2>conftest.er1
23787   ac_status=$?
23788   grep -v '^ *+' conftest.er1 >conftest.err
23789   rm -f conftest.er1
23790   cat conftest.err >&5
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); } &&
23793          { ac_try='test -z "$ac_cxx_werror_flag"
23794                          || test ! -s conftest.err'
23795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796   (eval $ac_try) 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; } &&
23800          { ac_try='test -s conftest.$ac_objext'
23801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802   (eval $ac_try) 2>&5
23803   ac_status=$?
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); }; }; then
23806   echo "$as_me:$LINENO: result: yes" >&5
23807 echo "${ECHO_T}yes" >&6
23808
23809 cat >>confdefs.h <<\_ACEOF
23810 #define XMLTOOLING_XERCESC_64BITSAFE 1
23811 _ACEOF
23812
23813 else
23814   echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 echo "$as_me:$LINENO: result: no" >&5
23818 echo "${ECHO_T}no" >&6
23819 fi
23820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23821
23822 echo "$as_me:$LINENO: checking whether Xerces BinInputStream requires getContentType" >&5
23823 echo $ECHO_N "checking whether Xerces BinInputStream requires getContentType... $ECHO_C" >&6
23824 cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h.  */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h.  */
23830 #include <xercesc/util/BinMemInputStream.hpp>
23831 int
23832 main ()
23833 {
23834 using namespace XERCES_CPP_NAMESPACE;
23835       XMLByte buf[1024];
23836       BinMemInputStream in(buf,1024);
23837       in.getContentType();
23838
23839   ;
23840   return 0;
23841 }
23842 _ACEOF
23843 rm -f conftest.$ac_objext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23845   (eval $ac_compile) 2>conftest.er1
23846   ac_status=$?
23847   grep -v '^ *+' conftest.er1 >conftest.err
23848   rm -f conftest.er1
23849   cat conftest.err >&5
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); } &&
23852          { ac_try='test -z "$ac_cxx_werror_flag"
23853                          || test ! -s conftest.err'
23854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest.$ac_objext'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; }; then
23865   echo "$as_me:$LINENO: result: yes" >&5
23866 echo "${ECHO_T}yes" >&6
23867
23868 cat >>confdefs.h <<\_ACEOF
23869 #define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1
23870 _ACEOF
23871
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876 echo "$as_me:$LINENO: result: no" >&5
23877 echo "${ECHO_T}no" >&6
23878 fi
23879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23880
23881 echo "$as_me:$LINENO: checking whether Xerces DOMLS API is compliant" >&5
23882 echo $ECHO_N "checking whether Xerces DOMLS API is compliant... $ECHO_C" >&6
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889 #include <xercesc/dom/DOM.hpp>
23890 int
23891 main ()
23892 {
23893 using namespace XERCES_CPP_NAMESPACE;
23894         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(NULL);
23895         DOMLSSerializer *ls = ((DOMImplementationLS*)impl)->createLSSerializer();
23896
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23903   (eval $ac_compile) 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } &&
23910          { ac_try='test -z "$ac_cxx_werror_flag"
23911                          || test ! -s conftest.err'
23912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913   (eval $ac_try) 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; } &&
23917          { ac_try='test -s conftest.$ac_objext'
23918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919   (eval $ac_try) 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; }; then
23923   echo "$as_me:$LINENO: result: yes" >&5
23924 echo "${ECHO_T}yes" >&6
23925
23926 cat >>confdefs.h <<\_ACEOF
23927 #define XMLTOOLING_XERCESC_COMPLIANT_DOMLS 1
23928 _ACEOF
23929
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934 echo "$as_me:$LINENO: result: no" >&5
23935 echo "${ECHO_T}no" >&6
23936 fi
23937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23938
23939 echo "$as_me:$LINENO: checking whether Xerces has setIdAttribute(XMLCh*, bool)" >&5
23940 echo $ECHO_N "checking whether Xerces has setIdAttribute(XMLCh*, bool)... $ECHO_C" >&6
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947 #include <xercesc/dom/DOM.hpp>
23948 int
23949 main ()
23950 {
23951 using namespace XERCES_CPP_NAMESPACE;
23952           DOMElement * elt;
23953           elt->setIdAttribute(NULL, false);
23954
23955   ;
23956   return 0;
23957 }
23958 _ACEOF
23959 rm -f conftest.$ac_objext
23960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961   (eval $ac_compile) 2>conftest.er1
23962   ac_status=$?
23963   grep -v '^ *+' conftest.er1 >conftest.err
23964   rm -f conftest.er1
23965   cat conftest.err >&5
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); } &&
23968          { ac_try='test -z "$ac_cxx_werror_flag"
23969                          || test ! -s conftest.err'
23970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971   (eval $ac_try) 2>&5
23972   ac_status=$?
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); }; } &&
23975          { ac_try='test -s conftest.$ac_objext'
23976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977   (eval $ac_try) 2>&5
23978   ac_status=$?
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; }; then
23981   echo "$as_me:$LINENO: result: yes" >&5
23982 echo "${ECHO_T}yes" >&6
23983
23984 cat >>confdefs.h <<\_ACEOF
23985 #define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE 1
23986 _ACEOF
23987
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992 echo "$as_me:$LINENO: result: no" >&5
23993 echo "${ECHO_T}no" >&6
23994 fi
23995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23996
23997 # XML-Security settings
23998
23999 # Check whether --with-xmlsec or --without-xmlsec was given.
24000 if test "${with_xmlsec+set}" = set; then
24001   withval="$with_xmlsec"
24002
24003 else
24004   with_xmlsec=/usr
24005 fi;
24006
24007 if test x_$with_xmlsec != x_no; then
24008
24009     # OpenSSL settings (need to do this first in case it's in a different spot from xmlsec)
24010
24011 # Check whether --with-openssl or --without-openssl was given.
24012 if test "${with_openssl+set}" = set; then
24013   withval="$with_openssl"
24014   if test x_$with_openssl != x_/usr; then
24015             SSLFLAGS="-I${with_openssl}/include"
24016             SSLLIBS="-L${with_openssl}/lib -lcrypto -lssl"
24017         else
24018             SSLLIBS="-lcrypto -lssl"
24019         fi
24020 fi;
24021
24022     if test "x$SSLLIBS" = "x" ; then
24023         # Extract the first word of "pkg-config", so it can be a program name with args.
24024 set dummy pkg-config; ac_word=$2
24025 echo "$as_me:$LINENO: checking for $ac_word" >&5
24026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24028   echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030   case $PKG_CONFIG in
24031   [\\/]* | ?:[\\/]*)
24032   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24033   ;;
24034   *)
24035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24036 for as_dir in $PATH
24037 do
24038   IFS=$as_save_IFS
24039   test -z "$as_dir" && as_dir=.
24040   for ac_exec_ext in '' $ac_executable_extensions; do
24041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24042     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24044     break 2
24045   fi
24046 done
24047 done
24048
24049   ;;
24050 esac
24051 fi
24052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24053
24054 if test -n "$PKG_CONFIG"; then
24055   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24056 echo "${ECHO_T}$PKG_CONFIG" >&6
24057 else
24058   echo "$as_me:$LINENO: result: no" >&5
24059 echo "${ECHO_T}no" >&6
24060 fi
24061
24062         if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
24063             if pkg-config openssl ; then
24064                 SSLLIBS="`$PKG_CONFIG --libs openssl`"
24065                 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
24066             else
24067                 { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
24068 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
24069    { (exit 1); exit 1; }; }
24070             fi
24071         fi
24072     fi
24073
24074     if test "x$SSLLIBS" = "x" ; then
24075         SSLLIBS="-lcrypto -lssl"
24076     fi
24077
24078     echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
24079 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
24080     echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
24081 echo "${ECHO_T}$SSLFLAGS" >&6
24082     CPPFLAGS="$CPPFLAGS $SSLFLAGS"
24083     echo "$as_me:$LINENO: checking for OpenSSL libraries" >&5
24084 echo $ECHO_N "checking for OpenSSL libraries... $ECHO_C" >&6
24085     echo "$as_me:$LINENO: result: $SSLLIBS" >&5
24086 echo "${ECHO_T}$SSLLIBS" >&6
24087     XMLSEC_LIBS="$XMLSEC_LIBS $SSLLIBS"
24088
24089     # save and append master libs
24090     save_LIBS="$LIBS"
24091     LIBS="$XMLSEC_LIBS $LIBS"
24092
24093     if test "${ac_cv_header_openssl_pem_h+set}" = set; then
24094   echo "$as_me:$LINENO: checking for openssl/pem.h" >&5
24095 echo $ECHO_N "checking for openssl/pem.h... $ECHO_C" >&6
24096 if test "${ac_cv_header_openssl_pem_h+set}" = set; then
24097   echo $ECHO_N "(cached) $ECHO_C" >&6
24098 fi
24099 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_pem_h" >&5
24100 echo "${ECHO_T}$ac_cv_header_openssl_pem_h" >&6
24101 else
24102   # Is the header compilable?
24103 echo "$as_me:$LINENO: checking openssl/pem.h usability" >&5
24104 echo $ECHO_N "checking openssl/pem.h usability... $ECHO_C" >&6
24105 cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h.  */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h.  */
24111 $ac_includes_default
24112 #include <openssl/pem.h>
24113 _ACEOF
24114 rm -f conftest.$ac_objext
24115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24116   (eval $ac_compile) 2>conftest.er1
24117   ac_status=$?
24118   grep -v '^ *+' conftest.er1 >conftest.err
24119   rm -f conftest.er1
24120   cat conftest.err >&5
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); } &&
24123          { ac_try='test -z "$ac_cxx_werror_flag"
24124                          || test ! -s conftest.err'
24125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126   (eval $ac_try) 2>&5
24127   ac_status=$?
24128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); }; } &&
24130          { ac_try='test -s conftest.$ac_objext'
24131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132   (eval $ac_try) 2>&5
24133   ac_status=$?
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); }; }; then
24136   ac_header_compiler=yes
24137 else
24138   echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141 ac_header_compiler=no
24142 fi
24143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24145 echo "${ECHO_T}$ac_header_compiler" >&6
24146
24147 # Is the header present?
24148 echo "$as_me:$LINENO: checking openssl/pem.h presence" >&5
24149 echo $ECHO_N "checking openssl/pem.h presence... $ECHO_C" >&6
24150 cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h.  */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h.  */
24156 #include <openssl/pem.h>
24157 _ACEOF
24158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24160   ac_status=$?
24161   grep -v '^ *+' conftest.er1 >conftest.err
24162   rm -f conftest.er1
24163   cat conftest.err >&5
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); } >/dev/null; then
24166   if test -s conftest.err; then
24167     ac_cpp_err=$ac_cxx_preproc_warn_flag
24168     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24169   else
24170     ac_cpp_err=
24171   fi
24172 else
24173   ac_cpp_err=yes
24174 fi
24175 if test -z "$ac_cpp_err"; then
24176   ac_header_preproc=yes
24177 else
24178   echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181   ac_header_preproc=no
24182 fi
24183 rm -f conftest.err conftest.$ac_ext
24184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24185 echo "${ECHO_T}$ac_header_preproc" >&6
24186
24187 # So?  What about this header?
24188 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24189   yes:no: )
24190     { echo "$as_me:$LINENO: WARNING: openssl/pem.h: accepted by the compiler, rejected by the preprocessor!" >&5
24191 echo "$as_me: WARNING: openssl/pem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24192     { echo "$as_me:$LINENO: WARNING: openssl/pem.h: proceeding with the compiler's result" >&5
24193 echo "$as_me: WARNING: openssl/pem.h: proceeding with the compiler's result" >&2;}
24194     ac_header_preproc=yes
24195     ;;
24196   no:yes:* )
24197     { echo "$as_me:$LINENO: WARNING: openssl/pem.h: present but cannot be compiled" >&5
24198 echo "$as_me: WARNING: openssl/pem.h: present but cannot be compiled" >&2;}
24199     { echo "$as_me:$LINENO: WARNING: openssl/pem.h:     check for missing prerequisite headers?" >&5
24200 echo "$as_me: WARNING: openssl/pem.h:     check for missing prerequisite headers?" >&2;}
24201     { echo "$as_me:$LINENO: WARNING: openssl/pem.h: see the Autoconf documentation" >&5
24202 echo "$as_me: WARNING: openssl/pem.h: see the Autoconf documentation" >&2;}
24203     { echo "$as_me:$LINENO: WARNING: openssl/pem.h:     section \"Present But Cannot Be Compiled\"" >&5
24204 echo "$as_me: WARNING: openssl/pem.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24205     { echo "$as_me:$LINENO: WARNING: openssl/pem.h: proceeding with the preprocessor's result" >&5
24206 echo "$as_me: WARNING: openssl/pem.h: proceeding with the preprocessor's result" >&2;}
24207     { echo "$as_me:$LINENO: WARNING: openssl/pem.h: in the future, the compiler will take precedence" >&5
24208 echo "$as_me: WARNING: openssl/pem.h: in the future, the compiler will take precedence" >&2;}
24209     (
24210       cat <<\_ASBOX
24211 ## ------------------------------------------------ ##
24212 ## Report this to mace-opensaml-users@internet2.edu ##
24213 ## ------------------------------------------------ ##
24214 _ASBOX
24215     ) |
24216       sed "s/^/$as_me: WARNING:     /" >&2
24217     ;;
24218 esac
24219 echo "$as_me:$LINENO: checking for openssl/pem.h" >&5
24220 echo $ECHO_N "checking for openssl/pem.h... $ECHO_C" >&6
24221 if test "${ac_cv_header_openssl_pem_h+set}" = set; then
24222   echo $ECHO_N "(cached) $ECHO_C" >&6
24223 else
24224   ac_cv_header_openssl_pem_h=$ac_header_preproc
24225 fi
24226 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_pem_h" >&5
24227 echo "${ECHO_T}$ac_cv_header_openssl_pem_h" >&6
24228
24229 fi
24230 if test $ac_cv_header_openssl_pem_h = yes; then
24231   :
24232 else
24233   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
24234 echo "$as_me: error: unable to find openssl header files" >&2;}
24235    { (exit 1); exit 1; }; }
24236 fi
24237
24238
24239     echo "$as_me:$LINENO: checking for ERR_load_CRYPTO_string" >&5
24240 echo $ECHO_N "checking for ERR_load_CRYPTO_string... $ECHO_C" >&6
24241     cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h.  */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h.  */
24247
24248 /* Override any gcc2 internal prototype to avoid an error.  */
24249 #ifdef __cplusplus
24250 extern "C"
24251 #endif
24252 /* We use char because int might match the return type of a gcc2
24253    builtin and then its argument prototype would still apply.  */
24254 char ERR_load_CRYPTO_strings ();
24255 int
24256 main ()
24257 {
24258 ERR_load_CRYPTO_strings ();
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext conftest$ac_exeext
24264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24265   (eval $ac_link) 2>conftest.er1
24266   ac_status=$?
24267   grep -v '^ *+' conftest.er1 >conftest.err
24268   rm -f conftest.er1
24269   cat conftest.err >&5
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); } &&
24272          { ac_try='test -z "$ac_cxx_werror_flag"
24273                          || test ! -s conftest.err'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; } &&
24279          { ac_try='test -s conftest$ac_exeext'
24280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24281   (eval $ac_try) 2>&5
24282   ac_status=$?
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); }; }; then
24285   :
24286 else
24287   echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290 { { echo "$as_me:$LINENO: error: unable to link with openssl libraries" >&5
24291 echo "$as_me: error: unable to link with openssl libraries" >&2;}
24292    { (exit 1); exit 1; }; }
24293 fi
24294 rm -f conftest.err conftest.$ac_objext \
24295       conftest$ac_exeext conftest.$ac_ext
24296     echo "$as_me:$LINENO: result: yes" >&5
24297 echo "${ECHO_T}yes" >&6
24298
24299     # restore master libs
24300     LIBS="$save_LIBS"
24301
24302     if test x_$with_xmlsec != x_/usr; then
24303         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
24304         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
24305     fi
24306     XMLSEC_LIBS="$XMLSEC_LIBS -lxml-security-c"
24307
24308     # save and append master libs
24309     save_LIBS="$LIBS"
24310     LIBS="$XMLSEC_LIBS $LIBS"
24311
24312     if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24313   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24314 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24315 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24316   echo $ECHO_N "(cached) $ECHO_C" >&6
24317 fi
24318 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24319 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24320 else
24321   # Is the header compilable?
24322 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
24323 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
24324 cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h.  */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h.  */
24330 $ac_includes_default
24331 #include <xsec/utils/XSECPlatformUtils.hpp>
24332 _ACEOF
24333 rm -f conftest.$ac_objext
24334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24335   (eval $ac_compile) 2>conftest.er1
24336   ac_status=$?
24337   grep -v '^ *+' conftest.er1 >conftest.err
24338   rm -f conftest.er1
24339   cat conftest.err >&5
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } &&
24342          { ac_try='test -z "$ac_cxx_werror_flag"
24343                          || test ! -s conftest.err'
24344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345   (eval $ac_try) 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; } &&
24349          { ac_try='test -s conftest.$ac_objext'
24350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351   (eval $ac_try) 2>&5
24352   ac_status=$?
24353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354   (exit $ac_status); }; }; then
24355   ac_header_compiler=yes
24356 else
24357   echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360 ac_header_compiler=no
24361 fi
24362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24364 echo "${ECHO_T}$ac_header_compiler" >&6
24365
24366 # Is the header present?
24367 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24368 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24369 cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375 #include <xsec/utils/XSECPlatformUtils.hpp>
24376 _ACEOF
24377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24379   ac_status=$?
24380   grep -v '^ *+' conftest.er1 >conftest.err
24381   rm -f conftest.er1
24382   cat conftest.err >&5
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); } >/dev/null; then
24385   if test -s conftest.err; then
24386     ac_cpp_err=$ac_cxx_preproc_warn_flag
24387     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24388   else
24389     ac_cpp_err=
24390   fi
24391 else
24392   ac_cpp_err=yes
24393 fi
24394 if test -z "$ac_cpp_err"; then
24395   ac_header_preproc=yes
24396 else
24397   echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24399
24400   ac_header_preproc=no
24401 fi
24402 rm -f conftest.err conftest.$ac_ext
24403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24404 echo "${ECHO_T}$ac_header_preproc" >&6
24405
24406 # So?  What about this header?
24407 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24408   yes:no: )
24409     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24410 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24411     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24412 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24413     ac_header_preproc=yes
24414     ;;
24415   no:yes:* )
24416     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24417 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24418     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
24419 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
24420     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24421 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24422     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
24423 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
24424     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24425 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24426     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24427 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24428     (
24429       cat <<\_ASBOX
24430 ## ------------------------------------------------ ##
24431 ## Report this to mace-opensaml-users@internet2.edu ##
24432 ## ------------------------------------------------ ##
24433 _ASBOX
24434     ) |
24435       sed "s/^/$as_me: WARNING:     /" >&2
24436     ;;
24437 esac
24438 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24439 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24440 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24441   echo $ECHO_N "(cached) $ECHO_C" >&6
24442 else
24443   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24444 fi
24445 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24446 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24447
24448 fi
24449 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24450   :
24451 else
24452   { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24453 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24454    { (exit 1); exit 1; }; }
24455 fi
24456
24457
24458     echo "$as_me:$LINENO: checking XML-Security version" >&5
24459 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24460     cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 #include <xsec/utils/XSECPlatformUtils.hpp>
24467 int
24468 main ()
24469 {
24470 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24471 int i = 0;
24472 #else
24473 #error need version 1.4.0 or later
24474 #endif
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24481   ac_status=$?
24482   grep -v '^ *+' conftest.er1 >conftest.err
24483   rm -f conftest.er1
24484   cat conftest.err >&5
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); } >/dev/null; then
24487   if test -s conftest.err; then
24488     ac_cpp_err=$ac_cxx_preproc_warn_flag
24489     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24490   else
24491     ac_cpp_err=
24492   fi
24493 else
24494   ac_cpp_err=yes
24495 fi
24496 if test -z "$ac_cpp_err"; then
24497   echo "$as_me:$LINENO: result: OK" >&5
24498 echo "${ECHO_T}OK" >&6
24499 else
24500   echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24502
24503   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24504 See \`config.log' for more details." >&5
24505 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24506 See \`config.log' for more details." >&2;}
24507    { (exit 1); exit 1; }; }
24508 fi
24509 rm -f conftest.err conftest.$ac_ext
24510     cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516 #include <xsec/utils/XSECPlatformUtils.hpp>
24517 int
24518 main ()
24519 {
24520 XSECPlatformUtils::Initialise()
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24527   (eval $ac_link) 2>conftest.er1
24528   ac_status=$?
24529   grep -v '^ *+' conftest.er1 >conftest.err
24530   rm -f conftest.er1
24531   cat conftest.err >&5
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } &&
24534          { ac_try='test -z "$ac_cxx_werror_flag"
24535                          || test ! -s conftest.err'
24536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); }; } &&
24541          { ac_try='test -s conftest$ac_exeext'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; }; then
24547   :
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24553 echo "$as_me: error: unable to link with XML-Security" >&2;}
24554    { (exit 1); exit 1; }; }
24555 fi
24556 rm -f conftest.err conftest.$ac_objext \
24557       conftest$ac_exeext conftest.$ac_ext
24558     echo "$as_me:$LINENO: checking for xsecsize_t" >&5
24559 echo $ECHO_N "checking for xsecsize_t... $ECHO_C" >&6
24560 if test "${ac_cv_type_xsecsize_t+set}" = set; then
24561   echo $ECHO_N "(cached) $ECHO_C" >&6
24562 else
24563   cat >conftest.$ac_ext <<_ACEOF
24564 /* confdefs.h.  */
24565 _ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h.  */
24569 $ac_includes_default
24570 int
24571 main ()
24572 {
24573 if ((xsecsize_t *) 0)
24574   return 0;
24575 if (sizeof (xsecsize_t))
24576   return 0;
24577   ;
24578   return 0;
24579 }
24580 _ACEOF
24581 rm -f conftest.$ac_objext
24582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24583   (eval $ac_compile) 2>conftest.er1
24584   ac_status=$?
24585   grep -v '^ *+' conftest.er1 >conftest.err
24586   rm -f conftest.er1
24587   cat conftest.err >&5
24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); } &&
24590          { ac_try='test -z "$ac_cxx_werror_flag"
24591                          || test ! -s conftest.err'
24592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593   (eval $ac_try) 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; } &&
24597          { ac_try='test -s conftest.$ac_objext'
24598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599   (eval $ac_try) 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); }; }; then
24603   ac_cv_type_xsecsize_t=yes
24604 else
24605   echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24607
24608 ac_cv_type_xsecsize_t=no
24609 fi
24610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24611 fi
24612 echo "$as_me:$LINENO: result: $ac_cv_type_xsecsize_t" >&5
24613 echo "${ECHO_T}$ac_cv_type_xsecsize_t" >&6
24614 if test $ac_cv_type_xsecsize_t = yes; then
24615
24616 cat >>confdefs.h <<\_ACEOF
24617 #define HAVE_XSECSIZE_T 1
24618 _ACEOF
24619
24620 fi
24621
24622
24623         # restore master libs
24624         LIBS="$save_LIBS"
24625
24626         # libcurl settings
24627         # Extract the first word of "curl-config", so it can be a program name with args.
24628 set dummy curl-config; ac_word=$2
24629 echo "$as_me:$LINENO: checking for $ac_word" >&5
24630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24631 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634   case $CURL_CONFIG in
24635   [\\/]* | ?:[\\/]*)
24636   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
24637   ;;
24638   *)
24639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24640 for as_dir in $PATH
24641 do
24642   IFS=$as_save_IFS
24643   test -z "$as_dir" && as_dir=.
24644   for ac_exec_ext in '' $ac_executable_extensions; do
24645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24646     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24648     break 2
24649   fi
24650 done
24651 done
24652
24653   ;;
24654 esac
24655 fi
24656 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
24657
24658 if test -n "$CURL_CONFIG"; then
24659   echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
24660 echo "${ECHO_T}$CURL_CONFIG" >&6
24661 else
24662   echo "$as_me:$LINENO: result: no" >&5
24663 echo "${ECHO_T}no" >&6
24664 fi
24665
24666
24667 # Check whether --with-curl or --without-curl was given.
24668 if test "${with_curl+set}" = set; then
24669   withval="$with_curl"
24670
24671             CURL_CONFIG="${with_curl}"
24672             if ! test -f "${CURL_CONFIG}" ; then
24673                 CURL_CONFIG="${with_curl}/bin/curl-config"
24674             fi
24675
24676 fi;
24677         if test -f "${CURL_CONFIG}" ; then
24678             CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
24679             XMLSEC_LIBS="`${CURL_CONFIG} --libs` $XMLSEC_LIBS"
24680         else
24681             { { echo "$as_me:$LINENO: error: curl-config not found, may need to use --with-curl option" >&5
24682 echo "$as_me: error: curl-config not found, may need to use --with-curl option" >&2;}
24683    { (exit 1); exit 1; }; }
24684         fi
24685
24686         # save and append master libs
24687         save_LIBS="$LIBS"
24688         LIBS="$XMLSEC_LIBS $LIBS"
24689
24690         if test "${ac_cv_header_curl_curl_h+set}" = set; then
24691   echo "$as_me:$LINENO: checking for curl/curl.h" >&5
24692 echo $ECHO_N "checking for curl/curl.h... $ECHO_C" >&6
24693 if test "${ac_cv_header_curl_curl_h+set}" = set; then
24694   echo $ECHO_N "(cached) $ECHO_C" >&6
24695 fi
24696 echo "$as_me:$LINENO: result: $ac_cv_header_curl_curl_h" >&5
24697 echo "${ECHO_T}$ac_cv_header_curl_curl_h" >&6
24698 else
24699   # Is the header compilable?
24700 echo "$as_me:$LINENO: checking curl/curl.h usability" >&5
24701 echo $ECHO_N "checking curl/curl.h usability... $ECHO_C" >&6
24702 cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708 $ac_includes_default
24709 #include <curl/curl.h>
24710 _ACEOF
24711 rm -f conftest.$ac_objext
24712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24713   (eval $ac_compile) 2>conftest.er1
24714   ac_status=$?
24715   grep -v '^ *+' conftest.er1 >conftest.err
24716   rm -f conftest.er1
24717   cat conftest.err >&5
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); } &&
24720          { ac_try='test -z "$ac_cxx_werror_flag"
24721                          || test ! -s conftest.err'
24722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24723   (eval $ac_try) 2>&5
24724   ac_status=$?
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); }; } &&
24727          { ac_try='test -s conftest.$ac_objext'
24728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24729   (eval $ac_try) 2>&5
24730   ac_status=$?
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); }; }; then
24733   ac_header_compiler=yes
24734 else
24735   echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738 ac_header_compiler=no
24739 fi
24740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24742 echo "${ECHO_T}$ac_header_compiler" >&6
24743
24744 # Is the header present?
24745 echo "$as_me:$LINENO: checking curl/curl.h presence" >&5
24746 echo $ECHO_N "checking curl/curl.h presence... $ECHO_C" >&6
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h.  */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h.  */
24753 #include <curl/curl.h>
24754 _ACEOF
24755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24757   ac_status=$?
24758   grep -v '^ *+' conftest.er1 >conftest.err
24759   rm -f conftest.er1
24760   cat conftest.err >&5
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); } >/dev/null; then
24763   if test -s conftest.err; then
24764     ac_cpp_err=$ac_cxx_preproc_warn_flag
24765     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24766   else
24767     ac_cpp_err=
24768   fi
24769 else
24770   ac_cpp_err=yes
24771 fi
24772 if test -z "$ac_cpp_err"; then
24773   ac_header_preproc=yes
24774 else
24775   echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24777
24778   ac_header_preproc=no
24779 fi
24780 rm -f conftest.err conftest.$ac_ext
24781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24782 echo "${ECHO_T}$ac_header_preproc" >&6
24783
24784 # So?  What about this header?
24785 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24786   yes:no: )
24787     { echo "$as_me:$LINENO: WARNING: curl/curl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24788 echo "$as_me: WARNING: curl/curl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24789     { echo "$as_me:$LINENO: WARNING: curl/curl.h: proceeding with the compiler's result" >&5
24790 echo "$as_me: WARNING: curl/curl.h: proceeding with the compiler's result" >&2;}
24791     ac_header_preproc=yes
24792     ;;
24793   no:yes:* )
24794     { echo "$as_me:$LINENO: WARNING: curl/curl.h: present but cannot be compiled" >&5
24795 echo "$as_me: WARNING: curl/curl.h: present but cannot be compiled" >&2;}
24796     { echo "$as_me:$LINENO: WARNING: curl/curl.h:     check for missing prerequisite headers?" >&5
24797 echo "$as_me: WARNING: curl/curl.h:     check for missing prerequisite headers?" >&2;}
24798     { echo "$as_me:$LINENO: WARNING: curl/curl.h: see the Autoconf documentation" >&5
24799 echo "$as_me: WARNING: curl/curl.h: see the Autoconf documentation" >&2;}
24800     { echo "$as_me:$LINENO: WARNING: curl/curl.h:     section \"Present But Cannot Be Compiled\"" >&5
24801 echo "$as_me: WARNING: curl/curl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24802     { echo "$as_me:$LINENO: WARNING: curl/curl.h: proceeding with the preprocessor's result" >&5
24803 echo "$as_me: WARNING: curl/curl.h: proceeding with the preprocessor's result" >&2;}
24804     { echo "$as_me:$LINENO: WARNING: curl/curl.h: in the future, the compiler will take precedence" >&5
24805 echo "$as_me: WARNING: curl/curl.h: in the future, the compiler will take precedence" >&2;}
24806     (
24807       cat <<\_ASBOX
24808 ## ------------------------------------------------ ##
24809 ## Report this to mace-opensaml-users@internet2.edu ##
24810 ## ------------------------------------------------ ##
24811 _ASBOX
24812     ) |
24813       sed "s/^/$as_me: WARNING:     /" >&2
24814     ;;
24815 esac
24816 echo "$as_me:$LINENO: checking for curl/curl.h" >&5
24817 echo $ECHO_N "checking for curl/curl.h... $ECHO_C" >&6
24818 if test "${ac_cv_header_curl_curl_h+set}" = set; then
24819   echo $ECHO_N "(cached) $ECHO_C" >&6
24820 else
24821   ac_cv_header_curl_curl_h=$ac_header_preproc
24822 fi
24823 echo "$as_me:$LINENO: result: $ac_cv_header_curl_curl_h" >&5
24824 echo "${ECHO_T}$ac_cv_header_curl_curl_h" >&6
24825
24826 fi
24827 if test $ac_cv_header_curl_curl_h = yes; then
24828   :
24829 else
24830   { { echo "$as_me:$LINENO: error: unable to find libcurl header files" >&5
24831 echo "$as_me: error: unable to find libcurl header files" >&2;}
24832    { (exit 1); exit 1; }; }
24833 fi
24834
24835
24836
24837 echo "$as_me:$LINENO: checking for curl_global_init in -lcurl" >&5
24838 echo $ECHO_N "checking for curl_global_init in -lcurl... $ECHO_C" >&6
24839 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   ac_check_lib_save_LIBS=$LIBS
24843 LIBS="-lcurl  $LIBS"
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850
24851 /* Override any gcc2 internal prototype to avoid an error.  */
24852 #ifdef __cplusplus
24853 extern "C"
24854 #endif
24855 /* We use char because int might match the return type of a gcc2
24856    builtin and then its argument prototype would still apply.  */
24857 char curl_global_init ();
24858 int
24859 main ()
24860 {
24861 curl_global_init ();
24862   ;
24863   return 0;
24864 }
24865 _ACEOF
24866 rm -f conftest.$ac_objext conftest$ac_exeext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868   (eval $ac_link) 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } &&
24875          { ac_try='test -z "$ac_cxx_werror_flag"
24876                          || test ! -s conftest.err'
24877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878   (eval $ac_try) 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); }; } &&
24882          { ac_try='test -s conftest$ac_exeext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   ac_cv_lib_curl_curl_global_init=yes
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24892
24893 ac_cv_lib_curl_curl_global_init=no
24894 fi
24895 rm -f conftest.err conftest.$ac_objext \
24896       conftest$ac_exeext conftest.$ac_ext
24897 LIBS=$ac_check_lib_save_LIBS
24898 fi
24899 echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_global_init" >&5
24900 echo "${ECHO_T}$ac_cv_lib_curl_curl_global_init" >&6
24901 if test $ac_cv_lib_curl_curl_global_init = yes; then
24902   cat >>confdefs.h <<_ACEOF
24903 #define HAVE_LIBCURL 1
24904 _ACEOF
24905
24906   LIBS="-lcurl $LIBS"
24907
24908 else
24909   { { echo "$as_me:$LINENO: error: unable to link with libcurl" >&5
24910 echo "$as_me: error: unable to link with libcurl" >&2;}
24911    { (exit 1); exit 1; }; }
24912 fi
24913
24914         echo "$as_me:$LINENO: checking for CURLOPT_SSL_CTX_FUNCTION in curl.h" >&5
24915 echo $ECHO_N "checking for CURLOPT_SSL_CTX_FUNCTION in curl.h... $ECHO_C" >&6
24916         cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922 #include <curl/curl.h>
24923
24924 _ACEOF
24925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24926   $EGREP "CURLOPT_SSL_CTX_FUNCTION" >/dev/null 2>&1; then
24927   echo "$as_me:$LINENO: result: yes" >&5
24928 echo "${ECHO_T}yes" >&6
24929 else
24930   { { echo "$as_me:$LINENO: error: need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" >&5
24931 echo "$as_me: error: need libcurl that supports CURLOPT_SSL_CTX_FUNCTION" >&2;}
24932    { (exit 1); exit 1; }; }
24933 fi
24934 rm -f conftest*
24935
24936
24937         # restore master libs
24938         LIBS="$save_LIBS"
24939
24940
24941 else
24942     { echo "$as_me:$LINENO: WARNING: xmlsec disabled, building without signature/encryption support" >&5
24943 echo "$as_me: WARNING: xmlsec disabled, building without signature/encryption support" >&2;}
24944
24945 cat >>confdefs.h <<\_ACEOF
24946 #define XMLTOOLING_NO_XMLSEC 1
24947 _ACEOF
24948
24949 fi
24950
24951
24952 if test x_$with_xmlsec != x_no; then
24953   BUILD_XMLSEC_TRUE=
24954   BUILD_XMLSEC_FALSE='#'
24955 else
24956   BUILD_XMLSEC_TRUE='#'
24957   BUILD_XMLSEC_FALSE=
24958 fi
24959
24960
24961 # Does the STL in use help or screw us?
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968 #include <string>
24969 int
24970 main ()
24971 {
24972 std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65
24973   ;
24974   return 0;
24975 }
24976 _ACEOF
24977 rm -f conftest.$ac_objext conftest$ac_exeext
24978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24979   (eval $ac_link) 2>conftest.er1
24980   ac_status=$?
24981   grep -v '^ *+' conftest.er1 >conftest.err
24982   rm -f conftest.er1
24983   cat conftest.err >&5
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); } &&
24986          { ac_try='test -z "$ac_cxx_werror_flag"
24987                          || test ! -s conftest.err'
24988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24989   (eval $ac_try) 2>&5
24990   ac_status=$?
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); }; } &&
24993          { ac_try='test -s conftest$ac_exeext'
24994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24995   (eval $ac_try) 2>&5
24996   ac_status=$?
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); }; }; then
24999
25000 cat >>confdefs.h <<\_ACEOF
25001 #define HAVE_GOOD_STL 1
25002 _ACEOF
25003
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 fi
25009 rm -f conftest.err conftest.$ac_objext \
25010       conftest$ac_exeext conftest.$ac_ext
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017 #include <vector>
25018 int
25019 main ()
25020 {
25021 std::iterator_traits<std::vector<int>::iterator>::value_type foo=0
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext conftest$ac_exeext
25027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25028   (eval $ac_link) 2>conftest.er1
25029   ac_status=$?
25030   grep -v '^ *+' conftest.er1 >conftest.err
25031   rm -f conftest.er1
25032   cat conftest.err >&5
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); } &&
25035          { ac_try='test -z "$ac_cxx_werror_flag"
25036                          || test ! -s conftest.err'
25037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25038   (eval $ac_try) 2>&5
25039   ac_status=$?
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); }; } &&
25042          { ac_try='test -s conftest$ac_exeext'
25043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044   (eval $ac_try) 2>&5
25045   ac_status=$?
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); }; }; then
25048
25049 cat >>confdefs.h <<\_ACEOF
25050 #define HAVE_ITERATOR_TRAITS 1
25051 _ACEOF
25052
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 fi
25058 rm -f conftest.err conftest.$ac_objext \
25059       conftest$ac_exeext conftest.$ac_ext
25060
25061 # Check for unit test support
25062 CXXTEST="/usr/bin/cxxtestgen.pl"
25063 CXXTESTFLAGS=""
25064
25065 # Check whether --with-cxxtest or --without-cxxtest was given.
25066 if test "${with_cxxtest+set}" = set; then
25067   withval="$with_cxxtest"
25068   if test x_$with_cxxtest != x_/usr; then
25069                 CXXTEST="${with_cxxtest}/cxxtestgen.pl"
25070                 CXXTESTFLAGS="-I${with_cxxtest}"
25071             fi
25072 fi;
25073 if ! test -f "${CXXTEST}"; then
25074     { echo "$as_me:$LINENO: WARNING: cxxtestgen not found, won't build unit tests" >&5
25075 echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
25076 fi
25077
25078
25079
25080
25081
25082 if test -f ${CXXTEST}; then
25083   BUILD_UNITTEST_TRUE=
25084   BUILD_UNITTEST_FALSE='#'
25085 else
25086   BUILD_UNITTEST_TRUE='#'
25087   BUILD_UNITTEST_FALSE=
25088 fi
25089
25090
25091 LIBTOOL="$LIBTOOL --silent"
25092
25093 # output packaging and makefiles
25094                               ac_config_files="$ac_config_files xmltooling.spec pkginfo Portfile"
25095
25096                                                   ac_config_files="$ac_config_files Makefile xmltooling/Makefile xmltoolingtest/Makefile schemas/Makefile doc/Makefile"
25097
25098 cat >confcache <<\_ACEOF
25099 # This file is a shell script that caches the results of configure
25100 # tests run on this system so they can be shared between configure
25101 # scripts and configure runs, see configure's option --config-cache.
25102 # It is not useful on other systems.  If it contains results you don't
25103 # want to keep, you may remove or edit it.
25104 #
25105 # config.status only pays attention to the cache file if you give it
25106 # the --recheck option to rerun configure.
25107 #
25108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25110 # following values.
25111
25112 _ACEOF
25113
25114 # The following way of writing the cache mishandles newlines in values,
25115 # but we know of no workaround that is simple, portable, and efficient.
25116 # So, don't put newlines in cache variables' values.
25117 # Ultrix sh set writes to stderr and can't be redirected directly,
25118 # and sets the high bit in the cache file unless we assign to the vars.
25119 {
25120   (set) 2>&1 |
25121     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25122     *ac_space=\ *)
25123       # `set' does not quote correctly, so add quotes (double-quote
25124       # substitution turns \\\\ into \\, and sed turns \\ into \).
25125       sed -n \
25126         "s/'/'\\\\''/g;
25127           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25128       ;;
25129     *)
25130       # `set' quotes correctly as required by POSIX, so do not add quotes.
25131       sed -n \
25132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25133       ;;
25134     esac;
25135 } |
25136   sed '
25137      t clear
25138      : clear
25139      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25140      t end
25141      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25142      : end' >>confcache
25143 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25144   if test -w $cache_file; then
25145     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25146     cat confcache >$cache_file
25147   else
25148     echo "not updating unwritable cache $cache_file"
25149   fi
25150 fi
25151 rm -f confcache
25152
25153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25154 # Let make expand exec_prefix.
25155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25156
25157 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25158 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25159 # trailing colons and then remove the whole line if VPATH becomes empty
25160 # (actually we leave an empty line to preserve line numbers).
25161 if test "x$srcdir" = x.; then
25162   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25163 s/:*\$(srcdir):*/:/;
25164 s/:*\${srcdir}:*/:/;
25165 s/:*@srcdir@:*/:/;
25166 s/^\([^=]*=[     ]*\):*/\1/;
25167 s/:*$//;
25168 s/^[^=]*=[       ]*$//;
25169 }'
25170 fi
25171
25172 DEFS=-DHAVE_CONFIG_H
25173
25174 ac_libobjs=
25175 ac_ltlibobjs=
25176 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25177   # 1. Remove the extension, and $U if already installed.
25178   ac_i=`echo "$ac_i" |
25179          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25180   # 2. Add them.
25181   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25182   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25183 done
25184 LIBOBJS=$ac_libobjs
25185
25186 LTLIBOBJS=$ac_ltlibobjs
25187
25188
25189 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
25190   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
25191 Usually this means the macro was only invoked conditionally." >&5
25192 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
25193 Usually this means the macro was only invoked conditionally." >&2;}
25194    { (exit 1); exit 1; }; }
25195 fi
25196 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
25197   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
25198 Usually this means the macro was only invoked conditionally." >&5
25199 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
25200 Usually this means the macro was only invoked conditionally." >&2;}
25201    { (exit 1); exit 1; }; }
25202 fi
25203 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
25204   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
25205 Usually this means the macro was only invoked conditionally." >&5
25206 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
25207 Usually this means the macro was only invoked conditionally." >&2;}
25208    { (exit 1); exit 1; }; }
25209 fi
25210 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
25211   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
25212 Usually this means the macro was only invoked conditionally." >&5
25213 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
25214 Usually this means the macro was only invoked conditionally." >&2;}
25215    { (exit 1); exit 1; }; }
25216 fi
25217 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
25218   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
25219 Usually this means the macro was only invoked conditionally." >&5
25220 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
25221 Usually this means the macro was only invoked conditionally." >&2;}
25222    { (exit 1); exit 1; }; }
25223 fi
25224 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
25225   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
25226 Usually this means the macro was only invoked conditionally." >&5
25227 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
25228 Usually this means the macro was only invoked conditionally." >&2;}
25229    { (exit 1); exit 1; }; }
25230 fi
25231 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
25232   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
25233 Usually this means the macro was only invoked conditionally." >&5
25234 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
25235 Usually this means the macro was only invoked conditionally." >&2;}
25236    { (exit 1); exit 1; }; }
25237 fi
25238 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
25239   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
25240 Usually this means the macro was only invoked conditionally." >&5
25241 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
25242 Usually this means the macro was only invoked conditionally." >&2;}
25243    { (exit 1); exit 1; }; }
25244 fi
25245 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
25246   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
25247 Usually this means the macro was only invoked conditionally." >&5
25248 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
25249 Usually this means the macro was only invoked conditionally." >&2;}
25250    { (exit 1); exit 1; }; }
25251 fi
25252 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
25253   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
25254 Usually this means the macro was only invoked conditionally." >&5
25255 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
25256 Usually this means the macro was only invoked conditionally." >&2;}
25257    { (exit 1); exit 1; }; }
25258 fi
25259 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
25260   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
25261 Usually this means the macro was only invoked conditionally." >&5
25262 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
25263 Usually this means the macro was only invoked conditionally." >&2;}
25264    { (exit 1); exit 1; }; }
25265 fi
25266 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
25267   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
25268 Usually this means the macro was only invoked conditionally." >&5
25269 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
25270 Usually this means the macro was only invoked conditionally." >&2;}
25271    { (exit 1); exit 1; }; }
25272 fi
25273 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
25274   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
25275 Usually this means the macro was only invoked conditionally." >&5
25276 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
25277 Usually this means the macro was only invoked conditionally." >&2;}
25278    { (exit 1); exit 1; }; }
25279 fi
25280 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
25281   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
25282 Usually this means the macro was only invoked conditionally." >&5
25283 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
25284 Usually this means the macro was only invoked conditionally." >&2;}
25285    { (exit 1); exit 1; }; }
25286 fi
25287 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
25288   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
25289 Usually this means the macro was only invoked conditionally." >&5
25290 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
25291 Usually this means the macro was only invoked conditionally." >&2;}
25292    { (exit 1); exit 1; }; }
25293 fi
25294 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
25295   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
25296 Usually this means the macro was only invoked conditionally." >&5
25297 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
25298 Usually this means the macro was only invoked conditionally." >&2;}
25299    { (exit 1); exit 1; }; }
25300 fi
25301 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
25302   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
25303 Usually this means the macro was only invoked conditionally." >&5
25304 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
25305 Usually this means the macro was only invoked conditionally." >&2;}
25306    { (exit 1); exit 1; }; }
25307 fi
25308 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
25309   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
25310 Usually this means the macro was only invoked conditionally." >&5
25311 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
25312 Usually this means the macro was only invoked conditionally." >&2;}
25313    { (exit 1); exit 1; }; }
25314 fi
25315 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
25316   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
25317 Usually this means the macro was only invoked conditionally." >&5
25318 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
25319 Usually this means the macro was only invoked conditionally." >&2;}
25320    { (exit 1); exit 1; }; }
25321 fi
25322 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
25323   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
25324 Usually this means the macro was only invoked conditionally." >&5
25325 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
25326 Usually this means the macro was only invoked conditionally." >&2;}
25327    { (exit 1); exit 1; }; }
25328 fi
25329 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
25330   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
25331 Usually this means the macro was only invoked conditionally." >&5
25332 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
25333 Usually this means the macro was only invoked conditionally." >&2;}
25334    { (exit 1); exit 1; }; }
25335 fi
25336 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
25337   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
25338 Usually this means the macro was only invoked conditionally." >&5
25339 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
25340 Usually this means the macro was only invoked conditionally." >&2;}
25341    { (exit 1); exit 1; }; }
25342 fi
25343 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25344   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25345 Usually this means the macro was only invoked conditionally." >&5
25346 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25347 Usually this means the macro was only invoked conditionally." >&2;}
25348    { (exit 1); exit 1; }; }
25349 fi
25350 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25351   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25352 Usually this means the macro was only invoked conditionally." >&5
25353 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25354 Usually this means the macro was only invoked conditionally." >&2;}
25355    { (exit 1); exit 1; }; }
25356 fi
25357 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25358   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25359 Usually this means the macro was only invoked conditionally." >&5
25360 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25361 Usually this means the macro was only invoked conditionally." >&2;}
25362    { (exit 1); exit 1; }; }
25363 fi
25364 if test -z "${BUILD_PTHREAD_TRUE}" && test -z "${BUILD_PTHREAD_FALSE}"; then
25365   { { echo "$as_me:$LINENO: error: conditional \"BUILD_PTHREAD\" was never defined.
25366 Usually this means the macro was only invoked conditionally." >&5
25367 echo "$as_me: error: conditional \"BUILD_PTHREAD\" was never defined.
25368 Usually this means the macro was only invoked conditionally." >&2;}
25369    { (exit 1); exit 1; }; }
25370 fi
25371 if test -z "${BUILD_XMLSEC_TRUE}" && test -z "${BUILD_XMLSEC_FALSE}"; then
25372   { { echo "$as_me:$LINENO: error: conditional \"BUILD_XMLSEC\" was never defined.
25373 Usually this means the macro was only invoked conditionally." >&5
25374 echo "$as_me: error: conditional \"BUILD_XMLSEC\" was never defined.
25375 Usually this means the macro was only invoked conditionally." >&2;}
25376    { (exit 1); exit 1; }; }
25377 fi
25378 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
25379   { { echo "$as_me:$LINENO: error: conditional \"BUILD_UNITTEST\" was never defined.
25380 Usually this means the macro was only invoked conditionally." >&5
25381 echo "$as_me: error: conditional \"BUILD_UNITTEST\" was never defined.
25382 Usually this means the macro was only invoked conditionally." >&2;}
25383    { (exit 1); exit 1; }; }
25384 fi
25385
25386 : ${CONFIG_STATUS=./config.status}
25387 ac_clean_files_save=$ac_clean_files
25388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25391 cat >$CONFIG_STATUS <<_ACEOF
25392 #! $SHELL
25393 # Generated by $as_me.
25394 # Run this file to recreate the current configuration.
25395 # Compiler output produced by configure, useful for debugging
25396 # configure, is in config.log if it exists.
25397
25398 debug=false
25399 ac_cs_recheck=false
25400 ac_cs_silent=false
25401 SHELL=\${CONFIG_SHELL-$SHELL}
25402 _ACEOF
25403
25404 cat >>$CONFIG_STATUS <<\_ACEOF
25405 ## --------------------- ##
25406 ## M4sh Initialization.  ##
25407 ## --------------------- ##
25408
25409 # Be Bourne compatible
25410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25411   emulate sh
25412   NULLCMD=:
25413   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25414   # is contrary to our usage.  Disable this feature.
25415   alias -g '${1+"$@"}'='"$@"'
25416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25417   set -o posix
25418 fi
25419 DUALCASE=1; export DUALCASE # for MKS sh
25420
25421 # Support unset when possible.
25422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25423   as_unset=unset
25424 else
25425   as_unset=false
25426 fi
25427
25428
25429 # Work around bugs in pre-3.0 UWIN ksh.
25430 $as_unset ENV MAIL MAILPATH
25431 PS1='$ '
25432 PS2='> '
25433 PS4='+ '
25434
25435 # NLS nuisances.
25436 for as_var in \
25437   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25438   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25439   LC_TELEPHONE LC_TIME
25440 do
25441   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25442     eval $as_var=C; export $as_var
25443   else
25444     $as_unset $as_var
25445   fi
25446 done
25447
25448 # Required to use basename.
25449 if expr a : '\(a\)' >/dev/null 2>&1; then
25450   as_expr=expr
25451 else
25452   as_expr=false
25453 fi
25454
25455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25456   as_basename=basename
25457 else
25458   as_basename=false
25459 fi
25460
25461
25462 # Name of the executable.
25463 as_me=`$as_basename "$0" ||
25464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25465          X"$0" : 'X\(//\)$' \| \
25466          X"$0" : 'X\(/\)$' \| \
25467          .     : '\(.\)' 2>/dev/null ||
25468 echo X/"$0" |
25469     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25470           /^X\/\(\/\/\)$/{ s//\1/; q; }
25471           /^X\/\(\/\).*/{ s//\1/; q; }
25472           s/.*/./; q'`
25473
25474
25475 # PATH needs CR, and LINENO needs CR and PATH.
25476 # Avoid depending upon Character Ranges.
25477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25480 as_cr_digits='0123456789'
25481 as_cr_alnum=$as_cr_Letters$as_cr_digits
25482
25483 # The user is always right.
25484 if test "${PATH_SEPARATOR+set}" != set; then
25485   echo "#! /bin/sh" >conf$$.sh
25486   echo  "exit 0"   >>conf$$.sh
25487   chmod +x conf$$.sh
25488   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25489     PATH_SEPARATOR=';'
25490   else
25491     PATH_SEPARATOR=:
25492   fi
25493   rm -f conf$$.sh
25494 fi
25495
25496
25497   as_lineno_1=$LINENO
25498   as_lineno_2=$LINENO
25499   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25500   test "x$as_lineno_1" != "x$as_lineno_2" &&
25501   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25502   # Find who we are.  Look in the path if we contain no path at all
25503   # relative or not.
25504   case $0 in
25505     *[\\/]* ) as_myself=$0 ;;
25506     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25507 for as_dir in $PATH
25508 do
25509   IFS=$as_save_IFS
25510   test -z "$as_dir" && as_dir=.
25511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25512 done
25513
25514        ;;
25515   esac
25516   # We did not find ourselves, most probably we were run as `sh COMMAND'
25517   # in which case we are not to be found in the path.
25518   if test "x$as_myself" = x; then
25519     as_myself=$0
25520   fi
25521   if test ! -f "$as_myself"; then
25522     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25524    { (exit 1); exit 1; }; }
25525   fi
25526   case $CONFIG_SHELL in
25527   '')
25528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25530 do
25531   IFS=$as_save_IFS
25532   test -z "$as_dir" && as_dir=.
25533   for as_base in sh bash ksh sh5; do
25534          case $as_dir in
25535          /*)
25536            if ("$as_dir/$as_base" -c '
25537   as_lineno_1=$LINENO
25538   as_lineno_2=$LINENO
25539   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25540   test "x$as_lineno_1" != "x$as_lineno_2" &&
25541   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25542              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25543              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25544              CONFIG_SHELL=$as_dir/$as_base
25545              export CONFIG_SHELL
25546              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25547            fi;;
25548          esac
25549        done
25550 done
25551 ;;
25552   esac
25553
25554   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25555   # uniformly replaced by the line number.  The first 'sed' inserts a
25556   # line-number line before each line; the second 'sed' does the real
25557   # work.  The second script uses 'N' to pair each line-number line
25558   # with the numbered line, and appends trailing '-' during
25559   # substitution so that $LINENO is not a special case at line end.
25560   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25561   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25562   sed '=' <$as_myself |
25563     sed '
25564       N
25565       s,$,-,
25566       : loop
25567       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25568       t loop
25569       s,-$,,
25570       s,^['$as_cr_digits']*\n,,
25571     ' >$as_me.lineno &&
25572   chmod +x $as_me.lineno ||
25573     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25575    { (exit 1); exit 1; }; }
25576
25577   # Don't try to exec as it changes $[0], causing all sort of problems
25578   # (the dirname of $[0] is not the place where we might find the
25579   # original and so on.  Autoconf is especially sensible to this).
25580   . ./$as_me.lineno
25581   # Exit status is that of the last command.
25582   exit
25583 }
25584
25585
25586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25587   *c*,-n*) ECHO_N= ECHO_C='
25588 ' ECHO_T='      ' ;;
25589   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25590   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25591 esac
25592
25593 if expr a : '\(a\)' >/dev/null 2>&1; then
25594   as_expr=expr
25595 else
25596   as_expr=false
25597 fi
25598
25599 rm -f conf$$ conf$$.exe conf$$.file
25600 echo >conf$$.file
25601 if ln -s conf$$.file conf$$ 2>/dev/null; then
25602   # We could just check for DJGPP; but this test a) works b) is more generic
25603   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25604   if test -f conf$$.exe; then
25605     # Don't use ln at all; we don't have any links
25606     as_ln_s='cp -p'
25607   else
25608     as_ln_s='ln -s'
25609   fi
25610 elif ln conf$$.file conf$$ 2>/dev/null; then
25611   as_ln_s=ln
25612 else
25613   as_ln_s='cp -p'
25614 fi
25615 rm -f conf$$ conf$$.exe conf$$.file
25616
25617 if mkdir -p . 2>/dev/null; then
25618   as_mkdir_p=:
25619 else
25620   test -d ./-p && rmdir ./-p
25621   as_mkdir_p=false
25622 fi
25623
25624 as_executable_p="test -f"
25625
25626 # Sed expression to map a string onto a valid CPP name.
25627 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25628
25629 # Sed expression to map a string onto a valid variable name.
25630 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25631
25632
25633 # IFS
25634 # We need space, tab and new line, in precisely that order.
25635 as_nl='
25636 '
25637 IFS="   $as_nl"
25638
25639 # CDPATH.
25640 $as_unset CDPATH
25641
25642 exec 6>&1
25643
25644 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25645 # report actual input values of CONFIG_FILES etc. instead of their
25646 # values after options handling.  Logging --version etc. is OK.
25647 exec 5>>config.log
25648 {
25649   echo
25650   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25651 ## Running $as_me. ##
25652 _ASBOX
25653 } >&5
25654 cat >&5 <<_CSEOF
25655
25656 This file was extended by xmltooling $as_me 1.2.2, which was
25657 generated by GNU Autoconf 2.59.  Invocation command line was
25658
25659   CONFIG_FILES    = $CONFIG_FILES
25660   CONFIG_HEADERS  = $CONFIG_HEADERS
25661   CONFIG_LINKS    = $CONFIG_LINKS
25662   CONFIG_COMMANDS = $CONFIG_COMMANDS
25663   $ $0 $@
25664
25665 _CSEOF
25666 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25667 echo >&5
25668 _ACEOF
25669
25670 # Files that config.status was made for.
25671 if test -n "$ac_config_files"; then
25672   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25673 fi
25674
25675 if test -n "$ac_config_headers"; then
25676   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25677 fi
25678
25679 if test -n "$ac_config_links"; then
25680   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25681 fi
25682
25683 if test -n "$ac_config_commands"; then
25684   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25685 fi
25686
25687 cat >>$CONFIG_STATUS <<\_ACEOF
25688
25689 ac_cs_usage="\
25690 \`$as_me' instantiates files from templates according to the
25691 current configuration.
25692
25693 Usage: $0 [OPTIONS] [FILE]...
25694
25695   -h, --help       print this help, then exit
25696   -V, --version    print version number, then exit
25697   -q, --quiet      do not print progress messages
25698   -d, --debug      don't remove temporary files
25699       --recheck    update $as_me by reconfiguring in the same conditions
25700   --file=FILE[:TEMPLATE]
25701                    instantiate the configuration file FILE
25702   --header=FILE[:TEMPLATE]
25703                    instantiate the configuration header FILE
25704
25705 Configuration files:
25706 $config_files
25707
25708 Configuration headers:
25709 $config_headers
25710
25711 Configuration commands:
25712 $config_commands
25713
25714 Report bugs to <bug-autoconf@gnu.org>."
25715 _ACEOF
25716
25717 cat >>$CONFIG_STATUS <<_ACEOF
25718 ac_cs_version="\\
25719 xmltooling config.status 1.2.2
25720 configured by $0, generated by GNU Autoconf 2.59,
25721   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25722
25723 Copyright (C) 2003 Free Software Foundation, Inc.
25724 This config.status script is free software; the Free Software Foundation
25725 gives unlimited permission to copy, distribute and modify it."
25726 srcdir=$srcdir
25727 INSTALL="$INSTALL"
25728 _ACEOF
25729
25730 cat >>$CONFIG_STATUS <<\_ACEOF
25731 # If no file are specified by the user, then we need to provide default
25732 # value.  By we need to know if files were specified by the user.
25733 ac_need_defaults=:
25734 while test $# != 0
25735 do
25736   case $1 in
25737   --*=*)
25738     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25739     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25740     ac_shift=:
25741     ;;
25742   -*)
25743     ac_option=$1
25744     ac_optarg=$2
25745     ac_shift=shift
25746     ;;
25747   *) # This is not an option, so the user has probably given explicit
25748      # arguments.
25749      ac_option=$1
25750      ac_need_defaults=false;;
25751   esac
25752
25753   case $ac_option in
25754   # Handling of the options.
25755 _ACEOF
25756 cat >>$CONFIG_STATUS <<\_ACEOF
25757   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25758     ac_cs_recheck=: ;;
25759   --version | --vers* | -V )
25760     echo "$ac_cs_version"; exit 0 ;;
25761   --he | --h)
25762     # Conflict between --help and --header
25763     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25764 Try \`$0 --help' for more information." >&5
25765 echo "$as_me: error: ambiguous option: $1
25766 Try \`$0 --help' for more information." >&2;}
25767    { (exit 1); exit 1; }; };;
25768   --help | --hel | -h )
25769     echo "$ac_cs_usage"; exit 0 ;;
25770   --debug | --d* | -d )
25771     debug=: ;;
25772   --file | --fil | --fi | --f )
25773     $ac_shift
25774     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25775     ac_need_defaults=false;;
25776   --header | --heade | --head | --hea )
25777     $ac_shift
25778     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25779     ac_need_defaults=false;;
25780   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25781   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25782     ac_cs_silent=: ;;
25783
25784   # This is an error.
25785   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25786 Try \`$0 --help' for more information." >&5
25787 echo "$as_me: error: unrecognized option: $1
25788 Try \`$0 --help' for more information." >&2;}
25789    { (exit 1); exit 1; }; } ;;
25790
25791   *) ac_config_targets="$ac_config_targets $1" ;;
25792
25793   esac
25794   shift
25795 done
25796
25797 ac_configure_extra_args=
25798
25799 if $ac_cs_silent; then
25800   exec 6>/dev/null
25801   ac_configure_extra_args="$ac_configure_extra_args --silent"
25802 fi
25803
25804 _ACEOF
25805 cat >>$CONFIG_STATUS <<_ACEOF
25806 if \$ac_cs_recheck; then
25807   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25808   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25809 fi
25810
25811 _ACEOF
25812
25813 cat >>$CONFIG_STATUS <<_ACEOF
25814 #
25815 # INIT-COMMANDS section.
25816 #
25817
25818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25819
25820 _ACEOF
25821
25822
25823
25824 cat >>$CONFIG_STATUS <<\_ACEOF
25825 for ac_config_target in $ac_config_targets
25826 do
25827   case "$ac_config_target" in
25828   # Handling of arguments.
25829   "xmltooling.spec" ) CONFIG_FILES="$CONFIG_FILES xmltooling.spec" ;;
25830   "pkginfo" ) CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
25831   "Portfile" ) CONFIG_FILES="$CONFIG_FILES Portfile" ;;
25832   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25833   "xmltooling/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmltooling/Makefile" ;;
25834   "xmltoolingtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmltoolingtest/Makefile" ;;
25835   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
25836   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25837   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25838   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25839   "xmltooling/config_pub.h" ) CONFIG_HEADERS="$CONFIG_HEADERS xmltooling/config_pub.h" ;;
25840   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25841 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25842    { (exit 1); exit 1; }; };;
25843   esac
25844 done
25845
25846 # If the user did not use the arguments to specify the items to instantiate,
25847 # then the envvar interface is used.  Set only those that are not.
25848 # We use the long form for the default assignment because of an extremely
25849 # bizarre bug on SunOS 4.1.3.
25850 if $ac_need_defaults; then
25851   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25852   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25853   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25854 fi
25855
25856 # Have a temporary directory for convenience.  Make it in the build tree
25857 # simply because there is no reason to put it here, and in addition,
25858 # creating and moving files from /tmp can sometimes cause problems.
25859 # Create a temporary directory, and hook for its removal unless debugging.
25860 $debug ||
25861 {
25862   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25863   trap '{ (exit 1); exit 1; }' 1 2 13 15
25864 }
25865
25866 # Create a (secure) tmp directory for tmp files.
25867
25868 {
25869   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25870   test -n "$tmp" && test -d "$tmp"
25871 }  ||
25872 {
25873   tmp=./confstat$$-$RANDOM
25874   (umask 077 && mkdir $tmp)
25875 } ||
25876 {
25877    echo "$me: cannot create a temporary directory in ." >&2
25878    { (exit 1); exit 1; }
25879 }
25880
25881 _ACEOF
25882
25883 cat >>$CONFIG_STATUS <<_ACEOF
25884
25885 #
25886 # CONFIG_FILES section.
25887 #
25888
25889 # No need to generate the scripts if there are no CONFIG_FILES.
25890 # This happens for instance when ./config.status config.h
25891 if test -n "\$CONFIG_FILES"; then
25892   # Protect against being on the right side of a sed subst in config.status.
25893   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25894    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25895 s,@SHELL@,$SHELL,;t t
25896 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25897 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25898 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25899 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25900 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25901 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25902 s,@exec_prefix@,$exec_prefix,;t t
25903 s,@prefix@,$prefix,;t t
25904 s,@program_transform_name@,$program_transform_name,;t t
25905 s,@bindir@,$bindir,;t t
25906 s,@sbindir@,$sbindir,;t t
25907 s,@libexecdir@,$libexecdir,;t t
25908 s,@datadir@,$datadir,;t t
25909 s,@sysconfdir@,$sysconfdir,;t t
25910 s,@sharedstatedir@,$sharedstatedir,;t t
25911 s,@localstatedir@,$localstatedir,;t t
25912 s,@libdir@,$libdir,;t t
25913 s,@includedir@,$includedir,;t t
25914 s,@oldincludedir@,$oldincludedir,;t t
25915 s,@infodir@,$infodir,;t t
25916 s,@mandir@,$mandir,;t t
25917 s,@build_alias@,$build_alias,;t t
25918 s,@host_alias@,$host_alias,;t t
25919 s,@target_alias@,$target_alias,;t t
25920 s,@DEFS@,$DEFS,;t t
25921 s,@ECHO_C@,$ECHO_C,;t t
25922 s,@ECHO_N@,$ECHO_N,;t t
25923 s,@ECHO_T@,$ECHO_T,;t t
25924 s,@LIBS@,$LIBS,;t t
25925 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25926 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25927 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25928 s,@CYGPATH_W@,$CYGPATH_W,;t t
25929 s,@PACKAGE@,$PACKAGE,;t t
25930 s,@VERSION@,$VERSION,;t t
25931 s,@ACLOCAL@,$ACLOCAL,;t t
25932 s,@AUTOCONF@,$AUTOCONF,;t t
25933 s,@AUTOMAKE@,$AUTOMAKE,;t t
25934 s,@AUTOHEADER@,$AUTOHEADER,;t t
25935 s,@MAKEINFO@,$MAKEINFO,;t t
25936 s,@install_sh@,$install_sh,;t t
25937 s,@STRIP@,$STRIP,;t t
25938 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25939 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25940 s,@mkdir_p@,$mkdir_p,;t t
25941 s,@AWK@,$AWK,;t t
25942 s,@SET_MAKE@,$SET_MAKE,;t t
25943 s,@am__leading_dot@,$am__leading_dot,;t t
25944 s,@AMTAR@,$AMTAR,;t t
25945 s,@am__tar@,$am__tar,;t t
25946 s,@am__untar@,$am__untar,;t t
25947 s,@DX_PROJECT@,$DX_PROJECT,;t t
25948 s,@DX_CONFIG@,$DX_CONFIG,;t t
25949 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
25950 s,@DX_ENV@,$DX_ENV,;t t
25951 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
25952 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
25953 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
25954 s,@DX_PERL@,$DX_PERL,;t t
25955 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
25956 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
25957 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
25958 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
25959 s,@DX_DOT@,$DX_DOT,;t t
25960 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
25961 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
25962 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
25963 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
25964 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
25965 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
25966 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
25967 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
25968 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
25969 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
25970 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
25971 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
25972 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
25973 s,@DX_HHC@,$DX_HHC,;t t
25974 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
25975 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
25976 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
25977 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
25978 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
25979 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
25980 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
25981 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
25982 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
25983 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
25984 s,@DX_LATEX@,$DX_LATEX,;t t
25985 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
25986 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
25987 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
25988 s,@DX_DVIPS@,$DX_DVIPS,;t t
25989 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
25990 s,@DX_EGREP@,$DX_EGREP,;t t
25991 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
25992 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
25993 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
25994 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25995 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
25996 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
25997 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
25998 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
25999 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
26000 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
26001 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
26002 s,@CC@,$CC,;t t
26003 s,@CFLAGS@,$CFLAGS,;t t
26004 s,@LDFLAGS@,$LDFLAGS,;t t
26005 s,@CPPFLAGS@,$CPPFLAGS,;t t
26006 s,@ac_ct_CC@,$ac_ct_CC,;t t
26007 s,@EXEEXT@,$EXEEXT,;t t
26008 s,@OBJEXT@,$OBJEXT,;t t
26009 s,@DEPDIR@,$DEPDIR,;t t
26010 s,@am__include@,$am__include,;t t
26011 s,@am__quote@,$am__quote,;t t
26012 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26013 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26014 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26015 s,@CCDEPMODE@,$CCDEPMODE,;t t
26016 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26017 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26018 s,@CXX@,$CXX,;t t
26019 s,@CXXFLAGS@,$CXXFLAGS,;t t
26020 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26021 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26022 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26023 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26024 s,@build@,$build,;t t
26025 s,@build_cpu@,$build_cpu,;t t
26026 s,@build_vendor@,$build_vendor,;t t
26027 s,@build_os@,$build_os,;t t
26028 s,@host@,$host,;t t
26029 s,@host_cpu@,$host_cpu,;t t
26030 s,@host_vendor@,$host_vendor,;t t
26031 s,@host_os@,$host_os,;t t
26032 s,@EGREP@,$EGREP,;t t
26033 s,@LN_S@,$LN_S,;t t
26034 s,@ECHO@,$ECHO,;t t
26035 s,@AR@,$AR,;t t
26036 s,@ac_ct_AR@,$ac_ct_AR,;t t
26037 s,@RANLIB@,$RANLIB,;t t
26038 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26039 s,@CPP@,$CPP,;t t
26040 s,@CXXCPP@,$CXXCPP,;t t
26041 s,@F77@,$F77,;t t
26042 s,@FFLAGS@,$FFLAGS,;t t
26043 s,@ac_ct_F77@,$ac_ct_F77,;t t
26044 s,@LIBTOOL@,$LIBTOOL,;t t
26045 s,@acx_pthread_config@,$acx_pthread_config,;t t
26046 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
26047 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
26048 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
26049 s,@BUILD_PTHREAD_TRUE@,$BUILD_PTHREAD_TRUE,;t t
26050 s,@BUILD_PTHREAD_FALSE@,$BUILD_PTHREAD_FALSE,;t t
26051 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
26052 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
26053 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26054 s,@CURL_CONFIG@,$CURL_CONFIG,;t t
26055 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
26056 s,@BUILD_XMLSEC_TRUE@,$BUILD_XMLSEC_TRUE,;t t
26057 s,@BUILD_XMLSEC_FALSE@,$BUILD_XMLSEC_FALSE,;t t
26058 s,@CXXTEST@,$CXXTEST,;t t
26059 s,@CXXTESTFLAGS@,$CXXTESTFLAGS,;t t
26060 s,@BUILD_UNITTEST_TRUE@,$BUILD_UNITTEST_TRUE,;t t
26061 s,@BUILD_UNITTEST_FALSE@,$BUILD_UNITTEST_FALSE,;t t
26062 s,@LIBOBJS@,$LIBOBJS,;t t
26063 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26064 CEOF
26065
26066 _ACEOF
26067
26068   cat >>$CONFIG_STATUS <<\_ACEOF
26069   # Split the substitutions into bite-sized pieces for seds with
26070   # small command number limits, like on Digital OSF/1 and HP-UX.
26071   ac_max_sed_lines=48
26072   ac_sed_frag=1 # Number of current file.
26073   ac_beg=1 # First line for current file.
26074   ac_end=$ac_max_sed_lines # Line after last line for current file.
26075   ac_more_lines=:
26076   ac_sed_cmds=
26077   while $ac_more_lines; do
26078     if test $ac_beg -gt 1; then
26079       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26080     else
26081       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26082     fi
26083     if test ! -s $tmp/subs.frag; then
26084       ac_more_lines=false
26085     else
26086       # The purpose of the label and of the branching condition is to
26087       # speed up the sed processing (if there are no `@' at all, there
26088       # is no need to browse any of the substitutions).
26089       # These are the two extra sed commands mentioned above.
26090       (echo ':t
26091   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26092       if test -z "$ac_sed_cmds"; then
26093         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26094       else
26095         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26096       fi
26097       ac_sed_frag=`expr $ac_sed_frag + 1`
26098       ac_beg=$ac_end
26099       ac_end=`expr $ac_end + $ac_max_sed_lines`
26100     fi
26101   done
26102   if test -z "$ac_sed_cmds"; then
26103     ac_sed_cmds=cat
26104   fi
26105 fi # test -n "$CONFIG_FILES"
26106
26107 _ACEOF
26108 cat >>$CONFIG_STATUS <<\_ACEOF
26109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26110   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26111   case $ac_file in
26112   - | *:- | *:-:* ) # input from stdin
26113         cat >$tmp/stdin
26114         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26116   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26118   * )   ac_file_in=$ac_file.in ;;
26119   esac
26120
26121   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26122   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26124          X"$ac_file" : 'X\(//\)[^/]' \| \
26125          X"$ac_file" : 'X\(//\)$' \| \
26126          X"$ac_file" : 'X\(/\)' \| \
26127          .     : '\(.\)' 2>/dev/null ||
26128 echo X"$ac_file" |
26129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26131           /^X\(\/\/\)$/{ s//\1/; q; }
26132           /^X\(\/\).*/{ s//\1/; q; }
26133           s/.*/./; q'`
26134   { if $as_mkdir_p; then
26135     mkdir -p "$ac_dir"
26136   else
26137     as_dir="$ac_dir"
26138     as_dirs=
26139     while test ! -d "$as_dir"; do
26140       as_dirs="$as_dir $as_dirs"
26141       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26143          X"$as_dir" : 'X\(//\)[^/]' \| \
26144          X"$as_dir" : 'X\(//\)$' \| \
26145          X"$as_dir" : 'X\(/\)' \| \
26146          .     : '\(.\)' 2>/dev/null ||
26147 echo X"$as_dir" |
26148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26149           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26150           /^X\(\/\/\)$/{ s//\1/; q; }
26151           /^X\(\/\).*/{ s//\1/; q; }
26152           s/.*/./; q'`
26153     done
26154     test ! -n "$as_dirs" || mkdir $as_dirs
26155   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26157    { (exit 1); exit 1; }; }; }
26158
26159   ac_builddir=.
26160
26161 if test "$ac_dir" != .; then
26162   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26163   # A "../" for each directory in $ac_dir_suffix.
26164   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26165 else
26166   ac_dir_suffix= ac_top_builddir=
26167 fi
26168
26169 case $srcdir in
26170   .)  # No --srcdir option.  We are building in place.
26171     ac_srcdir=.
26172     if test -z "$ac_top_builddir"; then
26173        ac_top_srcdir=.
26174     else
26175        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26176     fi ;;
26177   [\\/]* | ?:[\\/]* )  # Absolute path.
26178     ac_srcdir=$srcdir$ac_dir_suffix;
26179     ac_top_srcdir=$srcdir ;;
26180   *) # Relative path.
26181     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26182     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26183 esac
26184
26185 # Do not use `cd foo && pwd` to compute absolute paths, because
26186 # the directories may not exist.
26187 case `pwd` in
26188 .) ac_abs_builddir="$ac_dir";;
26189 *)
26190   case "$ac_dir" in
26191   .) ac_abs_builddir=`pwd`;;
26192   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26193   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26194   esac;;
26195 esac
26196 case $ac_abs_builddir in
26197 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26198 *)
26199   case ${ac_top_builddir}. in
26200   .) ac_abs_top_builddir=$ac_abs_builddir;;
26201   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26202   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26203   esac;;
26204 esac
26205 case $ac_abs_builddir in
26206 .) ac_abs_srcdir=$ac_srcdir;;
26207 *)
26208   case $ac_srcdir in
26209   .) ac_abs_srcdir=$ac_abs_builddir;;
26210   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26211   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26212   esac;;
26213 esac
26214 case $ac_abs_builddir in
26215 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26216 *)
26217   case $ac_top_srcdir in
26218   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26219   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26220   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26221   esac;;
26222 esac
26223
26224
26225   case $INSTALL in
26226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26227   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26228   esac
26229
26230   if test x"$ac_file" != x-; then
26231     { echo "$as_me:$LINENO: creating $ac_file" >&5
26232 echo "$as_me: creating $ac_file" >&6;}
26233     rm -f "$ac_file"
26234   fi
26235   # Let's still pretend it is `configure' which instantiates (i.e., don't
26236   # use $as_me), people would be surprised to read:
26237   #    /* config.h.  Generated by config.status.  */
26238   if test x"$ac_file" = x-; then
26239     configure_input=
26240   else
26241     configure_input="$ac_file.  "
26242   fi
26243   configure_input=$configure_input"Generated from `echo $ac_file_in |
26244                                      sed 's,.*/,,'` by configure."
26245
26246   # First look for the input files in the build tree, otherwise in the
26247   # src tree.
26248   ac_file_inputs=`IFS=:
26249     for f in $ac_file_in; do
26250       case $f in
26251       -) echo $tmp/stdin ;;
26252       [\\/$]*)
26253          # Absolute (can't be DOS-style, as IFS=:)
26254          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26255 echo "$as_me: error: cannot find input file: $f" >&2;}
26256    { (exit 1); exit 1; }; }
26257          echo "$f";;
26258       *) # Relative
26259          if test -f "$f"; then
26260            # Build tree
26261            echo "$f"
26262          elif test -f "$srcdir/$f"; then
26263            # Source tree
26264            echo "$srcdir/$f"
26265          else
26266            # /dev/null tree
26267            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26268 echo "$as_me: error: cannot find input file: $f" >&2;}
26269    { (exit 1); exit 1; }; }
26270          fi;;
26271       esac
26272     done` || { (exit 1); exit 1; }
26273 _ACEOF
26274 cat >>$CONFIG_STATUS <<_ACEOF
26275   sed "$ac_vpsub
26276 $extrasub
26277 _ACEOF
26278 cat >>$CONFIG_STATUS <<\_ACEOF
26279 :t
26280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26281 s,@configure_input@,$configure_input,;t t
26282 s,@srcdir@,$ac_srcdir,;t t
26283 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26284 s,@top_srcdir@,$ac_top_srcdir,;t t
26285 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26286 s,@builddir@,$ac_builddir,;t t
26287 s,@abs_builddir@,$ac_abs_builddir,;t t
26288 s,@top_builddir@,$ac_top_builddir,;t t
26289 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26290 s,@INSTALL@,$ac_INSTALL,;t t
26291 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26292   rm -f $tmp/stdin
26293   if test x"$ac_file" != x-; then
26294     mv $tmp/out $ac_file
26295   else
26296     cat $tmp/out
26297     rm -f $tmp/out
26298   fi
26299
26300 done
26301 _ACEOF
26302 cat >>$CONFIG_STATUS <<\_ACEOF
26303
26304 #
26305 # CONFIG_HEADER section.
26306 #
26307
26308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26310 #
26311 # ac_d sets the value in "#define NAME VALUE" lines.
26312 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26313 ac_dB='[         ].*$,\1#\2'
26314 ac_dC=' '
26315 ac_dD=',;t'
26316 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26317 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26318 ac_uB='$,\1#\2define\3'
26319 ac_uC=' '
26320 ac_uD=',;t'
26321
26322 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26323   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26324   case $ac_file in
26325   - | *:- | *:-:* ) # input from stdin
26326         cat >$tmp/stdin
26327         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26328         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26329   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26331   * )   ac_file_in=$ac_file.in ;;
26332   esac
26333
26334   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26335 echo "$as_me: creating $ac_file" >&6;}
26336
26337   # First look for the input files in the build tree, otherwise in the
26338   # src tree.
26339   ac_file_inputs=`IFS=:
26340     for f in $ac_file_in; do
26341       case $f in
26342       -) echo $tmp/stdin ;;
26343       [\\/$]*)
26344          # Absolute (can't be DOS-style, as IFS=:)
26345          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26346 echo "$as_me: error: cannot find input file: $f" >&2;}
26347    { (exit 1); exit 1; }; }
26348          # Do quote $f, to prevent DOS paths from being IFS'd.
26349          echo "$f";;
26350       *) # Relative
26351          if test -f "$f"; then
26352            # Build tree
26353            echo "$f"
26354          elif test -f "$srcdir/$f"; then
26355            # Source tree
26356            echo "$srcdir/$f"
26357          else
26358            # /dev/null tree
26359            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26360 echo "$as_me: error: cannot find input file: $f" >&2;}
26361    { (exit 1); exit 1; }; }
26362          fi;;
26363       esac
26364     done` || { (exit 1); exit 1; }
26365   # Remove the trailing spaces.
26366   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26367
26368 _ACEOF
26369
26370 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26371 # `conftest.undefs', that substitutes the proper values into
26372 # config.h.in to produce config.h.  The first handles `#define'
26373 # templates, and the second `#undef' templates.
26374 # And first: Protect against being on the right side of a sed subst in
26375 # config.status.  Protect against being in an unquoted here document
26376 # in config.status.
26377 rm -f conftest.defines conftest.undefs
26378 # Using a here document instead of a string reduces the quoting nightmare.
26379 # Putting comments in sed scripts is not portable.
26380 #
26381 # `end' is used to avoid that the second main sed command (meant for
26382 # 0-ary CPP macros) applies to n-ary macro definitions.
26383 # See the Autoconf documentation for `clear'.
26384 cat >confdef2sed.sed <<\_ACEOF
26385 s/[\\&,]/\\&/g
26386 s,[\\$`],\\&,g
26387 t clear
26388 : clear
26389 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26390 t end
26391 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26392 : end
26393 _ACEOF
26394 # If some macros were called several times there might be several times
26395 # the same #defines, which is useless.  Nevertheless, we may not want to
26396 # sort them, since we want the *last* AC-DEFINE to be honored.
26397 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26398 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26399 rm -f confdef2sed.sed
26400
26401 # This sed command replaces #undef with comments.  This is necessary, for
26402 # example, in the case of _POSIX_SOURCE, which is predefined and required
26403 # on some systems where configure will not decide to define it.
26404 cat >>conftest.undefs <<\_ACEOF
26405 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26406 _ACEOF
26407
26408 # Break up conftest.defines because some shells have a limit on the size
26409 # of here documents, and old seds have small limits too (100 cmds).
26410 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26411 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26412 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26413 echo '  :' >>$CONFIG_STATUS
26414 rm -f conftest.tail
26415 while grep . conftest.defines >/dev/null
26416 do
26417   # Write a limited-size here document to $tmp/defines.sed.
26418   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26419   # Speed up: don't consider the non `#define' lines.
26420   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26421   # Work around the forget-to-reset-the-flag bug.
26422   echo 't clr' >>$CONFIG_STATUS
26423   echo ': clr' >>$CONFIG_STATUS
26424   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26425   echo 'CEOF
26426   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26427   rm -f $tmp/in
26428   mv $tmp/out $tmp/in
26429 ' >>$CONFIG_STATUS
26430   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26431   rm -f conftest.defines
26432   mv conftest.tail conftest.defines
26433 done
26434 rm -f conftest.defines
26435 echo '  fi # grep' >>$CONFIG_STATUS
26436 echo >>$CONFIG_STATUS
26437
26438 # Break up conftest.undefs because some shells have a limit on the size
26439 # of here documents, and old seds have small limits too (100 cmds).
26440 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26441 rm -f conftest.tail
26442 while grep . conftest.undefs >/dev/null
26443 do
26444   # Write a limited-size here document to $tmp/undefs.sed.
26445   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26446   # Speed up: don't consider the non `#undef'
26447   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26448   # Work around the forget-to-reset-the-flag bug.
26449   echo 't clr' >>$CONFIG_STATUS
26450   echo ': clr' >>$CONFIG_STATUS
26451   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26452   echo 'CEOF
26453   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26454   rm -f $tmp/in
26455   mv $tmp/out $tmp/in
26456 ' >>$CONFIG_STATUS
26457   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26458   rm -f conftest.undefs
26459   mv conftest.tail conftest.undefs
26460 done
26461 rm -f conftest.undefs
26462
26463 cat >>$CONFIG_STATUS <<\_ACEOF
26464   # Let's still pretend it is `configure' which instantiates (i.e., don't
26465   # use $as_me), people would be surprised to read:
26466   #    /* config.h.  Generated by config.status.  */
26467   if test x"$ac_file" = x-; then
26468     echo "/* Generated by configure.  */" >$tmp/config.h
26469   else
26470     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26471   fi
26472   cat $tmp/in >>$tmp/config.h
26473   rm -f $tmp/in
26474   if test x"$ac_file" != x-; then
26475     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26476       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26477 echo "$as_me: $ac_file is unchanged" >&6;}
26478     else
26479       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26481          X"$ac_file" : 'X\(//\)[^/]' \| \
26482          X"$ac_file" : 'X\(//\)$' \| \
26483          X"$ac_file" : 'X\(/\)' \| \
26484          .     : '\(.\)' 2>/dev/null ||
26485 echo X"$ac_file" |
26486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26488           /^X\(\/\/\)$/{ s//\1/; q; }
26489           /^X\(\/\).*/{ s//\1/; q; }
26490           s/.*/./; q'`
26491       { if $as_mkdir_p; then
26492     mkdir -p "$ac_dir"
26493   else
26494     as_dir="$ac_dir"
26495     as_dirs=
26496     while test ! -d "$as_dir"; do
26497       as_dirs="$as_dir $as_dirs"
26498       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26500          X"$as_dir" : 'X\(//\)[^/]' \| \
26501          X"$as_dir" : 'X\(//\)$' \| \
26502          X"$as_dir" : 'X\(/\)' \| \
26503          .     : '\(.\)' 2>/dev/null ||
26504 echo X"$as_dir" |
26505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26506           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26507           /^X\(\/\/\)$/{ s//\1/; q; }
26508           /^X\(\/\).*/{ s//\1/; q; }
26509           s/.*/./; q'`
26510     done
26511     test ! -n "$as_dirs" || mkdir $as_dirs
26512   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26514    { (exit 1); exit 1; }; }; }
26515
26516       rm -f $ac_file
26517       mv $tmp/config.h $ac_file
26518     fi
26519   else
26520     cat $tmp/config.h
26521     rm -f $tmp/config.h
26522   fi
26523 # Compute $ac_file's index in $config_headers.
26524 _am_stamp_count=1
26525 for _am_header in $config_headers :; do
26526   case $_am_header in
26527     $ac_file | $ac_file:* )
26528       break ;;
26529     * )
26530       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26531   esac
26532 done
26533 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26534 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26535          X$ac_file : 'X\(//\)[^/]' \| \
26536          X$ac_file : 'X\(//\)$' \| \
26537          X$ac_file : 'X\(/\)' \| \
26538          .     : '\(.\)' 2>/dev/null ||
26539 echo X$ac_file |
26540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26542           /^X\(\/\/\)$/{ s//\1/; q; }
26543           /^X\(\/\).*/{ s//\1/; q; }
26544           s/.*/./; q'`/stamp-h$_am_stamp_count
26545 done
26546 _ACEOF
26547 cat >>$CONFIG_STATUS <<\_ACEOF
26548
26549 #
26550 # CONFIG_COMMANDS section.
26551 #
26552 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26553   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26554   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26555   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26556 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26557          X"$ac_dest" : 'X\(//\)[^/]' \| \
26558          X"$ac_dest" : 'X\(//\)$' \| \
26559          X"$ac_dest" : 'X\(/\)' \| \
26560          .     : '\(.\)' 2>/dev/null ||
26561 echo X"$ac_dest" |
26562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26564           /^X\(\/\/\)$/{ s//\1/; q; }
26565           /^X\(\/\).*/{ s//\1/; q; }
26566           s/.*/./; q'`
26567   { if $as_mkdir_p; then
26568     mkdir -p "$ac_dir"
26569   else
26570     as_dir="$ac_dir"
26571     as_dirs=
26572     while test ! -d "$as_dir"; do
26573       as_dirs="$as_dir $as_dirs"
26574       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26576          X"$as_dir" : 'X\(//\)[^/]' \| \
26577          X"$as_dir" : 'X\(//\)$' \| \
26578          X"$as_dir" : 'X\(/\)' \| \
26579          .     : '\(.\)' 2>/dev/null ||
26580 echo X"$as_dir" |
26581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26583           /^X\(\/\/\)$/{ s//\1/; q; }
26584           /^X\(\/\).*/{ s//\1/; q; }
26585           s/.*/./; q'`
26586     done
26587     test ! -n "$as_dirs" || mkdir $as_dirs
26588   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26590    { (exit 1); exit 1; }; }; }
26591
26592   ac_builddir=.
26593
26594 if test "$ac_dir" != .; then
26595   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26596   # A "../" for each directory in $ac_dir_suffix.
26597   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26598 else
26599   ac_dir_suffix= ac_top_builddir=
26600 fi
26601
26602 case $srcdir in
26603   .)  # No --srcdir option.  We are building in place.
26604     ac_srcdir=.
26605     if test -z "$ac_top_builddir"; then
26606        ac_top_srcdir=.
26607     else
26608        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26609     fi ;;
26610   [\\/]* | ?:[\\/]* )  # Absolute path.
26611     ac_srcdir=$srcdir$ac_dir_suffix;
26612     ac_top_srcdir=$srcdir ;;
26613   *) # Relative path.
26614     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26615     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26616 esac
26617
26618 # Do not use `cd foo && pwd` to compute absolute paths, because
26619 # the directories may not exist.
26620 case `pwd` in
26621 .) ac_abs_builddir="$ac_dir";;
26622 *)
26623   case "$ac_dir" in
26624   .) ac_abs_builddir=`pwd`;;
26625   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26626   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26627   esac;;
26628 esac
26629 case $ac_abs_builddir in
26630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26631 *)
26632   case ${ac_top_builddir}. in
26633   .) ac_abs_top_builddir=$ac_abs_builddir;;
26634   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26635   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26636   esac;;
26637 esac
26638 case $ac_abs_builddir in
26639 .) ac_abs_srcdir=$ac_srcdir;;
26640 *)
26641   case $ac_srcdir in
26642   .) ac_abs_srcdir=$ac_abs_builddir;;
26643   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26644   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26645   esac;;
26646 esac
26647 case $ac_abs_builddir in
26648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26649 *)
26650   case $ac_top_srcdir in
26651   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26652   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26653   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26654   esac;;
26655 esac
26656
26657
26658   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26659 echo "$as_me: executing $ac_dest commands" >&6;}
26660   case $ac_dest in
26661     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26662   # Strip MF so we end up with the name of the file.
26663   mf=`echo "$mf" | sed -e 's/:.*$//'`
26664   # Check whether this is an Automake generated Makefile or not.
26665   # We used to match only the files named `Makefile.in', but
26666   # some people rename them; so instead we look at the file content.
26667   # Grep'ing the first line is not enough: some people post-process
26668   # each Makefile.in and add a new line on top of each file to say so.
26669   # So let's grep whole file.
26670   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26671     dirpart=`(dirname "$mf") 2>/dev/null ||
26672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26673          X"$mf" : 'X\(//\)[^/]' \| \
26674          X"$mf" : 'X\(//\)$' \| \
26675          X"$mf" : 'X\(/\)' \| \
26676          .     : '\(.\)' 2>/dev/null ||
26677 echo X"$mf" |
26678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26680           /^X\(\/\/\)$/{ s//\1/; q; }
26681           /^X\(\/\).*/{ s//\1/; q; }
26682           s/.*/./; q'`
26683   else
26684     continue
26685   fi
26686   # Extract the definition of DEPDIR, am__include, and am__quote
26687   # from the Makefile without running `make'.
26688   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26689   test -z "$DEPDIR" && continue
26690   am__include=`sed -n 's/^am__include = //p' < "$mf"`
26691   test -z "am__include" && continue
26692   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26693   # When using ansi2knr, U may be empty or an underscore; expand it
26694   U=`sed -n 's/^U = //p' < "$mf"`
26695   # Find all dependency output files, they are included files with
26696   # $(DEPDIR) in their names.  We invoke sed twice because it is the
26697   # simplest approach to changing $(DEPDIR) to its actual value in the
26698   # expansion.
26699   for file in `sed -n "
26700     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26701        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26702     # Make sure the directory exists.
26703     test -f "$dirpart/$file" && continue
26704     fdir=`(dirname "$file") 2>/dev/null ||
26705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26706          X"$file" : 'X\(//\)[^/]' \| \
26707          X"$file" : 'X\(//\)$' \| \
26708          X"$file" : 'X\(/\)' \| \
26709          .     : '\(.\)' 2>/dev/null ||
26710 echo X"$file" |
26711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26713           /^X\(\/\/\)$/{ s//\1/; q; }
26714           /^X\(\/\).*/{ s//\1/; q; }
26715           s/.*/./; q'`
26716     { if $as_mkdir_p; then
26717     mkdir -p $dirpart/$fdir
26718   else
26719     as_dir=$dirpart/$fdir
26720     as_dirs=
26721     while test ! -d "$as_dir"; do
26722       as_dirs="$as_dir $as_dirs"
26723       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26725          X"$as_dir" : 'X\(//\)[^/]' \| \
26726          X"$as_dir" : 'X\(//\)$' \| \
26727          X"$as_dir" : 'X\(/\)' \| \
26728          .     : '\(.\)' 2>/dev/null ||
26729 echo X"$as_dir" |
26730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26732           /^X\(\/\/\)$/{ s//\1/; q; }
26733           /^X\(\/\).*/{ s//\1/; q; }
26734           s/.*/./; q'`
26735     done
26736     test ! -n "$as_dirs" || mkdir $as_dirs
26737   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26738 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26739    { (exit 1); exit 1; }; }; }
26740
26741     # echo "creating $dirpart/$file"
26742     echo '# dummy' > "$dirpart/$file"
26743   done
26744 done
26745  ;;
26746   esac
26747 done
26748 _ACEOF
26749
26750 cat >>$CONFIG_STATUS <<\_ACEOF
26751
26752 { (exit 0); exit 0; }
26753 _ACEOF
26754 chmod +x $CONFIG_STATUS
26755 ac_clean_files=$ac_clean_files_save
26756
26757
26758 # configure is writing to config.log, and then calls config.status.
26759 # config.status does its own redirection, appending to config.log.
26760 # Unfortunately, on DOS this fails, as config.log is still kept open
26761 # by configure, so config.status won't be able to write to it; its
26762 # output is simply discarded.  So we exec the FD to /dev/null,
26763 # effectively closing config.log, so it can be properly (re)opened and
26764 # appended to by config.status.  When coming back to configure, we
26765 # need to make the FD available again.
26766 if test "$no_create" != yes; then
26767   ac_cs_success=:
26768   ac_config_status_args=
26769   test "$silent" = yes &&
26770     ac_config_status_args="$ac_config_status_args --quiet"
26771   exec 5>/dev/null
26772   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26773   exec 5>>config.log
26774   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26775   # would make configure fail if this is the last instruction.
26776   $ac_cs_success || { (exit 1); exit 1; }
26777 fi
26778