Imported Upstream version 2.3
[shibboleth/opensaml2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for opensaml 2.3.
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='opensaml'
425 PACKAGE_TARNAME='saml'
426 PACKAGE_VERSION='2.3'
427 PACKAGE_STRING='opensaml 2.3'
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 PKG_CONFIG LOG4SHIB_CONFIG LOG4CPP_CONFIG CXXTEST CXXTESTFLAGS BUILD_UNITTEST_TRUE BUILD_UNITTEST_FALSE DX_INCLUDE 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 opensaml 2.3 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 opensaml 2.3:";;
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-zlib=PATH        where zlib is installed
1064   --with-openssl=PATH     where openssl is installed
1065   --with-log4shib=PATH    where log4shib-config is installed
1066   --with-log4cpp=PATH     where log4cpp-config is installed
1067   --with-xerces=PATH      where xerces-c is installed
1068   --with-xmlsec=PATH      where xmlsec is installed
1069   --with-xmltooling=PATH  where xmltooling is installed
1070   --with-cxxtest=PATH     where cxxtest is installed
1071
1072 Some influential environment variables:
1073   DOXYGEN_PAPER_SIZE
1074               a4wide (default), a4, letter, legal or executive
1075   CC          C compiler command
1076   CFLAGS      C compiler flags
1077   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1078               nonstandard directory <lib dir>
1079   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080               headers in a nonstandard directory <include dir>
1081   CXX         C++ compiler command
1082   CXXFLAGS    C++ compiler flags
1083   CPP         C preprocessor
1084   CXXCPP      C++ preprocessor
1085   F77         Fortran 77 compiler command
1086   FFLAGS      Fortran 77 compiler flags
1087
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1090
1091 Report bugs to <mace-opensaml-users@internet2.edu>.
1092 _ACEOF
1093 fi
1094
1095 if test "$ac_init_help" = "recursive"; then
1096   # If there are subdirs, report their specific --help.
1097   ac_popdir=`pwd`
1098   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099     test -d $ac_dir || continue
1100     ac_builddir=.
1101
1102 if test "$ac_dir" != .; then
1103   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104   # A "../" for each directory in $ac_dir_suffix.
1105   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106 else
1107   ac_dir_suffix= ac_top_builddir=
1108 fi
1109
1110 case $srcdir in
1111   .)  # No --srcdir option.  We are building in place.
1112     ac_srcdir=.
1113     if test -z "$ac_top_builddir"; then
1114        ac_top_srcdir=.
1115     else
1116        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117     fi ;;
1118   [\\/]* | ?:[\\/]* )  # Absolute path.
1119     ac_srcdir=$srcdir$ac_dir_suffix;
1120     ac_top_srcdir=$srcdir ;;
1121   *) # Relative path.
1122     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124 esac
1125
1126 # Do not use `cd foo && pwd` to compute absolute paths, because
1127 # the directories may not exist.
1128 case `pwd` in
1129 .) ac_abs_builddir="$ac_dir";;
1130 *)
1131   case "$ac_dir" in
1132   .) ac_abs_builddir=`pwd`;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1139 *)
1140   case ${ac_top_builddir}. in
1141   .) ac_abs_top_builddir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_srcdir=$ac_srcdir;;
1148 *)
1149   case $ac_srcdir in
1150   .) ac_abs_srcdir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1157 *)
1158   case $ac_top_srcdir in
1159   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162   esac;;
1163 esac
1164
1165     cd $ac_dir
1166     # Check for guested configure; otherwise get Cygnus style configure.
1167     if test -f $ac_srcdir/configure.gnu; then
1168       echo
1169       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1170     elif test -f $ac_srcdir/configure; then
1171       echo
1172       $SHELL $ac_srcdir/configure  --help=recursive
1173     elif test -f $ac_srcdir/configure.ac ||
1174            test -f $ac_srcdir/configure.in; then
1175       echo
1176       $ac_configure --help
1177     else
1178       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179     fi
1180     cd $ac_popdir
1181   done
1182 fi
1183
1184 test -n "$ac_init_help" && exit 0
1185 if $ac_init_version; then
1186   cat <<\_ACEOF
1187 opensaml configure 2.3
1188 generated by GNU Autoconf 2.59
1189
1190 Copyright (C) 2003 Free Software Foundation, Inc.
1191 This configure script is free software; the Free Software Foundation
1192 gives unlimited permission to copy, distribute and modify it.
1193 _ACEOF
1194   exit 0
1195 fi
1196 exec 5>config.log
1197 cat >&5 <<_ACEOF
1198 This file contains any messages produced by compilers while
1199 running configure, to aid debugging if configure makes a mistake.
1200
1201 It was created by opensaml $as_me 2.3, which was
1202 generated by GNU Autoconf 2.59.  Invocation command line was
1203
1204   $ $0 $@
1205
1206 _ACEOF
1207 {
1208 cat <<_ASUNAME
1209 ## --------- ##
1210 ## Platform. ##
1211 ## --------- ##
1212
1213 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1221
1222 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1223 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1224 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1226 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1227 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1228 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1229
1230 _ASUNAME
1231
1232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233 for as_dir in $PATH
1234 do
1235   IFS=$as_save_IFS
1236   test -z "$as_dir" && as_dir=.
1237   echo "PATH: $as_dir"
1238 done
1239
1240 } >&5
1241
1242 cat >&5 <<_ACEOF
1243
1244
1245 ## ----------- ##
1246 ## Core tests. ##
1247 ## ----------- ##
1248
1249 _ACEOF
1250
1251
1252 # Keep a trace of the command line.
1253 # Strip out --no-create and --no-recursion so they do not pile up.
1254 # Strip out --silent because we don't want to record it for future runs.
1255 # Also quote any args containing shell meta-characters.
1256 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_configure_args=
1258 ac_configure_args0=
1259 ac_configure_args1=
1260 ac_sep=
1261 ac_must_keep_next=false
1262 for ac_pass in 1 2
1263 do
1264   for ac_arg
1265   do
1266     case $ac_arg in
1267     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269     | -silent | --silent | --silen | --sile | --sil)
1270       continue ;;
1271     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273     esac
1274     case $ac_pass in
1275     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276     2)
1277       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278       if test $ac_must_keep_next = true; then
1279         ac_must_keep_next=false # Got value, back to normal.
1280       else
1281         case $ac_arg in
1282           *=* | --config-cache | -C | -disable-* | --disable-* \
1283           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285           | -with-* | --with-* | -without-* | --without-* | --x)
1286             case "$ac_configure_args0 " in
1287               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288             esac
1289             ;;
1290           -* ) ac_must_keep_next=true ;;
1291         esac
1292       fi
1293       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294       # Get rid of the leading space.
1295       ac_sep=" "
1296       ;;
1297     esac
1298   done
1299 done
1300 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303 # When interrupted or exit'd, cleanup temporary files, and complete
1304 # config.log.  We remove comments because anyway the quotes in there
1305 # would cause problems or look ugly.
1306 # WARNING: Be sure not to use single quotes in there, as some shells,
1307 # such as our DU 5.0 friend, will then `close' the trap.
1308 trap 'exit_status=$?
1309   # Save into config.log some information that might help in debugging.
1310   {
1311     echo
1312
1313     cat <<\_ASBOX
1314 ## ---------------- ##
1315 ## Cache variables. ##
1316 ## ---------------- ##
1317 _ASBOX
1318     echo
1319     # The following way of writing the cache mishandles newlines in values,
1320 {
1321   (set) 2>&1 |
1322     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323     *ac_space=\ *)
1324       sed -n \
1325         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327       ;;
1328     *)
1329       sed -n \
1330         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331       ;;
1332     esac;
1333 }
1334     echo
1335
1336     cat <<\_ASBOX
1337 ## ----------------- ##
1338 ## Output variables. ##
1339 ## ----------------- ##
1340 _ASBOX
1341     echo
1342     for ac_var in $ac_subst_vars
1343     do
1344       eval ac_val=$`echo $ac_var`
1345       echo "$ac_var='"'"'$ac_val'"'"'"
1346     done | sort
1347     echo
1348
1349     if test -n "$ac_subst_files"; then
1350       cat <<\_ASBOX
1351 ## ------------- ##
1352 ## Output files. ##
1353 ## ------------- ##
1354 _ASBOX
1355       echo
1356       for ac_var in $ac_subst_files
1357       do
1358         eval ac_val=$`echo $ac_var`
1359         echo "$ac_var='"'"'$ac_val'"'"'"
1360       done | sort
1361       echo
1362     fi
1363
1364     if test -s confdefs.h; then
1365       cat <<\_ASBOX
1366 ## ----------- ##
1367 ## confdefs.h. ##
1368 ## ----------- ##
1369 _ASBOX
1370       echo
1371       sed "/^$/d" confdefs.h | sort
1372       echo
1373     fi
1374     test "$ac_signal" != 0 &&
1375       echo "$as_me: caught signal $ac_signal"
1376     echo "$as_me: exit $exit_status"
1377   } >&5
1378   rm -f core *.core &&
1379   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380     exit $exit_status
1381      ' 0
1382 for ac_signal in 1 2 13 15; do
1383   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384 done
1385 ac_signal=0
1386
1387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1388 rm -rf conftest* confdefs.h
1389 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390 echo >confdefs.h
1391
1392 # Predefined preprocessor variables.
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_NAME "$PACKAGE_NAME"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1406 _ACEOF
1407
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_STRING "$PACKAGE_STRING"
1411 _ACEOF
1412
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416 _ACEOF
1417
1418
1419 # Let the site file select an alternate cache file if it wants to.
1420 # Prefer explicitly selected file to automatically selected ones.
1421 if test -z "$CONFIG_SITE"; then
1422   if test "x$prefix" != xNONE; then
1423     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424   else
1425     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426   fi
1427 fi
1428 for ac_site_file in $CONFIG_SITE; do
1429   if test -r "$ac_site_file"; then
1430     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431 echo "$as_me: loading site script $ac_site_file" >&6;}
1432     sed 's/^/| /' "$ac_site_file" >&5
1433     . "$ac_site_file"
1434   fi
1435 done
1436
1437 if test -r "$cache_file"; then
1438   # Some versions of bash will fail to source /dev/null (special
1439   # files actually), so we avoid doing that.
1440   if test -f "$cache_file"; then
1441     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442 echo "$as_me: loading cache $cache_file" >&6;}
1443     case $cache_file in
1444       [\\/]* | ?:[\\/]* ) . $cache_file;;
1445       *)                      . ./$cache_file;;
1446     esac
1447   fi
1448 else
1449   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450 echo "$as_me: creating cache $cache_file" >&6;}
1451   >$cache_file
1452 fi
1453
1454 # Check that the precious variables saved in the cache have kept the same
1455 # value.
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460   eval ac_new_set=\$ac_env_${ac_var}_set
1461   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462   eval ac_new_val="\$ac_env_${ac_var}_value"
1463   case $ac_old_set,$ac_new_set in
1464     set,)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,set)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,);;
1473     *)
1474       if test "x$ac_old_val" != "x$ac_new_val"; then
1475         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1478 echo "$as_me:   former value:  $ac_old_val" >&2;}
1479         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1480 echo "$as_me:   current value: $ac_new_val" >&2;}
1481         ac_cache_corrupted=:
1482       fi;;
1483   esac
1484   # Pass precious variables to config.status.
1485   if test "$ac_new_set" = set; then
1486     case $ac_new_val in
1487     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489     *) ac_arg=$ac_var=$ac_new_val ;;
1490     esac
1491     case " $ac_configure_args " in
1492       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1493       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494     esac
1495   fi
1496 done
1497 if $ac_cache_corrupted; then
1498   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502    { (exit 1); exit 1; }; }
1503 fi
1504
1505 ac_ext=c
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1537           ac_config_headers="$ac_config_headers config.h"
1538
1539 am__api_version="1.9"
1540 ac_aux_dir=
1541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542   if test -f $ac_dir/install-sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install-sh -c"
1545     break
1546   elif test -f $ac_dir/install.sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install.sh -c"
1549     break
1550   elif test -f $ac_dir/shtool; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/shtool install -c"
1553     break
1554   fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565 # Find a good install program.  We prefer a C program (faster),
1566 # so one script is as good as another.  But avoid the broken or
1567 # incompatible versions:
1568 # SysV /etc/install, /usr/sbin/install
1569 # SunOS /usr/etc/install
1570 # IRIX /sbin/install
1571 # AIX /bin/install
1572 # AmigaOS /C/install, which installs bootblocks on floppy discs
1573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576 # OS/2's system install, which has a completely different semantic
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   # Account for people who put trailing slashes in PATH elements.
1590 case $as_dir/ in
1591   ./ | .// | /cC/* | \
1592   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594   /usr/ucb/* ) ;;
1595   *)
1596     # OSF1 and SCO ODT 3.0 have their own names for install.
1597     # Don't use installbsd from OSF since it installs stuff as root
1598     # by default.
1599     for ac_prog in ginstall scoinst install; do
1600       for ac_exec_ext in '' $ac_executable_extensions; do
1601         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602           if test $ac_prog = install &&
1603             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604             # AIX install.  It has an incompatible calling convention.
1605             :
1606           elif test $ac_prog = install &&
1607             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608             # program-specific install script used by HP pwplus--don't use.
1609             :
1610           else
1611             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612             break 3
1613           fi
1614         fi
1615       done
1616     done
1617     ;;
1618 esac
1619 done
1620
1621
1622 fi
1623   if test "${ac_cv_path_install+set}" = set; then
1624     INSTALL=$ac_cv_path_install
1625   else
1626     # As a last resort, use the slow shell script.  We don't cache a
1627     # path for INSTALL within a source directory, because that will
1628     # break other packages using the cache if that directory is
1629     # removed, or if the path is relative.
1630     INSTALL=$ac_install_sh
1631   fi
1632 fi
1633 echo "$as_me:$LINENO: result: $INSTALL" >&5
1634 echo "${ECHO_T}$INSTALL" >&6
1635
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639
1640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643
1644 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646 # Just in case
1647 sleep 1
1648 echo timestamp > conftest.file
1649 # Do `set' in a subshell so we don't clobber the current shell's
1650 # arguments.  Must try -L first in case configure is actually a
1651 # symlink; some systems play weird games with the mod time of symlinks
1652 # (eg FreeBSD returns the mod time of the symlink's containing
1653 # directory).
1654 if (
1655    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656    if test "$*" = "X"; then
1657       # -L didn't work.
1658       set X `ls -t $srcdir/configure conftest.file`
1659    fi
1660    rm -f conftest.file
1661    if test "$*" != "X $srcdir/configure conftest.file" \
1662       && test "$*" != "X conftest.file $srcdir/configure"; then
1663
1664       # If neither matched, then we have a broken ls.  This can happen
1665       # if, for instance, CONFIG_SHELL is bash and it inherits a
1666       # broken ls alias from the environment.  This has actually
1667       # happened.  Such a system could not be considered "sane".
1668       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1669 alias in your environment" >&5
1670 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1671 alias in your environment" >&2;}
1672    { (exit 1); exit 1; }; }
1673    fi
1674
1675    test "$2" = conftest.file
1676    )
1677 then
1678    # Ok.
1679    :
1680 else
1681    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682 Check your system clock" >&5
1683 echo "$as_me: error: newly created file is older than distributed files!
1684 Check your system clock" >&2;}
1685    { (exit 1); exit 1; }; }
1686 fi
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 test "$program_prefix" != NONE &&
1690   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691 # Use a double $ so make ignores it.
1692 test "$program_suffix" != NONE &&
1693   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694 # Double any \ or $.  echo might interpret backslashes.
1695 # By default was `s,x,x', remove it if useless.
1696 cat <<\_ACEOF >conftest.sed
1697 s/[\\$]/&&/g;s/;s,x,x,$//
1698 _ACEOF
1699 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700 rm conftest.sed
1701
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708   am_missing_run="$MISSING --run "
1709 else
1710   am_missing_run=
1711   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 fi
1714
1715 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716   # We used to keeping the `.' as first argument, in order to
1717   # allow $(mkdir_p) to be used without argument.  As in
1718   #   $(mkdir_p) $(somedir)
1719   # where $(somedir) is conditionally defined.  However this is wrong
1720   # for two reasons:
1721   #  1. if the package is installed by a user who cannot write `.'
1722   #     make install will fail,
1723   #  2. the above comment should most certainly read
1724   #     $(mkdir_p) $(DESTDIR)$(somedir)
1725   #     so it does not work when $(somedir) is undefined and
1726   #     $(DESTDIR) is not.
1727   #  To support the latter case, we have to write
1728   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729   #  so the `.' trick is pointless.
1730   mkdir_p='mkdir -p --'
1731 else
1732   # On NextStep and OpenStep, the `mkdir' command does not
1733   # recognize any option.  It will interpret all options as
1734   # directories to create, and then abort because `.' already
1735   # exists.
1736   for d in ./-p ./--version;
1737   do
1738     test -d $d && rmdir $d
1739   done
1740   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741   if test -f "$ac_aux_dir/mkinstalldirs"; then
1742     mkdir_p='$(mkinstalldirs)'
1743   else
1744     mkdir_p='$(install_sh) -d'
1745   fi
1746 fi
1747
1748 for ac_prog in gawk mawk nawk awk
1749 do
1750   # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_AWK+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$AWK"; then
1758   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   for ac_exec_ext in '' $ac_executable_extensions; do
1766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767     ac_cv_prog_AWK="$ac_prog"
1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769     break 2
1770   fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 AWK=$ac_cv_prog_AWK
1777 if test -n "$AWK"; then
1778   echo "$as_me:$LINENO: result: $AWK" >&5
1779 echo "${ECHO_T}$AWK" >&6
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785   test -n "$AWK" && break
1786 done
1787
1788 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   cat >conftest.make <<\_ACEOF
1795 all:
1796         @echo 'ac_maketemp="$(MAKE)"'
1797 _ACEOF
1798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800 if test -n "$ac_maketemp"; then
1801   eval ac_cv_prog_make_${ac_make}_set=yes
1802 else
1803   eval ac_cv_prog_make_${ac_make}_set=no
1804 fi
1805 rm -f conftest.make
1806 fi
1807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808   echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1810   SET_MAKE=
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814   SET_MAKE="MAKE=${MAKE-make}"
1815 fi
1816
1817 rm -rf .tst 2>/dev/null
1818 mkdir .tst 2>/dev/null
1819 if test -d .tst; then
1820   am__leading_dot=.
1821 else
1822   am__leading_dot=_
1823 fi
1824 rmdir .tst 2>/dev/null
1825
1826 # test to see if srcdir already configured
1827 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828    test -f $srcdir/config.status; then
1829   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834 # test whether we have cygpath
1835 if test -z "$CYGPATH_W"; then
1836   if (cygpath --version) >/dev/null 2>/dev/null; then
1837     CYGPATH_W='cygpath -w'
1838   else
1839     CYGPATH_W=echo
1840   fi
1841 fi
1842
1843
1844 # Define the identity of the package.
1845  PACKAGE=opensaml
1846  VERSION=2.3
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE "$PACKAGE"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define VERSION "$VERSION"
1856 _ACEOF
1857
1858 # Some tools Automake needs.
1859
1860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861
1862
1863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864
1865
1866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867
1868
1869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870
1871
1872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873
1874 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
1876 # Installed binaries are usually stripped using `strip' when the user
1877 # run `make install-strip'.  However `strip' might not be the right
1878 # tool to use in cross-compilation environments, therefore Automake
1879 # will honor the `STRIP' environment variable to overrule this program.
1880 if test "$cross_compiling" != no; then
1881   if test -n "$ac_tool_prefix"; then
1882   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_STRIP+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$STRIP"; then
1890   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 STRIP=$ac_cv_prog_STRIP
1909 if test -n "$STRIP"; then
1910   echo "$as_me:$LINENO: result: $STRIP" >&5
1911 echo "${ECHO_T}$STRIP" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$ac_cv_prog_STRIP"; then
1919   ac_ct_STRIP=$STRIP
1920   # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$ac_ct_STRIP"; then
1928   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937     ac_cv_prog_ac_ct_STRIP="strip"
1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943
1944   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945 fi
1946 fi
1947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948 if test -n "$ac_ct_STRIP"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950 echo "${ECHO_T}$ac_ct_STRIP" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   STRIP=$ac_ct_STRIP
1957 else
1958   STRIP="$ac_cv_prog_STRIP"
1959 fi
1960
1961 fi
1962 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
1964 # We need awk for the "check" target.  The system "awk" is bad on
1965 # some platforms.
1966 # Always define AMTAR for backward compatibility.
1967
1968 AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971
1972
1973
1974
1975
1976
1977 # This file is part of Autoconf.                       -*- Autoconf -*-
1978
1979 # Copyright (C) 2004 Oren Ben-Kiki
1980 # This file is distributed under the same terms as the Autoconf macro files.
1981
1982 # Generate automatic documentation using Doxygen. Works in concert with the
1983 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1984 # following public macros:
1985 #
1986 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
1987 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
1988 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
1989 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
1990 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
1991 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
1992 # paper size.
1993 #
1994 # By default, HTML, PDF and PS documentation is generated as this seems to be
1995 # the most popular and portable combination. MAN pages created by Doxygen are
1996 # usually problematic, though by picking an appropriate subset and doing some
1997 # massaging they might be better than nothing. CHM and RTF are specific for MS
1998 # (note that you can't generate both HTML and CHM at the same time). The XML is
1999 # rather useless unless you apply specialized post-processing to it.
2000 #
2001 # The macro mainly controls the default state of the feature. The use can
2002 # override the default by specifying --enable or --disable. The macros ensure
2003 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2004 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2005 # Finally, each feature will be automatically disabled (with a warning) if the
2006 # required programs are missing.
2007 #
2008 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2009 # the following parameters: a one-word name for the project for use as a
2010 # filename base etc., an optional configuration file name (the default is
2011 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2012 # name (the default is 'doxygen-doc').
2013
2014 ## ----------##
2015 ## Defaults. ##
2016 ## ----------##
2017
2018 DX_ENV=""
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030 # Compatibility with older autoconf versions.
2031
2032
2033 ## --------------- ##
2034 ## Private macros. ##
2035 ## --------------- ##
2036
2037 # DX_ENV_APPEND(VARIABLE, VALUE)
2038 # ------------------------------
2039 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2040
2041
2042 # DX_DIRNAME_EXPR
2043 # ---------------
2044 # Expand into a shell expression prints the directory part of a path.
2045
2046
2047 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2048 # -------------------------------------
2049 # Expands according to the M4 (static) status of the feature.
2050
2051
2052 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2053 # ----------------------------------
2054 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2055
2056
2057 # DX_TEST_FEATURE(FEATURE)
2058 # ------------------------
2059 # Expand to a shell expression testing whether the feature is active.
2060
2061
2062 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2063 # -------------------------------------------------
2064 # Verify that a required features has the right state before trying to turn on
2065 # the DX_CURRENT_FEATURE.
2066
2067
2068 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2069 # ----------------------------------------------------------
2070 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2071
2072
2073 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2074 #                CHECK_DEPEND, CLEAR_DEPEND,
2075 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2076 # --------------------------------------------
2077 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2078 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2079 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2080 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2081 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2082 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2083
2084
2085 ## -------------- ##
2086 ## Public macros. ##
2087 ## -------------- ##
2088
2089 # DX_XXX_FEATURE(DEFAULT_STATE)
2090 # -----------------------------
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2103 # ---------------------------------------------------------
2104 # PROJECT also serves as the base name for the documentation files.
2105 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2106
2107
2108 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2109 #
2110 # SYNOPSIS
2111 #
2112 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2113 #
2114 # DESCRIPTION
2115 #
2116 #   This macro figures out how to build C programs using POSIX threads.
2117 #   It sets the PTHREAD_LIBS output variable to the threads library and
2118 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2119 #   C compiler flags that are needed. (The user can also force certain
2120 #   compiler flags/libs to be tested by setting these environment
2121 #   variables.)
2122 #
2123 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2124 #   multi-threaded programs (defaults to the value of CC otherwise).
2125 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2126 #
2127 #   NOTE: You are assumed to not only compile your program with these
2128 #   flags, but also link it with them as well. e.g. you should link
2129 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2130 #   $LIBS
2131 #
2132 #   If you are only building threads programs, you may wish to use
2133 #   these variables in your default LIBS, CFLAGS, and CC:
2134 #
2135 #          LIBS="$PTHREAD_LIBS $LIBS"
2136 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2137 #          CC="$PTHREAD_CC"
2138 #
2139 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2140 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2141 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2142 #
2143 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2144 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2145 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2146 #   default action will define HAVE_PTHREAD.
2147 #
2148 #   Please let the authors know if this macro fails on any platform, or
2149 #   if you have any other suggestions or comments. This macro was based
2150 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2151 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2152 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2153 #   repository. We are also grateful for the helpful feedback of
2154 #   numerous users.
2155 #
2156 # LAST MODIFICATION
2157 #
2158 #   2006-05-29
2159 #
2160 # COPYLEFT
2161 #
2162 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2163 #
2164 #   This program is free software; you can redistribute it and/or
2165 #   modify it under the terms of the GNU General Public License as
2166 #   published by the Free Software Foundation; either version 2 of the
2167 #   License, or (at your option) any later version.
2168 #
2169 #   This program is distributed in the hope that it will be useful, but
2170 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2171 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2172 #   General Public License for more details.
2173 #
2174 #   You should have received a copy of the GNU General Public License
2175 #   along with this program; if not, write to the Free Software
2176 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2177 #   02111-1307, USA.
2178 #
2179 #   As a special exception, the respective Autoconf Macro's copyright
2180 #   owner gives unlimited permission to copy, distribute and modify the
2181 #   configure scripts that are the output of Autoconf when processing
2182 #   the Macro. You need not follow the terms of the GNU General Public
2183 #   License when using or distributing such scripts, even though
2184 #   portions of the text of the Macro appear in them. The GNU General
2185 #   Public License (GPL) does govern all other use of the material that
2186 #   constitutes the Autoconf Macro.
2187 #
2188 #   This special exception to the GPL applies to versions of the
2189 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2190 #   make and distribute a modified version of the Autoconf Macro, you
2191 #   may extend this special exception to the GPL to apply to your
2192 #   modified version as well.
2193
2194
2195
2196 # Docygen features
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207 # Files:
2208 DX_PROJECT=opensaml
2209
2210 DX_CONFIG=doxygen.cfg
2211
2212 DX_DOCDIR=doc/api
2213
2214
2215 # Environment variables used inside doxygen.cfg:
2216 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2217
2218 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2219
2220 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2221
2222 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2223
2224
2225 # Doxygen itself:
2226
2227
2228
2229     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2230 if test "${enable_doxygen_doc+set}" = set; then
2231   enableval="$enable_doxygen_doc"
2232
2233 case "$enableval" in
2234 #(
2235 y|Y|yes|Yes|YES)
2236     DX_FLAG_doc=1
2237
2238
2239 ;; #(
2240 n|N|no|No|NO)
2241     DX_FLAG_doc=0
2242
2243 ;; #(
2244 *)
2245     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2246 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2247    { (exit 1); exit 1; }; }
2248 ;;
2249 esac
2250
2251 else
2252
2253 DX_FLAG_doc=1
2254
2255
2256
2257 fi;
2258 if test "$DX_FLAG_doc" = 1; then
2259
2260 if test -n "$ac_tool_prefix"; then
2261   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2262 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   case $DX_DOXYGEN in
2269   [\\/]* | ?:[\\/]*)
2270   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2271   ;;
2272   *)
2273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282     break 2
2283   fi
2284 done
2285 done
2286
2287   ;;
2288 esac
2289 fi
2290 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2291
2292 if test -n "$DX_DOXYGEN"; then
2293   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2294 echo "${ECHO_T}$DX_DOXYGEN" >&6
2295 else
2296   echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300 fi
2301 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2302   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2303   # Extract the first word of "doxygen", so it can be a program name with args.
2304 set dummy doxygen; ac_word=$2
2305 echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   case $ac_pt_DX_DOXYGEN in
2311   [\\/]* | ?:[\\/]*)
2312   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2313   ;;
2314   *)
2315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328
2329   ;;
2330 esac
2331 fi
2332 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2333
2334 if test -n "$ac_pt_DX_DOXYGEN"; then
2335   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2336 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2337 else
2338   echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2340 fi
2341
2342   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2343 else
2344   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2345 fi
2346
2347 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2348     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2349 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2350     DX_FLAG_doc=0
2351
2352 fi
2353
2354
2355 if test -n "$ac_tool_prefix"; then
2356   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}perl; ac_word=$2
2358 echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_path_DX_PERL+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   case $DX_PERL in
2364   [\\/]* | ?:[\\/]*)
2365   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2366   ;;
2367   *)
2368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382   ;;
2383 esac
2384 fi
2385 DX_PERL=$ac_cv_path_DX_PERL
2386
2387 if test -n "$DX_PERL"; then
2388   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2389 echo "${ECHO_T}$DX_PERL" >&6
2390 else
2391   echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6
2393 fi
2394
2395 fi
2396 if test -z "$ac_cv_path_DX_PERL"; then
2397   ac_pt_DX_PERL=$DX_PERL
2398   # Extract the first word of "perl", so it can be a program name with args.
2399 set dummy perl; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   case $ac_pt_DX_PERL in
2406   [\\/]* | ?:[\\/]*)
2407   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2408   ;;
2409   *)
2410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424   ;;
2425 esac
2426 fi
2427 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2428
2429 if test -n "$ac_pt_DX_PERL"; then
2430   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2431 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2432 else
2433   echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2435 fi
2436
2437   DX_PERL=$ac_pt_DX_PERL
2438 else
2439   DX_PERL="$ac_cv_path_DX_PERL"
2440 fi
2441
2442 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2443     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2444 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2445     DX_FLAG_doc=0
2446
2447 fi
2448
2449     :
2450 fi
2451 if test "$DX_FLAG_doc" = 1; then
2452
2453
2454 if :; then
2455   DX_COND_doc_TRUE=
2456   DX_COND_doc_FALSE='#'
2457 else
2458   DX_COND_doc_TRUE='#'
2459   DX_COND_doc_FALSE=
2460 fi
2461
2462     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2463
2464     :
2465 else
2466
2467
2468 if false; then
2469   DX_COND_doc_TRUE=
2470   DX_COND_doc_FALSE='#'
2471 else
2472   DX_COND_doc_TRUE='#'
2473   DX_COND_doc_FALSE=
2474 fi
2475
2476
2477     :
2478 fi
2479
2480
2481 # Dot for graphics:
2482
2483
2484
2485     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2486 if test "${enable_doxygen_dot+set}" = set; then
2487   enableval="$enable_doxygen_dot"
2488
2489 case "$enableval" in
2490 #(
2491 y|Y|yes|Yes|YES)
2492     DX_FLAG_dot=1
2493
2494
2495 test "$DX_FLAG_doc" = "1" \
2496 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2497 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2498    { (exit 1); exit 1; }; }
2499
2500 ;; #(
2501 n|N|no|No|NO)
2502     DX_FLAG_dot=0
2503
2504 ;; #(
2505 *)
2506     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2507 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2508    { (exit 1); exit 1; }; }
2509 ;;
2510 esac
2511
2512 else
2513
2514 DX_FLAG_dot=1
2515
2516
2517 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2518
2519
2520
2521 fi;
2522 if test "$DX_FLAG_dot" = 1; then
2523
2524 if test -n "$ac_tool_prefix"; then
2525   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}dot; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_path_DX_DOT+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   case $DX_DOT in
2533   [\\/]* | ?:[\\/]*)
2534   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2535   ;;
2536   *)
2537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540   IFS=$as_save_IFS
2541   test -z "$as_dir" && as_dir=.
2542   for ac_exec_ext in '' $ac_executable_extensions; do
2543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550
2551   ;;
2552 esac
2553 fi
2554 DX_DOT=$ac_cv_path_DX_DOT
2555
2556 if test -n "$DX_DOT"; then
2557   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2558 echo "${ECHO_T}$DX_DOT" >&6
2559 else
2560   echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6
2562 fi
2563
2564 fi
2565 if test -z "$ac_cv_path_DX_DOT"; then
2566   ac_pt_DX_DOT=$DX_DOT
2567   # Extract the first word of "dot", so it can be a program name with args.
2568 set dummy dot; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   case $ac_pt_DX_DOT in
2575   [\\/]* | ?:[\\/]*)
2576   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2577   ;;
2578   *)
2579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_exec_ext in '' $ac_executable_extensions; do
2585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591 done
2592
2593   ;;
2594 esac
2595 fi
2596 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2597
2598 if test -n "$ac_pt_DX_DOT"; then
2599   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2600 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2601 else
2602   echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2604 fi
2605
2606   DX_DOT=$ac_pt_DX_DOT
2607 else
2608   DX_DOT="$ac_cv_path_DX_DOT"
2609 fi
2610
2611 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2612     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2613 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2614     DX_FLAG_dot=0
2615
2616 fi
2617
2618     :
2619 fi
2620 if test "$DX_FLAG_dot" = 1; then
2621
2622
2623 if :; then
2624   DX_COND_dot_TRUE=
2625   DX_COND_dot_FALSE='#'
2626 else
2627   DX_COND_dot_TRUE='#'
2628   DX_COND_dot_FALSE=
2629 fi
2630
2631     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2632
2633              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2634
2635     :
2636 else
2637
2638
2639 if false; then
2640   DX_COND_dot_TRUE=
2641   DX_COND_dot_FALSE='#'
2642 else
2643   DX_COND_dot_TRUE='#'
2644   DX_COND_dot_FALSE=
2645 fi
2646
2647     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2648
2649     :
2650 fi
2651
2652
2653 # Man pages generation:
2654
2655
2656
2657     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2658 if test "${enable_doxygen_man+set}" = set; then
2659   enableval="$enable_doxygen_man"
2660
2661 case "$enableval" in
2662 #(
2663 y|Y|yes|Yes|YES)
2664     DX_FLAG_man=1
2665
2666
2667 test "$DX_FLAG_doc" = "1" \
2668 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2669 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2670    { (exit 1); exit 1; }; }
2671
2672 ;; #(
2673 n|N|no|No|NO)
2674     DX_FLAG_man=0
2675
2676 ;; #(
2677 *)
2678     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2679 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2680    { (exit 1); exit 1; }; }
2681 ;;
2682 esac
2683
2684 else
2685
2686 DX_FLAG_man=0
2687
2688
2689 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2690
2691
2692
2693 fi;
2694 if test "$DX_FLAG_man" = 1; then
2695
2696     :
2697 fi
2698 if test "$DX_FLAG_man" = 1; then
2699
2700
2701 if :; then
2702   DX_COND_man_TRUE=
2703   DX_COND_man_FALSE='#'
2704 else
2705   DX_COND_man_TRUE='#'
2706   DX_COND_man_FALSE=
2707 fi
2708
2709     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2710
2711     :
2712 else
2713
2714
2715 if false; then
2716   DX_COND_man_TRUE=
2717   DX_COND_man_FALSE='#'
2718 else
2719   DX_COND_man_TRUE='#'
2720   DX_COND_man_FALSE=
2721 fi
2722
2723     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2724
2725     :
2726 fi
2727
2728
2729 # RTF file generation:
2730
2731
2732
2733     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2734 if test "${enable_doxygen_rtf+set}" = set; then
2735   enableval="$enable_doxygen_rtf"
2736
2737 case "$enableval" in
2738 #(
2739 y|Y|yes|Yes|YES)
2740     DX_FLAG_rtf=1
2741
2742
2743 test "$DX_FLAG_doc" = "1" \
2744 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2745 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2746    { (exit 1); exit 1; }; }
2747
2748 ;; #(
2749 n|N|no|No|NO)
2750     DX_FLAG_rtf=0
2751
2752 ;; #(
2753 *)
2754     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2755 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2756    { (exit 1); exit 1; }; }
2757 ;;
2758 esac
2759
2760 else
2761
2762 DX_FLAG_rtf=0
2763
2764
2765 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2766
2767
2768
2769 fi;
2770 if test "$DX_FLAG_rtf" = 1; then
2771
2772     :
2773 fi
2774 if test "$DX_FLAG_rtf" = 1; then
2775
2776
2777 if :; then
2778   DX_COND_rtf_TRUE=
2779   DX_COND_rtf_FALSE='#'
2780 else
2781   DX_COND_rtf_TRUE='#'
2782   DX_COND_rtf_FALSE=
2783 fi
2784
2785     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2786
2787     :
2788 else
2789
2790
2791 if false; then
2792   DX_COND_rtf_TRUE=
2793   DX_COND_rtf_FALSE='#'
2794 else
2795   DX_COND_rtf_TRUE='#'
2796   DX_COND_rtf_FALSE=
2797 fi
2798
2799     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2800
2801     :
2802 fi
2803
2804
2805 # XML file generation:
2806
2807
2808
2809     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2810 if test "${enable_doxygen_xml+set}" = set; then
2811   enableval="$enable_doxygen_xml"
2812
2813 case "$enableval" in
2814 #(
2815 y|Y|yes|Yes|YES)
2816     DX_FLAG_xml=1
2817
2818
2819 test "$DX_FLAG_doc" = "1" \
2820 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2821 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2822    { (exit 1); exit 1; }; }
2823
2824 ;; #(
2825 n|N|no|No|NO)
2826     DX_FLAG_xml=0
2827
2828 ;; #(
2829 *)
2830     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2831 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2832    { (exit 1); exit 1; }; }
2833 ;;
2834 esac
2835
2836 else
2837
2838 DX_FLAG_xml=0
2839
2840
2841 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2842
2843
2844
2845 fi;
2846 if test "$DX_FLAG_xml" = 1; then
2847
2848     :
2849 fi
2850 if test "$DX_FLAG_xml" = 1; then
2851
2852
2853 if :; then
2854   DX_COND_xml_TRUE=
2855   DX_COND_xml_FALSE='#'
2856 else
2857   DX_COND_xml_TRUE='#'
2858   DX_COND_xml_FALSE=
2859 fi
2860
2861     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2862
2863     :
2864 else
2865
2866
2867 if false; then
2868   DX_COND_xml_TRUE=
2869   DX_COND_xml_FALSE='#'
2870 else
2871   DX_COND_xml_TRUE='#'
2872   DX_COND_xml_FALSE=
2873 fi
2874
2875     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2876
2877     :
2878 fi
2879
2880
2881 # (Compressed) HTML help generation:
2882
2883
2884
2885     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2886 if test "${enable_doxygen_chm+set}" = set; then
2887   enableval="$enable_doxygen_chm"
2888
2889 case "$enableval" in
2890 #(
2891 y|Y|yes|Yes|YES)
2892     DX_FLAG_chm=1
2893
2894
2895 test "$DX_FLAG_doc" = "1" \
2896 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2897 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2898    { (exit 1); exit 1; }; }
2899
2900 ;; #(
2901 n|N|no|No|NO)
2902     DX_FLAG_chm=0
2903
2904 ;; #(
2905 *)
2906     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2907 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2908    { (exit 1); exit 1; }; }
2909 ;;
2910 esac
2911
2912 else
2913
2914 DX_FLAG_chm=0
2915
2916
2917 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2918
2919
2920
2921 fi;
2922 if test "$DX_FLAG_chm" = 1; then
2923
2924 if test -n "$ac_tool_prefix"; then
2925   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2929 if test "${ac_cv_path_DX_HHC+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   case $DX_HHC in
2933   [\\/]* | ?:[\\/]*)
2934   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2935   ;;
2936   *)
2937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942   for ac_exec_ext in '' $ac_executable_extensions; do
2943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949 done
2950
2951   ;;
2952 esac
2953 fi
2954 DX_HHC=$ac_cv_path_DX_HHC
2955
2956 if test -n "$DX_HHC"; then
2957   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2958 echo "${ECHO_T}$DX_HHC" >&6
2959 else
2960   echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6
2962 fi
2963
2964 fi
2965 if test -z "$ac_cv_path_DX_HHC"; then
2966   ac_pt_DX_HHC=$DX_HHC
2967   # Extract the first word of "hhc", so it can be a program name with args.
2968 set dummy hhc; ac_word=$2
2969 echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2971 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   case $ac_pt_DX_HHC in
2975   [\\/]* | ?:[\\/]*)
2976   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2977   ;;
2978   *)
2979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992
2993   ;;
2994 esac
2995 fi
2996 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
2997
2998 if test -n "$ac_pt_DX_HHC"; then
2999   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3000 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3001 else
3002   echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6
3004 fi
3005
3006   DX_HHC=$ac_pt_DX_HHC
3007 else
3008   DX_HHC="$ac_cv_path_DX_HHC"
3009 fi
3010
3011 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3012     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3013 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3014     DX_FLAG_chm=0
3015
3016 fi
3017
3018     :
3019 fi
3020 if test "$DX_FLAG_chm" = 1; then
3021
3022
3023 if :; then
3024   DX_COND_chm_TRUE=
3025   DX_COND_chm_FALSE='#'
3026 else
3027   DX_COND_chm_TRUE='#'
3028   DX_COND_chm_FALSE=
3029 fi
3030
3031     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3032
3033              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3034
3035              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3036
3037     :
3038 else
3039
3040
3041 if false; then
3042   DX_COND_chm_TRUE=
3043   DX_COND_chm_FALSE='#'
3044 else
3045   DX_COND_chm_TRUE='#'
3046   DX_COND_chm_FALSE=
3047 fi
3048
3049     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3050
3051     :
3052 fi
3053
3054
3055 # Seperate CHI file generation.
3056
3057
3058
3059     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3060 if test "${enable_doxygen_chi+set}" = set; then
3061   enableval="$enable_doxygen_chi"
3062
3063 case "$enableval" in
3064 #(
3065 y|Y|yes|Yes|YES)
3066     DX_FLAG_chi=1
3067
3068
3069 test "$DX_FLAG_chm" = "1" \
3070 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3071 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3072    { (exit 1); exit 1; }; }
3073
3074 ;; #(
3075 n|N|no|No|NO)
3076     DX_FLAG_chi=0
3077
3078 ;; #(
3079 *)
3080     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3081 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3082    { (exit 1); exit 1; }; }
3083 ;;
3084 esac
3085
3086 else
3087
3088 DX_FLAG_chi=0
3089
3090
3091 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3092
3093
3094
3095 fi;
3096 if test "$DX_FLAG_chi" = 1; then
3097
3098     :
3099 fi
3100 if test "$DX_FLAG_chi" = 1; then
3101
3102
3103 if :; then
3104   DX_COND_chi_TRUE=
3105   DX_COND_chi_FALSE='#'
3106 else
3107   DX_COND_chi_TRUE='#'
3108   DX_COND_chi_FALSE=
3109 fi
3110
3111     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3112
3113     :
3114 else
3115
3116
3117 if false; then
3118   DX_COND_chi_TRUE=
3119   DX_COND_chi_FALSE='#'
3120 else
3121   DX_COND_chi_TRUE='#'
3122   DX_COND_chi_FALSE=
3123 fi
3124
3125     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3126
3127     :
3128 fi
3129
3130
3131 # Plain HTML pages generation:
3132
3133
3134
3135     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3136 if test "${enable_doxygen_html+set}" = set; then
3137   enableval="$enable_doxygen_html"
3138
3139 case "$enableval" in
3140 #(
3141 y|Y|yes|Yes|YES)
3142     DX_FLAG_html=1
3143
3144
3145 test "$DX_FLAG_doc" = "1" \
3146 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3147 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3148    { (exit 1); exit 1; }; }
3149
3150 test "$DX_FLAG_chm" = "0" \
3151 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3152 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3153    { (exit 1); exit 1; }; }
3154
3155 ;; #(
3156 n|N|no|No|NO)
3157     DX_FLAG_html=0
3158
3159 ;; #(
3160 *)
3161     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3162 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3163    { (exit 1); exit 1; }; }
3164 ;;
3165 esac
3166
3167 else
3168
3169 DX_FLAG_html=1
3170
3171
3172 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3173
3174
3175 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3176
3177
3178
3179 fi;
3180 if test "$DX_FLAG_html" = 1; then
3181
3182     :
3183 fi
3184 if test "$DX_FLAG_html" = 1; then
3185
3186
3187 if :; then
3188   DX_COND_html_TRUE=
3189   DX_COND_html_FALSE='#'
3190 else
3191   DX_COND_html_TRUE='#'
3192   DX_COND_html_FALSE=
3193 fi
3194
3195     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3196
3197     :
3198 else
3199
3200
3201 if false; then
3202   DX_COND_html_TRUE=
3203   DX_COND_html_FALSE='#'
3204 else
3205   DX_COND_html_TRUE='#'
3206   DX_COND_html_FALSE=
3207 fi
3208
3209     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3210
3211     :
3212 fi
3213
3214
3215 # PostScript file generation:
3216
3217
3218
3219     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3220 if test "${enable_doxygen_ps+set}" = set; then
3221   enableval="$enable_doxygen_ps"
3222
3223 case "$enableval" in
3224 #(
3225 y|Y|yes|Yes|YES)
3226     DX_FLAG_ps=1
3227
3228
3229 test "$DX_FLAG_doc" = "1" \
3230 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3231 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3232    { (exit 1); exit 1; }; }
3233
3234 ;; #(
3235 n|N|no|No|NO)
3236     DX_FLAG_ps=0
3237
3238 ;; #(
3239 *)
3240     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3241 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3242    { (exit 1); exit 1; }; }
3243 ;;
3244 esac
3245
3246 else
3247
3248 DX_FLAG_ps=0
3249
3250
3251 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3252
3253
3254
3255 fi;
3256 if test "$DX_FLAG_ps" = 1; then
3257
3258 if test -n "$ac_tool_prefix"; then
3259   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}latex; ac_word=$2
3261 echo "$as_me:$LINENO: checking for $ac_word" >&5
3262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   case $DX_LATEX in
3267   [\\/]* | ?:[\\/]*)
3268   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3269   ;;
3270   *)
3271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274   IFS=$as_save_IFS
3275   test -z "$as_dir" && as_dir=.
3276   for ac_exec_ext in '' $ac_executable_extensions; do
3277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280     break 2
3281   fi
3282 done
3283 done
3284
3285   ;;
3286 esac
3287 fi
3288 DX_LATEX=$ac_cv_path_DX_LATEX
3289
3290 if test -n "$DX_LATEX"; then
3291   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3292 echo "${ECHO_T}$DX_LATEX" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 fi
3299 if test -z "$ac_cv_path_DX_LATEX"; then
3300   ac_pt_DX_LATEX=$DX_LATEX
3301   # Extract the first word of "latex", so it can be a program name with args.
3302 set dummy latex; ac_word=$2
3303 echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   case $ac_pt_DX_LATEX in
3309   [\\/]* | ?:[\\/]*)
3310   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3311   ;;
3312   *)
3313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318   for ac_exec_ext in '' $ac_executable_extensions; do
3319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325 done
3326
3327   ;;
3328 esac
3329 fi
3330 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3331
3332 if test -n "$ac_pt_DX_LATEX"; then
3333   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3334 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3335 else
3336   echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338 fi
3339
3340   DX_LATEX=$ac_pt_DX_LATEX
3341 else
3342   DX_LATEX="$ac_cv_path_DX_LATEX"
3343 fi
3344
3345 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3346     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3347 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3348     DX_FLAG_ps=0
3349
3350 fi
3351
3352
3353 if test -n "$ac_tool_prefix"; then
3354   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   case $DX_MAKEINDEX in
3362   [\\/]* | ?:[\\/]*)
3363   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3364   ;;
3365   *)
3366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371   for ac_exec_ext in '' $ac_executable_extensions; do
3372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378 done
3379
3380   ;;
3381 esac
3382 fi
3383 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3384
3385 if test -n "$DX_MAKEINDEX"; then
3386   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3387 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3388 else
3389   echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391 fi
3392
3393 fi
3394 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3395   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3396   # Extract the first word of "makeindex", so it can be a program name with args.
3397 set dummy makeindex; ac_word=$2
3398 echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   case $ac_pt_DX_MAKEINDEX in
3404   [\\/]* | ?:[\\/]*)
3405   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3406   ;;
3407   *)
3408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420 done
3421
3422   ;;
3423 esac
3424 fi
3425 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3426
3427 if test -n "$ac_pt_DX_MAKEINDEX"; then
3428   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3429 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3430 else
3431   echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3433 fi
3434
3435   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3436 else
3437   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3438 fi
3439
3440 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3441     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3442 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3443     DX_FLAG_ps=0
3444
3445 fi
3446
3447
3448 if test -n "$ac_tool_prefix"; then
3449   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456   case $DX_DVIPS in
3457   [\\/]* | ?:[\\/]*)
3458   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3459   ;;
3460   *)
3461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466   for ac_exec_ext in '' $ac_executable_extensions; do
3467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473 done
3474
3475   ;;
3476 esac
3477 fi
3478 DX_DVIPS=$ac_cv_path_DX_DVIPS
3479
3480 if test -n "$DX_DVIPS"; then
3481   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3482 echo "${ECHO_T}$DX_DVIPS" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488 fi
3489 if test -z "$ac_cv_path_DX_DVIPS"; then
3490   ac_pt_DX_DVIPS=$DX_DVIPS
3491   # Extract the first word of "dvips", so it can be a program name with args.
3492 set dummy dvips; ac_word=$2
3493 echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3495 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   case $ac_pt_DX_DVIPS in
3499   [\\/]* | ?:[\\/]*)
3500   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3501   ;;
3502   *)
3503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508   for ac_exec_ext in '' $ac_executable_extensions; do
3509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515 done
3516
3517   ;;
3518 esac
3519 fi
3520 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3521
3522 if test -n "$ac_pt_DX_DVIPS"; then
3523   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3524 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3525 else
3526   echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3528 fi
3529
3530   DX_DVIPS=$ac_pt_DX_DVIPS
3531 else
3532   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3533 fi
3534
3535 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3536     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3537 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3538     DX_FLAG_ps=0
3539
3540 fi
3541
3542
3543 if test -n "$ac_tool_prefix"; then
3544   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   case $DX_EGREP in
3552   [\\/]* | ?:[\\/]*)
3553   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3554   ;;
3555   *)
3556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for ac_exec_ext in '' $ac_executable_extensions; do
3562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568 done
3569
3570   ;;
3571 esac
3572 fi
3573 DX_EGREP=$ac_cv_path_DX_EGREP
3574
3575 if test -n "$DX_EGREP"; then
3576   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3577 echo "${ECHO_T}$DX_EGREP" >&6
3578 else
3579   echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3581 fi
3582
3583 fi
3584 if test -z "$ac_cv_path_DX_EGREP"; then
3585   ac_pt_DX_EGREP=$DX_EGREP
3586   # Extract the first word of "egrep", so it can be a program name with args.
3587 set dummy egrep; ac_word=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   case $ac_pt_DX_EGREP in
3594   [\\/]* | ?:[\\/]*)
3595   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3596   ;;
3597   *)
3598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   for ac_exec_ext in '' $ac_executable_extensions; do
3604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610 done
3611
3612   ;;
3613 esac
3614 fi
3615 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3616
3617 if test -n "$ac_pt_DX_EGREP"; then
3618   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3619 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3620 else
3621   echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624
3625   DX_EGREP=$ac_pt_DX_EGREP
3626 else
3627   DX_EGREP="$ac_cv_path_DX_EGREP"
3628 fi
3629
3630 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3631     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3632 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3633     DX_FLAG_ps=0
3634
3635 fi
3636
3637     :
3638 fi
3639 if test "$DX_FLAG_ps" = 1; then
3640
3641
3642 if :; then
3643   DX_COND_ps_TRUE=
3644   DX_COND_ps_FALSE='#'
3645 else
3646   DX_COND_ps_TRUE='#'
3647   DX_COND_ps_FALSE=
3648 fi
3649
3650
3651     :
3652 else
3653
3654
3655 if false; then
3656   DX_COND_ps_TRUE=
3657   DX_COND_ps_FALSE='#'
3658 else
3659   DX_COND_ps_TRUE='#'
3660   DX_COND_ps_FALSE=
3661 fi
3662
3663
3664     :
3665 fi
3666
3667
3668 # PDF file generation:
3669
3670
3671
3672     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3673 if test "${enable_doxygen_pdf+set}" = set; then
3674   enableval="$enable_doxygen_pdf"
3675
3676 case "$enableval" in
3677 #(
3678 y|Y|yes|Yes|YES)
3679     DX_FLAG_pdf=1
3680
3681
3682 test "$DX_FLAG_doc" = "1" \
3683 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3684 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3685    { (exit 1); exit 1; }; }
3686
3687 ;; #(
3688 n|N|no|No|NO)
3689     DX_FLAG_pdf=0
3690
3691 ;; #(
3692 *)
3693     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3694 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3695    { (exit 1); exit 1; }; }
3696 ;;
3697 esac
3698
3699 else
3700
3701 DX_FLAG_pdf=0
3702
3703
3704 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3705
3706
3707
3708 fi;
3709 if test "$DX_FLAG_pdf" = 1; then
3710
3711 if test -n "$ac_tool_prefix"; then
3712   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3714 echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3716 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   case $DX_PDFLATEX in
3720   [\\/]* | ?:[\\/]*)
3721   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3722   ;;
3723   *)
3724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   for ac_exec_ext in '' $ac_executable_extensions; do
3730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733     break 2
3734   fi
3735 done
3736 done
3737
3738   ;;
3739 esac
3740 fi
3741 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3742
3743 if test -n "$DX_PDFLATEX"; then
3744   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3745 echo "${ECHO_T}$DX_PDFLATEX" >&6
3746 else
3747   echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3749 fi
3750
3751 fi
3752 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3753   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3754   # Extract the first word of "pdflatex", so it can be a program name with args.
3755 set dummy pdflatex; ac_word=$2
3756 echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   case $ac_pt_DX_PDFLATEX in
3762   [\\/]* | ?:[\\/]*)
3763   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3764   ;;
3765   *)
3766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_exec_ext in '' $ac_executable_extensions; do
3772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778 done
3779
3780   ;;
3781 esac
3782 fi
3783 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3784
3785 if test -n "$ac_pt_DX_PDFLATEX"; then
3786   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3787 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3788 else
3789   echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3791 fi
3792
3793   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3794 else
3795   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3796 fi
3797
3798 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3799     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3800 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3801     DX_FLAG_pdf=0
3802
3803 fi
3804
3805
3806 if test -n "$ac_tool_prefix"; then
3807   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   case $DX_MAKEINDEX in
3815   [\\/]* | ?:[\\/]*)
3816   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3817   ;;
3818   *)
3819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   for ac_exec_ext in '' $ac_executable_extensions; do
3825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831 done
3832
3833   ;;
3834 esac
3835 fi
3836 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3837
3838 if test -n "$DX_MAKEINDEX"; then
3839   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3840 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3841 else
3842   echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844 fi
3845
3846 fi
3847 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3848   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3849   # Extract the first word of "makeindex", so it can be a program name with args.
3850 set dummy makeindex; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   case $ac_pt_DX_MAKEINDEX in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3859   ;;
3860   *)
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875   ;;
3876 esac
3877 fi
3878 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3879
3880 if test -n "$ac_pt_DX_MAKEINDEX"; then
3881   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3882 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3883 else
3884   echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3886 fi
3887
3888   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3889 else
3890   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3891 fi
3892
3893 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3894     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3895 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3896     DX_FLAG_pdf=0
3897
3898 fi
3899
3900
3901 if test -n "$ac_tool_prefix"; then
3902   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   case $DX_EGREP in
3910   [\\/]* | ?:[\\/]*)
3911   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3912   ;;
3913   *)
3914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919   for ac_exec_ext in '' $ac_executable_extensions; do
3920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923     break 2
3924   fi
3925 done
3926 done
3927
3928   ;;
3929 esac
3930 fi
3931 DX_EGREP=$ac_cv_path_DX_EGREP
3932
3933 if test -n "$DX_EGREP"; then
3934   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3935 echo "${ECHO_T}$DX_EGREP" >&6
3936 else
3937   echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6
3939 fi
3940
3941 fi
3942 if test -z "$ac_cv_path_DX_EGREP"; then
3943   ac_pt_DX_EGREP=$DX_EGREP
3944   # Extract the first word of "egrep", so it can be a program name with args.
3945 set dummy egrep; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   case $ac_pt_DX_EGREP in
3952   [\\/]* | ?:[\\/]*)
3953   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3954   ;;
3955   *)
3956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959   IFS=$as_save_IFS
3960   test -z "$as_dir" && as_dir=.
3961   for ac_exec_ext in '' $ac_executable_extensions; do
3962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965     break 2
3966   fi
3967 done
3968 done
3969
3970   ;;
3971 esac
3972 fi
3973 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3974
3975 if test -n "$ac_pt_DX_EGREP"; then
3976   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3977 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3978 else
3979   echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3981 fi
3982
3983   DX_EGREP=$ac_pt_DX_EGREP
3984 else
3985   DX_EGREP="$ac_cv_path_DX_EGREP"
3986 fi
3987
3988 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3989     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
3990 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
3991     DX_FLAG_pdf=0
3992
3993 fi
3994
3995     :
3996 fi
3997 if test "$DX_FLAG_pdf" = 1; then
3998
3999
4000 if :; then
4001   DX_COND_pdf_TRUE=
4002   DX_COND_pdf_FALSE='#'
4003 else
4004   DX_COND_pdf_TRUE='#'
4005   DX_COND_pdf_FALSE=
4006 fi
4007
4008
4009     :
4010 else
4011
4012
4013 if false; then
4014   DX_COND_pdf_TRUE=
4015   DX_COND_pdf_FALSE='#'
4016 else
4017   DX_COND_pdf_TRUE='#'
4018   DX_COND_pdf_FALSE=
4019 fi
4020
4021
4022     :
4023 fi
4024
4025
4026 # LaTeX generation for PS and/or PDF:
4027 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4028
4029
4030 if :; then
4031   DX_COND_latex_TRUE=
4032   DX_COND_latex_FALSE='#'
4033 else
4034   DX_COND_latex_TRUE='#'
4035   DX_COND_latex_FALSE=
4036 fi
4037
4038     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4039
4040 else
4041
4042
4043 if false; then
4044   DX_COND_latex_TRUE=
4045   DX_COND_latex_FALSE='#'
4046 else
4047   DX_COND_latex_TRUE='#'
4048   DX_COND_latex_FALSE=
4049 fi
4050
4051     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4052
4053 fi
4054
4055 # Paper size for PS and/or PDF:
4056
4057 case "$DOXYGEN_PAPER_SIZE" in
4058 #(
4059 "")
4060     DOXYGEN_PAPER_SIZE=""
4061
4062 ;; #(
4063 a4wide|a4|letter|legal|executive)
4064     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4065
4066 ;; #(
4067 *)
4068     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4069 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4070    { (exit 1); exit 1; }; }
4071 ;;
4072 esac
4073
4074 #For debugging:
4075 #echo DX_FLAG_doc=$DX_FLAG_doc
4076 #echo DX_FLAG_dot=$DX_FLAG_dot
4077 #echo DX_FLAG_man=$DX_FLAG_man
4078 #echo DX_FLAG_html=$DX_FLAG_html
4079 #echo DX_FLAG_chm=$DX_FLAG_chm
4080 #echo DX_FLAG_chi=$DX_FLAG_chi
4081 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4082 #echo DX_FLAG_xml=$DX_FLAG_xml
4083 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4084 #echo DX_FLAG_ps=$DX_FLAG_ps
4085 #echo DX_ENV=$DX_ENV
4086
4087 DX_INCLUDE=
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 -Wall -g -D_DEBUG"
4099     GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
4100 else
4101     GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
4102     GCC_CXXFLAGS="$CXXFLAGS -Wall -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="$GCC_CFLAGS"
5520     CXXFLAGS="$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
21284 # Checks for library functions.
21285
21286
21287
21288 for ac_func in strchr strdup strstr
21289 do
21290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21291 echo "$as_me:$LINENO: checking for $ac_func" >&5
21292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21293 if eval "test \"\${$as_ac_var+set}\" = set"; then
21294   echo $ECHO_N "(cached) $ECHO_C" >&6
21295 else
21296   cat >conftest.$ac_ext <<_ACEOF
21297 /* confdefs.h.  */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h.  */
21302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21304 #define $ac_func innocuous_$ac_func
21305
21306 /* System header to define __stub macros and hopefully few prototypes,
21307     which can conflict with char $ac_func (); below.
21308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21309     <limits.h> exists even on freestanding compilers.  */
21310
21311 #ifdef __STDC__
21312 # include <limits.h>
21313 #else
21314 # include <assert.h>
21315 #endif
21316
21317 #undef $ac_func
21318
21319 /* Override any gcc2 internal prototype to avoid an error.  */
21320 #ifdef __cplusplus
21321 extern "C"
21322 {
21323 #endif
21324 /* We use char because int might match the return type of a gcc2
21325    builtin and then its argument prototype would still apply.  */
21326 char $ac_func ();
21327 /* The GNU C library defines this for functions which it implements
21328     to always fail with ENOSYS.  Some functions are actually named
21329     something starting with __ and the normal name is an alias.  */
21330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21331 choke me
21332 #else
21333 char (*f) () = $ac_func;
21334 #endif
21335 #ifdef __cplusplus
21336 }
21337 #endif
21338
21339 int
21340 main ()
21341 {
21342 return f != $ac_func;
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349   (eval $ac_link) 2>conftest.er1
21350   ac_status=$?
21351   grep -v '^ *+' conftest.er1 >conftest.err
21352   rm -f conftest.er1
21353   cat conftest.err >&5
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } &&
21356          { ac_try='test -z "$ac_c_werror_flag"
21357                          || test ! -s conftest.err'
21358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359   (eval $ac_try) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; } &&
21363          { ac_try='test -s conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   eval "$as_ac_var=yes"
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 eval "$as_ac_var=no"
21375 fi
21376 rm -f conftest.err conftest.$ac_objext \
21377       conftest$ac_exeext conftest.$ac_ext
21378 fi
21379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21381 if test `eval echo '${'$as_ac_var'}'` = yes; then
21382   cat >>confdefs.h <<_ACEOF
21383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21384 _ACEOF
21385
21386 fi
21387 done
21388
21389 echo "$as_me:$LINENO: checking for time_t" >&5
21390 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
21391 if test "${ac_cv_type_time_t+set}" = set; then
21392   echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394   cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400 $ac_includes_default
21401 int
21402 main ()
21403 {
21404 if ((time_t *) 0)
21405   return 0;
21406 if (sizeof (time_t))
21407   return 0;
21408   ;
21409   return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest.$ac_objext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21414   (eval $ac_compile) 2>conftest.er1
21415   ac_status=$?
21416   grep -v '^ *+' conftest.er1 >conftest.err
21417   rm -f conftest.er1
21418   cat conftest.err >&5
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } &&
21421          { ac_try='test -z "$ac_c_werror_flag"
21422                          || test ! -s conftest.err'
21423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424   (eval $ac_try) 2>&5
21425   ac_status=$?
21426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427   (exit $ac_status); }; } &&
21428          { ac_try='test -s conftest.$ac_objext'
21429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430   (eval $ac_try) 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); }; }; then
21434   ac_cv_type_time_t=yes
21435 else
21436   echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21438
21439 ac_cv_type_time_t=no
21440 fi
21441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21442 fi
21443 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
21444 echo "${ECHO_T}$ac_cv_type_time_t" >&6
21445
21446 echo "$as_me:$LINENO: checking size of time_t" >&5
21447 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
21448 if test "${ac_cv_sizeof_time_t+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451   if test "$ac_cv_type_time_t" = yes; then
21452   # The cast to unsigned long works around a bug in the HP C Compiler
21453   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21454   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21455   # This bug is HP SR number 8606223364.
21456   if test "$cross_compiling" = yes; then
21457   # Depending upon the size, compute the lo and hi bounds.
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h.  */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h.  */
21464 $ac_includes_default
21465 int
21466 main ()
21467 {
21468 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
21469 test_array [0] = 0
21470
21471   ;
21472   return 0;
21473 }
21474 _ACEOF
21475 rm -f conftest.$ac_objext
21476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21477   (eval $ac_compile) 2>conftest.er1
21478   ac_status=$?
21479   grep -v '^ *+' conftest.er1 >conftest.err
21480   rm -f conftest.er1
21481   cat conftest.err >&5
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); } &&
21484          { ac_try='test -z "$ac_c_werror_flag"
21485                          || test ! -s conftest.err'
21486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487   (eval $ac_try) 2>&5
21488   ac_status=$?
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); }; } &&
21491          { ac_try='test -s conftest.$ac_objext'
21492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493   (eval $ac_try) 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); }; }; then
21497   ac_lo=0 ac_mid=0
21498   while :; do
21499     cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 $ac_includes_default
21506 int
21507 main ()
21508 {
21509 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
21510 test_array [0] = 0
21511
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518   (eval $ac_compile) 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } &&
21525          { ac_try='test -z "$ac_c_werror_flag"
21526                          || test ! -s conftest.err'
21527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528   (eval $ac_try) 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; } &&
21532          { ac_try='test -s conftest.$ac_objext'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   ac_hi=$ac_mid; break
21539 else
21540   echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ac_lo=`expr $ac_mid + 1`
21544                     if test $ac_lo -le $ac_mid; then
21545                       ac_lo= ac_hi=
21546                       break
21547                     fi
21548                     ac_mid=`expr 2 '*' $ac_mid + 1`
21549 fi
21550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21551   done
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
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 (time_t))) < 0)];
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=-1 ac_mid=-1
21596   while :; do
21597     cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 $ac_includes_default
21604 int
21605 main ()
21606 {
21607 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
21608 test_array [0] = 0
21609
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21616   (eval $ac_compile) 2>conftest.er1
21617   ac_status=$?
21618   grep -v '^ *+' conftest.er1 >conftest.err
21619   rm -f conftest.er1
21620   cat conftest.err >&5
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } &&
21623          { ac_try='test -z "$ac_c_werror_flag"
21624                          || test ! -s conftest.err'
21625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626   (eval $ac_try) 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; } &&
21630          { ac_try='test -s conftest.$ac_objext'
21631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632   (eval $ac_try) 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; }; then
21636   ac_lo=$ac_mid; break
21637 else
21638   echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_hi=`expr '(' $ac_mid ')' - 1`
21642                        if test $ac_mid -le $ac_hi; then
21643                          ac_lo= ac_hi=
21644                          break
21645                        fi
21646                        ac_mid=`expr 2 '*' $ac_mid`
21647 fi
21648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21649   done
21650 else
21651   echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654 ac_lo= ac_hi=
21655 fi
21656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21657 fi
21658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21659 # Binary search between lo and hi bounds.
21660 while test "x$ac_lo" != "x$ac_hi"; do
21661   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21662   cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h.  */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h.  */
21668 $ac_includes_default
21669 int
21670 main ()
21671 {
21672 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
21673 test_array [0] = 0
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681   (eval $ac_compile) 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } &&
21688          { ac_try='test -z "$ac_c_werror_flag"
21689                          || test ! -s conftest.err'
21690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691   (eval $ac_try) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); }; } &&
21695          { ac_try='test -s conftest.$ac_objext'
21696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697   (eval $ac_try) 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; }; then
21701   ac_hi=$ac_mid
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 ac_lo=`expr '(' $ac_mid ')' + 1`
21707 fi
21708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21709 done
21710 case $ac_lo in
21711 ?*) ac_cv_sizeof_time_t=$ac_lo;;
21712 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
21713 See \`config.log' for more details." >&5
21714 echo "$as_me: error: cannot compute sizeof (time_t), 77
21715 See \`config.log' for more details." >&2;}
21716    { (exit 1); exit 1; }; } ;;
21717 esac
21718 else
21719   if test "$cross_compiling" = yes; then
21720   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21721 See \`config.log' for more details." >&5
21722 echo "$as_me: error: cannot run test program while cross compiling
21723 See \`config.log' for more details." >&2;}
21724    { (exit 1); exit 1; }; }
21725 else
21726   cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h.  */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h.  */
21732 $ac_includes_default
21733 long longval () { return (long) (sizeof (time_t)); }
21734 unsigned long ulongval () { return (long) (sizeof (time_t)); }
21735 #include <stdio.h>
21736 #include <stdlib.h>
21737 int
21738 main ()
21739 {
21740
21741   FILE *f = fopen ("conftest.val", "w");
21742   if (! f)
21743     exit (1);
21744   if (((long) (sizeof (time_t))) < 0)
21745     {
21746       long i = longval ();
21747       if (i != ((long) (sizeof (time_t))))
21748         exit (1);
21749       fprintf (f, "%ld\n", i);
21750     }
21751   else
21752     {
21753       unsigned long i = ulongval ();
21754       if (i != ((long) (sizeof (time_t))))
21755         exit (1);
21756       fprintf (f, "%lu\n", i);
21757     }
21758   exit (ferror (f) || fclose (f) != 0);
21759
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest$ac_exeext
21765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21766   (eval $ac_link) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771   (eval $ac_try) 2>&5
21772   ac_status=$?
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); }; }; then
21775   ac_cv_sizeof_time_t=`cat conftest.val`
21776 else
21777   echo "$as_me: program exited with status $ac_status" >&5
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21780
21781 ( exit $ac_status )
21782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
21783 See \`config.log' for more details." >&5
21784 echo "$as_me: error: cannot compute sizeof (time_t), 77
21785 See \`config.log' for more details." >&2;}
21786    { (exit 1); exit 1; }; }
21787 fi
21788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21789 fi
21790 fi
21791 rm -f conftest.val
21792 else
21793   ac_cv_sizeof_time_t=0
21794 fi
21795 fi
21796 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
21797 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
21798 cat >>confdefs.h <<_ACEOF
21799 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
21800 _ACEOF
21801
21802
21803
21804 # checks for pthreads
21805
21806
21807
21808
21809 ac_ext=c
21810 ac_cpp='$CPP $CPPFLAGS'
21811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21814
21815 acx_pthread_ok=no
21816
21817 # We used to check for pthread.h first, but this fails if pthread.h
21818 # requires special compiler flags (e.g. on True64 or Sequent).
21819 # It gets checked for in the link test anyway.
21820
21821 # First of all, check if the user has set any of the PTHREAD_LIBS,
21822 # etcetera environment variables, and if threads linking works using
21823 # them:
21824 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21825         save_CFLAGS="$CFLAGS"
21826         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21827         save_LIBS="$LIBS"
21828         LIBS="$PTHREAD_LIBS $LIBS"
21829         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21830 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21831         cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h.  */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h.  */
21837
21838 /* Override any gcc2 internal prototype to avoid an error.  */
21839 #ifdef __cplusplus
21840 extern "C"
21841 #endif
21842 /* We use char because int might match the return type of a gcc2
21843    builtin and then its argument prototype would still apply.  */
21844 char pthread_join ();
21845 int
21846 main ()
21847 {
21848 pthread_join ();
21849   ;
21850   return 0;
21851 }
21852 _ACEOF
21853 rm -f conftest.$ac_objext conftest$ac_exeext
21854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21855   (eval $ac_link) 2>conftest.er1
21856   ac_status=$?
21857   grep -v '^ *+' conftest.er1 >conftest.err
21858   rm -f conftest.er1
21859   cat conftest.err >&5
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); } &&
21862          { ac_try='test -z "$ac_c_werror_flag"
21863                          || test ! -s conftest.err'
21864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865   (eval $ac_try) 2>&5
21866   ac_status=$?
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); }; } &&
21869          { ac_try='test -s conftest$ac_exeext'
21870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871   (eval $ac_try) 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; }; then
21875   acx_pthread_ok=yes
21876 else
21877   echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21879
21880 fi
21881 rm -f conftest.err conftest.$ac_objext \
21882       conftest$ac_exeext conftest.$ac_ext
21883         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21884 echo "${ECHO_T}$acx_pthread_ok" >&6
21885         if test x"$acx_pthread_ok" = xno; then
21886                 PTHREAD_LIBS=""
21887                 PTHREAD_CFLAGS=""
21888         fi
21889         LIBS="$save_LIBS"
21890         CFLAGS="$save_CFLAGS"
21891 fi
21892
21893 # We must check for the threads library under a number of different
21894 # names; the ordering is very important because some systems
21895 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21896 # libraries is broken (non-POSIX).
21897
21898 # Create a list of thread flags to try.  Items starting with a "-" are
21899 # C compiler flags, and other items are library names, except for "none"
21900 # which indicates that we try without any flags at all, and "pthread-config"
21901 # which is a program returning the flags for the Pth emulation library.
21902
21903 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21904
21905 # The ordering *is* (sometimes) important.  Some notes on the
21906 # individual items follow:
21907
21908 # pthreads: AIX (must check this before -lpthread)
21909 # none: in case threads are in libc; should be tried before -Kthread and
21910 #       other compiler flags to prevent continual compiler warnings
21911 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21912 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21913 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21914 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21915 # -pthreads: Solaris/gcc
21916 # -mthreads: Mingw32/gcc, Lynx/gcc
21917 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21918 #      doesn't hurt to check since this sometimes defines pthreads too;
21919 #      also defines -D_REENTRANT)
21920 #      ... -mt is also the pthreads flag for HP/aCC
21921 # pthread: Linux, etcetera
21922 # --thread-safe: KAI C++
21923 # pthread-config: use pthread-config program (for GNU Pth library)
21924
21925 case "${host_cpu}-${host_os}" in
21926         *solaris*)
21927
21928         # On Solaris (at least, for some versions), libc contains stubbed
21929         # (non-functional) versions of the pthreads routines, so link-based
21930         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
21931         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21932         # a function called by this macro, so we could check for that, but
21933         # who knows whether they'll stub that too in a future libc.)  So,
21934         # we'll just look for -pthreads and -lpthread first:
21935
21936         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21937         ;;
21938 esac
21939
21940 if test x"$acx_pthread_ok" = xno; then
21941 for flag in $acx_pthread_flags; do
21942
21943         case $flag in
21944                 none)
21945                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21946 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
21947                 ;;
21948
21949                 -*)
21950                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21951 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
21952                 PTHREAD_CFLAGS="$flag"
21953                 ;;
21954
21955                 pthread-config)
21956                 # Extract the first word of "pthread-config", so it can be a program name with args.
21957 set dummy pthread-config; ac_word=$2
21958 echo "$as_me:$LINENO: checking for $ac_word" >&5
21959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21960 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21961   echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963   if test -n "$acx_pthread_config"; then
21964   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21965 else
21966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21967 for as_dir in $PATH
21968 do
21969   IFS=$as_save_IFS
21970   test -z "$as_dir" && as_dir=.
21971   for ac_exec_ext in '' $ac_executable_extensions; do
21972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21973     ac_cv_prog_acx_pthread_config="yes"
21974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21975     break 2
21976   fi
21977 done
21978 done
21979
21980   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21981 fi
21982 fi
21983 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21984 if test -n "$acx_pthread_config"; then
21985   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21986 echo "${ECHO_T}$acx_pthread_config" >&6
21987 else
21988   echo "$as_me:$LINENO: result: no" >&5
21989 echo "${ECHO_T}no" >&6
21990 fi
21991
21992                 if test x"$acx_pthread_config" = xno; then continue; fi
21993                 PTHREAD_CFLAGS="`pthread-config --cflags`"
21994                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21995                 ;;
21996
21997                 *)
21998                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21999 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22000                 PTHREAD_LIBS="-l$flag"
22001                 ;;
22002         esac
22003
22004         save_LIBS="$LIBS"
22005         save_CFLAGS="$CFLAGS"
22006         LIBS="$PTHREAD_LIBS $LIBS"
22007         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22008
22009         # Check for various functions.  We must include pthread.h,
22010         # since some functions may be macros.  (On the Sequent, we
22011         # need a special flag -Kthread to make this header compile.)
22012         # We check for pthread_join because it is in -lpthread on IRIX
22013         # while pthread_create is in libc.  We check for pthread_attr_init
22014         # due to DEC craziness with -lpthreads.  We check for
22015         # pthread_cleanup_push because it is one of the few pthread
22016         # functions on Solaris that doesn't have a non-functional libc stub.
22017         # We try pthread_create on general principles.
22018         cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h.  */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h.  */
22024 #include <pthread.h>
22025 int
22026 main ()
22027 {
22028 pthread_t th; pthread_join(th, 0);
22029                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22030                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22031   ;
22032   return 0;
22033 }
22034 _ACEOF
22035 rm -f conftest.$ac_objext conftest$ac_exeext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037   (eval $ac_link) 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } &&
22044          { ac_try='test -z "$ac_c_werror_flag"
22045                          || test ! -s conftest.err'
22046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047   (eval $ac_try) 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); }; } &&
22051          { ac_try='test -s conftest$ac_exeext'
22052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053   (eval $ac_try) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; }; then
22057   acx_pthread_ok=yes
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062 fi
22063 rm -f conftest.err conftest.$ac_objext \
22064       conftest$ac_exeext conftest.$ac_ext
22065
22066         LIBS="$save_LIBS"
22067         CFLAGS="$save_CFLAGS"
22068
22069         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22070 echo "${ECHO_T}$acx_pthread_ok" >&6
22071         if test "x$acx_pthread_ok" = xyes; then
22072                 break;
22073         fi
22074
22075         PTHREAD_LIBS=""
22076         PTHREAD_CFLAGS=""
22077 done
22078 fi
22079
22080 # Various other checks:
22081 if test "x$acx_pthread_ok" = xyes; then
22082         save_LIBS="$LIBS"
22083         LIBS="$PTHREAD_LIBS $LIBS"
22084         save_CFLAGS="$CFLAGS"
22085         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22086
22087         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22088         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22089 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22090         attr_name=unknown
22091         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22092             cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098 #include <pthread.h>
22099 int
22100 main ()
22101 {
22102 int attr=$attr; return attr;
22103   ;
22104   return 0;
22105 }
22106 _ACEOF
22107 rm -f conftest.$ac_objext conftest$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109   (eval $ac_link) 2>conftest.er1
22110   ac_status=$?
22111   grep -v '^ *+' conftest.er1 >conftest.err
22112   rm -f conftest.er1
22113   cat conftest.err >&5
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); } &&
22116          { ac_try='test -z "$ac_c_werror_flag"
22117                          || test ! -s conftest.err'
22118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); }; } &&
22123          { ac_try='test -s conftest$ac_exeext'
22124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125   (eval $ac_try) 2>&5
22126   ac_status=$?
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); }; }; then
22129   attr_name=$attr; break
22130 else
22131   echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 fi
22135 rm -f conftest.err conftest.$ac_objext \
22136       conftest$ac_exeext conftest.$ac_ext
22137         done
22138         echo "$as_me:$LINENO: result: $attr_name" >&5
22139 echo "${ECHO_T}$attr_name" >&6
22140         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22141
22142 cat >>confdefs.h <<_ACEOF
22143 #define PTHREAD_CREATE_JOINABLE $attr_name
22144 _ACEOF
22145
22146         fi
22147
22148         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22149 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22150         flag=no
22151         case "${host_cpu}-${host_os}" in
22152                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22153                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22154                 *solaris*)
22155                 if test "$GCC" = "yes"; then
22156                     flag="-D_REENTRANT"
22157                 else
22158                     flag="-mt -D_REENTRANT"
22159                 fi
22160                 ;;
22161         esac
22162         echo "$as_me:$LINENO: result: ${flag}" >&5
22163 echo "${ECHO_T}${flag}" >&6
22164         if test "x$flag" != xno; then
22165             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22166         fi
22167
22168         LIBS="$save_LIBS"
22169         CFLAGS="$save_CFLAGS"
22170
22171         # More AIX lossage: must compile with xlc_r or cc_r
22172         if test x"$GCC" != xyes; then
22173           for ac_prog in xlc_r cc_r
22174 do
22175   # Extract the first word of "$ac_prog", so it can be a program name with args.
22176 set dummy $ac_prog; ac_word=$2
22177 echo "$as_me:$LINENO: checking for $ac_word" >&5
22178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22179 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22180   echo $ECHO_N "(cached) $ECHO_C" >&6
22181 else
22182   if test -n "$PTHREAD_CC"; then
22183   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22184 else
22185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22186 for as_dir in $PATH
22187 do
22188   IFS=$as_save_IFS
22189   test -z "$as_dir" && as_dir=.
22190   for ac_exec_ext in '' $ac_executable_extensions; do
22191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22192     ac_cv_prog_PTHREAD_CC="$ac_prog"
22193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22194     break 2
22195   fi
22196 done
22197 done
22198
22199 fi
22200 fi
22201 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22202 if test -n "$PTHREAD_CC"; then
22203   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22204 echo "${ECHO_T}$PTHREAD_CC" >&6
22205 else
22206   echo "$as_me:$LINENO: result: no" >&5
22207 echo "${ECHO_T}no" >&6
22208 fi
22209
22210   test -n "$PTHREAD_CC" && break
22211 done
22212 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22213
22214         else
22215           PTHREAD_CC=$CC
22216         fi
22217 else
22218         PTHREAD_CC="$CC"
22219 fi
22220
22221
22222
22223
22224
22225 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22226 if test x"$acx_pthread_ok" = xyes; then
22227         enable_threads="pthread"
22228         :
22229 else
22230         acx_pthread_ok=no
22231         enable_threads="no"
22232 fi
22233 ac_ext=c
22234 ac_cpp='$CPP $CPPFLAGS'
22235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22238
22239
22240 if test $enable_threads != "pthread"; then
22241     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22242 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22243    { (exit 1); exit 1; }; }
22244 else
22245
22246 cat >>confdefs.h <<\_ACEOF
22247 #define HAVE_PTHREAD 1
22248 _ACEOF
22249
22250     LIBS="$PTHREAD_LIBS $LIBS"
22251     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22252     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22253 fi
22254
22255 # zlib settings
22256
22257 # Check whether --with-zlib or --without-zlib was given.
22258 if test "${with_zlib+set}" = set; then
22259   withval="$with_zlib"
22260
22261                 if test -d "$withval"; then
22262                         CPPFLAGS="${CPPFLAGS} -I$withval/include"
22263                         LDFLAGS="${LDFLAGS} -L$withval/lib"
22264                 fi
22265
22266
22267 fi;
22268 if test "${ac_cv_header_zlib_h+set}" = set; then
22269   echo "$as_me:$LINENO: checking for zlib.h" >&5
22270 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22271 if test "${ac_cv_header_zlib_h+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 fi
22274 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22275 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22276 else
22277   # Is the header compilable?
22278 echo "$as_me:$LINENO: checking zlib.h usability" >&5
22279 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 $ac_includes_default
22287 #include <zlib.h>
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22291   (eval $ac_compile) 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -z "$ac_c_werror_flag"
22299                          || test ! -s conftest.err'
22300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301   (eval $ac_try) 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); }; } &&
22305          { ac_try='test -s conftest.$ac_objext'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; }; then
22311   ac_header_compiler=yes
22312 else
22313   echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ac_header_compiler=no
22317 fi
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22320 echo "${ECHO_T}$ac_header_compiler" >&6
22321
22322 # Is the header present?
22323 echo "$as_me:$LINENO: checking zlib.h presence" >&5
22324 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 #include <zlib.h>
22332 _ACEOF
22333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22335   ac_status=$?
22336   grep -v '^ *+' conftest.er1 >conftest.err
22337   rm -f conftest.er1
22338   cat conftest.err >&5
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } >/dev/null; then
22341   if test -s conftest.err; then
22342     ac_cpp_err=$ac_c_preproc_warn_flag
22343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22344   else
22345     ac_cpp_err=
22346   fi
22347 else
22348   ac_cpp_err=yes
22349 fi
22350 if test -z "$ac_cpp_err"; then
22351   ac_header_preproc=yes
22352 else
22353   echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356   ac_header_preproc=no
22357 fi
22358 rm -f conftest.err conftest.$ac_ext
22359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22360 echo "${ECHO_T}$ac_header_preproc" >&6
22361
22362 # So?  What about this header?
22363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22364   yes:no: )
22365     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22366 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22367     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22368 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22369     ac_header_preproc=yes
22370     ;;
22371   no:yes:* )
22372     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22373 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22374     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22375 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22376     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22377 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22378     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22379 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22380     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22381 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22382     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22383 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22384     (
22385       cat <<\_ASBOX
22386 ## ------------------------------------------------ ##
22387 ## Report this to mace-opensaml-users@internet2.edu ##
22388 ## ------------------------------------------------ ##
22389 _ASBOX
22390     ) |
22391       sed "s/^/$as_me: WARNING:     /" >&2
22392     ;;
22393 esac
22394 echo "$as_me:$LINENO: checking for zlib.h" >&5
22395 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22396 if test "${ac_cv_header_zlib_h+set}" = set; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399   ac_cv_header_zlib_h=$ac_header_preproc
22400 fi
22401 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22402 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22403
22404 fi
22405 if test $ac_cv_header_zlib_h = yes; then
22406   :
22407 else
22408   { { echo "$as_me:$LINENO: error: unable to find zlib header files" >&5
22409 echo "$as_me: error: unable to find zlib header files" >&2;}
22410    { (exit 1); exit 1; }; }
22411 fi
22412
22413
22414
22415 echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
22416 echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6
22417 if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then
22418   echo $ECHO_N "(cached) $ECHO_C" >&6
22419 else
22420   ac_check_lib_save_LIBS=$LIBS
22421 LIBS="-lz  $LIBS"
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h.  */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h.  */
22428
22429 /* Override any gcc2 internal prototype to avoid an error.  */
22430 #ifdef __cplusplus
22431 extern "C"
22432 #endif
22433 /* We use char because int might match the return type of a gcc2
22434    builtin and then its argument prototype would still apply.  */
22435 char deflateInit2_ ();
22436 int
22437 main ()
22438 {
22439 deflateInit2_ ();
22440   ;
22441   return 0;
22442 }
22443 _ACEOF
22444 rm -f conftest.$ac_objext conftest$ac_exeext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22446   (eval $ac_link) 2>conftest.er1
22447   ac_status=$?
22448   grep -v '^ *+' conftest.er1 >conftest.err
22449   rm -f conftest.er1
22450   cat conftest.err >&5
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); } &&
22453          { ac_try='test -z "$ac_c_werror_flag"
22454                          || test ! -s conftest.err'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; } &&
22460          { ac_try='test -s conftest$ac_exeext'
22461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462   (eval $ac_try) 2>&5
22463   ac_status=$?
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); }; }; then
22466   ac_cv_lib_z_deflateInit2_=yes
22467 else
22468   echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_cv_lib_z_deflateInit2_=no
22472 fi
22473 rm -f conftest.err conftest.$ac_objext \
22474       conftest$ac_exeext conftest.$ac_ext
22475 LIBS=$ac_check_lib_save_LIBS
22476 fi
22477 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
22478 echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6
22479 if test $ac_cv_lib_z_deflateInit2_ = yes; then
22480   cat >>confdefs.h <<_ACEOF
22481 #define HAVE_LIBZ 1
22482 _ACEOF
22483
22484   LIBS="-lz $LIBS"
22485
22486 else
22487   { { echo "$as_me:$LINENO: error: unable to link with zlib library" >&5
22488 echo "$as_me: error: unable to link with zlib library" >&2;}
22489    { (exit 1); exit 1; }; }
22490 fi
22491
22492
22493 # OpenSSL settings
22494
22495 # Check whether --with-openssl or --without-openssl was given.
22496 if test "${with_openssl+set}" = set; then
22497   withval="$with_openssl"
22498   if test x_$with_openssl != x_/usr; then
22499         SSLFLAGS="-I${with_openssl}/include"
22500     fi
22501 fi;
22502
22503 if test "x$SSLFLAGS" = "x" ; then
22504     # Extract the first word of "pkg-config", so it can be a program name with args.
22505 set dummy pkg-config; ac_word=$2
22506 echo "$as_me:$LINENO: checking for $ac_word" >&5
22507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22508 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22509   echo $ECHO_N "(cached) $ECHO_C" >&6
22510 else
22511   case $PKG_CONFIG in
22512   [\\/]* | ?:[\\/]*)
22513   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22514   ;;
22515   *)
22516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22517 for as_dir in $PATH
22518 do
22519   IFS=$as_save_IFS
22520   test -z "$as_dir" && as_dir=.
22521   for ac_exec_ext in '' $ac_executable_extensions; do
22522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22523     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22525     break 2
22526   fi
22527 done
22528 done
22529
22530   ;;
22531 esac
22532 fi
22533 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22534
22535 if test -n "$PKG_CONFIG"; then
22536   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22537 echo "${ECHO_T}$PKG_CONFIG" >&6
22538 else
22539   echo "$as_me:$LINENO: result: no" >&5
22540 echo "${ECHO_T}no" >&6
22541 fi
22542
22543     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22544         if pkg-config openssl ; then
22545             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22546         else
22547             { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22548 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22549    { (exit 1); exit 1; }; }
22550         fi
22551     fi
22552 fi
22553
22554 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22555 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22556 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22557 echo "${ECHO_T}$SSLFLAGS" >&6
22558 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22559
22560 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22561   echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22562 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22563 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22564   echo $ECHO_N "(cached) $ECHO_C" >&6
22565 fi
22566 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22567 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22568 else
22569   # Is the header compilable?
22570 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22571 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22572 cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h.  */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h.  */
22578 $ac_includes_default
22579 #include <openssl/x509.h>
22580 _ACEOF
22581 rm -f conftest.$ac_objext
22582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22583   (eval $ac_compile) 2>conftest.er1
22584   ac_status=$?
22585   grep -v '^ *+' conftest.er1 >conftest.err
22586   rm -f conftest.er1
22587   cat conftest.err >&5
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); } &&
22590          { ac_try='test -z "$ac_c_werror_flag"
22591                          || test ! -s conftest.err'
22592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593   (eval $ac_try) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; } &&
22597          { ac_try='test -s conftest.$ac_objext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   ac_header_compiler=yes
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608 ac_header_compiler=no
22609 fi
22610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22612 echo "${ECHO_T}$ac_header_compiler" >&6
22613
22614 # Is the header present?
22615 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22616 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22617 cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h.  */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h.  */
22623 #include <openssl/x509.h>
22624 _ACEOF
22625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } >/dev/null; then
22633   if test -s conftest.err; then
22634     ac_cpp_err=$ac_c_preproc_warn_flag
22635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22636   else
22637     ac_cpp_err=
22638   fi
22639 else
22640   ac_cpp_err=yes
22641 fi
22642 if test -z "$ac_cpp_err"; then
22643   ac_header_preproc=yes
22644 else
22645   echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648   ac_header_preproc=no
22649 fi
22650 rm -f conftest.err conftest.$ac_ext
22651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22652 echo "${ECHO_T}$ac_header_preproc" >&6
22653
22654 # So?  What about this header?
22655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22656   yes:no: )
22657     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22658 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22659     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22660 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22661     ac_header_preproc=yes
22662     ;;
22663   no:yes:* )
22664     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22665 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22666     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&5
22667 echo "$as_me: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&2;}
22668     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22669 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22670     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&5
22671 echo "$as_me: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22672     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22673 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22674     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22675 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22676     (
22677       cat <<\_ASBOX
22678 ## ------------------------------------------------ ##
22679 ## Report this to mace-opensaml-users@internet2.edu ##
22680 ## ------------------------------------------------ ##
22681 _ASBOX
22682     ) |
22683       sed "s/^/$as_me: WARNING:     /" >&2
22684     ;;
22685 esac
22686 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22687 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22688 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22689   echo $ECHO_N "(cached) $ECHO_C" >&6
22690 else
22691   ac_cv_header_openssl_x509_h=$ac_header_preproc
22692 fi
22693 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22694 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22695
22696 fi
22697 if test $ac_cv_header_openssl_x509_h = yes; then
22698   :
22699 else
22700   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22701 echo "$as_me: error: unable to find openssl header files" >&2;}
22702    { (exit 1); exit 1; }; }
22703 fi
22704
22705
22706
22707 ac_ext=cc
22708 ac_cpp='$CXXCPP $CPPFLAGS'
22709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22712
22713
22714 # C++ requirements
22715 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22716 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22717 if test "${ac_cv_cxx_namespaces+set}" = set; then
22718   echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720
22721
22722  ac_ext=cc
22723 ac_cpp='$CXXCPP $CPPFLAGS'
22724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22727
22728  cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734 namespace Outer { namespace Inner { int i = 0; }}
22735 int
22736 main ()
22737 {
22738 using namespace Outer::Inner; return i;
22739   ;
22740   return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext
22744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22745   (eval $ac_compile) 2>conftest.er1
22746   ac_status=$?
22747   grep -v '^ *+' conftest.er1 >conftest.err
22748   rm -f conftest.er1
22749   cat conftest.err >&5
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } &&
22752          { ac_try='test -z "$ac_cxx_werror_flag"
22753                          || test ! -s conftest.err'
22754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; } &&
22759          { ac_try='test -s conftest.$ac_objext'
22760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761   (eval $ac_try) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); }; }; then
22765   ac_cv_cxx_namespaces=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770 ac_cv_cxx_namespaces=no
22771 fi
22772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22773  ac_ext=cc
22774 ac_cpp='$CXXCPP $CPPFLAGS'
22775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22778
22779
22780 fi
22781 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22782 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22783 if test "$ac_cv_cxx_namespaces" = yes; then
22784
22785 cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_NAMESPACES 1
22787 _ACEOF
22788
22789 fi
22790
22791 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22792 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22793 if test "${ac_cv_cxx_have_stl+set}" = set; then
22794   echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796
22797
22798
22799  ac_ext=cc
22800 ac_cpp='$CXXCPP $CPPFLAGS'
22801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22804
22805  cat >conftest.$ac_ext <<_ACEOF
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811 #include <list>
22812 #include <deque>
22813 #ifdef HAVE_NAMESPACES
22814 using namespace std;
22815 #endif
22816 int
22817 main ()
22818 {
22819 list<int> x; x.push_back(5);
22820 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22821   ;
22822   return 0;
22823 }
22824 _ACEOF
22825 rm -f conftest.$ac_objext
22826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22827   (eval $ac_compile) 2>conftest.er1
22828   ac_status=$?
22829   grep -v '^ *+' conftest.er1 >conftest.err
22830   rm -f conftest.er1
22831   cat conftest.err >&5
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); } &&
22834          { ac_try='test -z "$ac_cxx_werror_flag"
22835                          || test ! -s conftest.err'
22836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837   (eval $ac_try) 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); }; } &&
22841          { ac_try='test -s conftest.$ac_objext'
22842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843   (eval $ac_try) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); }; }; then
22847   ac_cv_cxx_have_stl=yes
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ac_cv_cxx_have_stl=no
22853 fi
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22855  ac_ext=cc
22856 ac_cpp='$CXXCPP $CPPFLAGS'
22857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22860
22861
22862 fi
22863 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22864 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22865 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22866   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22867 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22868    { (exit 1); exit 1; }; }
22869 fi
22870
22871 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22872 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22873 if test "${ac_cv_cxx_namespaces+set}" = set; then
22874   echo $ECHO_N "(cached) $ECHO_C" >&6
22875 else
22876
22877
22878  ac_ext=cc
22879 ac_cpp='$CXXCPP $CPPFLAGS'
22880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22883
22884  cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h.  */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h.  */
22890 namespace Outer { namespace Inner { int i = 0; }}
22891 int
22892 main ()
22893 {
22894 using namespace Outer::Inner; return i;
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 rm -f conftest.$ac_objext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22901   (eval $ac_compile) 2>conftest.er1
22902   ac_status=$?
22903   grep -v '^ *+' conftest.er1 >conftest.err
22904   rm -f conftest.er1
22905   cat conftest.err >&5
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -z "$ac_cxx_werror_flag"
22909                          || test ! -s conftest.err'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; } &&
22915          { ac_try='test -s conftest.$ac_objext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   ac_cv_cxx_namespaces=yes
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_cv_cxx_namespaces=no
22927 fi
22928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22929  ac_ext=cc
22930 ac_cpp='$CXXCPP $CPPFLAGS'
22931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22934
22935
22936 fi
22937 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22938 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22939 if test "$ac_cv_cxx_namespaces" = yes; then
22940
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_NAMESPACES 1
22943 _ACEOF
22944
22945 fi
22946
22947
22948 # log4shib settings (favor this version over the log4cpp code)
22949 # Extract the first word of "log4shib-config", so it can be a program name with args.
22950 set dummy log4shib-config; ac_word=$2
22951 echo "$as_me:$LINENO: checking for $ac_word" >&5
22952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22953 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22954   echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956   case $LOG4SHIB_CONFIG in
22957   [\\/]* | ?:[\\/]*)
22958   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22959   ;;
22960   *)
22961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962 for as_dir in $PATH
22963 do
22964   IFS=$as_save_IFS
22965   test -z "$as_dir" && as_dir=.
22966   for ac_exec_ext in '' $ac_executable_extensions; do
22967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22968     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22970     break 2
22971   fi
22972 done
22973 done
22974
22975   ;;
22976 esac
22977 fi
22978 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
22979
22980 if test -n "$LOG4SHIB_CONFIG"; then
22981   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
22982 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
22983 else
22984   echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6
22986 fi
22987
22988
22989 # Check whether --with-log4shib or --without-log4shib was given.
22990 if test "${with_log4shib+set}" = set; then
22991   withval="$with_log4shib"
22992
22993     LOG4SHIB_CONFIG="${with_log4shib}"
22994     if ! test -f "${LOG4SHIB_CONFIG}" ; then
22995         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
22996     fi
22997
22998 fi;
22999 if test -f "${LOG4SHIB_CONFIG}"; then
23000     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23001     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23002
23003 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23004   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23005 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23006 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23007   echo $ECHO_N "(cached) $ECHO_C" >&6
23008 fi
23009 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23010 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23011 else
23012   # Is the header compilable?
23013 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23014 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h.  */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h.  */
23021 $ac_includes_default
23022 #include <log4shib/CategoryStream.hh>
23023 _ACEOF
23024 rm -f conftest.$ac_objext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23026   (eval $ac_compile) 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } &&
23033          { ac_try='test -z "$ac_cxx_werror_flag"
23034                          || test ! -s conftest.err'
23035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036   (eval $ac_try) 2>&5
23037   ac_status=$?
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); }; } &&
23040          { ac_try='test -s conftest.$ac_objext'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; }; then
23046   ac_header_compiler=yes
23047 else
23048   echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051 ac_header_compiler=no
23052 fi
23053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23055 echo "${ECHO_T}$ac_header_compiler" >&6
23056
23057 # Is the header present?
23058 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23059 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 #include <log4shib/CategoryStream.hh>
23067 _ACEOF
23068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } >/dev/null; then
23076   if test -s conftest.err; then
23077     ac_cpp_err=$ac_cxx_preproc_warn_flag
23078     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23079   else
23080     ac_cpp_err=
23081   fi
23082 else
23083   ac_cpp_err=yes
23084 fi
23085 if test -z "$ac_cpp_err"; then
23086   ac_header_preproc=yes
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091   ac_header_preproc=no
23092 fi
23093 rm -f conftest.err conftest.$ac_ext
23094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23095 echo "${ECHO_T}$ac_header_preproc" >&6
23096
23097 # So?  What about this header?
23098 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23099   yes:no: )
23100     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23101 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23102     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23103 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23104     ac_header_preproc=yes
23105     ;;
23106   no:yes:* )
23107     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23108 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23109     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23110 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23111     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23112 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23114 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23116 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23117     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23118 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23119     (
23120       cat <<\_ASBOX
23121 ## ------------------------------------------------ ##
23122 ## Report this to mace-opensaml-users@internet2.edu ##
23123 ## ------------------------------------------------ ##
23124 _ASBOX
23125     ) |
23126       sed "s/^/$as_me: WARNING:     /" >&2
23127     ;;
23128 esac
23129 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23130 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23131 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23132   echo $ECHO_N "(cached) $ECHO_C" >&6
23133 else
23134   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23135 fi
23136 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23137 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23138
23139 fi
23140 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23141   :
23142 else
23143   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23144 echo "$as_me: error: unable to find log4shib header files" >&2;}
23145    { (exit 1); exit 1; }; }
23146 fi
23147
23148
23149         cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h.  */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h.  */
23155 #include <log4shib/Category.hh>
23156 #include <log4shib/CategoryStream.hh>
23157 int
23158 main ()
23159 {
23160 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23161   ;
23162   return 0;
23163 }
23164 _ACEOF
23165 rm -f conftest.$ac_objext conftest$ac_exeext
23166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23167   (eval $ac_link) 2>conftest.er1
23168   ac_status=$?
23169   grep -v '^ *+' conftest.er1 >conftest.err
23170   rm -f conftest.er1
23171   cat conftest.err >&5
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); } &&
23174          { ac_try='test -z "$ac_cxx_werror_flag"
23175                          || test ! -s conftest.err'
23176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); }; } &&
23181          { ac_try='test -s conftest$ac_exeext'
23182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183   (eval $ac_try) 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; }; then
23187
23188 cat >>confdefs.h <<\_ACEOF
23189 #define OPENSAML_LOG4SHIB 1
23190 _ACEOF
23191
23192 else
23193   echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23197 echo "$as_me: error: unable to link with log4shib" >&2;}
23198    { (exit 1); exit 1; }; }
23199 fi
23200 rm -f conftest.err conftest.$ac_objext \
23201       conftest$ac_exeext conftest.$ac_ext
23202 else
23203     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23204 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23205     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23206 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23207
23208         # log4cpp settings
23209         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23210 set dummy log4cpp-config; ac_word=$2
23211 echo "$as_me:$LINENO: checking for $ac_word" >&5
23212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23213 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23214   echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216   case $LOG4CPP_CONFIG in
23217   [\\/]* | ?:[\\/]*)
23218   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23219   ;;
23220   *)
23221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23222 for as_dir in $PATH
23223 do
23224   IFS=$as_save_IFS
23225   test -z "$as_dir" && as_dir=.
23226   for ac_exec_ext in '' $ac_executable_extensions; do
23227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23228     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23230     break 2
23231   fi
23232 done
23233 done
23234
23235   ;;
23236 esac
23237 fi
23238 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23239
23240 if test -n "$LOG4CPP_CONFIG"; then
23241   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23242 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23243 else
23244   echo "$as_me:$LINENO: result: no" >&5
23245 echo "${ECHO_T}no" >&6
23246 fi
23247
23248
23249 # Check whether --with-log4cpp or --without-log4cpp was given.
23250 if test "${with_log4cpp+set}" = set; then
23251   withval="$with_log4cpp"
23252
23253             LOG4CPP_CONFIG="${with_log4cpp}"
23254             if ! test -f "${LOG4CPP_CONFIG}" ; then
23255                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23256             fi
23257
23258 fi;
23259         if test -f "${LOG4CPP_CONFIG}"; then
23260                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23261 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23262             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23263             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23264                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23265   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23266 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23267 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23268   echo $ECHO_N "(cached) $ECHO_C" >&6
23269 fi
23270 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23271 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23272 else
23273   # Is the header compilable?
23274 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23275 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23276 cat >conftest.$ac_ext <<_ACEOF
23277 /* confdefs.h.  */
23278 _ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h.  */
23282 $ac_includes_default
23283 #include <log4cpp/CategoryStream.hh>
23284 _ACEOF
23285 rm -f conftest.$ac_objext
23286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23287   (eval $ac_compile) 2>conftest.er1
23288   ac_status=$?
23289   grep -v '^ *+' conftest.er1 >conftest.err
23290   rm -f conftest.er1
23291   cat conftest.err >&5
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); } &&
23294          { ac_try='test -z "$ac_cxx_werror_flag"
23295                          || test ! -s conftest.err'
23296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297   (eval $ac_try) 2>&5
23298   ac_status=$?
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); }; } &&
23301          { ac_try='test -s conftest.$ac_objext'
23302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23303   (eval $ac_try) 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); }; }; then
23307   ac_header_compiler=yes
23308 else
23309   echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23311
23312 ac_header_compiler=no
23313 fi
23314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23316 echo "${ECHO_T}$ac_header_compiler" >&6
23317
23318 # Is the header present?
23319 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23320 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23321 cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h.  */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h.  */
23327 #include <log4cpp/CategoryStream.hh>
23328 _ACEOF
23329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } >/dev/null; then
23337   if test -s conftest.err; then
23338     ac_cpp_err=$ac_cxx_preproc_warn_flag
23339     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23340   else
23341     ac_cpp_err=
23342   fi
23343 else
23344   ac_cpp_err=yes
23345 fi
23346 if test -z "$ac_cpp_err"; then
23347   ac_header_preproc=yes
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352   ac_header_preproc=no
23353 fi
23354 rm -f conftest.err conftest.$ac_ext
23355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23356 echo "${ECHO_T}$ac_header_preproc" >&6
23357
23358 # So?  What about this header?
23359 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23360   yes:no: )
23361     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23362 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23363     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23364 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23365     ac_header_preproc=yes
23366     ;;
23367   no:yes:* )
23368     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23369 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23370     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23371 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23372     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23373 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23374     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23375 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23376     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23377 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23378     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23379 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23380     (
23381       cat <<\_ASBOX
23382 ## ------------------------------------------------ ##
23383 ## Report this to mace-opensaml-users@internet2.edu ##
23384 ## ------------------------------------------------ ##
23385 _ASBOX
23386     ) |
23387       sed "s/^/$as_me: WARNING:     /" >&2
23388     ;;
23389 esac
23390 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23391 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23392 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23393   echo $ECHO_N "(cached) $ECHO_C" >&6
23394 else
23395   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23396 fi
23397 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23398 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23399
23400 fi
23401 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23402   :
23403 else
23404   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23405 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23406    { (exit 1); exit 1; }; }
23407 fi
23408
23409
23410                 cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416 #include <log4cpp/Category.hh>
23417 #include <log4cpp/CategoryStream.hh>
23418 int
23419 main ()
23420 {
23421 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext conftest$ac_exeext
23427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23428   (eval $ac_link) 2>conftest.er1
23429   ac_status=$?
23430   grep -v '^ *+' conftest.er1 >conftest.err
23431   rm -f conftest.er1
23432   cat conftest.err >&5
23433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); } &&
23435          { ac_try='test -z "$ac_cxx_werror_flag"
23436                          || test ! -s conftest.err'
23437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438   (eval $ac_try) 2>&5
23439   ac_status=$?
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); }; } &&
23442          { ac_try='test -s conftest$ac_exeext'
23443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444   (eval $ac_try) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); }; }; then
23448
23449 cat >>confdefs.h <<\_ACEOF
23450 #define OPENSAML_LOG4CPP 1
23451 _ACEOF
23452
23453 else
23454   echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23456
23457 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23458 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23459    { (exit 1); exit 1; }; }
23460 fi
23461 rm -f conftest.err conftest.$ac_objext \
23462       conftest$ac_exeext conftest.$ac_ext
23463         else
23464             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23465 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23466    { (exit 1); exit 1; }; }
23467         fi
23468 fi
23469
23470 # Xerces settings
23471
23472 # Check whether --with-xerces or --without-xerces was given.
23473 if test "${with_xerces+set}" = set; then
23474   withval="$with_xerces"
23475   if test x_$with_xerces != x_/usr; then
23476                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23477                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23478             fi
23479 fi;
23480 LIBS="-lxerces-c $LIBS"
23481 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23482   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23483 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23484 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23485   echo $ECHO_N "(cached) $ECHO_C" >&6
23486 fi
23487 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23488 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23489 else
23490   # Is the header compilable?
23491 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23492 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h.  */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h.  */
23499 $ac_includes_default
23500 #include <xercesc/dom/DOM.hpp>
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23504   (eval $ac_compile) 2>conftest.er1
23505   ac_status=$?
23506   grep -v '^ *+' conftest.er1 >conftest.err
23507   rm -f conftest.er1
23508   cat conftest.err >&5
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } &&
23511          { ac_try='test -z "$ac_cxx_werror_flag"
23512                          || test ! -s conftest.err'
23513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514   (eval $ac_try) 2>&5
23515   ac_status=$?
23516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); }; } &&
23518          { ac_try='test -s conftest.$ac_objext'
23519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520   (eval $ac_try) 2>&5
23521   ac_status=$?
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); }; }; then
23524   ac_header_compiler=yes
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 ac_header_compiler=no
23530 fi
23531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23533 echo "${ECHO_T}$ac_header_compiler" >&6
23534
23535 # Is the header present?
23536 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23537 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23538 cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h.  */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h.  */
23544 #include <xercesc/dom/DOM.hpp>
23545 _ACEOF
23546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23548   ac_status=$?
23549   grep -v '^ *+' conftest.er1 >conftest.err
23550   rm -f conftest.er1
23551   cat conftest.err >&5
23552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553   (exit $ac_status); } >/dev/null; then
23554   if test -s conftest.err; then
23555     ac_cpp_err=$ac_cxx_preproc_warn_flag
23556     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23557   else
23558     ac_cpp_err=
23559   fi
23560 else
23561   ac_cpp_err=yes
23562 fi
23563 if test -z "$ac_cpp_err"; then
23564   ac_header_preproc=yes
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569   ac_header_preproc=no
23570 fi
23571 rm -f conftest.err conftest.$ac_ext
23572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23573 echo "${ECHO_T}$ac_header_preproc" >&6
23574
23575 # So?  What about this header?
23576 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23577   yes:no: )
23578     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23579 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23580     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23581 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23582     ac_header_preproc=yes
23583     ;;
23584   no:yes:* )
23585     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23586 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23587     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23588 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23589     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23590 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23591     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23592 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23593     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23594 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23595     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23596 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23597     (
23598       cat <<\_ASBOX
23599 ## ------------------------------------------------ ##
23600 ## Report this to mace-opensaml-users@internet2.edu ##
23601 ## ------------------------------------------------ ##
23602 _ASBOX
23603     ) |
23604       sed "s/^/$as_me: WARNING:     /" >&2
23605     ;;
23606 esac
23607 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23608 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23609 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23610   echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23613 fi
23614 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23615 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23616
23617 fi
23618 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23619   :
23620 else
23621   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23622 echo "$as_me: error: unable to find xerces header files" >&2;}
23623    { (exit 1); exit 1; }; }
23624 fi
23625
23626
23627 echo "$as_me:$LINENO: checking Xerces version" >&5
23628 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635 #include <xercesc/util/XercesVersion.hpp>
23636 int
23637 main ()
23638 {
23639 #if  _XERCES_VERSION != 20600
23640 int i = 0;
23641 #else
23642 #error cannot use version 2.6.0
23643 #endif
23644   ;
23645   return 0;
23646 }
23647 _ACEOF
23648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23650   ac_status=$?
23651   grep -v '^ *+' conftest.er1 >conftest.err
23652   rm -f conftest.er1
23653   cat conftest.err >&5
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } >/dev/null; then
23656   if test -s conftest.err; then
23657     ac_cpp_err=$ac_cxx_preproc_warn_flag
23658     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23659   else
23660     ac_cpp_err=
23661   fi
23662 else
23663   ac_cpp_err=yes
23664 fi
23665 if test -z "$ac_cpp_err"; then
23666   echo "$as_me:$LINENO: result: OK" >&5
23667 echo "${ECHO_T}OK" >&6
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672   { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project
23673 See \`config.log' for more details." >&5
23674 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project
23675 See \`config.log' for more details." >&2;}
23676    { (exit 1); exit 1; }; }
23677 fi
23678 rm -f conftest.err conftest.$ac_ext
23679 cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h.  */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h.  */
23685 #include <xercesc/util/PlatformUtils.hpp>
23686 int
23687 main ()
23688 {
23689 xercesc::XMLPlatformUtils::Initialize()
23690   ;
23691   return 0;
23692 }
23693 _ACEOF
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23696   (eval $ac_link) 2>conftest.er1
23697   ac_status=$?
23698   grep -v '^ *+' conftest.er1 >conftest.err
23699   rm -f conftest.er1
23700   cat conftest.err >&5
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); } &&
23703          { ac_try='test -z "$ac_cxx_werror_flag"
23704                          || test ! -s conftest.err'
23705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706   (eval $ac_try) 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); }; } &&
23710          { ac_try='test -s conftest$ac_exeext'
23711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712   (eval $ac_try) 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; }; then
23716
23717 cat >>confdefs.h <<\_ACEOF
23718 #define HAVE_LIBXERCESC 1
23719 _ACEOF
23720
23721 else
23722   echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23724
23725 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23726 echo "$as_me: error: unable to link with Xerces" >&2;}
23727    { (exit 1); exit 1; }; }
23728 fi
23729 rm -f conftest.err conftest.$ac_objext \
23730       conftest$ac_exeext conftest.$ac_ext
23731
23732 echo "$as_me:$LINENO: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
23733 echo $ECHO_N "checking whether Xerces XMLString::release(XMLByte**) exists... $ECHO_C" >&6
23734 cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h.  */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h.  */
23740 #include <xercesc/util/XMLString.hpp>
23741 int
23742 main ()
23743 {
23744 using namespace XERCES_CPP_NAMESPACE;
23745       XMLByte* buf=NULL;
23746       XMLString::release(&buf);
23747
23748   ;
23749   return 0;
23750 }
23751 _ACEOF
23752 rm -f conftest.$ac_objext
23753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23754   (eval $ac_compile) 2>conftest.er1
23755   ac_status=$?
23756   grep -v '^ *+' conftest.er1 >conftest.err
23757   rm -f conftest.er1
23758   cat conftest.err >&5
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); } &&
23761          { ac_try='test -z "$ac_cxx_werror_flag"
23762                          || test ! -s conftest.err'
23763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764   (eval $ac_try) 2>&5
23765   ac_status=$?
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); }; } &&
23768          { ac_try='test -s conftest.$ac_objext'
23769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23770   (eval $ac_try) 2>&5
23771   ac_status=$?
23772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773   (exit $ac_status); }; }; then
23774   echo "$as_me:$LINENO: result: yes" >&5
23775 echo "${ECHO_T}yes" >&6
23776
23777 cat >>confdefs.h <<\_ACEOF
23778 #define OPENSAML_XERCESC_HAS_XMLBYTE_RELEASE 1
23779 _ACEOF
23780
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785 echo "$as_me:$LINENO: result: no" >&5
23786 echo "${ECHO_T}no" >&6
23787 fi
23788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23789
23790 # XML-Security settings
23791
23792 # Check whether --with-xmlsec or --without-xmlsec was given.
23793 if test "${with_xmlsec+set}" = set; then
23794   withval="$with_xmlsec"
23795   if test x_$with_xmlsec != x_/usr; then
23796         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
23797         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
23798     fi
23799 fi;
23800 LIBS="-lxml-security-c $LIBS"
23801 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23802   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23803 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23804 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 fi
23807 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23808 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23809 else
23810   # Is the header compilable?
23811 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
23812 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
23813 cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h.  */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h.  */
23819 $ac_includes_default
23820 #include <xsec/utils/XSECPlatformUtils.hpp>
23821 _ACEOF
23822 rm -f conftest.$ac_objext
23823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23824   (eval $ac_compile) 2>conftest.er1
23825   ac_status=$?
23826   grep -v '^ *+' conftest.er1 >conftest.err
23827   rm -f conftest.er1
23828   cat conftest.err >&5
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } &&
23831          { ac_try='test -z "$ac_cxx_werror_flag"
23832                          || test ! -s conftest.err'
23833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834   (eval $ac_try) 2>&5
23835   ac_status=$?
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); }; } &&
23838          { ac_try='test -s conftest.$ac_objext'
23839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840   (eval $ac_try) 2>&5
23841   ac_status=$?
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); }; }; then
23844   ac_header_compiler=yes
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849 ac_header_compiler=no
23850 fi
23851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23853 echo "${ECHO_T}$ac_header_compiler" >&6
23854
23855 # Is the header present?
23856 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
23857 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h.  */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h.  */
23864 #include <xsec/utils/XSECPlatformUtils.hpp>
23865 _ACEOF
23866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23868   ac_status=$?
23869   grep -v '^ *+' conftest.er1 >conftest.err
23870   rm -f conftest.er1
23871   cat conftest.err >&5
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } >/dev/null; then
23874   if test -s conftest.err; then
23875     ac_cpp_err=$ac_cxx_preproc_warn_flag
23876     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23877   else
23878     ac_cpp_err=
23879   fi
23880 else
23881   ac_cpp_err=yes
23882 fi
23883 if test -z "$ac_cpp_err"; then
23884   ac_header_preproc=yes
23885 else
23886   echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23888
23889   ac_header_preproc=no
23890 fi
23891 rm -f conftest.err conftest.$ac_ext
23892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23893 echo "${ECHO_T}$ac_header_preproc" >&6
23894
23895 # So?  What about this header?
23896 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23897   yes:no: )
23898     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23899 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23900     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
23901 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
23902     ac_header_preproc=yes
23903     ;;
23904   no:yes:* )
23905     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
23906 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
23907     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
23908 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
23909     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
23910 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
23911     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23912 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23913     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
23914 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
23915     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
23916 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
23917     (
23918       cat <<\_ASBOX
23919 ## ------------------------------------------------ ##
23920 ## Report this to mace-opensaml-users@internet2.edu ##
23921 ## ------------------------------------------------ ##
23922 _ASBOX
23923     ) |
23924       sed "s/^/$as_me: WARNING:     /" >&2
23925     ;;
23926 esac
23927 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23928 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23929 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23930   echo $ECHO_N "(cached) $ECHO_C" >&6
23931 else
23932   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
23933 fi
23934 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23935 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23936
23937 fi
23938 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
23939   :
23940 else
23941   { { echo "$as_me:$LINENO: error: unable to find xmlsec header files" >&5
23942 echo "$as_me: error: unable to find xmlsec header files" >&2;}
23943    { (exit 1); exit 1; }; }
23944 fi
23945
23946
23947 echo "$as_me:$LINENO: checking XML-Security version" >&5
23948 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
23949 cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h.  */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h.  */
23955 #include <xsec/utils/XSECPlatformUtils.hpp>
23956 int
23957 main ()
23958 {
23959 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
23960 int i = 0;
23961 #else
23962 #error need version 1.4.0 or later
23963 #endif
23964   ;
23965   return 0;
23966 }
23967 _ACEOF
23968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } >/dev/null; then
23976   if test -s conftest.err; then
23977     ac_cpp_err=$ac_cxx_preproc_warn_flag
23978     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23979   else
23980     ac_cpp_err=
23981   fi
23982 else
23983   ac_cpp_err=yes
23984 fi
23985 if test -z "$ac_cpp_err"; then
23986   echo "$as_me:$LINENO: result: OK" >&5
23987 echo "${ECHO_T}OK" >&6
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
23993 See \`config.log' for more details." >&5
23994 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
23995 See \`config.log' for more details." >&2;}
23996    { (exit 1); exit 1; }; }
23997 fi
23998 rm -f conftest.err conftest.$ac_ext
23999 cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h.  */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h.  */
24005 #include <xsec/utils/XSECPlatformUtils.hpp>
24006 int
24007 main ()
24008 {
24009 XSECPlatformUtils::Initialise()
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24016   (eval $ac_link) 2>conftest.er1
24017   ac_status=$?
24018   grep -v '^ *+' conftest.er1 >conftest.err
24019   rm -f conftest.er1
24020   cat conftest.err >&5
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); } &&
24023          { ac_try='test -z "$ac_cxx_werror_flag"
24024                          || test ! -s conftest.err'
24025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026   (eval $ac_try) 2>&5
24027   ac_status=$?
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); }; } &&
24030          { ac_try='test -s conftest$ac_exeext'
24031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); }; }; then
24036
24037 cat >>confdefs.h <<\_ACEOF
24038 #define HAVE_LIBXSEC 1
24039 _ACEOF
24040
24041 else
24042   echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24044
24045 { { echo "$as_me:$LINENO: error: unable to link with XML-Security library" >&5
24046 echo "$as_me: error: unable to link with XML-Security library" >&2;}
24047    { (exit 1); exit 1; }; }
24048
24049 fi
24050 rm -f conftest.err conftest.$ac_objext \
24051       conftest$ac_exeext conftest.$ac_ext
24052
24053 # XML-Tooling settings
24054
24055 # Check whether --with-xmltooling or --without-xmltooling was given.
24056 if test "${with_xmltooling+set}" = set; then
24057   withval="$with_xmltooling"
24058   if test x_$with_xmltooling != x_/usr; then
24059         LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
24060         CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
24061         DX_INCLUDE="${with_xmltooling}/include"
24062     fi
24063 fi;
24064 LIBS="-lxmltooling $LIBS"
24065 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24066   echo "$as_me:$LINENO: checking for xmltooling/XMLToolingConfig.h" >&5
24067 echo $ECHO_N "checking for xmltooling/XMLToolingConfig.h... $ECHO_C" >&6
24068 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24069   echo $ECHO_N "(cached) $ECHO_C" >&6
24070 fi
24071 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_XMLToolingConfig_h" >&5
24072 echo "${ECHO_T}$ac_cv_header_xmltooling_XMLToolingConfig_h" >&6
24073 else
24074   # Is the header compilable?
24075 echo "$as_me:$LINENO: checking xmltooling/XMLToolingConfig.h usability" >&5
24076 echo $ECHO_N "checking xmltooling/XMLToolingConfig.h usability... $ECHO_C" >&6
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h.  */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h.  */
24083 $ac_includes_default
24084 #include <xmltooling/XMLToolingConfig.h>
24085 _ACEOF
24086 rm -f conftest.$ac_objext
24087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24088   (eval $ac_compile) 2>conftest.er1
24089   ac_status=$?
24090   grep -v '^ *+' conftest.er1 >conftest.err
24091   rm -f conftest.er1
24092   cat conftest.err >&5
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); } &&
24095          { ac_try='test -z "$ac_cxx_werror_flag"
24096                          || test ! -s conftest.err'
24097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098   (eval $ac_try) 2>&5
24099   ac_status=$?
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); }; } &&
24102          { ac_try='test -s conftest.$ac_objext'
24103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104   (eval $ac_try) 2>&5
24105   ac_status=$?
24106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); }; }; then
24108   ac_header_compiler=yes
24109 else
24110   echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24112
24113 ac_header_compiler=no
24114 fi
24115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24117 echo "${ECHO_T}$ac_header_compiler" >&6
24118
24119 # Is the header present?
24120 echo "$as_me:$LINENO: checking xmltooling/XMLToolingConfig.h presence" >&5
24121 echo $ECHO_N "checking xmltooling/XMLToolingConfig.h presence... $ECHO_C" >&6
24122 cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h.  */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h.  */
24128 #include <xmltooling/XMLToolingConfig.h>
24129 _ACEOF
24130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24132   ac_status=$?
24133   grep -v '^ *+' conftest.er1 >conftest.err
24134   rm -f conftest.er1
24135   cat conftest.err >&5
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } >/dev/null; then
24138   if test -s conftest.err; then
24139     ac_cpp_err=$ac_cxx_preproc_warn_flag
24140     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24141   else
24142     ac_cpp_err=
24143   fi
24144 else
24145   ac_cpp_err=yes
24146 fi
24147 if test -z "$ac_cpp_err"; then
24148   ac_header_preproc=yes
24149 else
24150   echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24152
24153   ac_header_preproc=no
24154 fi
24155 rm -f conftest.err conftest.$ac_ext
24156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24157 echo "${ECHO_T}$ac_header_preproc" >&6
24158
24159 # So?  What about this header?
24160 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24161   yes:no: )
24162     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
24163 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24164     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the compiler's result" >&5
24165 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the compiler's result" >&2;}
24166     ac_header_preproc=yes
24167     ;;
24168   no:yes:* )
24169     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: present but cannot be compiled" >&5
24170 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: present but cannot be compiled" >&2;}
24171     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h:     check for missing prerequisite headers?" >&5
24172 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h:     check for missing prerequisite headers?" >&2;}
24173     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: see the Autoconf documentation" >&5
24174 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: see the Autoconf documentation" >&2;}
24175     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h:     section \"Present But Cannot Be Compiled\"" >&5
24176 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24177     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the preprocessor's result" >&5
24178 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the preprocessor's result" >&2;}
24179     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: in the future, the compiler will take precedence" >&5
24180 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: in the future, the compiler will take precedence" >&2;}
24181     (
24182       cat <<\_ASBOX
24183 ## ------------------------------------------------ ##
24184 ## Report this to mace-opensaml-users@internet2.edu ##
24185 ## ------------------------------------------------ ##
24186 _ASBOX
24187     ) |
24188       sed "s/^/$as_me: WARNING:     /" >&2
24189     ;;
24190 esac
24191 echo "$as_me:$LINENO: checking for xmltooling/XMLToolingConfig.h" >&5
24192 echo $ECHO_N "checking for xmltooling/XMLToolingConfig.h... $ECHO_C" >&6
24193 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24194   echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196   ac_cv_header_xmltooling_XMLToolingConfig_h=$ac_header_preproc
24197 fi
24198 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_XMLToolingConfig_h" >&5
24199 echo "${ECHO_T}$ac_cv_header_xmltooling_XMLToolingConfig_h" >&6
24200
24201 fi
24202 if test $ac_cv_header_xmltooling_XMLToolingConfig_h = yes; then
24203   :
24204 else
24205   { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24206 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24207    { (exit 1); exit 1; }; }
24208 fi
24209
24210
24211 cat >conftest.$ac_ext <<_ACEOF
24212 /* confdefs.h.  */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h.  */
24217 #include <xmltooling/io/HTTPResponse.h>
24218 int
24219 main ()
24220 {
24221 xmltooling::HTTPResponse::sanitizeURL("http://test")
24222   ;
24223   return 0;
24224 }
24225 _ACEOF
24226 rm -f conftest.$ac_objext conftest$ac_exeext
24227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24228   (eval $ac_link) 2>conftest.er1
24229   ac_status=$?
24230   grep -v '^ *+' conftest.er1 >conftest.err
24231   rm -f conftest.er1
24232   cat conftest.err >&5
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); } &&
24235          { ac_try='test -z "$ac_cxx_werror_flag"
24236                          || test ! -s conftest.err'
24237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238   (eval $ac_try) 2>&5
24239   ac_status=$?
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); }; } &&
24242          { ac_try='test -s conftest$ac_exeext'
24243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244   (eval $ac_try) 2>&5
24245   ac_status=$?
24246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); }; }; then
24248
24249 cat >>confdefs.h <<\_ACEOF
24250 #define HAVE_XMLTOOLING 1
24251 _ACEOF
24252
24253 else
24254   echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24256
24257 { { echo "$as_me:$LINENO: error: unable to link with XMLTooling, or version was too old" >&5
24258 echo "$as_me: error: unable to link with XMLTooling, or version was too old" >&2;}
24259    { (exit 1); exit 1; }; }
24260 fi
24261 rm -f conftest.err conftest.$ac_objext \
24262       conftest$ac_exeext conftest.$ac_ext
24263
24264 # Check for unit test support
24265 CXXTEST="/usr/bin/cxxtestgen.pl"
24266 CXXTESTFLAGS=""
24267
24268 # Check whether --with-cxxtest or --without-cxxtest was given.
24269 if test "${with_cxxtest+set}" = set; then
24270   withval="$with_cxxtest"
24271   if test x_$with_cxxtest != x_/usr; then
24272                 CXXTEST="${with_cxxtest}/cxxtestgen.pl"
24273                 CXXTESTFLAGS="-I${with_cxxtest}"
24274             fi
24275 fi;
24276 if ! test -f "${CXXTEST}"; then
24277     { echo "$as_me:$LINENO: WARNING: cxxtestgen not found, won't build unit tests" >&5
24278 echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
24279 fi
24280
24281
24282
24283
24284
24285 if test -f ${CXXTEST}; then
24286   BUILD_UNITTEST_TRUE=
24287   BUILD_UNITTEST_FALSE='#'
24288 else
24289   BUILD_UNITTEST_TRUE='#'
24290   BUILD_UNITTEST_FALSE=
24291 fi
24292
24293
24294
24295 LIBTOOL="$LIBTOOL --silent"
24296
24297 # output packaging and makefiles
24298                               ac_config_files="$ac_config_files opensaml.spec pkginfo Portfile"
24299
24300                                                             ac_config_files="$ac_config_files Makefile saml/Makefile samltest/Makefile samlsign/Makefile schemas/Makefile doc/Makefile"
24301
24302 cat >confcache <<\_ACEOF
24303 # This file is a shell script that caches the results of configure
24304 # tests run on this system so they can be shared between configure
24305 # scripts and configure runs, see configure's option --config-cache.
24306 # It is not useful on other systems.  If it contains results you don't
24307 # want to keep, you may remove or edit it.
24308 #
24309 # config.status only pays attention to the cache file if you give it
24310 # the --recheck option to rerun configure.
24311 #
24312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24314 # following values.
24315
24316 _ACEOF
24317
24318 # The following way of writing the cache mishandles newlines in values,
24319 # but we know of no workaround that is simple, portable, and efficient.
24320 # So, don't put newlines in cache variables' values.
24321 # Ultrix sh set writes to stderr and can't be redirected directly,
24322 # and sets the high bit in the cache file unless we assign to the vars.
24323 {
24324   (set) 2>&1 |
24325     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24326     *ac_space=\ *)
24327       # `set' does not quote correctly, so add quotes (double-quote
24328       # substitution turns \\\\ into \\, and sed turns \\ into \).
24329       sed -n \
24330         "s/'/'\\\\''/g;
24331           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24332       ;;
24333     *)
24334       # `set' quotes correctly as required by POSIX, so do not add quotes.
24335       sed -n \
24336         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24337       ;;
24338     esac;
24339 } |
24340   sed '
24341      t clear
24342      : clear
24343      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24344      t end
24345      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24346      : end' >>confcache
24347 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24348   if test -w $cache_file; then
24349     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24350     cat confcache >$cache_file
24351   else
24352     echo "not updating unwritable cache $cache_file"
24353   fi
24354 fi
24355 rm -f confcache
24356
24357 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24358 # Let make expand exec_prefix.
24359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24360
24361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24363 # trailing colons and then remove the whole line if VPATH becomes empty
24364 # (actually we leave an empty line to preserve line numbers).
24365 if test "x$srcdir" = x.; then
24366   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24367 s/:*\$(srcdir):*/:/;
24368 s/:*\${srcdir}:*/:/;
24369 s/:*@srcdir@:*/:/;
24370 s/^\([^=]*=[     ]*\):*/\1/;
24371 s/:*$//;
24372 s/^[^=]*=[       ]*$//;
24373 }'
24374 fi
24375
24376 DEFS=-DHAVE_CONFIG_H
24377
24378 ac_libobjs=
24379 ac_ltlibobjs=
24380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24381   # 1. Remove the extension, and $U if already installed.
24382   ac_i=`echo "$ac_i" |
24383          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24384   # 2. Add them.
24385   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24386   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24387 done
24388 LIBOBJS=$ac_libobjs
24389
24390 LTLIBOBJS=$ac_ltlibobjs
24391
24392
24393 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24394   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
24395 Usually this means the macro was only invoked conditionally." >&5
24396 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
24397 Usually this means the macro was only invoked conditionally." >&2;}
24398    { (exit 1); exit 1; }; }
24399 fi
24400 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24401   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
24402 Usually this means the macro was only invoked conditionally." >&5
24403 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
24404 Usually this means the macro was only invoked conditionally." >&2;}
24405    { (exit 1); exit 1; }; }
24406 fi
24407 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24408   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
24409 Usually this means the macro was only invoked conditionally." >&5
24410 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
24411 Usually this means the macro was only invoked conditionally." >&2;}
24412    { (exit 1); exit 1; }; }
24413 fi
24414 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24415   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
24416 Usually this means the macro was only invoked conditionally." >&5
24417 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
24418 Usually this means the macro was only invoked conditionally." >&2;}
24419    { (exit 1); exit 1; }; }
24420 fi
24421 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24422   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
24423 Usually this means the macro was only invoked conditionally." >&5
24424 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
24425 Usually this means the macro was only invoked conditionally." >&2;}
24426    { (exit 1); exit 1; }; }
24427 fi
24428 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24429   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
24430 Usually this means the macro was only invoked conditionally." >&5
24431 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
24432 Usually this means the macro was only invoked conditionally." >&2;}
24433    { (exit 1); exit 1; }; }
24434 fi
24435 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24436   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
24437 Usually this means the macro was only invoked conditionally." >&5
24438 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
24439 Usually this means the macro was only invoked conditionally." >&2;}
24440    { (exit 1); exit 1; }; }
24441 fi
24442 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24443   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
24444 Usually this means the macro was only invoked conditionally." >&5
24445 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
24446 Usually this means the macro was only invoked conditionally." >&2;}
24447    { (exit 1); exit 1; }; }
24448 fi
24449 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24450   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
24451 Usually this means the macro was only invoked conditionally." >&5
24452 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
24453 Usually this means the macro was only invoked conditionally." >&2;}
24454    { (exit 1); exit 1; }; }
24455 fi
24456 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24457   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
24458 Usually this means the macro was only invoked conditionally." >&5
24459 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
24460 Usually this means the macro was only invoked conditionally." >&2;}
24461    { (exit 1); exit 1; }; }
24462 fi
24463 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24464   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
24465 Usually this means the macro was only invoked conditionally." >&5
24466 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
24467 Usually this means the macro was only invoked conditionally." >&2;}
24468    { (exit 1); exit 1; }; }
24469 fi
24470 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24471   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
24472 Usually this means the macro was only invoked conditionally." >&5
24473 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
24474 Usually this means the macro was only invoked conditionally." >&2;}
24475    { (exit 1); exit 1; }; }
24476 fi
24477 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
24478   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
24479 Usually this means the macro was only invoked conditionally." >&5
24480 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
24481 Usually this means the macro was only invoked conditionally." >&2;}
24482    { (exit 1); exit 1; }; }
24483 fi
24484 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
24485   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
24486 Usually this means the macro was only invoked conditionally." >&5
24487 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
24488 Usually this means the macro was only invoked conditionally." >&2;}
24489    { (exit 1); exit 1; }; }
24490 fi
24491 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
24492   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
24493 Usually this means the macro was only invoked conditionally." >&5
24494 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
24495 Usually this means the macro was only invoked conditionally." >&2;}
24496    { (exit 1); exit 1; }; }
24497 fi
24498 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
24499   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
24500 Usually this means the macro was only invoked conditionally." >&5
24501 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
24502 Usually this means the macro was only invoked conditionally." >&2;}
24503    { (exit 1); exit 1; }; }
24504 fi
24505 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
24506   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
24507 Usually this means the macro was only invoked conditionally." >&5
24508 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
24509 Usually this means the macro was only invoked conditionally." >&2;}
24510    { (exit 1); exit 1; }; }
24511 fi
24512 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
24513   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
24514 Usually this means the macro was only invoked conditionally." >&5
24515 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
24516 Usually this means the macro was only invoked conditionally." >&2;}
24517    { (exit 1); exit 1; }; }
24518 fi
24519 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
24520   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
24521 Usually this means the macro was only invoked conditionally." >&5
24522 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
24523 Usually this means the macro was only invoked conditionally." >&2;}
24524    { (exit 1); exit 1; }; }
24525 fi
24526 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
24527   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
24528 Usually this means the macro was only invoked conditionally." >&5
24529 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
24530 Usually this means the macro was only invoked conditionally." >&2;}
24531    { (exit 1); exit 1; }; }
24532 fi
24533 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
24534   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
24535 Usually this means the macro was only invoked conditionally." >&5
24536 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
24537 Usually this means the macro was only invoked conditionally." >&2;}
24538    { (exit 1); exit 1; }; }
24539 fi
24540 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
24541   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
24542 Usually this means the macro was only invoked conditionally." >&5
24543 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
24544 Usually this means the macro was only invoked conditionally." >&2;}
24545    { (exit 1); exit 1; }; }
24546 fi
24547 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24548   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24549 Usually this means the macro was only invoked conditionally." >&5
24550 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24551 Usually this means the macro was only invoked conditionally." >&2;}
24552    { (exit 1); exit 1; }; }
24553 fi
24554 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24555   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24556 Usually this means the macro was only invoked conditionally." >&5
24557 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24558 Usually this means the macro was only invoked conditionally." >&2;}
24559    { (exit 1); exit 1; }; }
24560 fi
24561 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24562   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24563 Usually this means the macro was only invoked conditionally." >&5
24564 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24565 Usually this means the macro was only invoked conditionally." >&2;}
24566    { (exit 1); exit 1; }; }
24567 fi
24568 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
24569   { { echo "$as_me:$LINENO: error: conditional \"BUILD_UNITTEST\" was never defined.
24570 Usually this means the macro was only invoked conditionally." >&5
24571 echo "$as_me: error: conditional \"BUILD_UNITTEST\" was never defined.
24572 Usually this means the macro was only invoked conditionally." >&2;}
24573    { (exit 1); exit 1; }; }
24574 fi
24575
24576 : ${CONFIG_STATUS=./config.status}
24577 ac_clean_files_save=$ac_clean_files
24578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24581 cat >$CONFIG_STATUS <<_ACEOF
24582 #! $SHELL
24583 # Generated by $as_me.
24584 # Run this file to recreate the current configuration.
24585 # Compiler output produced by configure, useful for debugging
24586 # configure, is in config.log if it exists.
24587
24588 debug=false
24589 ac_cs_recheck=false
24590 ac_cs_silent=false
24591 SHELL=\${CONFIG_SHELL-$SHELL}
24592 _ACEOF
24593
24594 cat >>$CONFIG_STATUS <<\_ACEOF
24595 ## --------------------- ##
24596 ## M4sh Initialization.  ##
24597 ## --------------------- ##
24598
24599 # Be Bourne compatible
24600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24601   emulate sh
24602   NULLCMD=:
24603   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24604   # is contrary to our usage.  Disable this feature.
24605   alias -g '${1+"$@"}'='"$@"'
24606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24607   set -o posix
24608 fi
24609 DUALCASE=1; export DUALCASE # for MKS sh
24610
24611 # Support unset when possible.
24612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24613   as_unset=unset
24614 else
24615   as_unset=false
24616 fi
24617
24618
24619 # Work around bugs in pre-3.0 UWIN ksh.
24620 $as_unset ENV MAIL MAILPATH
24621 PS1='$ '
24622 PS2='> '
24623 PS4='+ '
24624
24625 # NLS nuisances.
24626 for as_var in \
24627   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24628   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24629   LC_TELEPHONE LC_TIME
24630 do
24631   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24632     eval $as_var=C; export $as_var
24633   else
24634     $as_unset $as_var
24635   fi
24636 done
24637
24638 # Required to use basename.
24639 if expr a : '\(a\)' >/dev/null 2>&1; then
24640   as_expr=expr
24641 else
24642   as_expr=false
24643 fi
24644
24645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24646   as_basename=basename
24647 else
24648   as_basename=false
24649 fi
24650
24651
24652 # Name of the executable.
24653 as_me=`$as_basename "$0" ||
24654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24655          X"$0" : 'X\(//\)$' \| \
24656          X"$0" : 'X\(/\)$' \| \
24657          .     : '\(.\)' 2>/dev/null ||
24658 echo X/"$0" |
24659     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24660           /^X\/\(\/\/\)$/{ s//\1/; q; }
24661           /^X\/\(\/\).*/{ s//\1/; q; }
24662           s/.*/./; q'`
24663
24664
24665 # PATH needs CR, and LINENO needs CR and PATH.
24666 # Avoid depending upon Character Ranges.
24667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24670 as_cr_digits='0123456789'
24671 as_cr_alnum=$as_cr_Letters$as_cr_digits
24672
24673 # The user is always right.
24674 if test "${PATH_SEPARATOR+set}" != set; then
24675   echo "#! /bin/sh" >conf$$.sh
24676   echo  "exit 0"   >>conf$$.sh
24677   chmod +x conf$$.sh
24678   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24679     PATH_SEPARATOR=';'
24680   else
24681     PATH_SEPARATOR=:
24682   fi
24683   rm -f conf$$.sh
24684 fi
24685
24686
24687   as_lineno_1=$LINENO
24688   as_lineno_2=$LINENO
24689   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24690   test "x$as_lineno_1" != "x$as_lineno_2" &&
24691   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24692   # Find who we are.  Look in the path if we contain no path at all
24693   # relative or not.
24694   case $0 in
24695     *[\\/]* ) as_myself=$0 ;;
24696     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24697 for as_dir in $PATH
24698 do
24699   IFS=$as_save_IFS
24700   test -z "$as_dir" && as_dir=.
24701   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24702 done
24703
24704        ;;
24705   esac
24706   # We did not find ourselves, most probably we were run as `sh COMMAND'
24707   # in which case we are not to be found in the path.
24708   if test "x$as_myself" = x; then
24709     as_myself=$0
24710   fi
24711   if test ! -f "$as_myself"; then
24712     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24714    { (exit 1); exit 1; }; }
24715   fi
24716   case $CONFIG_SHELL in
24717   '')
24718     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24720 do
24721   IFS=$as_save_IFS
24722   test -z "$as_dir" && as_dir=.
24723   for as_base in sh bash ksh sh5; do
24724          case $as_dir in
24725          /*)
24726            if ("$as_dir/$as_base" -c '
24727   as_lineno_1=$LINENO
24728   as_lineno_2=$LINENO
24729   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24730   test "x$as_lineno_1" != "x$as_lineno_2" &&
24731   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24732              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24733              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24734              CONFIG_SHELL=$as_dir/$as_base
24735              export CONFIG_SHELL
24736              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24737            fi;;
24738          esac
24739        done
24740 done
24741 ;;
24742   esac
24743
24744   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24745   # uniformly replaced by the line number.  The first 'sed' inserts a
24746   # line-number line before each line; the second 'sed' does the real
24747   # work.  The second script uses 'N' to pair each line-number line
24748   # with the numbered line, and appends trailing '-' during
24749   # substitution so that $LINENO is not a special case at line end.
24750   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24751   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24752   sed '=' <$as_myself |
24753     sed '
24754       N
24755       s,$,-,
24756       : loop
24757       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24758       t loop
24759       s,-$,,
24760       s,^['$as_cr_digits']*\n,,
24761     ' >$as_me.lineno &&
24762   chmod +x $as_me.lineno ||
24763     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24765    { (exit 1); exit 1; }; }
24766
24767   # Don't try to exec as it changes $[0], causing all sort of problems
24768   # (the dirname of $[0] is not the place where we might find the
24769   # original and so on.  Autoconf is especially sensible to this).
24770   . ./$as_me.lineno
24771   # Exit status is that of the last command.
24772   exit
24773 }
24774
24775
24776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24777   *c*,-n*) ECHO_N= ECHO_C='
24778 ' ECHO_T='      ' ;;
24779   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24780   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24781 esac
24782
24783 if expr a : '\(a\)' >/dev/null 2>&1; then
24784   as_expr=expr
24785 else
24786   as_expr=false
24787 fi
24788
24789 rm -f conf$$ conf$$.exe conf$$.file
24790 echo >conf$$.file
24791 if ln -s conf$$.file conf$$ 2>/dev/null; then
24792   # We could just check for DJGPP; but this test a) works b) is more generic
24793   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24794   if test -f conf$$.exe; then
24795     # Don't use ln at all; we don't have any links
24796     as_ln_s='cp -p'
24797   else
24798     as_ln_s='ln -s'
24799   fi
24800 elif ln conf$$.file conf$$ 2>/dev/null; then
24801   as_ln_s=ln
24802 else
24803   as_ln_s='cp -p'
24804 fi
24805 rm -f conf$$ conf$$.exe conf$$.file
24806
24807 if mkdir -p . 2>/dev/null; then
24808   as_mkdir_p=:
24809 else
24810   test -d ./-p && rmdir ./-p
24811   as_mkdir_p=false
24812 fi
24813
24814 as_executable_p="test -f"
24815
24816 # Sed expression to map a string onto a valid CPP name.
24817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24818
24819 # Sed expression to map a string onto a valid variable name.
24820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24821
24822
24823 # IFS
24824 # We need space, tab and new line, in precisely that order.
24825 as_nl='
24826 '
24827 IFS="   $as_nl"
24828
24829 # CDPATH.
24830 $as_unset CDPATH
24831
24832 exec 6>&1
24833
24834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24835 # report actual input values of CONFIG_FILES etc. instead of their
24836 # values after options handling.  Logging --version etc. is OK.
24837 exec 5>>config.log
24838 {
24839   echo
24840   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24841 ## Running $as_me. ##
24842 _ASBOX
24843 } >&5
24844 cat >&5 <<_CSEOF
24845
24846 This file was extended by opensaml $as_me 2.3, which was
24847 generated by GNU Autoconf 2.59.  Invocation command line was
24848
24849   CONFIG_FILES    = $CONFIG_FILES
24850   CONFIG_HEADERS  = $CONFIG_HEADERS
24851   CONFIG_LINKS    = $CONFIG_LINKS
24852   CONFIG_COMMANDS = $CONFIG_COMMANDS
24853   $ $0 $@
24854
24855 _CSEOF
24856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24857 echo >&5
24858 _ACEOF
24859
24860 # Files that config.status was made for.
24861 if test -n "$ac_config_files"; then
24862   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24863 fi
24864
24865 if test -n "$ac_config_headers"; then
24866   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24867 fi
24868
24869 if test -n "$ac_config_links"; then
24870   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24871 fi
24872
24873 if test -n "$ac_config_commands"; then
24874   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24875 fi
24876
24877 cat >>$CONFIG_STATUS <<\_ACEOF
24878
24879 ac_cs_usage="\
24880 \`$as_me' instantiates files from templates according to the
24881 current configuration.
24882
24883 Usage: $0 [OPTIONS] [FILE]...
24884
24885   -h, --help       print this help, then exit
24886   -V, --version    print version number, then exit
24887   -q, --quiet      do not print progress messages
24888   -d, --debug      don't remove temporary files
24889       --recheck    update $as_me by reconfiguring in the same conditions
24890   --file=FILE[:TEMPLATE]
24891                    instantiate the configuration file FILE
24892   --header=FILE[:TEMPLATE]
24893                    instantiate the configuration header FILE
24894
24895 Configuration files:
24896 $config_files
24897
24898 Configuration headers:
24899 $config_headers
24900
24901 Configuration commands:
24902 $config_commands
24903
24904 Report bugs to <bug-autoconf@gnu.org>."
24905 _ACEOF
24906
24907 cat >>$CONFIG_STATUS <<_ACEOF
24908 ac_cs_version="\\
24909 opensaml config.status 2.3
24910 configured by $0, generated by GNU Autoconf 2.59,
24911   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24912
24913 Copyright (C) 2003 Free Software Foundation, Inc.
24914 This config.status script is free software; the Free Software Foundation
24915 gives unlimited permission to copy, distribute and modify it."
24916 srcdir=$srcdir
24917 INSTALL="$INSTALL"
24918 _ACEOF
24919
24920 cat >>$CONFIG_STATUS <<\_ACEOF
24921 # If no file are specified by the user, then we need to provide default
24922 # value.  By we need to know if files were specified by the user.
24923 ac_need_defaults=:
24924 while test $# != 0
24925 do
24926   case $1 in
24927   --*=*)
24928     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24929     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24930     ac_shift=:
24931     ;;
24932   -*)
24933     ac_option=$1
24934     ac_optarg=$2
24935     ac_shift=shift
24936     ;;
24937   *) # This is not an option, so the user has probably given explicit
24938      # arguments.
24939      ac_option=$1
24940      ac_need_defaults=false;;
24941   esac
24942
24943   case $ac_option in
24944   # Handling of the options.
24945 _ACEOF
24946 cat >>$CONFIG_STATUS <<\_ACEOF
24947   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24948     ac_cs_recheck=: ;;
24949   --version | --vers* | -V )
24950     echo "$ac_cs_version"; exit 0 ;;
24951   --he | --h)
24952     # Conflict between --help and --header
24953     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24954 Try \`$0 --help' for more information." >&5
24955 echo "$as_me: error: ambiguous option: $1
24956 Try \`$0 --help' for more information." >&2;}
24957    { (exit 1); exit 1; }; };;
24958   --help | --hel | -h )
24959     echo "$ac_cs_usage"; exit 0 ;;
24960   --debug | --d* | -d )
24961     debug=: ;;
24962   --file | --fil | --fi | --f )
24963     $ac_shift
24964     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24965     ac_need_defaults=false;;
24966   --header | --heade | --head | --hea )
24967     $ac_shift
24968     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24969     ac_need_defaults=false;;
24970   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24971   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24972     ac_cs_silent=: ;;
24973
24974   # This is an error.
24975   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24976 Try \`$0 --help' for more information." >&5
24977 echo "$as_me: error: unrecognized option: $1
24978 Try \`$0 --help' for more information." >&2;}
24979    { (exit 1); exit 1; }; } ;;
24980
24981   *) ac_config_targets="$ac_config_targets $1" ;;
24982
24983   esac
24984   shift
24985 done
24986
24987 ac_configure_extra_args=
24988
24989 if $ac_cs_silent; then
24990   exec 6>/dev/null
24991   ac_configure_extra_args="$ac_configure_extra_args --silent"
24992 fi
24993
24994 _ACEOF
24995 cat >>$CONFIG_STATUS <<_ACEOF
24996 if \$ac_cs_recheck; then
24997   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24998   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24999 fi
25000
25001 _ACEOF
25002
25003 cat >>$CONFIG_STATUS <<_ACEOF
25004 #
25005 # INIT-COMMANDS section.
25006 #
25007
25008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25009
25010 _ACEOF
25011
25012
25013
25014 cat >>$CONFIG_STATUS <<\_ACEOF
25015 for ac_config_target in $ac_config_targets
25016 do
25017   case "$ac_config_target" in
25018   # Handling of arguments.
25019   "opensaml.spec" ) CONFIG_FILES="$CONFIG_FILES opensaml.spec" ;;
25020   "pkginfo" ) CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
25021   "Portfile" ) CONFIG_FILES="$CONFIG_FILES Portfile" ;;
25022   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25023   "saml/Makefile" ) CONFIG_FILES="$CONFIG_FILES saml/Makefile" ;;
25024   "samltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samltest/Makefile" ;;
25025   "samlsign/Makefile" ) CONFIG_FILES="$CONFIG_FILES samlsign/Makefile" ;;
25026   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
25027   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25028   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25029   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25030   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25031 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25032    { (exit 1); exit 1; }; };;
25033   esac
25034 done
25035
25036 # If the user did not use the arguments to specify the items to instantiate,
25037 # then the envvar interface is used.  Set only those that are not.
25038 # We use the long form for the default assignment because of an extremely
25039 # bizarre bug on SunOS 4.1.3.
25040 if $ac_need_defaults; then
25041   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25042   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25043   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25044 fi
25045
25046 # Have a temporary directory for convenience.  Make it in the build tree
25047 # simply because there is no reason to put it here, and in addition,
25048 # creating and moving files from /tmp can sometimes cause problems.
25049 # Create a temporary directory, and hook for its removal unless debugging.
25050 $debug ||
25051 {
25052   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25053   trap '{ (exit 1); exit 1; }' 1 2 13 15
25054 }
25055
25056 # Create a (secure) tmp directory for tmp files.
25057
25058 {
25059   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25060   test -n "$tmp" && test -d "$tmp"
25061 }  ||
25062 {
25063   tmp=./confstat$$-$RANDOM
25064   (umask 077 && mkdir $tmp)
25065 } ||
25066 {
25067    echo "$me: cannot create a temporary directory in ." >&2
25068    { (exit 1); exit 1; }
25069 }
25070
25071 _ACEOF
25072
25073 cat >>$CONFIG_STATUS <<_ACEOF
25074
25075 #
25076 # CONFIG_FILES section.
25077 #
25078
25079 # No need to generate the scripts if there are no CONFIG_FILES.
25080 # This happens for instance when ./config.status config.h
25081 if test -n "\$CONFIG_FILES"; then
25082   # Protect against being on the right side of a sed subst in config.status.
25083   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25084    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25085 s,@SHELL@,$SHELL,;t t
25086 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25087 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25088 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25089 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25090 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25091 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25092 s,@exec_prefix@,$exec_prefix,;t t
25093 s,@prefix@,$prefix,;t t
25094 s,@program_transform_name@,$program_transform_name,;t t
25095 s,@bindir@,$bindir,;t t
25096 s,@sbindir@,$sbindir,;t t
25097 s,@libexecdir@,$libexecdir,;t t
25098 s,@datadir@,$datadir,;t t
25099 s,@sysconfdir@,$sysconfdir,;t t
25100 s,@sharedstatedir@,$sharedstatedir,;t t
25101 s,@localstatedir@,$localstatedir,;t t
25102 s,@libdir@,$libdir,;t t
25103 s,@includedir@,$includedir,;t t
25104 s,@oldincludedir@,$oldincludedir,;t t
25105 s,@infodir@,$infodir,;t t
25106 s,@mandir@,$mandir,;t t
25107 s,@build_alias@,$build_alias,;t t
25108 s,@host_alias@,$host_alias,;t t
25109 s,@target_alias@,$target_alias,;t t
25110 s,@DEFS@,$DEFS,;t t
25111 s,@ECHO_C@,$ECHO_C,;t t
25112 s,@ECHO_N@,$ECHO_N,;t t
25113 s,@ECHO_T@,$ECHO_T,;t t
25114 s,@LIBS@,$LIBS,;t t
25115 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25116 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25117 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25118 s,@CYGPATH_W@,$CYGPATH_W,;t t
25119 s,@PACKAGE@,$PACKAGE,;t t
25120 s,@VERSION@,$VERSION,;t t
25121 s,@ACLOCAL@,$ACLOCAL,;t t
25122 s,@AUTOCONF@,$AUTOCONF,;t t
25123 s,@AUTOMAKE@,$AUTOMAKE,;t t
25124 s,@AUTOHEADER@,$AUTOHEADER,;t t
25125 s,@MAKEINFO@,$MAKEINFO,;t t
25126 s,@install_sh@,$install_sh,;t t
25127 s,@STRIP@,$STRIP,;t t
25128 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25129 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25130 s,@mkdir_p@,$mkdir_p,;t t
25131 s,@AWK@,$AWK,;t t
25132 s,@SET_MAKE@,$SET_MAKE,;t t
25133 s,@am__leading_dot@,$am__leading_dot,;t t
25134 s,@AMTAR@,$AMTAR,;t t
25135 s,@am__tar@,$am__tar,;t t
25136 s,@am__untar@,$am__untar,;t t
25137 s,@DX_PROJECT@,$DX_PROJECT,;t t
25138 s,@DX_CONFIG@,$DX_CONFIG,;t t
25139 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
25140 s,@DX_ENV@,$DX_ENV,;t t
25141 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
25142 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
25143 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
25144 s,@DX_PERL@,$DX_PERL,;t t
25145 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
25146 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
25147 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
25148 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
25149 s,@DX_DOT@,$DX_DOT,;t t
25150 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
25151 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
25152 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
25153 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
25154 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
25155 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
25156 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
25157 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
25158 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
25159 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
25160 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
25161 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
25162 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
25163 s,@DX_HHC@,$DX_HHC,;t t
25164 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
25165 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
25166 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
25167 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
25168 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
25169 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
25170 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
25171 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
25172 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
25173 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
25174 s,@DX_LATEX@,$DX_LATEX,;t t
25175 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
25176 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
25177 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
25178 s,@DX_DVIPS@,$DX_DVIPS,;t t
25179 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
25180 s,@DX_EGREP@,$DX_EGREP,;t t
25181 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
25182 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
25183 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
25184 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25185 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
25186 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
25187 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
25188 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
25189 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
25190 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
25191 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
25192 s,@CC@,$CC,;t t
25193 s,@CFLAGS@,$CFLAGS,;t t
25194 s,@LDFLAGS@,$LDFLAGS,;t t
25195 s,@CPPFLAGS@,$CPPFLAGS,;t t
25196 s,@ac_ct_CC@,$ac_ct_CC,;t t
25197 s,@EXEEXT@,$EXEEXT,;t t
25198 s,@OBJEXT@,$OBJEXT,;t t
25199 s,@DEPDIR@,$DEPDIR,;t t
25200 s,@am__include@,$am__include,;t t
25201 s,@am__quote@,$am__quote,;t t
25202 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25203 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25204 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25205 s,@CCDEPMODE@,$CCDEPMODE,;t t
25206 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25207 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25208 s,@CXX@,$CXX,;t t
25209 s,@CXXFLAGS@,$CXXFLAGS,;t t
25210 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25211 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25212 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25213 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25214 s,@build@,$build,;t t
25215 s,@build_cpu@,$build_cpu,;t t
25216 s,@build_vendor@,$build_vendor,;t t
25217 s,@build_os@,$build_os,;t t
25218 s,@host@,$host,;t t
25219 s,@host_cpu@,$host_cpu,;t t
25220 s,@host_vendor@,$host_vendor,;t t
25221 s,@host_os@,$host_os,;t t
25222 s,@EGREP@,$EGREP,;t t
25223 s,@LN_S@,$LN_S,;t t
25224 s,@ECHO@,$ECHO,;t t
25225 s,@AR@,$AR,;t t
25226 s,@ac_ct_AR@,$ac_ct_AR,;t t
25227 s,@RANLIB@,$RANLIB,;t t
25228 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25229 s,@CPP@,$CPP,;t t
25230 s,@CXXCPP@,$CXXCPP,;t t
25231 s,@F77@,$F77,;t t
25232 s,@FFLAGS@,$FFLAGS,;t t
25233 s,@ac_ct_F77@,$ac_ct_F77,;t t
25234 s,@LIBTOOL@,$LIBTOOL,;t t
25235 s,@acx_pthread_config@,$acx_pthread_config,;t t
25236 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25237 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25238 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25239 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25240 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
25241 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
25242 s,@CXXTEST@,$CXXTEST,;t t
25243 s,@CXXTESTFLAGS@,$CXXTESTFLAGS,;t t
25244 s,@BUILD_UNITTEST_TRUE@,$BUILD_UNITTEST_TRUE,;t t
25245 s,@BUILD_UNITTEST_FALSE@,$BUILD_UNITTEST_FALSE,;t t
25246 s,@DX_INCLUDE@,$DX_INCLUDE,;t t
25247 s,@LIBOBJS@,$LIBOBJS,;t t
25248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25249 CEOF
25250
25251 _ACEOF
25252
25253   cat >>$CONFIG_STATUS <<\_ACEOF
25254   # Split the substitutions into bite-sized pieces for seds with
25255   # small command number limits, like on Digital OSF/1 and HP-UX.
25256   ac_max_sed_lines=48
25257   ac_sed_frag=1 # Number of current file.
25258   ac_beg=1 # First line for current file.
25259   ac_end=$ac_max_sed_lines # Line after last line for current file.
25260   ac_more_lines=:
25261   ac_sed_cmds=
25262   while $ac_more_lines; do
25263     if test $ac_beg -gt 1; then
25264       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25265     else
25266       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25267     fi
25268     if test ! -s $tmp/subs.frag; then
25269       ac_more_lines=false
25270     else
25271       # The purpose of the label and of the branching condition is to
25272       # speed up the sed processing (if there are no `@' at all, there
25273       # is no need to browse any of the substitutions).
25274       # These are the two extra sed commands mentioned above.
25275       (echo ':t
25276   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25277       if test -z "$ac_sed_cmds"; then
25278         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25279       else
25280         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25281       fi
25282       ac_sed_frag=`expr $ac_sed_frag + 1`
25283       ac_beg=$ac_end
25284       ac_end=`expr $ac_end + $ac_max_sed_lines`
25285     fi
25286   done
25287   if test -z "$ac_sed_cmds"; then
25288     ac_sed_cmds=cat
25289   fi
25290 fi # test -n "$CONFIG_FILES"
25291
25292 _ACEOF
25293 cat >>$CONFIG_STATUS <<\_ACEOF
25294 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25295   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25296   case $ac_file in
25297   - | *:- | *:-:* ) # input from stdin
25298         cat >$tmp/stdin
25299         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25300         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25301   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25302         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25303   * )   ac_file_in=$ac_file.in ;;
25304   esac
25305
25306   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25307   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25309          X"$ac_file" : 'X\(//\)[^/]' \| \
25310          X"$ac_file" : 'X\(//\)$' \| \
25311          X"$ac_file" : 'X\(/\)' \| \
25312          .     : '\(.\)' 2>/dev/null ||
25313 echo X"$ac_file" |
25314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25315           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25316           /^X\(\/\/\)$/{ s//\1/; q; }
25317           /^X\(\/\).*/{ s//\1/; q; }
25318           s/.*/./; q'`
25319   { if $as_mkdir_p; then
25320     mkdir -p "$ac_dir"
25321   else
25322     as_dir="$ac_dir"
25323     as_dirs=
25324     while test ! -d "$as_dir"; do
25325       as_dirs="$as_dir $as_dirs"
25326       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25328          X"$as_dir" : 'X\(//\)[^/]' \| \
25329          X"$as_dir" : 'X\(//\)$' \| \
25330          X"$as_dir" : 'X\(/\)' \| \
25331          .     : '\(.\)' 2>/dev/null ||
25332 echo X"$as_dir" |
25333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25334           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25335           /^X\(\/\/\)$/{ s//\1/; q; }
25336           /^X\(\/\).*/{ s//\1/; q; }
25337           s/.*/./; q'`
25338     done
25339     test ! -n "$as_dirs" || mkdir $as_dirs
25340   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25342    { (exit 1); exit 1; }; }; }
25343
25344   ac_builddir=.
25345
25346 if test "$ac_dir" != .; then
25347   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25348   # A "../" for each directory in $ac_dir_suffix.
25349   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25350 else
25351   ac_dir_suffix= ac_top_builddir=
25352 fi
25353
25354 case $srcdir in
25355   .)  # No --srcdir option.  We are building in place.
25356     ac_srcdir=.
25357     if test -z "$ac_top_builddir"; then
25358        ac_top_srcdir=.
25359     else
25360        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25361     fi ;;
25362   [\\/]* | ?:[\\/]* )  # Absolute path.
25363     ac_srcdir=$srcdir$ac_dir_suffix;
25364     ac_top_srcdir=$srcdir ;;
25365   *) # Relative path.
25366     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25367     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25368 esac
25369
25370 # Do not use `cd foo && pwd` to compute absolute paths, because
25371 # the directories may not exist.
25372 case `pwd` in
25373 .) ac_abs_builddir="$ac_dir";;
25374 *)
25375   case "$ac_dir" in
25376   .) ac_abs_builddir=`pwd`;;
25377   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25378   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25379   esac;;
25380 esac
25381 case $ac_abs_builddir in
25382 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25383 *)
25384   case ${ac_top_builddir}. in
25385   .) ac_abs_top_builddir=$ac_abs_builddir;;
25386   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25387   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25388   esac;;
25389 esac
25390 case $ac_abs_builddir in
25391 .) ac_abs_srcdir=$ac_srcdir;;
25392 *)
25393   case $ac_srcdir in
25394   .) ac_abs_srcdir=$ac_abs_builddir;;
25395   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25396   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25397   esac;;
25398 esac
25399 case $ac_abs_builddir in
25400 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25401 *)
25402   case $ac_top_srcdir in
25403   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25404   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25405   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25406   esac;;
25407 esac
25408
25409
25410   case $INSTALL in
25411   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25412   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25413   esac
25414
25415   if test x"$ac_file" != x-; then
25416     { echo "$as_me:$LINENO: creating $ac_file" >&5
25417 echo "$as_me: creating $ac_file" >&6;}
25418     rm -f "$ac_file"
25419   fi
25420   # Let's still pretend it is `configure' which instantiates (i.e., don't
25421   # use $as_me), people would be surprised to read:
25422   #    /* config.h.  Generated by config.status.  */
25423   if test x"$ac_file" = x-; then
25424     configure_input=
25425   else
25426     configure_input="$ac_file.  "
25427   fi
25428   configure_input=$configure_input"Generated from `echo $ac_file_in |
25429                                      sed 's,.*/,,'` by configure."
25430
25431   # First look for the input files in the build tree, otherwise in the
25432   # src tree.
25433   ac_file_inputs=`IFS=:
25434     for f in $ac_file_in; do
25435       case $f in
25436       -) echo $tmp/stdin ;;
25437       [\\/$]*)
25438          # Absolute (can't be DOS-style, as IFS=:)
25439          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25440 echo "$as_me: error: cannot find input file: $f" >&2;}
25441    { (exit 1); exit 1; }; }
25442          echo "$f";;
25443       *) # Relative
25444          if test -f "$f"; then
25445            # Build tree
25446            echo "$f"
25447          elif test -f "$srcdir/$f"; then
25448            # Source tree
25449            echo "$srcdir/$f"
25450          else
25451            # /dev/null tree
25452            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25453 echo "$as_me: error: cannot find input file: $f" >&2;}
25454    { (exit 1); exit 1; }; }
25455          fi;;
25456       esac
25457     done` || { (exit 1); exit 1; }
25458 _ACEOF
25459 cat >>$CONFIG_STATUS <<_ACEOF
25460   sed "$ac_vpsub
25461 $extrasub
25462 _ACEOF
25463 cat >>$CONFIG_STATUS <<\_ACEOF
25464 :t
25465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25466 s,@configure_input@,$configure_input,;t t
25467 s,@srcdir@,$ac_srcdir,;t t
25468 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25469 s,@top_srcdir@,$ac_top_srcdir,;t t
25470 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25471 s,@builddir@,$ac_builddir,;t t
25472 s,@abs_builddir@,$ac_abs_builddir,;t t
25473 s,@top_builddir@,$ac_top_builddir,;t t
25474 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25475 s,@INSTALL@,$ac_INSTALL,;t t
25476 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25477   rm -f $tmp/stdin
25478   if test x"$ac_file" != x-; then
25479     mv $tmp/out $ac_file
25480   else
25481     cat $tmp/out
25482     rm -f $tmp/out
25483   fi
25484
25485 done
25486 _ACEOF
25487 cat >>$CONFIG_STATUS <<\_ACEOF
25488
25489 #
25490 # CONFIG_HEADER section.
25491 #
25492
25493 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25494 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25495 #
25496 # ac_d sets the value in "#define NAME VALUE" lines.
25497 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25498 ac_dB='[         ].*$,\1#\2'
25499 ac_dC=' '
25500 ac_dD=',;t'
25501 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25502 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25503 ac_uB='$,\1#\2define\3'
25504 ac_uC=' '
25505 ac_uD=',;t'
25506
25507 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25508   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25509   case $ac_file in
25510   - | *:- | *:-:* ) # input from stdin
25511         cat >$tmp/stdin
25512         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25513         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25514   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25515         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25516   * )   ac_file_in=$ac_file.in ;;
25517   esac
25518
25519   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25520 echo "$as_me: creating $ac_file" >&6;}
25521
25522   # First look for the input files in the build tree, otherwise in the
25523   # src tree.
25524   ac_file_inputs=`IFS=:
25525     for f in $ac_file_in; do
25526       case $f in
25527       -) echo $tmp/stdin ;;
25528       [\\/$]*)
25529          # Absolute (can't be DOS-style, as IFS=:)
25530          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25531 echo "$as_me: error: cannot find input file: $f" >&2;}
25532    { (exit 1); exit 1; }; }
25533          # Do quote $f, to prevent DOS paths from being IFS'd.
25534          echo "$f";;
25535       *) # Relative
25536          if test -f "$f"; then
25537            # Build tree
25538            echo "$f"
25539          elif test -f "$srcdir/$f"; then
25540            # Source tree
25541            echo "$srcdir/$f"
25542          else
25543            # /dev/null tree
25544            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25545 echo "$as_me: error: cannot find input file: $f" >&2;}
25546    { (exit 1); exit 1; }; }
25547          fi;;
25548       esac
25549     done` || { (exit 1); exit 1; }
25550   # Remove the trailing spaces.
25551   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25552
25553 _ACEOF
25554
25555 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25556 # `conftest.undefs', that substitutes the proper values into
25557 # config.h.in to produce config.h.  The first handles `#define'
25558 # templates, and the second `#undef' templates.
25559 # And first: Protect against being on the right side of a sed subst in
25560 # config.status.  Protect against being in an unquoted here document
25561 # in config.status.
25562 rm -f conftest.defines conftest.undefs
25563 # Using a here document instead of a string reduces the quoting nightmare.
25564 # Putting comments in sed scripts is not portable.
25565 #
25566 # `end' is used to avoid that the second main sed command (meant for
25567 # 0-ary CPP macros) applies to n-ary macro definitions.
25568 # See the Autoconf documentation for `clear'.
25569 cat >confdef2sed.sed <<\_ACEOF
25570 s/[\\&,]/\\&/g
25571 s,[\\$`],\\&,g
25572 t clear
25573 : clear
25574 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25575 t end
25576 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25577 : end
25578 _ACEOF
25579 # If some macros were called several times there might be several times
25580 # the same #defines, which is useless.  Nevertheless, we may not want to
25581 # sort them, since we want the *last* AC-DEFINE to be honored.
25582 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25583 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25584 rm -f confdef2sed.sed
25585
25586 # This sed command replaces #undef with comments.  This is necessary, for
25587 # example, in the case of _POSIX_SOURCE, which is predefined and required
25588 # on some systems where configure will not decide to define it.
25589 cat >>conftest.undefs <<\_ACEOF
25590 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25591 _ACEOF
25592
25593 # Break up conftest.defines because some shells have a limit on the size
25594 # of here documents, and old seds have small limits too (100 cmds).
25595 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25596 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25597 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25598 echo '  :' >>$CONFIG_STATUS
25599 rm -f conftest.tail
25600 while grep . conftest.defines >/dev/null
25601 do
25602   # Write a limited-size here document to $tmp/defines.sed.
25603   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25604   # Speed up: don't consider the non `#define' lines.
25605   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25606   # Work around the forget-to-reset-the-flag bug.
25607   echo 't clr' >>$CONFIG_STATUS
25608   echo ': clr' >>$CONFIG_STATUS
25609   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25610   echo 'CEOF
25611   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25612   rm -f $tmp/in
25613   mv $tmp/out $tmp/in
25614 ' >>$CONFIG_STATUS
25615   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25616   rm -f conftest.defines
25617   mv conftest.tail conftest.defines
25618 done
25619 rm -f conftest.defines
25620 echo '  fi # grep' >>$CONFIG_STATUS
25621 echo >>$CONFIG_STATUS
25622
25623 # Break up conftest.undefs because some shells have a limit on the size
25624 # of here documents, and old seds have small limits too (100 cmds).
25625 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25626 rm -f conftest.tail
25627 while grep . conftest.undefs >/dev/null
25628 do
25629   # Write a limited-size here document to $tmp/undefs.sed.
25630   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25631   # Speed up: don't consider the non `#undef'
25632   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25633   # Work around the forget-to-reset-the-flag bug.
25634   echo 't clr' >>$CONFIG_STATUS
25635   echo ': clr' >>$CONFIG_STATUS
25636   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25637   echo 'CEOF
25638   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25639   rm -f $tmp/in
25640   mv $tmp/out $tmp/in
25641 ' >>$CONFIG_STATUS
25642   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25643   rm -f conftest.undefs
25644   mv conftest.tail conftest.undefs
25645 done
25646 rm -f conftest.undefs
25647
25648 cat >>$CONFIG_STATUS <<\_ACEOF
25649   # Let's still pretend it is `configure' which instantiates (i.e., don't
25650   # use $as_me), people would be surprised to read:
25651   #    /* config.h.  Generated by config.status.  */
25652   if test x"$ac_file" = x-; then
25653     echo "/* Generated by configure.  */" >$tmp/config.h
25654   else
25655     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25656   fi
25657   cat $tmp/in >>$tmp/config.h
25658   rm -f $tmp/in
25659   if test x"$ac_file" != x-; then
25660     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25661       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25662 echo "$as_me: $ac_file is unchanged" >&6;}
25663     else
25664       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25666          X"$ac_file" : 'X\(//\)[^/]' \| \
25667          X"$ac_file" : 'X\(//\)$' \| \
25668          X"$ac_file" : 'X\(/\)' \| \
25669          .     : '\(.\)' 2>/dev/null ||
25670 echo X"$ac_file" |
25671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25672           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25673           /^X\(\/\/\)$/{ s//\1/; q; }
25674           /^X\(\/\).*/{ s//\1/; q; }
25675           s/.*/./; q'`
25676       { if $as_mkdir_p; then
25677     mkdir -p "$ac_dir"
25678   else
25679     as_dir="$ac_dir"
25680     as_dirs=
25681     while test ! -d "$as_dir"; do
25682       as_dirs="$as_dir $as_dirs"
25683       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25685          X"$as_dir" : 'X\(//\)[^/]' \| \
25686          X"$as_dir" : 'X\(//\)$' \| \
25687          X"$as_dir" : 'X\(/\)' \| \
25688          .     : '\(.\)' 2>/dev/null ||
25689 echo X"$as_dir" |
25690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25692           /^X\(\/\/\)$/{ s//\1/; q; }
25693           /^X\(\/\).*/{ s//\1/; q; }
25694           s/.*/./; q'`
25695     done
25696     test ! -n "$as_dirs" || mkdir $as_dirs
25697   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25698 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25699    { (exit 1); exit 1; }; }; }
25700
25701       rm -f $ac_file
25702       mv $tmp/config.h $ac_file
25703     fi
25704   else
25705     cat $tmp/config.h
25706     rm -f $tmp/config.h
25707   fi
25708 # Compute $ac_file's index in $config_headers.
25709 _am_stamp_count=1
25710 for _am_header in $config_headers :; do
25711   case $_am_header in
25712     $ac_file | $ac_file:* )
25713       break ;;
25714     * )
25715       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25716   esac
25717 done
25718 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25719 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25720          X$ac_file : 'X\(//\)[^/]' \| \
25721          X$ac_file : 'X\(//\)$' \| \
25722          X$ac_file : 'X\(/\)' \| \
25723          .     : '\(.\)' 2>/dev/null ||
25724 echo X$ac_file |
25725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25726           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25727           /^X\(\/\/\)$/{ s//\1/; q; }
25728           /^X\(\/\).*/{ s//\1/; q; }
25729           s/.*/./; q'`/stamp-h$_am_stamp_count
25730 done
25731 _ACEOF
25732 cat >>$CONFIG_STATUS <<\_ACEOF
25733
25734 #
25735 # CONFIG_COMMANDS section.
25736 #
25737 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25738   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25739   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25740   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25741 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25742          X"$ac_dest" : 'X\(//\)[^/]' \| \
25743          X"$ac_dest" : 'X\(//\)$' \| \
25744          X"$ac_dest" : 'X\(/\)' \| \
25745          .     : '\(.\)' 2>/dev/null ||
25746 echo X"$ac_dest" |
25747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25748           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25749           /^X\(\/\/\)$/{ s//\1/; q; }
25750           /^X\(\/\).*/{ s//\1/; q; }
25751           s/.*/./; q'`
25752   { if $as_mkdir_p; then
25753     mkdir -p "$ac_dir"
25754   else
25755     as_dir="$ac_dir"
25756     as_dirs=
25757     while test ! -d "$as_dir"; do
25758       as_dirs="$as_dir $as_dirs"
25759       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25761          X"$as_dir" : 'X\(//\)[^/]' \| \
25762          X"$as_dir" : 'X\(//\)$' \| \
25763          X"$as_dir" : 'X\(/\)' \| \
25764          .     : '\(.\)' 2>/dev/null ||
25765 echo X"$as_dir" |
25766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25767           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25768           /^X\(\/\/\)$/{ s//\1/; q; }
25769           /^X\(\/\).*/{ s//\1/; q; }
25770           s/.*/./; q'`
25771     done
25772     test ! -n "$as_dirs" || mkdir $as_dirs
25773   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25775    { (exit 1); exit 1; }; }; }
25776
25777   ac_builddir=.
25778
25779 if test "$ac_dir" != .; then
25780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25781   # A "../" for each directory in $ac_dir_suffix.
25782   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25783 else
25784   ac_dir_suffix= ac_top_builddir=
25785 fi
25786
25787 case $srcdir in
25788   .)  # No --srcdir option.  We are building in place.
25789     ac_srcdir=.
25790     if test -z "$ac_top_builddir"; then
25791        ac_top_srcdir=.
25792     else
25793        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25794     fi ;;
25795   [\\/]* | ?:[\\/]* )  # Absolute path.
25796     ac_srcdir=$srcdir$ac_dir_suffix;
25797     ac_top_srcdir=$srcdir ;;
25798   *) # Relative path.
25799     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25800     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25801 esac
25802
25803 # Do not use `cd foo && pwd` to compute absolute paths, because
25804 # the directories may not exist.
25805 case `pwd` in
25806 .) ac_abs_builddir="$ac_dir";;
25807 *)
25808   case "$ac_dir" in
25809   .) ac_abs_builddir=`pwd`;;
25810   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25811   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25812   esac;;
25813 esac
25814 case $ac_abs_builddir in
25815 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25816 *)
25817   case ${ac_top_builddir}. in
25818   .) ac_abs_top_builddir=$ac_abs_builddir;;
25819   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25820   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25821   esac;;
25822 esac
25823 case $ac_abs_builddir in
25824 .) ac_abs_srcdir=$ac_srcdir;;
25825 *)
25826   case $ac_srcdir in
25827   .) ac_abs_srcdir=$ac_abs_builddir;;
25828   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25829   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25830   esac;;
25831 esac
25832 case $ac_abs_builddir in
25833 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25834 *)
25835   case $ac_top_srcdir in
25836   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25837   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25838   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25839   esac;;
25840 esac
25841
25842
25843   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25844 echo "$as_me: executing $ac_dest commands" >&6;}
25845   case $ac_dest in
25846     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25847   # Strip MF so we end up with the name of the file.
25848   mf=`echo "$mf" | sed -e 's/:.*$//'`
25849   # Check whether this is an Automake generated Makefile or not.
25850   # We used to match only the files named `Makefile.in', but
25851   # some people rename them; so instead we look at the file content.
25852   # Grep'ing the first line is not enough: some people post-process
25853   # each Makefile.in and add a new line on top of each file to say so.
25854   # So let's grep whole file.
25855   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25856     dirpart=`(dirname "$mf") 2>/dev/null ||
25857 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25858          X"$mf" : 'X\(//\)[^/]' \| \
25859          X"$mf" : 'X\(//\)$' \| \
25860          X"$mf" : 'X\(/\)' \| \
25861          .     : '\(.\)' 2>/dev/null ||
25862 echo X"$mf" |
25863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25865           /^X\(\/\/\)$/{ s//\1/; q; }
25866           /^X\(\/\).*/{ s//\1/; q; }
25867           s/.*/./; q'`
25868   else
25869     continue
25870   fi
25871   # Extract the definition of DEPDIR, am__include, and am__quote
25872   # from the Makefile without running `make'.
25873   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25874   test -z "$DEPDIR" && continue
25875   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25876   test -z "am__include" && continue
25877   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25878   # When using ansi2knr, U may be empty or an underscore; expand it
25879   U=`sed -n 's/^U = //p' < "$mf"`
25880   # Find all dependency output files, they are included files with
25881   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25882   # simplest approach to changing $(DEPDIR) to its actual value in the
25883   # expansion.
25884   for file in `sed -n "
25885     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25886        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25887     # Make sure the directory exists.
25888     test -f "$dirpart/$file" && continue
25889     fdir=`(dirname "$file") 2>/dev/null ||
25890 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25891          X"$file" : 'X\(//\)[^/]' \| \
25892          X"$file" : 'X\(//\)$' \| \
25893          X"$file" : 'X\(/\)' \| \
25894          .     : '\(.\)' 2>/dev/null ||
25895 echo X"$file" |
25896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25897           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25898           /^X\(\/\/\)$/{ s//\1/; q; }
25899           /^X\(\/\).*/{ s//\1/; q; }
25900           s/.*/./; q'`
25901     { if $as_mkdir_p; then
25902     mkdir -p $dirpart/$fdir
25903   else
25904     as_dir=$dirpart/$fdir
25905     as_dirs=
25906     while test ! -d "$as_dir"; do
25907       as_dirs="$as_dir $as_dirs"
25908       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25910          X"$as_dir" : 'X\(//\)[^/]' \| \
25911          X"$as_dir" : 'X\(//\)$' \| \
25912          X"$as_dir" : 'X\(/\)' \| \
25913          .     : '\(.\)' 2>/dev/null ||
25914 echo X"$as_dir" |
25915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25916           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25917           /^X\(\/\/\)$/{ s//\1/; q; }
25918           /^X\(\/\).*/{ s//\1/; q; }
25919           s/.*/./; q'`
25920     done
25921     test ! -n "$as_dirs" || mkdir $as_dirs
25922   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25923 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25924    { (exit 1); exit 1; }; }; }
25925
25926     # echo "creating $dirpart/$file"
25927     echo '# dummy' > "$dirpart/$file"
25928   done
25929 done
25930  ;;
25931   esac
25932 done
25933 _ACEOF
25934
25935 cat >>$CONFIG_STATUS <<\_ACEOF
25936
25937 { (exit 0); exit 0; }
25938 _ACEOF
25939 chmod +x $CONFIG_STATUS
25940 ac_clean_files=$ac_clean_files_save
25941
25942
25943 # configure is writing to config.log, and then calls config.status.
25944 # config.status does its own redirection, appending to config.log.
25945 # Unfortunately, on DOS this fails, as config.log is still kept open
25946 # by configure, so config.status won't be able to write to it; its
25947 # output is simply discarded.  So we exec the FD to /dev/null,
25948 # effectively closing config.log, so it can be properly (re)opened and
25949 # appended to by config.status.  When coming back to configure, we
25950 # need to make the FD available again.
25951 if test "$no_create" != yes; then
25952   ac_cs_success=:
25953   ac_config_status_args=
25954   test "$silent" = yes &&
25955     ac_config_status_args="$ac_config_status_args --quiet"
25956   exec 5>/dev/null
25957   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25958   exec 5>>config.log
25959   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25960   # would make configure fail if this is the last instruction.
25961   $ac_cs_success || { (exit 1); exit 1; }
25962 fi
25963