Merge branch 'upstream' into debian
[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.1.
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.1'
427 PACKAGE_STRING='opensaml 2.1'
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_FLAG_[]DX_CURRENT_FEATURE DX_PERL ac_pt_DX_PERL DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_FLAG_[]DX_CURRENT_FEATURE DX_DOT ac_pt_DX_DOT DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_FLAG_[]DX_CURRENT_FEATURE DX_HHC ac_pt_DX_HHC DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_FLAG_[]DX_CURRENT_FEATURE DX_LATEX ac_pt_DX_LATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_FLAG_[]DX_CURRENT_FEATURE DX_DVIPS ac_pt_DX_DVIPS DX_FLAG_[]DX_CURRENT_FEATURE DX_EGREP ac_pt_DX_EGREP DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_FLAG_[]DX_CURRENT_FEATURE DX_PDFLATEX ac_pt_DX_PDFLATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE 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.1 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.1:";;
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.1
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.1, 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.1
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 ## --------------- ##
2031 ## Private macros. ##
2032 ## --------------- ##
2033
2034 # DX_ENV_APPEND(VARIABLE, VALUE)
2035 # ------------------------------
2036 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2037
2038
2039 # DX_DIRNAME_EXPR
2040 # ---------------
2041 # Expand into a shell expression prints the directory part of a path.
2042
2043
2044 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2045 # -------------------------------------
2046 # Expands according to the M4 (static) status of the feature.
2047
2048
2049 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2050 # ----------------------------------
2051 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2052
2053
2054 # DX_TEST_FEATURE(FEATURE)
2055 # ------------------------
2056 # Expand to a shell expression testing whether the feature is active.
2057
2058
2059 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2060 # -------------------------------------------------
2061 # Verify that a required features has the right state before trying to turn on
2062 # the DX_CURRENT_FEATURE.
2063
2064
2065 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2066 # ----------------------------------------------------------
2067 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2068
2069
2070 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2071 #                CHECK_DEPEND, CLEAR_DEPEND,
2072 #                REQUIRE, DO-IF-ON, DO-IF-OFF)
2073 # --------------------------------------------
2074 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2075 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2076 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2077 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2078 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2079 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2080
2081
2082 ## -------------- ##
2083 ## Public macros. ##
2084 ## -------------- ##
2085
2086 # DX_XXX_FEATURE(DEFAULT_STATE)
2087 # -----------------------------
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2100 # ---------------------------------------------------------
2101 # PROJECT also serves as the base name for the documentation files.
2102 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2103
2104
2105 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2106 #
2107 # SYNOPSIS
2108 #
2109 #   ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2110 #
2111 # DESCRIPTION
2112 #
2113 #   This macro figures out how to build C programs using POSIX threads.
2114 #   It sets the PTHREAD_LIBS output variable to the threads library and
2115 #   linker flags, and the PTHREAD_CFLAGS output variable to any special
2116 #   C compiler flags that are needed. (The user can also force certain
2117 #   compiler flags/libs to be tested by setting these environment
2118 #   variables.)
2119 #
2120 #   Also sets PTHREAD_CC to any special C compiler that is needed for
2121 #   multi-threaded programs (defaults to the value of CC otherwise).
2122 #   (This is necessary on AIX to use the special cc_r compiler alias.)
2123 #
2124 #   NOTE: You are assumed to not only compile your program with these
2125 #   flags, but also link it with them as well. e.g. you should link
2126 #   with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2127 #   $LIBS
2128 #
2129 #   If you are only building threads programs, you may wish to use
2130 #   these variables in your default LIBS, CFLAGS, and CC:
2131 #
2132 #          LIBS="$PTHREAD_LIBS $LIBS"
2133 #          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2134 #          CC="$PTHREAD_CC"
2135 #
2136 #   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2137 #   constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2138 #   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2139 #
2140 #   ACTION-IF-FOUND is a list of shell commands to run if a threads
2141 #   library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2142 #   run it if it is not found. If ACTION-IF-FOUND is not specified, the
2143 #   default action will define HAVE_PTHREAD.
2144 #
2145 #   Please let the authors know if this macro fails on any platform, or
2146 #   if you have any other suggestions or comments. This macro was based
2147 #   on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2148 #   (with help from M. Frigo), as well as ac_pthread and hb_pthread
2149 #   macros posted by Alejandro Forero Cuervo to the autoconf macro
2150 #   repository. We are also grateful for the helpful feedback of
2151 #   numerous users.
2152 #
2153 # LAST MODIFICATION
2154 #
2155 #   2006-05-29
2156 #
2157 # COPYLEFT
2158 #
2159 #   Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2160 #
2161 #   This program is free software; you can redistribute it and/or
2162 #   modify it under the terms of the GNU General Public License as
2163 #   published by the Free Software Foundation; either version 2 of the
2164 #   License, or (at your option) any later version.
2165 #
2166 #   This program is distributed in the hope that it will be useful, but
2167 #   WITHOUT ANY WARRANTY; without even the implied warranty of
2168 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2169 #   General Public License for more details.
2170 #
2171 #   You should have received a copy of the GNU General Public License
2172 #   along with this program; if not, write to the Free Software
2173 #   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2174 #   02111-1307, USA.
2175 #
2176 #   As a special exception, the respective Autoconf Macro's copyright
2177 #   owner gives unlimited permission to copy, distribute and modify the
2178 #   configure scripts that are the output of Autoconf when processing
2179 #   the Macro. You need not follow the terms of the GNU General Public
2180 #   License when using or distributing such scripts, even though
2181 #   portions of the text of the Macro appear in them. The GNU General
2182 #   Public License (GPL) does govern all other use of the material that
2183 #   constitutes the Autoconf Macro.
2184 #
2185 #   This special exception to the GPL applies to versions of the
2186 #   Autoconf Macro released by the Autoconf Macro Archive. When you
2187 #   make and distribute a modified version of the Autoconf Macro, you
2188 #   may extend this special exception to the GPL to apply to your
2189 #   modified version as well.
2190
2191
2192
2193 # Docygen features
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204 # Files:
2205 DX_PROJECT=opensaml
2206
2207 DX_CONFIG=doxygen.cfg
2208
2209 DX_DOCDIR=doc/api
2210
2211
2212 # Environment variables used inside doxygen.cfg:
2213 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2214
2215 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2216
2217 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2218
2219 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2220
2221
2222 # Doxygen itself:
2223
2224
2225
2226     # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2227 if test "${enable_doxygen_doc+set}" = set; then
2228   enableval="$enable_doxygen_doc"
2229
2230 case "$enableval" in
2231 #(
2232 y|Y|yes|Yes|YES)
2233     DX_FLAG_doc=1
2234
2235
2236 ;; #(
2237 n|N|no|No|NO)
2238     DX_FLAG_doc=0
2239
2240 ;; #(
2241 *)
2242     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2243 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2244    { (exit 1); exit 1; }; }
2245 ;;
2246 esac
2247
2248 else
2249
2250 DX_FLAG_doc=1
2251
2252
2253
2254 fi;
2255 if test "$DX_FLAG_doc" = 1; then
2256
2257 if test -n "$ac_tool_prefix"; then
2258   # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   case $DX_DOXYGEN in
2266   [\\/]* | ?:[\\/]*)
2267   ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2268   ;;
2269   *)
2270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277     ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283
2284   ;;
2285 esac
2286 fi
2287 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2288
2289 if test -n "$DX_DOXYGEN"; then
2290   echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2291 echo "${ECHO_T}$DX_DOXYGEN" >&6
2292 else
2293   echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297 fi
2298 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2299   ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2300   # Extract the first word of "doxygen", so it can be a program name with args.
2301 set dummy doxygen; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   case $ac_pt_DX_DOXYGEN in
2308   [\\/]* | ?:[\\/]*)
2309   ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2310   ;;
2311   *)
2312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319     ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321     break 2
2322   fi
2323 done
2324 done
2325
2326   ;;
2327 esac
2328 fi
2329 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2330
2331 if test -n "$ac_pt_DX_DOXYGEN"; then
2332   echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2333 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2334 else
2335   echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339   DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2340 else
2341   DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2342 fi
2343
2344 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2345     { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2346 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2347     DX_FLAG_doc=0
2348
2349 fi
2350
2351
2352 if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}perl; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_path_DX_PERL+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   case $DX_PERL in
2361   [\\/]* | ?:[\\/]*)
2362   ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2363   ;;
2364   *)
2365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372     ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378
2379   ;;
2380 esac
2381 fi
2382 DX_PERL=$ac_cv_path_DX_PERL
2383
2384 if test -n "$DX_PERL"; then
2385   echo "$as_me:$LINENO: result: $DX_PERL" >&5
2386 echo "${ECHO_T}$DX_PERL" >&6
2387 else
2388   echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2390 fi
2391
2392 fi
2393 if test -z "$ac_cv_path_DX_PERL"; then
2394   ac_pt_DX_PERL=$DX_PERL
2395   # Extract the first word of "perl", so it can be a program name with args.
2396 set dummy perl; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   case $ac_pt_DX_PERL in
2403   [\\/]* | ?:[\\/]*)
2404   ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2405   ;;
2406   *)
2407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414     ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420
2421   ;;
2422 esac
2423 fi
2424 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2425
2426 if test -n "$ac_pt_DX_PERL"; then
2427   echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2428 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2429 else
2430   echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2432 fi
2433
2434   DX_PERL=$ac_pt_DX_PERL
2435 else
2436   DX_PERL="$ac_cv_path_DX_PERL"
2437 fi
2438
2439 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2440     { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2441 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2442     DX_FLAG_doc=0
2443
2444 fi
2445
2446     :
2447 fi
2448 if test "$DX_FLAG_doc" = 1; then
2449
2450
2451 if :; then
2452   DX_COND_doc_TRUE=
2453   DX_COND_doc_FALSE='#'
2454 else
2455   DX_COND_doc_TRUE='#'
2456   DX_COND_doc_FALSE=
2457 fi
2458
2459     DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2460
2461     :
2462 else
2463
2464
2465 if false; then
2466   DX_COND_doc_TRUE=
2467   DX_COND_doc_FALSE='#'
2468 else
2469   DX_COND_doc_TRUE='#'
2470   DX_COND_doc_FALSE=
2471 fi
2472
2473
2474     :
2475 fi
2476
2477
2478 # Dot for graphics:
2479
2480
2481
2482     # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2483 if test "${enable_doxygen_dot+set}" = set; then
2484   enableval="$enable_doxygen_dot"
2485
2486 case "$enableval" in
2487 #(
2488 y|Y|yes|Yes|YES)
2489     DX_FLAG_dot=1
2490
2491
2492 test "$DX_FLAG_doc" = "1" \
2493 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2494 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2495    { (exit 1); exit 1; }; }
2496
2497 ;; #(
2498 n|N|no|No|NO)
2499     DX_FLAG_dot=0
2500
2501 ;; #(
2502 *)
2503     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2504 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2505    { (exit 1); exit 1; }; }
2506 ;;
2507 esac
2508
2509 else
2510
2511 DX_FLAG_dot=1
2512
2513
2514 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2515
2516
2517
2518 fi;
2519 if test "$DX_FLAG_dot" = 1; then
2520
2521 if test -n "$ac_tool_prefix"; then
2522   # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}dot; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_path_DX_DOT+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   case $DX_DOT in
2530   [\\/]* | ?:[\\/]*)
2531   ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2532   ;;
2533   *)
2534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541     ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546 done
2547
2548   ;;
2549 esac
2550 fi
2551 DX_DOT=$ac_cv_path_DX_DOT
2552
2553 if test -n "$DX_DOT"; then
2554   echo "$as_me:$LINENO: result: $DX_DOT" >&5
2555 echo "${ECHO_T}$DX_DOT" >&6
2556 else
2557   echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2559 fi
2560
2561 fi
2562 if test -z "$ac_cv_path_DX_DOT"; then
2563   ac_pt_DX_DOT=$DX_DOT
2564   # Extract the first word of "dot", so it can be a program name with args.
2565 set dummy dot; ac_word=$2
2566 echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   case $ac_pt_DX_DOT in
2572   [\\/]* | ?:[\\/]*)
2573   ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2574   ;;
2575   *)
2576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583     ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585     break 2
2586   fi
2587 done
2588 done
2589
2590   ;;
2591 esac
2592 fi
2593 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2594
2595 if test -n "$ac_pt_DX_DOT"; then
2596   echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2597 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2598 else
2599   echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601 fi
2602
2603   DX_DOT=$ac_pt_DX_DOT
2604 else
2605   DX_DOT="$ac_cv_path_DX_DOT"
2606 fi
2607
2608 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2609     { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2610 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2611     DX_FLAG_dot=0
2612
2613 fi
2614
2615     :
2616 fi
2617 if test "$DX_FLAG_dot" = 1; then
2618
2619
2620 if :; then
2621   DX_COND_dot_TRUE=
2622   DX_COND_dot_FALSE='#'
2623 else
2624   DX_COND_dot_TRUE='#'
2625   DX_COND_dot_FALSE=
2626 fi
2627
2628     DX_ENV="$DX_ENV HAVE_DOT='YES'"
2629
2630              DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2631
2632     :
2633 else
2634
2635
2636 if false; then
2637   DX_COND_dot_TRUE=
2638   DX_COND_dot_FALSE='#'
2639 else
2640   DX_COND_dot_TRUE='#'
2641   DX_COND_dot_FALSE=
2642 fi
2643
2644     DX_ENV="$DX_ENV HAVE_DOT='NO'"
2645
2646     :
2647 fi
2648
2649
2650 # Man pages generation:
2651
2652
2653
2654     # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2655 if test "${enable_doxygen_man+set}" = set; then
2656   enableval="$enable_doxygen_man"
2657
2658 case "$enableval" in
2659 #(
2660 y|Y|yes|Yes|YES)
2661     DX_FLAG_man=1
2662
2663
2664 test "$DX_FLAG_doc" = "1" \
2665 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2666 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2667    { (exit 1); exit 1; }; }
2668
2669 ;; #(
2670 n|N|no|No|NO)
2671     DX_FLAG_man=0
2672
2673 ;; #(
2674 *)
2675     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2676 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2677    { (exit 1); exit 1; }; }
2678 ;;
2679 esac
2680
2681 else
2682
2683 DX_FLAG_man=0
2684
2685
2686 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2687
2688
2689
2690 fi;
2691 if test "$DX_FLAG_man" = 1; then
2692
2693     :
2694 fi
2695 if test "$DX_FLAG_man" = 1; then
2696
2697
2698 if :; then
2699   DX_COND_man_TRUE=
2700   DX_COND_man_FALSE='#'
2701 else
2702   DX_COND_man_TRUE='#'
2703   DX_COND_man_FALSE=
2704 fi
2705
2706     DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2707
2708     :
2709 else
2710
2711
2712 if false; then
2713   DX_COND_man_TRUE=
2714   DX_COND_man_FALSE='#'
2715 else
2716   DX_COND_man_TRUE='#'
2717   DX_COND_man_FALSE=
2718 fi
2719
2720     DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2721
2722     :
2723 fi
2724
2725
2726 # RTF file generation:
2727
2728
2729
2730     # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2731 if test "${enable_doxygen_rtf+set}" = set; then
2732   enableval="$enable_doxygen_rtf"
2733
2734 case "$enableval" in
2735 #(
2736 y|Y|yes|Yes|YES)
2737     DX_FLAG_rtf=1
2738
2739
2740 test "$DX_FLAG_doc" = "1" \
2741 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2742 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2743    { (exit 1); exit 1; }; }
2744
2745 ;; #(
2746 n|N|no|No|NO)
2747     DX_FLAG_rtf=0
2748
2749 ;; #(
2750 *)
2751     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2752 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2753    { (exit 1); exit 1; }; }
2754 ;;
2755 esac
2756
2757 else
2758
2759 DX_FLAG_rtf=0
2760
2761
2762 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2763
2764
2765
2766 fi;
2767 if test "$DX_FLAG_rtf" = 1; then
2768
2769     :
2770 fi
2771 if test "$DX_FLAG_rtf" = 1; then
2772
2773
2774 if :; then
2775   DX_COND_rtf_TRUE=
2776   DX_COND_rtf_FALSE='#'
2777 else
2778   DX_COND_rtf_TRUE='#'
2779   DX_COND_rtf_FALSE=
2780 fi
2781
2782     DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2783
2784     :
2785 else
2786
2787
2788 if false; then
2789   DX_COND_rtf_TRUE=
2790   DX_COND_rtf_FALSE='#'
2791 else
2792   DX_COND_rtf_TRUE='#'
2793   DX_COND_rtf_FALSE=
2794 fi
2795
2796     DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2797
2798     :
2799 fi
2800
2801
2802 # XML file generation:
2803
2804
2805
2806     # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2807 if test "${enable_doxygen_xml+set}" = set; then
2808   enableval="$enable_doxygen_xml"
2809
2810 case "$enableval" in
2811 #(
2812 y|Y|yes|Yes|YES)
2813     DX_FLAG_xml=1
2814
2815
2816 test "$DX_FLAG_doc" = "1" \
2817 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2818 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2819    { (exit 1); exit 1; }; }
2820
2821 ;; #(
2822 n|N|no|No|NO)
2823     DX_FLAG_xml=0
2824
2825 ;; #(
2826 *)
2827     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2828 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2829    { (exit 1); exit 1; }; }
2830 ;;
2831 esac
2832
2833 else
2834
2835 DX_FLAG_xml=0
2836
2837
2838 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2839
2840
2841
2842 fi;
2843 if test "$DX_FLAG_xml" = 1; then
2844
2845     :
2846 fi
2847 if test "$DX_FLAG_xml" = 1; then
2848
2849
2850 if :; then
2851   DX_COND_xml_TRUE=
2852   DX_COND_xml_FALSE='#'
2853 else
2854   DX_COND_xml_TRUE='#'
2855   DX_COND_xml_FALSE=
2856 fi
2857
2858     DX_ENV="$DX_ENV GENERATE_XML='YES'"
2859
2860     :
2861 else
2862
2863
2864 if false; then
2865   DX_COND_xml_TRUE=
2866   DX_COND_xml_FALSE='#'
2867 else
2868   DX_COND_xml_TRUE='#'
2869   DX_COND_xml_FALSE=
2870 fi
2871
2872     DX_ENV="$DX_ENV GENERATE_XML='NO'"
2873
2874     :
2875 fi
2876
2877
2878 # (Compressed) HTML help generation:
2879
2880
2881
2882     # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2883 if test "${enable_doxygen_chm+set}" = set; then
2884   enableval="$enable_doxygen_chm"
2885
2886 case "$enableval" in
2887 #(
2888 y|Y|yes|Yes|YES)
2889     DX_FLAG_chm=1
2890
2891
2892 test "$DX_FLAG_doc" = "1" \
2893 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2894 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2895    { (exit 1); exit 1; }; }
2896
2897 ;; #(
2898 n|N|no|No|NO)
2899     DX_FLAG_chm=0
2900
2901 ;; #(
2902 *)
2903     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2904 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2905    { (exit 1); exit 1; }; }
2906 ;;
2907 esac
2908
2909 else
2910
2911 DX_FLAG_chm=0
2912
2913
2914 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2915
2916
2917
2918 fi;
2919 if test "$DX_FLAG_chm" = 1; then
2920
2921 if test -n "$ac_tool_prefix"; then
2922   # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2924 echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926 if test "${ac_cv_path_DX_HHC+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   case $DX_HHC in
2930   [\\/]* | ?:[\\/]*)
2931   ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2932   ;;
2933   *)
2934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941     ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947
2948   ;;
2949 esac
2950 fi
2951 DX_HHC=$ac_cv_path_DX_HHC
2952
2953 if test -n "$DX_HHC"; then
2954   echo "$as_me:$LINENO: result: $DX_HHC" >&5
2955 echo "${ECHO_T}$DX_HHC" >&6
2956 else
2957   echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6
2959 fi
2960
2961 fi
2962 if test -z "$ac_cv_path_DX_HHC"; then
2963   ac_pt_DX_HHC=$DX_HHC
2964   # Extract the first word of "hhc", so it can be a program name with args.
2965 set dummy hhc; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   case $ac_pt_DX_HHC in
2972   [\\/]* | ?:[\\/]*)
2973   ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2974   ;;
2975   *)
2976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981   for ac_exec_ext in '' $ac_executable_extensions; do
2982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983     ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988 done
2989
2990   ;;
2991 esac
2992 fi
2993 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
2994
2995 if test -n "$ac_pt_DX_HHC"; then
2996   echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
2997 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
2998 else
2999   echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3001 fi
3002
3003   DX_HHC=$ac_pt_DX_HHC
3004 else
3005   DX_HHC="$ac_cv_path_DX_HHC"
3006 fi
3007
3008 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3009     { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3010 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3011     DX_FLAG_chm=0
3012
3013 fi
3014
3015     :
3016 fi
3017 if test "$DX_FLAG_chm" = 1; then
3018
3019
3020 if :; then
3021   DX_COND_chm_TRUE=
3022   DX_COND_chm_FALSE='#'
3023 else
3024   DX_COND_chm_TRUE='#'
3025   DX_COND_chm_FALSE=
3026 fi
3027
3028     DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3029
3030              DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3031
3032              DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3033
3034     :
3035 else
3036
3037
3038 if false; then
3039   DX_COND_chm_TRUE=
3040   DX_COND_chm_FALSE='#'
3041 else
3042   DX_COND_chm_TRUE='#'
3043   DX_COND_chm_FALSE=
3044 fi
3045
3046     DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3047
3048     :
3049 fi
3050
3051
3052 # Seperate CHI file generation.
3053
3054
3055
3056     # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3057 if test "${enable_doxygen_chi+set}" = set; then
3058   enableval="$enable_doxygen_chi"
3059
3060 case "$enableval" in
3061 #(
3062 y|Y|yes|Yes|YES)
3063     DX_FLAG_chi=1
3064
3065
3066 test "$DX_FLAG_chm" = "1" \
3067 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3068 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3069    { (exit 1); exit 1; }; }
3070
3071 ;; #(
3072 n|N|no|No|NO)
3073     DX_FLAG_chi=0
3074
3075 ;; #(
3076 *)
3077     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3078 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3079    { (exit 1); exit 1; }; }
3080 ;;
3081 esac
3082
3083 else
3084
3085 DX_FLAG_chi=0
3086
3087
3088 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3089
3090
3091
3092 fi;
3093 if test "$DX_FLAG_chi" = 1; then
3094
3095     :
3096 fi
3097 if test "$DX_FLAG_chi" = 1; then
3098
3099
3100 if :; then
3101   DX_COND_chi_TRUE=
3102   DX_COND_chi_FALSE='#'
3103 else
3104   DX_COND_chi_TRUE='#'
3105   DX_COND_chi_FALSE=
3106 fi
3107
3108     DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3109
3110     :
3111 else
3112
3113
3114 if false; then
3115   DX_COND_chi_TRUE=
3116   DX_COND_chi_FALSE='#'
3117 else
3118   DX_COND_chi_TRUE='#'
3119   DX_COND_chi_FALSE=
3120 fi
3121
3122     DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3123
3124     :
3125 fi
3126
3127
3128 # Plain HTML pages generation:
3129
3130
3131
3132     # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3133 if test "${enable_doxygen_html+set}" = set; then
3134   enableval="$enable_doxygen_html"
3135
3136 case "$enableval" in
3137 #(
3138 y|Y|yes|Yes|YES)
3139     DX_FLAG_html=1
3140
3141
3142 test "$DX_FLAG_doc" = "1" \
3143 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3144 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3145    { (exit 1); exit 1; }; }
3146
3147 test "$DX_FLAG_chm" = "0" \
3148 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3149 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3150    { (exit 1); exit 1; }; }
3151
3152 ;; #(
3153 n|N|no|No|NO)
3154     DX_FLAG_html=0
3155
3156 ;; #(
3157 *)
3158     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3159 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3160    { (exit 1); exit 1; }; }
3161 ;;
3162 esac
3163
3164 else
3165
3166 DX_FLAG_html=1
3167
3168
3169 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3170
3171
3172 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3173
3174
3175
3176 fi;
3177 if test "$DX_FLAG_html" = 1; then
3178
3179     :
3180 fi
3181 if test "$DX_FLAG_html" = 1; then
3182
3183
3184 if :; then
3185   DX_COND_html_TRUE=
3186   DX_COND_html_FALSE='#'
3187 else
3188   DX_COND_html_TRUE='#'
3189   DX_COND_html_FALSE=
3190 fi
3191
3192     DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3193
3194     :
3195 else
3196
3197
3198 if false; then
3199   DX_COND_html_TRUE=
3200   DX_COND_html_FALSE='#'
3201 else
3202   DX_COND_html_TRUE='#'
3203   DX_COND_html_FALSE=
3204 fi
3205
3206     test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3207
3208     :
3209 fi
3210
3211
3212 # PostScript file generation:
3213
3214
3215
3216     # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3217 if test "${enable_doxygen_ps+set}" = set; then
3218   enableval="$enable_doxygen_ps"
3219
3220 case "$enableval" in
3221 #(
3222 y|Y|yes|Yes|YES)
3223     DX_FLAG_ps=1
3224
3225
3226 test "$DX_FLAG_doc" = "1" \
3227 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3228 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3229    { (exit 1); exit 1; }; }
3230
3231 ;; #(
3232 n|N|no|No|NO)
3233     DX_FLAG_ps=0
3234
3235 ;; #(
3236 *)
3237     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3238 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3239    { (exit 1); exit 1; }; }
3240 ;;
3241 esac
3242
3243 else
3244
3245 DX_FLAG_ps=0
3246
3247
3248 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3249
3250
3251
3252 fi;
3253 if test "$DX_FLAG_ps" = 1; then
3254
3255 if test -n "$ac_tool_prefix"; then
3256   # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}latex; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   case $DX_LATEX in
3264   [\\/]* | ?:[\\/]*)
3265   ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3266   ;;
3267   *)
3268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273   for ac_exec_ext in '' $ac_executable_extensions; do
3274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275     ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280 done
3281
3282   ;;
3283 esac
3284 fi
3285 DX_LATEX=$ac_cv_path_DX_LATEX
3286
3287 if test -n "$DX_LATEX"; then
3288   echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3289 echo "${ECHO_T}$DX_LATEX" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295 fi
3296 if test -z "$ac_cv_path_DX_LATEX"; then
3297   ac_pt_DX_LATEX=$DX_LATEX
3298   # Extract the first word of "latex", so it can be a program name with args.
3299 set dummy latex; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $ac_pt_DX_LATEX in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   ;;
3325 esac
3326 fi
3327 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3328
3329 if test -n "$ac_pt_DX_LATEX"; then
3330   echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3331 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3332 else
3333   echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3335 fi
3336
3337   DX_LATEX=$ac_pt_DX_LATEX
3338 else
3339   DX_LATEX="$ac_cv_path_DX_LATEX"
3340 fi
3341
3342 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3343     { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3344 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3345     DX_FLAG_ps=0
3346
3347 fi
3348
3349
3350 if test -n "$ac_tool_prefix"; then
3351   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   case $DX_MAKEINDEX in
3359   [\\/]* | ?:[\\/]*)
3360   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3361   ;;
3362   *)
3363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368   for ac_exec_ext in '' $ac_executable_extensions; do
3369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375 done
3376
3377   ;;
3378 esac
3379 fi
3380 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3381
3382 if test -n "$DX_MAKEINDEX"; then
3383   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3384 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3385 else
3386   echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389
3390 fi
3391 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3392   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3393   # Extract the first word of "makeindex", so it can be a program name with args.
3394 set dummy makeindex; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   case $ac_pt_DX_MAKEINDEX in
3401   [\\/]* | ?:[\\/]*)
3402   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3403   ;;
3404   *)
3405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408   IFS=$as_save_IFS
3409   test -z "$as_dir" && as_dir=.
3410   for ac_exec_ext in '' $ac_executable_extensions; do
3411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414     break 2
3415   fi
3416 done
3417 done
3418
3419   ;;
3420 esac
3421 fi
3422 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3423
3424 if test -n "$ac_pt_DX_MAKEINDEX"; then
3425   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3426 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3427 else
3428   echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3430 fi
3431
3432   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3433 else
3434   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3435 fi
3436
3437 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3438     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3439 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3440     DX_FLAG_ps=0
3441
3442 fi
3443
3444
3445 if test -n "$ac_tool_prefix"; then
3446   # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3448 echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   case $DX_DVIPS in
3454   [\\/]* | ?:[\\/]*)
3455   ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3456   ;;
3457   *)
3458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465     ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470 done
3471
3472   ;;
3473 esac
3474 fi
3475 DX_DVIPS=$ac_cv_path_DX_DVIPS
3476
3477 if test -n "$DX_DVIPS"; then
3478   echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3479 echo "${ECHO_T}$DX_DVIPS" >&6
3480 else
3481   echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 fi
3484
3485 fi
3486 if test -z "$ac_cv_path_DX_DVIPS"; then
3487   ac_pt_DX_DVIPS=$DX_DVIPS
3488   # Extract the first word of "dvips", so it can be a program name with args.
3489 set dummy dvips; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   case $ac_pt_DX_DVIPS in
3496   [\\/]* | ?:[\\/]*)
3497   ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3498   ;;
3499   *)
3500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505   for ac_exec_ext in '' $ac_executable_extensions; do
3506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507     ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512 done
3513
3514   ;;
3515 esac
3516 fi
3517 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3518
3519 if test -n "$ac_pt_DX_DVIPS"; then
3520   echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3521 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3522 else
3523   echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3525 fi
3526
3527   DX_DVIPS=$ac_pt_DX_DVIPS
3528 else
3529   DX_DVIPS="$ac_cv_path_DX_DVIPS"
3530 fi
3531
3532 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3533     { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3534 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3535     DX_FLAG_ps=0
3536
3537 fi
3538
3539
3540 if test -n "$ac_tool_prefix"; then
3541   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   case $DX_EGREP in
3549   [\\/]* | ?:[\\/]*)
3550   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3551   ;;
3552   *)
3553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556   IFS=$as_save_IFS
3557   test -z "$as_dir" && as_dir=.
3558   for ac_exec_ext in '' $ac_executable_extensions; do
3559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562     break 2
3563   fi
3564 done
3565 done
3566
3567   ;;
3568 esac
3569 fi
3570 DX_EGREP=$ac_cv_path_DX_EGREP
3571
3572 if test -n "$DX_EGREP"; then
3573   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3574 echo "${ECHO_T}$DX_EGREP" >&6
3575 else
3576   echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3578 fi
3579
3580 fi
3581 if test -z "$ac_cv_path_DX_EGREP"; then
3582   ac_pt_DX_EGREP=$DX_EGREP
3583   # Extract the first word of "egrep", so it can be a program name with args.
3584 set dummy egrep; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   case $ac_pt_DX_EGREP in
3591   [\\/]* | ?:[\\/]*)
3592   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3593   ;;
3594   *)
3595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600   for ac_exec_ext in '' $ac_executable_extensions; do
3601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604     break 2
3605   fi
3606 done
3607 done
3608
3609   ;;
3610 esac
3611 fi
3612 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3613
3614 if test -n "$ac_pt_DX_EGREP"; then
3615   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3616 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3617 else
3618   echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3620 fi
3621
3622   DX_EGREP=$ac_pt_DX_EGREP
3623 else
3624   DX_EGREP="$ac_cv_path_DX_EGREP"
3625 fi
3626
3627 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3628     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3629 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3630     DX_FLAG_ps=0
3631
3632 fi
3633
3634     :
3635 fi
3636 if test "$DX_FLAG_ps" = 1; then
3637
3638
3639 if :; then
3640   DX_COND_ps_TRUE=
3641   DX_COND_ps_FALSE='#'
3642 else
3643   DX_COND_ps_TRUE='#'
3644   DX_COND_ps_FALSE=
3645 fi
3646
3647
3648     :
3649 else
3650
3651
3652 if false; then
3653   DX_COND_ps_TRUE=
3654   DX_COND_ps_FALSE='#'
3655 else
3656   DX_COND_ps_TRUE='#'
3657   DX_COND_ps_FALSE=
3658 fi
3659
3660
3661     :
3662 fi
3663
3664
3665 # PDF file generation:
3666
3667
3668
3669     # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3670 if test "${enable_doxygen_pdf+set}" = set; then
3671   enableval="$enable_doxygen_pdf"
3672
3673 case "$enableval" in
3674 #(
3675 y|Y|yes|Yes|YES)
3676     DX_FLAG_pdf=1
3677
3678
3679 test "$DX_FLAG_doc" = "1" \
3680 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3681 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3682    { (exit 1); exit 1; }; }
3683
3684 ;; #(
3685 n|N|no|No|NO)
3686     DX_FLAG_pdf=0
3687
3688 ;; #(
3689 *)
3690     { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3691 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3692    { (exit 1); exit 1; }; }
3693 ;;
3694 esac
3695
3696 else
3697
3698 DX_FLAG_pdf=0
3699
3700
3701 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3702
3703
3704
3705 fi;
3706 if test "$DX_FLAG_pdf" = 1; then
3707
3708 if test -n "$ac_tool_prefix"; then
3709   # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   case $DX_PDFLATEX in
3717   [\\/]* | ?:[\\/]*)
3718   ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3719   ;;
3720   *)
3721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_exec_ext in '' $ac_executable_extensions; do
3727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728     ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733 done
3734
3735   ;;
3736 esac
3737 fi
3738 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3739
3740 if test -n "$DX_PDFLATEX"; then
3741   echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3742 echo "${ECHO_T}$DX_PDFLATEX" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748 fi
3749 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3750   ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3751   # Extract the first word of "pdflatex", so it can be a program name with args.
3752 set dummy pdflatex; ac_word=$2
3753 echo "$as_me:$LINENO: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   case $ac_pt_DX_PDFLATEX in
3759   [\\/]* | ?:[\\/]*)
3760   ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3761   ;;
3762   *)
3763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766   IFS=$as_save_IFS
3767   test -z "$as_dir" && as_dir=.
3768   for ac_exec_ext in '' $ac_executable_extensions; do
3769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770     ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772     break 2
3773   fi
3774 done
3775 done
3776
3777   ;;
3778 esac
3779 fi
3780 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3781
3782 if test -n "$ac_pt_DX_PDFLATEX"; then
3783   echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3784 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790   DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3791 else
3792   DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3793 fi
3794
3795 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3796     { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3797 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3798     DX_FLAG_pdf=0
3799
3800 fi
3801
3802
3803 if test -n "$ac_tool_prefix"; then
3804   # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3805 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   case $DX_MAKEINDEX in
3812   [\\/]* | ?:[\\/]*)
3813   ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3814   ;;
3815   *)
3816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821   for ac_exec_ext in '' $ac_executable_extensions; do
3822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823     ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828 done
3829
3830   ;;
3831 esac
3832 fi
3833 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3834
3835 if test -n "$DX_MAKEINDEX"; then
3836   echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3837 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3838 else
3839   echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841 fi
3842
3843 fi
3844 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3845   ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3846   # Extract the first word of "makeindex", so it can be a program name with args.
3847 set dummy makeindex; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   case $ac_pt_DX_MAKEINDEX in
3854   [\\/]* | ?:[\\/]*)
3855   ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3856   ;;
3857   *)
3858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863   for ac_exec_ext in '' $ac_executable_extensions; do
3864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865     ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870 done
3871
3872   ;;
3873 esac
3874 fi
3875 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3876
3877 if test -n "$ac_pt_DX_MAKEINDEX"; then
3878   echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3879 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3880 else
3881   echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 fi
3884
3885   DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3886 else
3887   DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3888 fi
3889
3890 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3891     { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3892 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3893     DX_FLAG_pdf=0
3894
3895 fi
3896
3897
3898 if test -n "$ac_tool_prefix"; then
3899   # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   case $DX_EGREP in
3907   [\\/]* | ?:[\\/]*)
3908   ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3909   ;;
3910   *)
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_exec_ext in '' $ac_executable_extensions; do
3917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918     ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923 done
3924
3925   ;;
3926 esac
3927 fi
3928 DX_EGREP=$ac_cv_path_DX_EGREP
3929
3930 if test -n "$DX_EGREP"; then
3931   echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3932 echo "${ECHO_T}$DX_EGREP" >&6
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
3938 fi
3939 if test -z "$ac_cv_path_DX_EGREP"; then
3940   ac_pt_DX_EGREP=$DX_EGREP
3941   # Extract the first word of "egrep", so it can be a program name with args.
3942 set dummy egrep; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948   case $ac_pt_DX_EGREP in
3949   [\\/]* | ?:[\\/]*)
3950   ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3951   ;;
3952   *)
3953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958   for ac_exec_ext in '' $ac_executable_extensions; do
3959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960     ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962     break 2
3963   fi
3964 done
3965 done
3966
3967   ;;
3968 esac
3969 fi
3970 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3971
3972 if test -n "$ac_pt_DX_EGREP"; then
3973   echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3974 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980   DX_EGREP=$ac_pt_DX_EGREP
3981 else
3982   DX_EGREP="$ac_cv_path_DX_EGREP"
3983 fi
3984
3985 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3986     { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
3987 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
3988     DX_FLAG_pdf=0
3989
3990 fi
3991
3992     :
3993 fi
3994 if test "$DX_FLAG_pdf" = 1; then
3995
3996
3997 if :; then
3998   DX_COND_pdf_TRUE=
3999   DX_COND_pdf_FALSE='#'
4000 else
4001   DX_COND_pdf_TRUE='#'
4002   DX_COND_pdf_FALSE=
4003 fi
4004
4005
4006     :
4007 else
4008
4009
4010 if false; then
4011   DX_COND_pdf_TRUE=
4012   DX_COND_pdf_FALSE='#'
4013 else
4014   DX_COND_pdf_TRUE='#'
4015   DX_COND_pdf_FALSE=
4016 fi
4017
4018
4019     :
4020 fi
4021
4022
4023 # LaTeX generation for PS and/or PDF:
4024 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4025
4026
4027 if :; then
4028   DX_COND_latex_TRUE=
4029   DX_COND_latex_FALSE='#'
4030 else
4031   DX_COND_latex_TRUE='#'
4032   DX_COND_latex_FALSE=
4033 fi
4034
4035     DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4036
4037 else
4038
4039
4040 if false; then
4041   DX_COND_latex_TRUE=
4042   DX_COND_latex_FALSE='#'
4043 else
4044   DX_COND_latex_TRUE='#'
4045   DX_COND_latex_FALSE=
4046 fi
4047
4048     DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4049
4050 fi
4051
4052 # Paper size for PS and/or PDF:
4053
4054 case "$DOXYGEN_PAPER_SIZE" in
4055 #(
4056 "")
4057     DOXYGEN_PAPER_SIZE=""
4058
4059 ;; #(
4060 a4wide|a4|letter|legal|executive)
4061     DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4062
4063 ;; #(
4064 *)
4065     { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4066 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4067    { (exit 1); exit 1; }; }
4068 ;;
4069 esac
4070
4071 #For debugging:
4072 #echo DX_FLAG_doc=$DX_FLAG_doc
4073 #echo DX_FLAG_dot=$DX_FLAG_dot
4074 #echo DX_FLAG_man=$DX_FLAG_man
4075 #echo DX_FLAG_html=$DX_FLAG_html
4076 #echo DX_FLAG_chm=$DX_FLAG_chm
4077 #echo DX_FLAG_chi=$DX_FLAG_chi
4078 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4079 #echo DX_FLAG_xml=$DX_FLAG_xml
4080 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4081 #echo DX_FLAG_ps=$DX_FLAG_ps
4082 #echo DX_ENV=$DX_ENV
4083
4084 DX_INCLUDE=
4085
4086 # Check whether --enable-debug or --disable-debug was given.
4087 if test "${enable_debug+set}" = set; then
4088   enableval="$enable_debug"
4089   enable_debug=$enableval
4090 else
4091   enable_debug=no
4092 fi;
4093
4094 if test "$enable_debug" = "yes" ; then
4095     GCC_CFLAGS="$CFLAGS -Wall -g -D_DEBUG"
4096     GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
4097 else
4098     GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
4099     GCC_CXXFLAGS="$CXXFLAGS -Wall -O2 -DNDEBUG"
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 if test -n "$ac_tool_prefix"; then
4108   for ac_prog in gcc gcc3 cc
4109   do
4110     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_CC+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   if test -n "$CC"; then
4118   ac_cv_prog_CC="$CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125   for ac_exec_ext in '' $ac_executable_extensions; do
4126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132 done
4133
4134 fi
4135 fi
4136 CC=$ac_cv_prog_CC
4137 if test -n "$CC"; then
4138   echo "$as_me:$LINENO: result: $CC" >&5
4139 echo "${ECHO_T}$CC" >&6
4140 else
4141   echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144
4145     test -n "$CC" && break
4146   done
4147 fi
4148 if test -z "$CC"; then
4149   ac_ct_CC=$CC
4150   for ac_prog in gcc gcc3 cc
4151 do
4152   # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -n "$ac_ct_CC"; then
4160   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169     ac_cv_prog_ac_ct_CC="$ac_prog"
4170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175
4176 fi
4177 fi
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if test -n "$ac_ct_CC"; then
4180   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4181 echo "${ECHO_T}$ac_ct_CC" >&6
4182 else
4183   echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187   test -n "$ac_ct_CC" && break
4188 done
4189
4190   CC=$ac_ct_CC
4191 fi
4192
4193
4194 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4195 See \`config.log' for more details." >&5
4196 echo "$as_me: error: no acceptable C compiler found in \$PATH
4197 See \`config.log' for more details." >&2;}
4198    { (exit 1); exit 1; }; }
4199
4200 # Provide some information about the compiler.
4201 echo "$as_me:$LINENO:" \
4202      "checking for C compiler version" >&5
4203 ac_compiler=`set X $ac_compile; echo $2`
4204 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4205   (eval $ac_compiler --version </dev/null >&5) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }
4209 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4210   (eval $ac_compiler -v </dev/null >&5) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }
4214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4215   (eval $ac_compiler -V </dev/null >&5) 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }
4219
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226
4227 int
4228 main ()
4229 {
4230
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 ac_clean_files_save=$ac_clean_files
4236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4237 # Try to create an executable without -o first, disregard a.out.
4238 # It will help us diagnose broken compilers, and finding out an intuition
4239 # of exeext.
4240 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4244   (eval $ac_link_default) 2>&5
4245   ac_status=$?
4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247   (exit $ac_status); }; then
4248   # Find the output, starting from the most likely.  This scheme is
4249 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4250 # resort.
4251
4252 # Be careful to initialize this variable, since it used to be cached.
4253 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4254 ac_cv_exeext=
4255 # b.out is created by i960 compilers.
4256 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4257 do
4258   test -f "$ac_file" || continue
4259   case $ac_file in
4260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4261         ;;
4262     conftest.$ac_ext )
4263         # This is the source file.
4264         ;;
4265     [ab].out )
4266         # We found the default executable, but exeext='' is most
4267         # certainly right.
4268         break;;
4269     *.* )
4270         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271         # FIXME: I believe we export ac_cv_exeext for Libtool,
4272         # but it would be cool to find out if it's true.  Does anybody
4273         # maintain Libtool? --akim.
4274         export ac_cv_exeext
4275         break;;
4276     * )
4277         break;;
4278   esac
4279 done
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: C compiler cannot create executables
4287 See \`config.log' for more details." >&2;}
4288    { (exit 77); exit 77; }; }
4289 fi
4290
4291 ac_exeext=$ac_cv_exeext
4292 echo "$as_me:$LINENO: result: $ac_file" >&5
4293 echo "${ECHO_T}$ac_file" >&6
4294
4295 # Check the compiler produces executables we can run.  If not, either
4296 # the compiler is broken, or we cross compile.
4297 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4298 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4299 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4300 # If not cross compiling, check that we can run a simple program.
4301 if test "$cross_compiling" != yes; then
4302   if { ac_try='./$ac_file'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308     cross_compiling=no
4309   else
4310     if test "$cross_compiling" = maybe; then
4311         cross_compiling=yes
4312     else
4313         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4314 If you meant to cross compile, use \`--host'.
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run C compiled programs.
4317 If you meant to cross compile, use \`--host'.
4318 See \`config.log' for more details." >&2;}
4319    { (exit 1); exit 1; }; }
4320     fi
4321   fi
4322 fi
4323 echo "$as_me:$LINENO: result: yes" >&5
4324 echo "${ECHO_T}yes" >&6
4325
4326 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4327 ac_clean_files=$ac_clean_files_save
4328 # Check the compiler produces executables we can run.  If not, either
4329 # the compiler is broken, or we cross compile.
4330 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4331 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4332 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4333 echo "${ECHO_T}$cross_compiling" >&6
4334
4335 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4336 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338   (eval $ac_link) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; then
4342   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4343 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4344 # work properly (i.e., refer to `conftest.exe'), while it won't with
4345 # `rm'.
4346 for ac_file in conftest.exe conftest conftest.*; do
4347   test -f "$ac_file" || continue
4348   case $ac_file in
4349     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4350     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4351           export ac_cv_exeext
4352           break;;
4353     * ) break;;
4354   esac
4355 done
4356 else
4357   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4358 See \`config.log' for more details." >&5
4359 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4360 See \`config.log' for more details." >&2;}
4361    { (exit 1); exit 1; }; }
4362 fi
4363
4364 rm -f conftest$ac_cv_exeext
4365 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4366 echo "${ECHO_T}$ac_cv_exeext" >&6
4367
4368 rm -f conftest.$ac_ext
4369 EXEEXT=$ac_cv_exeext
4370 ac_exeext=$EXEEXT
4371 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4372 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4373 if test "${ac_cv_objext+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382
4383 int
4384 main ()
4385 {
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.o conftest.obj
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393   (eval $ac_compile) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; then
4397   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4398   case $ac_file in
4399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4400     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4401        break;;
4402   esac
4403 done
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4409 See \`config.log' for more details." >&5
4410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4411 See \`config.log' for more details." >&2;}
4412    { (exit 1); exit 1; }; }
4413 fi
4414
4415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4418 echo "${ECHO_T}$ac_cv_objext" >&6
4419 OBJEXT=$ac_cv_objext
4420 ac_objext=$OBJEXT
4421 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432
4433 int
4434 main ()
4435 {
4436 #ifndef __GNUC__
4437        choke me
4438 #endif
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446   (eval $ac_compile) 2>conftest.er1
4447   ac_status=$?
4448   grep -v '^ *+' conftest.er1 >conftest.err
4449   rm -f conftest.er1
4450   cat conftest.err >&5
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -z "$ac_c_werror_flag"
4454                          || test ! -s conftest.err'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; } &&
4460          { ac_try='test -s conftest.$ac_objext'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; }; then
4466   ac_compiler_gnu=yes
4467 else
4468   echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4470
4471 ac_compiler_gnu=no
4472 fi
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4475
4476 fi
4477 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4478 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4479 GCC=`test $ac_compiler_gnu = yes && echo yes`
4480 ac_test_CFLAGS=${CFLAGS+set}
4481 ac_save_CFLAGS=$CFLAGS
4482 CFLAGS="-g"
4483 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4484 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4485 if test "${ac_cv_prog_cc_g+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494
4495 int
4496 main ()
4497 {
4498
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505   (eval $ac_compile) 2>conftest.er1
4506   ac_status=$?
4507   grep -v '^ *+' conftest.er1 >conftest.err
4508   rm -f conftest.er1
4509   cat conftest.err >&5
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } &&
4512          { ac_try='test -z "$ac_c_werror_flag"
4513                          || test ! -s conftest.err'
4514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515   (eval $ac_try) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }; } &&
4519          { ac_try='test -s conftest.$ac_objext'
4520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521   (eval $ac_try) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; }; then
4525   ac_cv_prog_cc_g=yes
4526 else
4527   echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ac_cv_prog_cc_g=no
4531 fi
4532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4533 fi
4534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4535 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4536 if test "$ac_test_CFLAGS" = set; then
4537   CFLAGS=$ac_save_CFLAGS
4538 elif test $ac_cv_prog_cc_g = yes; then
4539   if test "$GCC" = yes; then
4540     CFLAGS="-g -O2"
4541   else
4542     CFLAGS="-g"
4543   fi
4544 else
4545   if test "$GCC" = yes; then
4546     CFLAGS="-O2"
4547   else
4548     CFLAGS=
4549   fi
4550 fi
4551 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4552 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4553 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   ac_cv_prog_cc_stdc=no
4557 ac_save_CC=$CC
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564 #include <stdarg.h>
4565 #include <stdio.h>
4566 #include <sys/types.h>
4567 #include <sys/stat.h>
4568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4569 struct buf { int x; };
4570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4571 static char *e (p, i)
4572      char **p;
4573      int i;
4574 {
4575   return p[i];
4576 }
4577 static char *f (char * (*g) (char **, int), char **p, ...)
4578 {
4579   char *s;
4580   va_list v;
4581   va_start (v,p);
4582   s = g (p, va_arg (v,int));
4583   va_end (v);
4584   return s;
4585 }
4586
4587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4588    function prototypes and stuff, but not '\xHH' hex character constants.
4589    These don't provoke an error unfortunately, instead are silently treated
4590    as 'x'.  The following induces an error, until -std1 is added to get
4591    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4592    array size at least.  It's necessary to write '\x00'==0 to get something
4593    that's true only with -std1.  */
4594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4595
4596 int test (int i, double x);
4597 struct s1 {int (*f) (int a);};
4598 struct s2 {int (*f) (double a);};
4599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4600 int argc;
4601 char **argv;
4602 int
4603 main ()
4604 {
4605 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 # Don't try gcc -ansi; that turns off useful extensions and
4611 # breaks some systems' header files.
4612 # AIX                   -qlanglvl=ansi
4613 # Ultrix and OSF/1      -std1
4614 # HP-UX 10.20 and later -Ae
4615 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4616 # SVR4                  -Xc -D__EXTENSIONS__
4617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4618 do
4619   CC="$ac_save_CC $ac_arg"
4620   rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622   (eval $ac_compile) 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } &&
4629          { ac_try='test -z "$ac_c_werror_flag"
4630                          || test ! -s conftest.err'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; } &&
4636          { ac_try='test -s conftest.$ac_objext'
4637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; }; then
4642   ac_cv_prog_cc_stdc=$ac_arg
4643 break
4644 else
4645   echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 fi
4649 rm -f conftest.err conftest.$ac_objext
4650 done
4651 rm -f conftest.$ac_ext conftest.$ac_objext
4652 CC=$ac_save_CC
4653
4654 fi
4655
4656 case "x$ac_cv_prog_cc_stdc" in
4657   x|xno)
4658     echo "$as_me:$LINENO: result: none needed" >&5
4659 echo "${ECHO_T}none needed" >&6 ;;
4660   *)
4661     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4662 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4663     CC="$CC $ac_cv_prog_cc_stdc" ;;
4664 esac
4665
4666 # Some people use a C++ compiler to compile C.  Since we use `exit',
4667 # in C++ we need to declare it.  In case someone uses the same compiler
4668 # for both compiling C and C++ we need to have the C++ compiler decide
4669 # the declaration of exit, since it's the most demanding environment.
4670 cat >conftest.$ac_ext <<_ACEOF
4671 #ifndef __cplusplus
4672   choke me
4673 #endif
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677   (eval $ac_compile) 2>conftest.er1
4678   ac_status=$?
4679   grep -v '^ *+' conftest.er1 >conftest.err
4680   rm -f conftest.er1
4681   cat conftest.err >&5
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); } &&
4684          { ac_try='test -z "$ac_c_werror_flag"
4685                          || test ! -s conftest.err'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; } &&
4691          { ac_try='test -s conftest.$ac_objext'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   for ac_declaration in \
4698    '' \
4699    'extern "C" void std::exit (int) throw (); using std::exit;' \
4700    'extern "C" void std::exit (int); using std::exit;' \
4701    'extern "C" void exit (int) throw ();' \
4702    'extern "C" void exit (int);' \
4703    'void exit (int);'
4704 do
4705   cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h.  */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h.  */
4711 $ac_declaration
4712 #include <stdlib.h>
4713 int
4714 main ()
4715 {
4716 exit (42);
4717   ;
4718   return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723   (eval $ac_compile) 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } &&
4730          { ac_try='test -z "$ac_c_werror_flag"
4731                          || test ! -s conftest.err'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; } &&
4737          { ac_try='test -s conftest.$ac_objext'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; }; then
4743   :
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 continue
4749 fi
4750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751   cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 $ac_declaration
4758 int
4759 main ()
4760 {
4761 exit (42);
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768   (eval $ac_compile) 2>conftest.er1
4769   ac_status=$?
4770   grep -v '^ *+' conftest.er1 >conftest.err
4771   rm -f conftest.er1
4772   cat conftest.err >&5
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } &&
4775          { ac_try='test -z "$ac_c_werror_flag"
4776                          || test ! -s conftest.err'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; } &&
4782          { ac_try='test -s conftest.$ac_objext'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   break
4789 else
4790   echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 fi
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 done
4796 rm -f conftest*
4797 if test -n "$ac_declaration"; then
4798   echo '#ifdef __cplusplus' >>confdefs.h
4799   echo $ac_declaration      >>confdefs.h
4800   echo '#endif'             >>confdefs.h
4801 fi
4802
4803 else
4804   echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 fi
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 DEPDIR="${am__leading_dot}deps"
4815
4816           ac_config_commands="$ac_config_commands depfiles"
4817
4818
4819 am_make=${MAKE-make}
4820 cat > confinc << 'END'
4821 am__doit:
4822         @echo done
4823 .PHONY: am__doit
4824 END
4825 # If we don't find an include directive, just comment out the code.
4826 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4827 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4828 am__include="#"
4829 am__quote=
4830 _am_result=none
4831 # First try GNU make style include.
4832 echo "include confinc" > confmf
4833 # We grep out `Entering directory' and `Leaving directory'
4834 # messages which can occur if `w' ends up in MAKEFLAGS.
4835 # In particular we don't look at `^make:' because GNU make might
4836 # be invoked under some other name (usually "gmake"), in which
4837 # case it prints its new name instead of `make'.
4838 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4839    am__include=include
4840    am__quote=
4841    _am_result=GNU
4842 fi
4843 # Now try BSD make style include.
4844 if test "$am__include" = "#"; then
4845    echo '.include "confinc"' > confmf
4846    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4847       am__include=.include
4848       am__quote="\""
4849       _am_result=BSD
4850    fi
4851 fi
4852
4853
4854 echo "$as_me:$LINENO: result: $_am_result" >&5
4855 echo "${ECHO_T}$_am_result" >&6
4856 rm -f confinc confmf
4857
4858 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4859 if test "${enable_dependency_tracking+set}" = set; then
4860   enableval="$enable_dependency_tracking"
4861
4862 fi;
4863 if test "x$enable_dependency_tracking" != xno; then
4864   am_depcomp="$ac_aux_dir/depcomp"
4865   AMDEPBACKSLASH='\'
4866 fi
4867
4868
4869 if test "x$enable_dependency_tracking" != xno; then
4870   AMDEP_TRUE=
4871   AMDEP_FALSE='#'
4872 else
4873   AMDEP_TRUE='#'
4874   AMDEP_FALSE=
4875 fi
4876
4877
4878
4879
4880 depcc="$CC"   am_compiler_list=
4881
4882 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4883 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4884 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4888   # We make a subdir and do the tests there.  Otherwise we can end up
4889   # making bogus files that we don't know about and never remove.  For
4890   # instance it was reported that on HP-UX the gcc test will end up
4891   # making a dummy file named `D' -- because `-MD' means `put the output
4892   # in D'.
4893   mkdir conftest.dir
4894   # Copy depcomp to subdir because otherwise we won't find it if we're
4895   # using a relative directory.
4896   cp "$am_depcomp" conftest.dir
4897   cd conftest.dir
4898   # We will build objects and dependencies in a subdirectory because
4899   # it helps to detect inapplicable dependency modes.  For instance
4900   # both Tru64's cc and ICC support -MD to output dependencies as a
4901   # side effect of compilation, but ICC will put the dependencies in
4902   # the current directory while Tru64 will put them in the object
4903   # directory.
4904   mkdir sub
4905
4906   am_cv_CC_dependencies_compiler_type=none
4907   if test "$am_compiler_list" = ""; then
4908      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4909   fi
4910   for depmode in $am_compiler_list; do
4911     # Setup a source with many dependencies, because some compilers
4912     # like to wrap large dependency lists on column 80 (with \), and
4913     # we should not choose a depcomp mode which is confused by this.
4914     #
4915     # We need to recreate these files for each test, as the compiler may
4916     # overwrite some of them when testing with obscure command lines.
4917     # This happens at least with the AIX C compiler.
4918     : > sub/conftest.c
4919     for i in 1 2 3 4 5 6; do
4920       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4921       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4922       # Solaris 8's {/usr,}/bin/sh.
4923       touch sub/conftst$i.h
4924     done
4925     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4926
4927     case $depmode in
4928     nosideeffect)
4929       # after this tag, mechanisms are not by side-effect, so they'll
4930       # only be used when explicitly requested
4931       if test "x$enable_dependency_tracking" = xyes; then
4932         continue
4933       else
4934         break
4935       fi
4936       ;;
4937     none) break ;;
4938     esac
4939     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940     # mode.  It turns out that the SunPro C++ compiler does not properly
4941     # handle `-M -o', and we need to detect this.
4942     if depmode=$depmode \
4943        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4944        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4945        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4946          >/dev/null 2>conftest.err &&
4947        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4948        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4949        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4950       # icc doesn't choke on unknown options, it will just issue warnings
4951       # or remarks (even with -Werror).  So we grep stderr for any message
4952       # that says an option was ignored or not supported.
4953       # When given -MP, icc 7.0 and 7.1 complain thusly:
4954       #   icc: Command line warning: ignoring option '-M'; no argument required
4955       # The diagnosis changed in icc 8.0:
4956       #   icc: Command line remark: option '-MP' not supported
4957       if (grep 'ignoring option' conftest.err ||
4958           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4959         am_cv_CC_dependencies_compiler_type=$depmode
4960         break
4961       fi
4962     fi
4963   done
4964
4965   cd ..
4966   rm -rf conftest.dir
4967 else
4968   am_cv_CC_dependencies_compiler_type=none
4969 fi
4970
4971 fi
4972 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4973 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4975
4976
4977
4978 if
4979   test "x$enable_dependency_tracking" != xno \
4980   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4981   am__fastdepCC_TRUE=
4982   am__fastdepCC_FALSE='#'
4983 else
4984   am__fastdepCC_TRUE='#'
4985   am__fastdepCC_FALSE=
4986 fi
4987
4988
4989 ac_ext=cc
4990 ac_cpp='$CXXCPP $CPPFLAGS'
4991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4994 if test -n "$ac_tool_prefix"; then
4995   for ac_prog in $CCC g++ g++3 c++ CC
4996   do
4997     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_CXX+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   if test -n "$CXX"; then
5005   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010   IFS=$as_save_IFS
5011   test -z "$as_dir" && as_dir=.
5012   for ac_exec_ext in '' $ac_executable_extensions; do
5013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019 done
5020
5021 fi
5022 fi
5023 CXX=$ac_cv_prog_CXX
5024 if test -n "$CXX"; then
5025   echo "$as_me:$LINENO: result: $CXX" >&5
5026 echo "${ECHO_T}$CXX" >&6
5027 else
5028   echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5030 fi
5031
5032     test -n "$CXX" && break
5033   done
5034 fi
5035 if test -z "$CXX"; then
5036   ac_ct_CXX=$CXX
5037   for ac_prog in $CCC g++ g++3 c++ CC
5038 do
5039   # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   if test -n "$ac_ct_CXX"; then
5047   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056     ac_cv_prog_ac_ct_CXX="$ac_prog"
5057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062
5063 fi
5064 fi
5065 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5066 if test -n "$ac_ct_CXX"; then
5067   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5068 echo "${ECHO_T}$ac_ct_CXX" >&6
5069 else
5070   echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5072 fi
5073
5074   test -n "$ac_ct_CXX" && break
5075 done
5076 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5077
5078   CXX=$ac_ct_CXX
5079 fi
5080
5081
5082 # Provide some information about the compiler.
5083 echo "$as_me:$LINENO:" \
5084      "checking for C++ compiler version" >&5
5085 ac_compiler=`set X $ac_compile; echo $2`
5086 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5087   (eval $ac_compiler --version </dev/null >&5) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }
5091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5092   (eval $ac_compiler -v </dev/null >&5) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }
5096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5097   (eval $ac_compiler -V </dev/null >&5) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }
5101
5102 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5103 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5104 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113
5114 int
5115 main ()
5116 {
5117 #ifndef __GNUC__
5118        choke me
5119 #endif
5120
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127   (eval $ac_compile) 2>conftest.er1
5128   ac_status=$?
5129   grep -v '^ *+' conftest.er1 >conftest.err
5130   rm -f conftest.er1
5131   cat conftest.err >&5
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } &&
5134          { ac_try='test -z "$ac_cxx_werror_flag"
5135                          || test ! -s conftest.err'
5136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137   (eval $ac_try) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); }; } &&
5141          { ac_try='test -s conftest.$ac_objext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   ac_compiler_gnu=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_compiler_gnu=no
5153 fi
5154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5155 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5156
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5159 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5160 GXX=`test $ac_compiler_gnu = yes && echo yes`
5161 ac_test_CXXFLAGS=${CXXFLAGS+set}
5162 ac_save_CXXFLAGS=$CXXFLAGS
5163 CXXFLAGS="-g"
5164 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5165 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5166 if test "${ac_cv_prog_cxx_g+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175
5176 int
5177 main ()
5178 {
5179
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186   (eval $ac_compile) 2>conftest.er1
5187   ac_status=$?
5188   grep -v '^ *+' conftest.er1 >conftest.err
5189   rm -f conftest.er1
5190   cat conftest.err >&5
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); } &&
5193          { ac_try='test -z "$ac_cxx_werror_flag"
5194                          || test ! -s conftest.err'
5195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196   (eval $ac_try) 2>&5
5197   ac_status=$?
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); }; } &&
5200          { ac_try='test -s conftest.$ac_objext'
5201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202   (eval $ac_try) 2>&5
5203   ac_status=$?
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); }; }; then
5206   ac_cv_prog_cxx_g=yes
5207 else
5208   echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 ac_cv_prog_cxx_g=no
5212 fi
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5216 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5217 if test "$ac_test_CXXFLAGS" = set; then
5218   CXXFLAGS=$ac_save_CXXFLAGS
5219 elif test $ac_cv_prog_cxx_g = yes; then
5220   if test "$GXX" = yes; then
5221     CXXFLAGS="-g -O2"
5222   else
5223     CXXFLAGS="-g"
5224   fi
5225 else
5226   if test "$GXX" = yes; then
5227     CXXFLAGS="-O2"
5228   else
5229     CXXFLAGS=
5230   fi
5231 fi
5232 for ac_declaration in \
5233    '' \
5234    'extern "C" void std::exit (int) throw (); using std::exit;' \
5235    'extern "C" void std::exit (int); using std::exit;' \
5236    'extern "C" void exit (int) throw ();' \
5237    'extern "C" void exit (int);' \
5238    'void exit (int);'
5239 do
5240   cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 $ac_declaration
5247 #include <stdlib.h>
5248 int
5249 main ()
5250 {
5251 exit (42);
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258   (eval $ac_compile) 2>conftest.er1
5259   ac_status=$?
5260   grep -v '^ *+' conftest.er1 >conftest.err
5261   rm -f conftest.er1
5262   cat conftest.err >&5
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); } &&
5265          { ac_try='test -z "$ac_cxx_werror_flag"
5266                          || test ! -s conftest.err'
5267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268   (eval $ac_try) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }; } &&
5272          { ac_try='test -s conftest.$ac_objext'
5273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274   (eval $ac_try) 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278   :
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 continue
5284 fi
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286   cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292 $ac_declaration
5293 int
5294 main ()
5295 {
5296 exit (42);
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303   (eval $ac_compile) 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } &&
5310          { ac_try='test -z "$ac_cxx_werror_flag"
5311                          || test ! -s conftest.err'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   break
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 fi
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330 done
5331 rm -f conftest*
5332 if test -n "$ac_declaration"; then
5333   echo '#ifdef __cplusplus' >>confdefs.h
5334   echo $ac_declaration      >>confdefs.h
5335   echo '#endif'             >>confdefs.h
5336 fi
5337
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343
5344 depcc="$CXX"  am_compiler_list=
5345
5346 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5347 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5348 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5352   # We make a subdir and do the tests there.  Otherwise we can end up
5353   # making bogus files that we don't know about and never remove.  For
5354   # instance it was reported that on HP-UX the gcc test will end up
5355   # making a dummy file named `D' -- because `-MD' means `put the output
5356   # in D'.
5357   mkdir conftest.dir
5358   # Copy depcomp to subdir because otherwise we won't find it if we're
5359   # using a relative directory.
5360   cp "$am_depcomp" conftest.dir
5361   cd conftest.dir
5362   # We will build objects and dependencies in a subdirectory because
5363   # it helps to detect inapplicable dependency modes.  For instance
5364   # both Tru64's cc and ICC support -MD to output dependencies as a
5365   # side effect of compilation, but ICC will put the dependencies in
5366   # the current directory while Tru64 will put them in the object
5367   # directory.
5368   mkdir sub
5369
5370   am_cv_CXX_dependencies_compiler_type=none
5371   if test "$am_compiler_list" = ""; then
5372      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5373   fi
5374   for depmode in $am_compiler_list; do
5375     # Setup a source with many dependencies, because some compilers
5376     # like to wrap large dependency lists on column 80 (with \), and
5377     # we should not choose a depcomp mode which is confused by this.
5378     #
5379     # We need to recreate these files for each test, as the compiler may
5380     # overwrite some of them when testing with obscure command lines.
5381     # This happens at least with the AIX C compiler.
5382     : > sub/conftest.c
5383     for i in 1 2 3 4 5 6; do
5384       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5385       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5386       # Solaris 8's {/usr,}/bin/sh.
5387       touch sub/conftst$i.h
5388     done
5389     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5390
5391     case $depmode in
5392     nosideeffect)
5393       # after this tag, mechanisms are not by side-effect, so they'll
5394       # only be used when explicitly requested
5395       if test "x$enable_dependency_tracking" = xyes; then
5396         continue
5397       else
5398         break
5399       fi
5400       ;;
5401     none) break ;;
5402     esac
5403     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404     # mode.  It turns out that the SunPro C++ compiler does not properly
5405     # handle `-M -o', and we need to detect this.
5406     if depmode=$depmode \
5407        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5408        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5409        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5410          >/dev/null 2>conftest.err &&
5411        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5413        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414       # icc doesn't choke on unknown options, it will just issue warnings
5415       # or remarks (even with -Werror).  So we grep stderr for any message
5416       # that says an option was ignored or not supported.
5417       # When given -MP, icc 7.0 and 7.1 complain thusly:
5418       #   icc: Command line warning: ignoring option '-M'; no argument required
5419       # The diagnosis changed in icc 8.0:
5420       #   icc: Command line remark: option '-MP' not supported
5421       if (grep 'ignoring option' conftest.err ||
5422           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423         am_cv_CXX_dependencies_compiler_type=$depmode
5424         break
5425       fi
5426     fi
5427   done
5428
5429   cd ..
5430   rm -rf conftest.dir
5431 else
5432   am_cv_CXX_dependencies_compiler_type=none
5433 fi
5434
5435 fi
5436 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5437 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5438 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5439
5440
5441
5442 if
5443   test "x$enable_dependency_tracking" != xno \
5444   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5445   am__fastdepCXX_TRUE=
5446   am__fastdepCXX_FALSE='#'
5447 else
5448   am__fastdepCXX_TRUE='#'
5449   am__fastdepCXX_FALSE=
5450 fi
5451
5452
5453 # Make sure we can run config.sub.
5454 $ac_config_sub sun4 >/dev/null 2>&1 ||
5455   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5457    { (exit 1); exit 1; }; }
5458
5459 echo "$as_me:$LINENO: checking build system type" >&5
5460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5461 if test "${ac_cv_build+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_cv_build_alias=$build_alias
5465 test -z "$ac_cv_build_alias" &&
5466   ac_cv_build_alias=`$ac_config_guess`
5467 test -z "$ac_cv_build_alias" &&
5468   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5470    { (exit 1); exit 1; }; }
5471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5472   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5474    { (exit 1); exit 1; }; }
5475
5476 fi
5477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5478 echo "${ECHO_T}$ac_cv_build" >&6
5479 build=$ac_cv_build
5480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5483
5484
5485 echo "$as_me:$LINENO: checking host system type" >&5
5486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5487 if test "${ac_cv_host+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   ac_cv_host_alias=$host_alias
5491 test -z "$ac_cv_host_alias" &&
5492   ac_cv_host_alias=$ac_cv_build_alias
5493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5494   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5496    { (exit 1); exit 1; }; }
5497
5498 fi
5499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5500 echo "${ECHO_T}$ac_cv_host" >&6
5501 host=$ac_cv_host
5502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5505
5506
5507
5508 if test "$GCC" = "yes" ; then
5509 #    AC_HAVE_GCC_VERSION(4,0,0,0,
5510 #        [
5511 #        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5512 #            [Define to enable class visibility control in gcc.])
5513 #        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5514 #        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5515 #        ])
5516     CFLAGS="$GCC_CFLAGS"
5517     CXXFLAGS="$GCC_CXXFLAGS"
5518 else
5519 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5520         case "${host_cpu}-${host_os}" in
5521                 *solaris*)
5522                         if test "$CXX" = "CC" ; then
5523                                 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5524                         fi
5525                 ;;
5526         esac
5527 fi
5528
5529 # Check whether --enable-static or --disable-static was given.
5530 if test "${enable_static+set}" = set; then
5531   enableval="$enable_static"
5532   p=${PACKAGE-default}
5533     case $enableval in
5534     yes) enable_static=yes ;;
5535     no) enable_static=no ;;
5536     *)
5537      enable_static=no
5538       # Look at the argument we got.  We use all the common list separators.
5539       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5540       for pkg in $enableval; do
5541         IFS="$lt_save_ifs"
5542         if test "X$pkg" = "X$p"; then
5543           enable_static=yes
5544         fi
5545       done
5546       IFS="$lt_save_ifs"
5547       ;;
5548     esac
5549 else
5550   enable_static=no
5551 fi;
5552
5553
5554 # Check whether --enable-shared or --disable-shared was given.
5555 if test "${enable_shared+set}" = set; then
5556   enableval="$enable_shared"
5557   p=${PACKAGE-default}
5558     case $enableval in
5559     yes) enable_shared=yes ;;
5560     no) enable_shared=no ;;
5561     *)
5562       enable_shared=no
5563       # Look at the argument we got.  We use all the common list separators.
5564       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5565       for pkg in $enableval; do
5566         IFS="$lt_save_ifs"
5567         if test "X$pkg" = "X$p"; then
5568           enable_shared=yes
5569         fi
5570       done
5571       IFS="$lt_save_ifs"
5572       ;;
5573     esac
5574 else
5575   enable_shared=yes
5576 fi;
5577
5578 # Check whether --enable-fast-install or --disable-fast-install was given.
5579 if test "${enable_fast_install+set}" = set; then
5580   enableval="$enable_fast_install"
5581   p=${PACKAGE-default}
5582     case $enableval in
5583     yes) enable_fast_install=yes ;;
5584     no) enable_fast_install=no ;;
5585     *)
5586       enable_fast_install=no
5587       # Look at the argument we got.  We use all the common list separators.
5588       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5589       for pkg in $enableval; do
5590         IFS="$lt_save_ifs"
5591         if test "X$pkg" = "X$p"; then
5592           enable_fast_install=yes
5593         fi
5594       done
5595       IFS="$lt_save_ifs"
5596       ;;
5597     esac
5598 else
5599   enable_fast_install=yes
5600 fi;
5601
5602 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5603 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5604 if test "${lt_cv_path_SED+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   # Loop through the user's path and test for sed and gsed.
5608 # Then use that list of sed's as ones to test for truncation.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614   for lt_ac_prog in sed gsed; do
5615     for ac_exec_ext in '' $ac_executable_extensions; do
5616       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5617         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5618       fi
5619     done
5620   done
5621 done
5622 lt_ac_max=0
5623 lt_ac_count=0
5624 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5625 # along with /bin/sed that truncates output.
5626 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5627   test ! -f $lt_ac_sed && break
5628   cat /dev/null > conftest.in
5629   lt_ac_count=0
5630   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5631   # Check for GNU sed and select it if it is found.
5632   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5633     lt_cv_path_SED=$lt_ac_sed
5634     break
5635   fi
5636   while true; do
5637     cat conftest.in conftest.in >conftest.tmp
5638     mv conftest.tmp conftest.in
5639     cp conftest.in conftest.nl
5640     echo >>conftest.nl
5641     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5642     cmp -s conftest.out conftest.nl || break
5643     # 10000 chars as input seems more than enough
5644     test $lt_ac_count -gt 10 && break
5645     lt_ac_count=`expr $lt_ac_count + 1`
5646     if test $lt_ac_count -gt $lt_ac_max; then
5647       lt_ac_max=$lt_ac_count
5648       lt_cv_path_SED=$lt_ac_sed
5649     fi
5650   done
5651 done
5652 SED=$lt_cv_path_SED
5653
5654 fi
5655
5656 echo "$as_me:$LINENO: result: $SED" >&5
5657 echo "${ECHO_T}$SED" >&6
5658
5659 echo "$as_me:$LINENO: checking for egrep" >&5
5660 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5661 if test "${ac_cv_prog_egrep+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5665     then ac_cv_prog_egrep='grep -E'
5666     else ac_cv_prog_egrep='egrep'
5667     fi
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5670 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5671  EGREP=$ac_cv_prog_egrep
5672
5673
5674
5675 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5676 if test "${with_gnu_ld+set}" = set; then
5677   withval="$with_gnu_ld"
5678   test "$withval" = no || with_gnu_ld=yes
5679 else
5680   with_gnu_ld=no
5681 fi;
5682 ac_prog=ld
5683 if test "$GCC" = yes; then
5684   # Check if gcc -print-prog-name=ld gives a path.
5685   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5686 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5687   case $host in
5688   *-*-mingw*)
5689     # gcc leaves a trailing carriage return which upsets mingw
5690     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5691   *)
5692     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5693   esac
5694   case $ac_prog in
5695     # Accept absolute paths.
5696     [\\/]* | ?:[\\/]*)
5697       re_direlt='/[^/][^/]*/\.\./'
5698       # Canonicalize the pathname of ld
5699       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5700       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5701         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5702       done
5703       test -z "$LD" && LD="$ac_prog"
5704       ;;
5705   "")
5706     # If it fails, then pretend we aren't using GCC.
5707     ac_prog=ld
5708     ;;
5709   *)
5710     # If it is relative, then search for the first ld in PATH.
5711     with_gnu_ld=unknown
5712     ;;
5713   esac
5714 elif test "$with_gnu_ld" = yes; then
5715   echo "$as_me:$LINENO: checking for GNU ld" >&5
5716 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5717 else
5718   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5719 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5720 fi
5721 if test "${lt_cv_path_LD+set}" = set; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724   if test -z "$LD"; then
5725   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5726   for ac_dir in $PATH; do
5727     IFS="$lt_save_ifs"
5728     test -z "$ac_dir" && ac_dir=.
5729     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5730       lt_cv_path_LD="$ac_dir/$ac_prog"
5731       # Check to see if the program is GNU ld.  I'd rather use --version,
5732       # but apparently some GNU ld's only accept -v.
5733       # Break only if it was the GNU/non-GNU ld that we prefer.
5734       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5735       *GNU* | *'with BFD'*)
5736         test "$with_gnu_ld" != no && break
5737         ;;
5738       *)
5739         test "$with_gnu_ld" != yes && break
5740         ;;
5741       esac
5742     fi
5743   done
5744   IFS="$lt_save_ifs"
5745 else
5746   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5747 fi
5748 fi
5749
5750 LD="$lt_cv_path_LD"
5751 if test -n "$LD"; then
5752   echo "$as_me:$LINENO: result: $LD" >&5
5753 echo "${ECHO_T}$LD" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5759 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5760    { (exit 1); exit 1; }; }
5761 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5762 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5763 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5767 case `$LD -v 2>&1 </dev/null` in
5768 *GNU* | *'with BFD'*)
5769   lt_cv_prog_gnu_ld=yes
5770   ;;
5771 *)
5772   lt_cv_prog_gnu_ld=no
5773   ;;
5774 esac
5775 fi
5776 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5777 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5778 with_gnu_ld=$lt_cv_prog_gnu_ld
5779
5780
5781 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5782 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5783 if test "${lt_cv_ld_reload_flag+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   lt_cv_ld_reload_flag='-r'
5787 fi
5788 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5789 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5790 reload_flag=$lt_cv_ld_reload_flag
5791 case $reload_flag in
5792 "" | " "*) ;;
5793 *) reload_flag=" $reload_flag" ;;
5794 esac
5795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5796
5797 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5798 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5799 if test "${lt_cv_path_NM+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$NM"; then
5803   # Let the user override the test.
5804   lt_cv_path_NM="$NM"
5805 else
5806   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5808     IFS="$lt_save_ifs"
5809     test -z "$ac_dir" && ac_dir=.
5810     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5811     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5812       # Check to see if the nm accepts a BSD-compat flag.
5813       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5814       #   nm: unknown option "B" ignored
5815       # Tru64's nm complains that /dev/null is an invalid object file
5816       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5817       */dev/null* | *'Invalid file or object type'*)
5818         lt_cv_path_NM="$tmp_nm -B"
5819         break
5820         ;;
5821       *)
5822         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5823         */dev/null*)
5824           lt_cv_path_NM="$tmp_nm -p"
5825           break
5826           ;;
5827         *)
5828           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5829           continue # so that we can try to find one that supports BSD flags
5830           ;;
5831         esac
5832       esac
5833     fi
5834   done
5835   IFS="$lt_save_ifs"
5836   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5837 fi
5838 fi
5839 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5840 echo "${ECHO_T}$lt_cv_path_NM" >&6
5841 NM="$lt_cv_path_NM"
5842
5843 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5844 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5845 LN_S=$as_ln_s
5846 if test "$LN_S" = "ln -s"; then
5847   echo "$as_me:$LINENO: result: yes" >&5
5848 echo "${ECHO_T}yes" >&6
5849 else
5850   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5851 echo "${ECHO_T}no, using $LN_S" >&6
5852 fi
5853
5854 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5855 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5856 if test "${lt_cv_deplibs_check_method+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   lt_cv_file_magic_cmd='$MAGIC_CMD'
5860 lt_cv_file_magic_test_file=
5861 lt_cv_deplibs_check_method='unknown'
5862 # Need to set the preceding variable on all platforms that support
5863 # interlibrary dependencies.
5864 # 'none' -- dependencies not supported.
5865 # `unknown' -- same as none, but documents that we really don't know.
5866 # 'pass_all' -- all dependencies passed with no checks.
5867 # 'test_compile' -- check by making test program.
5868 # 'file_magic [[regex]]' -- check by looking for files in library path
5869 # which responds to the $file_magic_cmd with a given extended regex.
5870 # If you have `file' or equivalent on your system and you're not sure
5871 # whether `pass_all' will *always* work, you probably want this one.
5872
5873 case $host_os in
5874 aix4* | aix5*)
5875   lt_cv_deplibs_check_method=pass_all
5876   ;;
5877
5878 beos*)
5879   lt_cv_deplibs_check_method=pass_all
5880   ;;
5881
5882 bsdi4*)
5883   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5884   lt_cv_file_magic_cmd='/usr/bin/file -L'
5885   lt_cv_file_magic_test_file=/shlib/libc.so
5886   ;;
5887
5888 cygwin*)
5889   # func_win32_libid is a shell function defined in ltmain.sh
5890   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5891   lt_cv_file_magic_cmd='func_win32_libid'
5892   ;;
5893
5894 mingw* | pw32*)
5895   # Base MSYS/MinGW do not provide the 'file' command needed by
5896   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5897   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5898   lt_cv_file_magic_cmd='$OBJDUMP -f'
5899   ;;
5900
5901 darwin* | rhapsody*)
5902   lt_cv_deplibs_check_method=pass_all
5903   ;;
5904
5905 freebsd* | kfreebsd*-gnu)
5906   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5907     case $host_cpu in
5908     i*86 )
5909       # Not sure whether the presence of OpenBSD here was a mistake.
5910       # Let's accept both of them until this is cleared up.
5911       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5912       lt_cv_file_magic_cmd=/usr/bin/file
5913       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5914       ;;
5915     esac
5916   else
5917     lt_cv_deplibs_check_method=pass_all
5918   fi
5919   ;;
5920
5921 gnu*)
5922   lt_cv_deplibs_check_method=pass_all
5923   ;;
5924
5925 hpux10.20* | hpux11*)
5926   lt_cv_file_magic_cmd=/usr/bin/file
5927   case "$host_cpu" in
5928   ia64*)
5929     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5930     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5931     ;;
5932   hppa*64*)
5933     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]'
5934     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5935     ;;
5936   *)
5937     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5938     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5939     ;;
5940   esac
5941   ;;
5942
5943 irix5* | irix6* | nonstopux*)
5944   case $LD in
5945   *-32|*"-32 ") libmagic=32-bit;;
5946   *-n32|*"-n32 ") libmagic=N32;;
5947   *-64|*"-64 ") libmagic=64-bit;;
5948   *) libmagic=never-match;;
5949   esac
5950   lt_cv_deplibs_check_method=pass_all
5951   ;;
5952
5953 # This must be Linux ELF.
5954 linux*)
5955   case $host_cpu in
5956   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5957     lt_cv_deplibs_check_method=pass_all ;;
5958   *)
5959     # glibc up to 2.1.1 does not perform some relocations on ARM
5960     # this will be overridden with pass_all, but let us keep it just in case
5961     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5962   esac
5963   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5964   lt_cv_deplibs_check_method=pass_all
5965   ;;
5966
5967 netbsd*)
5968   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5969     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5970   else
5971     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5972   fi
5973   ;;
5974
5975 newos6*)
5976   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5977   lt_cv_file_magic_cmd=/usr/bin/file
5978   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5979   ;;
5980
5981 nto-qnx*)
5982   lt_cv_deplibs_check_method=unknown
5983   ;;
5984
5985 openbsd*)
5986   lt_cv_file_magic_cmd=/usr/bin/file
5987   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5988   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5989     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5990   else
5991     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5992   fi
5993   ;;
5994
5995 osf3* | osf4* | osf5*)
5996   lt_cv_deplibs_check_method=pass_all
5997   ;;
5998
5999 sco3.2v5*)
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 solaris*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006
6007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6008   case $host_vendor in
6009   motorola)
6010     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]'
6011     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6012     ;;
6013   ncr)
6014     lt_cv_deplibs_check_method=pass_all
6015     ;;
6016   sequent)
6017     lt_cv_file_magic_cmd='/bin/file'
6018     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6019     ;;
6020   sni)
6021     lt_cv_file_magic_cmd='/bin/file'
6022     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6023     lt_cv_file_magic_test_file=/lib/libc.so
6024     ;;
6025   siemens)
6026     lt_cv_deplibs_check_method=pass_all
6027     ;;
6028   esac
6029   ;;
6030
6031 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6032   lt_cv_deplibs_check_method=pass_all
6033   ;;
6034 esac
6035
6036 fi
6037 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6038 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6039 file_magic_cmd=$lt_cv_file_magic_cmd
6040 deplibs_check_method=$lt_cv_deplibs_check_method
6041 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6042
6043
6044
6045
6046 # If no C compiler was specified, use CC.
6047 LTCC=${LTCC-"$CC"}
6048
6049 # Allow CC to be a program name with arguments.
6050 compiler=$CC
6051
6052
6053 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6054 if test "${enable_libtool_lock+set}" = set; then
6055   enableval="$enable_libtool_lock"
6056
6057 fi;
6058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6059
6060 # Some flags need to be propagated to the compiler or linker for good
6061 # libtool support.
6062 case $host in
6063 ia64-*-hpux*)
6064   # Find out which ABI we are using.
6065   echo 'int i;' > conftest.$ac_ext
6066   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067   (eval $ac_compile) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; then
6071     case `/usr/bin/file conftest.$ac_objext` in
6072     *ELF-32*)
6073       HPUX_IA64_MODE="32"
6074       ;;
6075     *ELF-64*)
6076       HPUX_IA64_MODE="64"
6077       ;;
6078     esac
6079   fi
6080   rm -rf conftest*
6081   ;;
6082 *-*-irix6*)
6083   # Find out which ABI we are using.
6084   echo '#line 6084 "configure"' > conftest.$ac_ext
6085   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086   (eval $ac_compile) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; then
6090    if test "$lt_cv_prog_gnu_ld" = yes; then
6091     case `/usr/bin/file conftest.$ac_objext` in
6092     *32-bit*)
6093       LD="${LD-ld} -melf32bsmip"
6094       ;;
6095     *N32*)
6096       LD="${LD-ld} -melf32bmipn32"
6097       ;;
6098     *64-bit*)
6099       LD="${LD-ld} -melf64bmip"
6100       ;;
6101     esac
6102    else
6103     case `/usr/bin/file conftest.$ac_objext` in
6104     *32-bit*)
6105       LD="${LD-ld} -32"
6106       ;;
6107     *N32*)
6108       LD="${LD-ld} -n32"
6109       ;;
6110     *64-bit*)
6111       LD="${LD-ld} -64"
6112       ;;
6113     esac
6114    fi
6115   fi
6116   rm -rf conftest*
6117   ;;
6118
6119 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6120   # Find out which ABI we are using.
6121   echo 'int i;' > conftest.$ac_ext
6122   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123   (eval $ac_compile) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; then
6127     case "`/usr/bin/file conftest.o`" in
6128     *32-bit*)
6129       case $host in
6130         x86_64-*linux*)
6131           LD="${LD-ld} -m elf_i386"
6132           ;;
6133         ppc64-*linux*|powerpc64-*linux*)
6134           LD="${LD-ld} -m elf32ppclinux"
6135           ;;
6136         s390x-*linux*)
6137           LD="${LD-ld} -m elf_s390"
6138           ;;
6139         sparc64-*linux*)
6140           LD="${LD-ld} -m elf32_sparc"
6141           ;;
6142       esac
6143       ;;
6144     *64-bit*)
6145       case $host in
6146         x86_64-*linux*)
6147           LD="${LD-ld} -m elf_x86_64"
6148           ;;
6149         ppc*-*linux*|powerpc*-*linux*)
6150           LD="${LD-ld} -m elf64ppc"
6151           ;;
6152         s390*-*linux*)
6153           LD="${LD-ld} -m elf64_s390"
6154           ;;
6155         sparc*-*linux*)
6156           LD="${LD-ld} -m elf64_sparc"
6157           ;;
6158       esac
6159       ;;
6160     esac
6161   fi
6162   rm -rf conftest*
6163   ;;
6164
6165 *-*-sco3.2v5*)
6166   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6167   SAVE_CFLAGS="$CFLAGS"
6168   CFLAGS="$CFLAGS -belf"
6169   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6170 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6171 if test "${lt_cv_cc_needs_belf+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   ac_ext=c
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180      cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186
6187 int
6188 main ()
6189 {
6190
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197   (eval $ac_link) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -z "$ac_c_werror_flag"
6205                          || test ! -s conftest.err'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; } &&
6211          { ac_try='test -s conftest$ac_exeext'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217   lt_cv_cc_needs_belf=yes
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 lt_cv_cc_needs_belf=no
6223 fi
6224 rm -f conftest.err conftest.$ac_objext \
6225       conftest$ac_exeext conftest.$ac_ext
6226      ac_ext=c
6227 ac_cpp='$CPP $CPPFLAGS'
6228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231
6232 fi
6233 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6234 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6235   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6236     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6237     CFLAGS="$SAVE_CFLAGS"
6238   fi
6239   ;;
6240
6241 esac
6242
6243 need_locks="$enable_libtool_lock"
6244
6245
6246 ac_ext=c
6247 ac_cpp='$CPP $CPPFLAGS'
6248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6251 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6253 # On Suns, sometimes $CPP names a directory.
6254 if test -n "$CPP" && test -d "$CPP"; then
6255   CPP=
6256 fi
6257 if test -z "$CPP"; then
6258   if test "${ac_cv_prog_CPP+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261       # Double quotes because CPP needs to be expanded
6262     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6263     do
6264       ac_preproc_ok=false
6265 for ac_c_preproc_warn_flag in '' yes
6266 do
6267   # Use a header file that comes with gcc, so configuring glibc
6268   # with a fresh cross-compiler works.
6269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6270   # <limits.h> exists even on freestanding compilers.
6271   # On the NeXT, cc -E runs the code through the compiler's parser,
6272   # not just through cpp. "Syntax error" is here to catch this case.
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #ifdef __STDC__
6280 # include <limits.h>
6281 #else
6282 # include <assert.h>
6283 #endif
6284                      Syntax error
6285 _ACEOF
6286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288   ac_status=$?
6289   grep -v '^ *+' conftest.er1 >conftest.err
6290   rm -f conftest.er1
6291   cat conftest.err >&5
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); } >/dev/null; then
6294   if test -s conftest.err; then
6295     ac_cpp_err=$ac_c_preproc_warn_flag
6296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297   else
6298     ac_cpp_err=
6299   fi
6300 else
6301   ac_cpp_err=yes
6302 fi
6303 if test -z "$ac_cpp_err"; then
6304   :
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309   # Broken: fails on valid input.
6310 continue
6311 fi
6312 rm -f conftest.err conftest.$ac_ext
6313
6314   # OK, works on sane cases.  Now check whether non-existent headers
6315   # can be detected and how.
6316   cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322 #include <ac_nonexistent.h>
6323 _ACEOF
6324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6326   ac_status=$?
6327   grep -v '^ *+' conftest.er1 >conftest.err
6328   rm -f conftest.er1
6329   cat conftest.err >&5
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } >/dev/null; then
6332   if test -s conftest.err; then
6333     ac_cpp_err=$ac_c_preproc_warn_flag
6334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6335   else
6336     ac_cpp_err=
6337   fi
6338 else
6339   ac_cpp_err=yes
6340 fi
6341 if test -z "$ac_cpp_err"; then
6342   # Broken: success on invalid input.
6343 continue
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6347
6348   # Passes both tests.
6349 ac_preproc_ok=:
6350 break
6351 fi
6352 rm -f conftest.err conftest.$ac_ext
6353
6354 done
6355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6356 rm -f conftest.err conftest.$ac_ext
6357 if $ac_preproc_ok; then
6358   break
6359 fi
6360
6361     done
6362     ac_cv_prog_CPP=$CPP
6363
6364 fi
6365   CPP=$ac_cv_prog_CPP
6366 else
6367   ac_cv_prog_CPP=$CPP
6368 fi
6369 echo "$as_me:$LINENO: result: $CPP" >&5
6370 echo "${ECHO_T}$CPP" >&6
6371 ac_preproc_ok=false
6372 for ac_c_preproc_warn_flag in '' yes
6373 do
6374   # Use a header file that comes with gcc, so configuring glibc
6375   # with a fresh cross-compiler works.
6376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377   # <limits.h> exists even on freestanding compilers.
6378   # On the NeXT, cc -E runs the code through the compiler's parser,
6379   # not just through cpp. "Syntax error" is here to catch this case.
6380   cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386 #ifdef __STDC__
6387 # include <limits.h>
6388 #else
6389 # include <assert.h>
6390 #endif
6391                      Syntax error
6392 _ACEOF
6393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } >/dev/null; then
6401   if test -s conftest.err; then
6402     ac_cpp_err=$ac_c_preproc_warn_flag
6403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6404   else
6405     ac_cpp_err=
6406   fi
6407 else
6408   ac_cpp_err=yes
6409 fi
6410 if test -z "$ac_cpp_err"; then
6411   :
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416   # Broken: fails on valid input.
6417 continue
6418 fi
6419 rm -f conftest.err conftest.$ac_ext
6420
6421   # OK, works on sane cases.  Now check whether non-existent headers
6422   # can be detected and how.
6423   cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 #include <ac_nonexistent.h>
6430 _ACEOF
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6433   ac_status=$?
6434   grep -v '^ *+' conftest.er1 >conftest.err
6435   rm -f conftest.er1
6436   cat conftest.err >&5
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } >/dev/null; then
6439   if test -s conftest.err; then
6440     ac_cpp_err=$ac_c_preproc_warn_flag
6441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6442   else
6443     ac_cpp_err=
6444   fi
6445 else
6446   ac_cpp_err=yes
6447 fi
6448 if test -z "$ac_cpp_err"; then
6449   # Broken: success on invalid input.
6450 continue
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455   # Passes both tests.
6456 ac_preproc_ok=:
6457 break
6458 fi
6459 rm -f conftest.err conftest.$ac_ext
6460
6461 done
6462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6463 rm -f conftest.err conftest.$ac_ext
6464 if $ac_preproc_ok; then
6465   :
6466 else
6467   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6468 See \`config.log' for more details." >&5
6469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6470 See \`config.log' for more details." >&2;}
6471    { (exit 1); exit 1; }; }
6472 fi
6473
6474 ac_ext=c
6475 ac_cpp='$CPP $CPPFLAGS'
6476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479
6480
6481 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6483 if test "${ac_cv_header_stdc+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 #include <stdlib.h>
6493 #include <stdarg.h>
6494 #include <string.h>
6495 #include <float.h>
6496
6497 int
6498 main ()
6499 {
6500
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507   (eval $ac_compile) 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } &&
6514          { ac_try='test -z "$ac_c_werror_flag"
6515                          || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest.$ac_objext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   ac_cv_header_stdc=yes
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 ac_cv_header_stdc=no
6533 fi
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535
6536 if test $ac_cv_header_stdc = yes; then
6537   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6538   cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 #include <string.h>
6545
6546 _ACEOF
6547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548   $EGREP "memchr" >/dev/null 2>&1; then
6549   :
6550 else
6551   ac_cv_header_stdc=no
6552 fi
6553 rm -f conftest*
6554
6555 fi
6556
6557 if test $ac_cv_header_stdc = yes; then
6558   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6559   cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565 #include <stdlib.h>
6566
6567 _ACEOF
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569   $EGREP "free" >/dev/null 2>&1; then
6570   :
6571 else
6572   ac_cv_header_stdc=no
6573 fi
6574 rm -f conftest*
6575
6576 fi
6577
6578 if test $ac_cv_header_stdc = yes; then
6579   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6580   if test "$cross_compiling" = yes; then
6581   :
6582 else
6583   cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 #include <ctype.h>
6590 #if ((' ' & 0x0FF) == 0x020)
6591 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6592 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6593 #else
6594 # define ISLOWER(c) \
6595                    (('a' <= (c) && (c) <= 'i') \
6596                      || ('j' <= (c) && (c) <= 'r') \
6597                      || ('s' <= (c) && (c) <= 'z'))
6598 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6599 #endif
6600
6601 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6602 int
6603 main ()
6604 {
6605   int i;
6606   for (i = 0; i < 256; i++)
6607     if (XOR (islower (i), ISLOWER (i))
6608         || toupper (i) != TOUPPER (i))
6609       exit(2);
6610   exit (0);
6611 }
6612 _ACEOF
6613 rm -f conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615   (eval $ac_link) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   :
6625 else
6626   echo "$as_me: program exited with status $ac_status" >&5
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 ( exit $ac_status )
6631 ac_cv_header_stdc=no
6632 fi
6633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 fi
6636 fi
6637 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6638 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6639 if test $ac_cv_header_stdc = yes; then
6640
6641 cat >>confdefs.h <<\_ACEOF
6642 #define STDC_HEADERS 1
6643 _ACEOF
6644
6645 fi
6646
6647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6658                   inttypes.h stdint.h unistd.h
6659 do
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666   cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h.  */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h.  */
6672 $ac_includes_default
6673
6674 #include <$ac_header>
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>conftest.er1
6679   ac_status=$?
6680   grep -v '^ *+' conftest.er1 >conftest.err
6681   rm -f conftest.er1
6682   cat conftest.err >&5
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); } &&
6685          { ac_try='test -z "$ac_c_werror_flag"
6686                          || test ! -s conftest.err'
6687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688   (eval $ac_try) 2>&5
6689   ac_status=$?
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); }; } &&
6692          { ac_try='test -s conftest.$ac_objext'
6693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694   (eval $ac_try) 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); }; }; then
6698   eval "$as_ac_Header=yes"
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 eval "$as_ac_Header=no"
6704 fi
6705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706 fi
6707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 _ACEOF
6713
6714 fi
6715
6716 done
6717
6718
6719
6720 for ac_header in dlfcn.h
6721 do
6722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724   echo "$as_me:$LINENO: checking for $ac_header" >&5
6725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 fi
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6731 else
6732   # Is the header compilable?
6733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h.  */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h.  */
6741 $ac_includes_default
6742 #include <$ac_header>
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746   (eval $ac_compile) 2>conftest.er1
6747   ac_status=$?
6748   grep -v '^ *+' conftest.er1 >conftest.err
6749   rm -f conftest.er1
6750   cat conftest.err >&5
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -z "$ac_c_werror_flag"
6754                          || test ! -s conftest.err'
6755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756   (eval $ac_try) 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); }; } &&
6760          { ac_try='test -s conftest.$ac_objext'
6761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762   (eval $ac_try) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; }; then
6766   ac_header_compiler=yes
6767 else
6768   echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 ac_header_compiler=no
6772 fi
6773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6775 echo "${ECHO_T}$ac_header_compiler" >&6
6776
6777 # Is the header present?
6778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h.  */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h.  */
6786 #include <$ac_header>
6787 _ACEOF
6788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6790   ac_status=$?
6791   grep -v '^ *+' conftest.er1 >conftest.err
6792   rm -f conftest.er1
6793   cat conftest.err >&5
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); } >/dev/null; then
6796   if test -s conftest.err; then
6797     ac_cpp_err=$ac_c_preproc_warn_flag
6798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6799   else
6800     ac_cpp_err=
6801   fi
6802 else
6803   ac_cpp_err=yes
6804 fi
6805 if test -z "$ac_cpp_err"; then
6806   ac_header_preproc=yes
6807 else
6808   echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6810
6811   ac_header_preproc=no
6812 fi
6813 rm -f conftest.err conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6815 echo "${ECHO_T}$ac_header_preproc" >&6
6816
6817 # So?  What about this header?
6818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6819   yes:no: )
6820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6824     ac_header_preproc=yes
6825     ;;
6826   no:yes:* )
6827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6839     (
6840       cat <<\_ASBOX
6841 ## ------------------------------------------------ ##
6842 ## Report this to mace-opensaml-users@internet2.edu ##
6843 ## ------------------------------------------------ ##
6844 _ASBOX
6845     ) |
6846       sed "s/^/$as_me: WARNING:     /" >&2
6847     ;;
6848 esac
6849 echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   eval "$as_ac_Header=\$ac_header_preproc"
6855 fi
6856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6858
6859 fi
6860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6861   cat >>confdefs.h <<_ACEOF
6862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6863 _ACEOF
6864
6865 fi
6866
6867 done
6868
6869 ac_ext=cc
6870 ac_cpp='$CXXCPP $CPPFLAGS'
6871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6874 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6875 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6876 if test -z "$CXXCPP"; then
6877   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880       # Double quotes because CXXCPP needs to be expanded
6881     for CXXCPP in "$CXX -E" "/lib/cpp"
6882     do
6883       ac_preproc_ok=false
6884 for ac_cxx_preproc_warn_flag in '' yes
6885 do
6886   # Use a header file that comes with gcc, so configuring glibc
6887   # with a fresh cross-compiler works.
6888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889   # <limits.h> exists even on freestanding compilers.
6890   # On the NeXT, cc -E runs the code through the compiler's parser,
6891   # not just through cpp. "Syntax error" is here to catch this case.
6892   cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 #ifdef __STDC__
6899 # include <limits.h>
6900 #else
6901 # include <assert.h>
6902 #endif
6903                      Syntax error
6904 _ACEOF
6905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6907   ac_status=$?
6908   grep -v '^ *+' conftest.er1 >conftest.err
6909   rm -f conftest.er1
6910   cat conftest.err >&5
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } >/dev/null; then
6913   if test -s conftest.err; then
6914     ac_cpp_err=$ac_cxx_preproc_warn_flag
6915     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6916   else
6917     ac_cpp_err=
6918   fi
6919 else
6920   ac_cpp_err=yes
6921 fi
6922 if test -z "$ac_cpp_err"; then
6923   :
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928   # Broken: fails on valid input.
6929 continue
6930 fi
6931 rm -f conftest.err conftest.$ac_ext
6932
6933   # OK, works on sane cases.  Now check whether non-existent headers
6934   # can be detected and how.
6935   cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 #include <ac_nonexistent.h>
6942 _ACEOF
6943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } >/dev/null; then
6951   if test -s conftest.err; then
6952     ac_cpp_err=$ac_cxx_preproc_warn_flag
6953     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6954   else
6955     ac_cpp_err=
6956   fi
6957 else
6958   ac_cpp_err=yes
6959 fi
6960 if test -z "$ac_cpp_err"; then
6961   # Broken: success on invalid input.
6962 continue
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967   # Passes both tests.
6968 ac_preproc_ok=:
6969 break
6970 fi
6971 rm -f conftest.err conftest.$ac_ext
6972
6973 done
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then
6977   break
6978 fi
6979
6980     done
6981     ac_cv_prog_CXXCPP=$CXXCPP
6982
6983 fi
6984   CXXCPP=$ac_cv_prog_CXXCPP
6985 else
6986   ac_cv_prog_CXXCPP=$CXXCPP
6987 fi
6988 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6989 echo "${ECHO_T}$CXXCPP" >&6
6990 ac_preproc_ok=false
6991 for ac_cxx_preproc_warn_flag in '' yes
6992 do
6993   # Use a header file that comes with gcc, so configuring glibc
6994   # with a fresh cross-compiler works.
6995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996   # <limits.h> exists even on freestanding compilers.
6997   # On the NeXT, cc -E runs the code through the compiler's parser,
6998   # not just through cpp. "Syntax error" is here to catch this case.
6999   cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 #ifdef __STDC__
7006 # include <limits.h>
7007 #else
7008 # include <assert.h>
7009 #endif
7010                      Syntax error
7011 _ACEOF
7012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } >/dev/null; then
7020   if test -s conftest.err; then
7021     ac_cpp_err=$ac_cxx_preproc_warn_flag
7022     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7023   else
7024     ac_cpp_err=
7025   fi
7026 else
7027   ac_cpp_err=yes
7028 fi
7029 if test -z "$ac_cpp_err"; then
7030   :
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035   # Broken: fails on valid input.
7036 continue
7037 fi
7038 rm -f conftest.err conftest.$ac_ext
7039
7040   # OK, works on sane cases.  Now check whether non-existent headers
7041   # can be detected and how.
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 #include <ac_nonexistent.h>
7049 _ACEOF
7050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } >/dev/null; then
7058   if test -s conftest.err; then
7059     ac_cpp_err=$ac_cxx_preproc_warn_flag
7060     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7061   else
7062     ac_cpp_err=
7063   fi
7064 else
7065   ac_cpp_err=yes
7066 fi
7067 if test -z "$ac_cpp_err"; then
7068   # Broken: success on invalid input.
7069 continue
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074   # Passes both tests.
7075 ac_preproc_ok=:
7076 break
7077 fi
7078 rm -f conftest.err conftest.$ac_ext
7079
7080 done
7081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7082 rm -f conftest.err conftest.$ac_ext
7083 if $ac_preproc_ok; then
7084   :
7085 else
7086   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7087 See \`config.log' for more details." >&5
7088 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7089 See \`config.log' for more details." >&2;}
7090    { (exit 1); exit 1; }; }
7091 fi
7092
7093 ac_ext=cc
7094 ac_cpp='$CXXCPP $CPPFLAGS'
7095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7098
7099
7100 ac_ext=f
7101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7104 if test -n "$ac_tool_prefix"; then
7105   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7106   do
7107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_F77+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$F77"; then
7115   ac_cv_prog_F77="$F77" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131 fi
7132 fi
7133 F77=$ac_cv_prog_F77
7134 if test -n "$F77"; then
7135   echo "$as_me:$LINENO: result: $F77" >&5
7136 echo "${ECHO_T}$F77" >&6
7137 else
7138   echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140 fi
7141
7142     test -n "$F77" && break
7143   done
7144 fi
7145 if test -z "$F77"; then
7146   ac_ct_F77=$F77
7147   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7148 do
7149   # Extract the first word of "$ac_prog", so it can be a program name with args.
7150 set dummy $ac_prog; ac_word=$2
7151 echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7153 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   if test -n "$ac_ct_F77"; then
7157   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162   IFS=$as_save_IFS
7163   test -z "$as_dir" && as_dir=.
7164   for ac_exec_ext in '' $ac_executable_extensions; do
7165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166     ac_cv_prog_ac_ct_F77="$ac_prog"
7167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168     break 2
7169   fi
7170 done
7171 done
7172
7173 fi
7174 fi
7175 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7176 if test -n "$ac_ct_F77"; then
7177   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7178 echo "${ECHO_T}$ac_ct_F77" >&6
7179 else
7180   echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7182 fi
7183
7184   test -n "$ac_ct_F77" && break
7185 done
7186
7187   F77=$ac_ct_F77
7188 fi
7189
7190
7191 # Provide some information about the compiler.
7192 echo "$as_me:7192:" \
7193      "checking for Fortran 77 compiler version" >&5
7194 ac_compiler=`set X $ac_compile; echo $2`
7195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7196   (eval $ac_compiler --version </dev/null >&5) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }
7200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7201   (eval $ac_compiler -v </dev/null >&5) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }
7205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7206   (eval $ac_compiler -V </dev/null >&5) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }
7210 rm -f a.out
7211
7212 # If we don't use `.F' as extension, the preprocessor is not run on the
7213 # input file.  (Note that this only needs to work for GNU compilers.)
7214 ac_save_ext=$ac_ext
7215 ac_ext=F
7216 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7217 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7218 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   cat >conftest.$ac_ext <<_ACEOF
7222       program main
7223 #ifndef __GNUC__
7224        choke me
7225 #endif
7226
7227       end
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231   (eval $ac_compile) 2>conftest.er1
7232   ac_status=$?
7233   grep -v '^ *+' conftest.er1 >conftest.err
7234   rm -f conftest.er1
7235   cat conftest.err >&5
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -z "$ac_f77_werror_flag"
7239                          || test ! -s conftest.err'
7240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241   (eval $ac_try) 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; } &&
7245          { ac_try='test -s conftest.$ac_objext'
7246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247   (eval $ac_try) 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   ac_compiler_gnu=yes
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 ac_compiler_gnu=no
7257 fi
7258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7260
7261 fi
7262 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7263 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7264 ac_ext=$ac_save_ext
7265 ac_test_FFLAGS=${FFLAGS+set}
7266 ac_save_FFLAGS=$FFLAGS
7267 FFLAGS=
7268 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7269 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7270 if test "${ac_cv_prog_f77_g+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   FFLAGS=-g
7274 cat >conftest.$ac_ext <<_ACEOF
7275       program main
7276
7277       end
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281   (eval $ac_compile) 2>conftest.er1
7282   ac_status=$?
7283   grep -v '^ *+' conftest.er1 >conftest.err
7284   rm -f conftest.er1
7285   cat conftest.err >&5
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); } &&
7288          { ac_try='test -z "$ac_f77_werror_flag"
7289                          || test ! -s conftest.err'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; } &&
7295          { ac_try='test -s conftest.$ac_objext'
7296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297   (eval $ac_try) 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; }; then
7301   ac_cv_prog_f77_g=yes
7302 else
7303   echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 ac_cv_prog_f77_g=no
7307 fi
7308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7309
7310 fi
7311 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7312 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7313 if test "$ac_test_FFLAGS" = set; then
7314   FFLAGS=$ac_save_FFLAGS
7315 elif test $ac_cv_prog_f77_g = yes; then
7316   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7317     FFLAGS="-g -O2"
7318   else
7319     FFLAGS="-g"
7320   fi
7321 else
7322   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7323     FFLAGS="-O2"
7324   else
7325     FFLAGS=
7326   fi
7327 fi
7328
7329 G77=`test $ac_compiler_gnu = yes && echo yes`
7330 ac_ext=c
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336
7337
7338 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7339
7340 # find the maximum length of command line arguments
7341 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7342 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7343 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346     i=0
7347   teststring="ABCD"
7348
7349   case $build_os in
7350   msdosdjgpp*)
7351     # On DJGPP, this test can blow up pretty badly due to problems in libc
7352     # (any single argument exceeding 2000 bytes causes a buffer overrun
7353     # during glob expansion).  Even if it were fixed, the result of this
7354     # check would be larger than it should be.
7355     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7356     ;;
7357
7358   gnu*)
7359     # Under GNU Hurd, this test is not required because there is
7360     # no limit to the length of command line arguments.
7361     # Libtool will interpret -1 as no limit whatsoever
7362     lt_cv_sys_max_cmd_len=-1;
7363     ;;
7364
7365   cygwin* | mingw*)
7366     # On Win9x/ME, this test blows up -- it succeeds, but takes
7367     # about 5 minutes as the teststring grows exponentially.
7368     # Worse, since 9x/ME are not pre-emptively multitasking,
7369     # you end up with a "frozen" computer, even though with patience
7370     # the test eventually succeeds (with a max line length of 256k).
7371     # Instead, let's just punt: use the minimum linelength reported by
7372     # all of the supported platforms: 8192 (on NT/2K/XP).
7373     lt_cv_sys_max_cmd_len=8192;
7374     ;;
7375
7376   amigaos*)
7377     # On AmigaOS with pdksh, this test takes hours, literally.
7378     # So we just punt and use a minimum line length of 8192.
7379     lt_cv_sys_max_cmd_len=8192;
7380     ;;
7381
7382  *)
7383     # If test is not a shell built-in, we'll probably end up computing a
7384     # maximum length that is only half of the actual maximum length, but
7385     # we can't tell.
7386     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7387                = "XX$teststring") >/dev/null 2>&1 &&
7388             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7389             lt_cv_sys_max_cmd_len=$new_result &&
7390             test $i != 17 # 1/2 MB should be enough
7391     do
7392       i=`expr $i + 1`
7393       teststring=$teststring$teststring
7394     done
7395     teststring=
7396     # Add a significant safety factor because C++ compilers can tack on massive
7397     # amounts of additional arguments before passing them to the linker.
7398     # It appears as though 1/2 is a usable value.
7399     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7400     ;;
7401   esac
7402
7403 fi
7404
7405 if test -n $lt_cv_sys_max_cmd_len ; then
7406   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7407 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7408 else
7409   echo "$as_me:$LINENO: result: none" >&5
7410 echo "${ECHO_T}none" >&6
7411 fi
7412
7413
7414
7415
7416 # Check for command to grab the raw symbol name followed by C symbol from nm.
7417 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7418 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7419 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422
7423 # These are sane defaults that work on at least a few old systems.
7424 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7425
7426 # Character class describing NM global symbol codes.
7427 symcode='[BCDEGRST]'
7428
7429 # Regexp to match symbols that can be accessed directly from C.
7430 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7431
7432 # Transform the above into a raw symbol and a C symbol.
7433 symxfrm='\1 \2\3 \3'
7434
7435 # Transform an extracted symbol line into a proper C declaration
7436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7437
7438 # Transform an extracted symbol line into symbol name and symbol address
7439 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'"
7440
7441 # Define system-specific variables.
7442 case $host_os in
7443 aix*)
7444   symcode='[BCDT]'
7445   ;;
7446 cygwin* | mingw* | pw32*)
7447   symcode='[ABCDGISTW]'
7448   ;;
7449 hpux*) # Its linker distinguishes data from code symbols
7450   if test "$host_cpu" = ia64; then
7451     symcode='[ABCDEGRST]'
7452   fi
7453   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7454   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'"
7455   ;;
7456 irix* | nonstopux*)
7457   symcode='[BCDEGRST]'
7458   ;;
7459 osf*)
7460   symcode='[BCDEGQRST]'
7461   ;;
7462 solaris* | sysv5*)
7463   symcode='[BDRT]'
7464   ;;
7465 sysv4)
7466   symcode='[DFNSTU]'
7467   ;;
7468 esac
7469
7470 # Handle CRLF in mingw tool chain
7471 opt_cr=
7472 case $build_os in
7473 mingw*)
7474   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7475   ;;
7476 esac
7477
7478 # If we're using GNU nm, then use its standard symbol codes.
7479 case `$NM -V 2>&1` in
7480 *GNU* | *'with BFD'*)
7481   symcode='[ABCDGIRSTW]' ;;
7482 esac
7483
7484 # Try without a prefix undercore, then with it.
7485 for ac_symprfx in "" "_"; do
7486
7487   # Write the raw and C identifiers.
7488   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7489
7490   # Check to see that the pipe works correctly.
7491   pipe_works=no
7492
7493   rm -f conftest*
7494   cat > conftest.$ac_ext <<EOF
7495 #ifdef __cplusplus
7496 extern "C" {
7497 #endif
7498 char nm_test_var;
7499 void nm_test_func(){}
7500 #ifdef __cplusplus
7501 }
7502 #endif
7503 int main(){nm_test_var='a';nm_test_func();return(0);}
7504 EOF
7505
7506   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507   (eval $ac_compile) 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); }; then
7511     # Now try to grab the symbols.
7512     nlist=conftest.nm
7513     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7514   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); } && test -s "$nlist"; then
7518       # Try sorting and uniquifying the output.
7519       if sort "$nlist" | uniq > "$nlist"T; then
7520         mv -f "$nlist"T "$nlist"
7521       else
7522         rm -f "$nlist"T
7523       fi
7524
7525       # Make sure that we snagged all the symbols we need.
7526       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7527         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7528           cat <<EOF > conftest.$ac_ext
7529 #ifdef __cplusplus
7530 extern "C" {
7531 #endif
7532
7533 EOF
7534           # Now generate the symbol file.
7535           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7536
7537           cat <<EOF >> conftest.$ac_ext
7538 #if defined (__STDC__) && __STDC__
7539 # define lt_ptr_t void *
7540 #else
7541 # define lt_ptr_t char *
7542 # define const
7543 #endif
7544
7545 /* The mapping between symbol names and symbols. */
7546 const struct {
7547   const char *name;
7548   lt_ptr_t address;
7549 }
7550 lt_preloaded_symbols[] =
7551 {
7552 EOF
7553           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7554           cat <<\EOF >> conftest.$ac_ext
7555   {0, (lt_ptr_t) 0}
7556 };
7557
7558 #ifdef __cplusplus
7559 }
7560 #endif
7561 EOF
7562           # Now try linking the two files.
7563           mv conftest.$ac_objext conftstm.$ac_objext
7564           lt_save_LIBS="$LIBS"
7565           lt_save_CFLAGS="$CFLAGS"
7566           LIBS="conftstm.$ac_objext"
7567           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7568           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569   (eval $ac_link) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7573             pipe_works=yes
7574           fi
7575           LIBS="$lt_save_LIBS"
7576           CFLAGS="$lt_save_CFLAGS"
7577         else
7578           echo "cannot find nm_test_func in $nlist" >&5
7579         fi
7580       else
7581         echo "cannot find nm_test_var in $nlist" >&5
7582       fi
7583     else
7584       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7585     fi
7586   else
7587     echo "$progname: failed program was:" >&5
7588     cat conftest.$ac_ext >&5
7589   fi
7590   rm -f conftest* conftst*
7591
7592   # Do not use the global_symbol_pipe unless it works.
7593   if test "$pipe_works" = yes; then
7594     break
7595   else
7596     lt_cv_sys_global_symbol_pipe=
7597   fi
7598 done
7599
7600 fi
7601
7602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7603   lt_cv_sys_global_symbol_to_cdecl=
7604 fi
7605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7606   echo "$as_me:$LINENO: result: failed" >&5
7607 echo "${ECHO_T}failed" >&6
7608 else
7609   echo "$as_me:$LINENO: result: ok" >&5
7610 echo "${ECHO_T}ok" >&6
7611 fi
7612
7613 echo "$as_me:$LINENO: checking for objdir" >&5
7614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7615 if test "${lt_cv_objdir+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   rm -f .libs 2>/dev/null
7619 mkdir .libs 2>/dev/null
7620 if test -d .libs; then
7621   lt_cv_objdir=.libs
7622 else
7623   # MS-DOS does not allow filenames that begin with a dot.
7624   lt_cv_objdir=_libs
7625 fi
7626 rmdir .libs 2>/dev/null
7627 fi
7628 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7629 echo "${ECHO_T}$lt_cv_objdir" >&6
7630 objdir=$lt_cv_objdir
7631
7632
7633
7634
7635
7636 case $host_os in
7637 aix3*)
7638   # AIX sometimes has problems with the GCC collect2 program.  For some
7639   # reason, if we set the COLLECT_NAMES environment variable, the problems
7640   # vanish in a puff of smoke.
7641   if test "X${COLLECT_NAMES+set}" != Xset; then
7642     COLLECT_NAMES=
7643     export COLLECT_NAMES
7644   fi
7645   ;;
7646 esac
7647
7648 # Sed substitution that helps us do robust quoting.  It backslashifies
7649 # metacharacters that are still active within double-quoted strings.
7650 Xsed='sed -e s/^X//'
7651 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7652
7653 # Same as above, but do not quote variable references.
7654 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7655
7656 # Sed substitution to delay expansion of an escaped shell variable in a
7657 # double_quote_subst'ed string.
7658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7659
7660 # Sed substitution to avoid accidental globbing in evaled expressions
7661 no_glob_subst='s/\*/\\\*/g'
7662
7663 # Constants:
7664 rm="rm -f"
7665
7666 # Global variables:
7667 default_ofile=libtool
7668 can_build_shared=yes
7669
7670 # All known linkers require a `.a' archive for static linking (except M$VC,
7671 # which needs '.lib').
7672 libext=a
7673 ltmain="$ac_aux_dir/ltmain.sh"
7674 ofile="$default_ofile"
7675 with_gnu_ld="$lt_cv_prog_gnu_ld"
7676
7677 if test -n "$ac_tool_prefix"; then
7678   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}ar; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_prog_AR+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   if test -n "$AR"; then
7686   ac_cv_prog_AR="$AR" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693   for ac_exec_ext in '' $ac_executable_extensions; do
7694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695     ac_cv_prog_AR="${ac_tool_prefix}ar"
7696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700 done
7701
7702 fi
7703 fi
7704 AR=$ac_cv_prog_AR
7705 if test -n "$AR"; then
7706   echo "$as_me:$LINENO: result: $AR" >&5
7707 echo "${ECHO_T}$AR" >&6
7708 else
7709   echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7711 fi
7712
7713 fi
7714 if test -z "$ac_cv_prog_AR"; then
7715   ac_ct_AR=$AR
7716   # Extract the first word of "ar", so it can be a program name with args.
7717 set dummy ar; ac_word=$2
7718 echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7720 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   if test -n "$ac_ct_AR"; then
7724   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731   for ac_exec_ext in '' $ac_executable_extensions; do
7732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733     ac_cv_prog_ac_ct_AR="ar"
7734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738 done
7739
7740   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7741 fi
7742 fi
7743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7744 if test -n "$ac_ct_AR"; then
7745   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7746 echo "${ECHO_T}$ac_ct_AR" >&6
7747 else
7748   echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7750 fi
7751
7752   AR=$ac_ct_AR
7753 else
7754   AR="$ac_cv_prog_AR"
7755 fi
7756
7757 if test -n "$ac_tool_prefix"; then
7758   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7760 echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762 if test "${ac_cv_prog_RANLIB+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   if test -n "$RANLIB"; then
7766   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771   IFS=$as_save_IFS
7772   test -z "$as_dir" && as_dir=.
7773   for ac_exec_ext in '' $ac_executable_extensions; do
7774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777     break 2
7778   fi
7779 done
7780 done
7781
7782 fi
7783 fi
7784 RANLIB=$ac_cv_prog_RANLIB
7785 if test -n "$RANLIB"; then
7786   echo "$as_me:$LINENO: result: $RANLIB" >&5
7787 echo "${ECHO_T}$RANLIB" >&6
7788 else
7789   echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7791 fi
7792
7793 fi
7794 if test -z "$ac_cv_prog_RANLIB"; then
7795   ac_ct_RANLIB=$RANLIB
7796   # Extract the first word of "ranlib", so it can be a program name with args.
7797 set dummy ranlib; ac_word=$2
7798 echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   if test -n "$ac_ct_RANLIB"; then
7804   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813     ac_cv_prog_ac_ct_RANLIB="ranlib"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819
7820   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7821 fi
7822 fi
7823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7824 if test -n "$ac_ct_RANLIB"; then
7825   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7826 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7827 else
7828   echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7830 fi
7831
7832   RANLIB=$ac_ct_RANLIB
7833 else
7834   RANLIB="$ac_cv_prog_RANLIB"
7835 fi
7836
7837 if test -n "$ac_tool_prefix"; then
7838   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}strip; ac_word=$2
7840 echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7842 if test "${ac_cv_prog_STRIP+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   if test -n "$STRIP"; then
7846   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853   for ac_exec_ext in '' $ac_executable_extensions; do
7854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860 done
7861
7862 fi
7863 fi
7864 STRIP=$ac_cv_prog_STRIP
7865 if test -n "$STRIP"; then
7866   echo "$as_me:$LINENO: result: $STRIP" >&5
7867 echo "${ECHO_T}$STRIP" >&6
7868 else
7869   echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6
7871 fi
7872
7873 fi
7874 if test -z "$ac_cv_prog_STRIP"; then
7875   ac_ct_STRIP=$STRIP
7876   # Extract the first word of "strip", so it can be a program name with args.
7877 set dummy strip; ac_word=$2
7878 echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   if test -n "$ac_ct_STRIP"; then
7884   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891   for ac_exec_ext in '' $ac_executable_extensions; do
7892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893     ac_cv_prog_ac_ct_STRIP="strip"
7894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898 done
7899
7900   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7901 fi
7902 fi
7903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7904 if test -n "$ac_ct_STRIP"; then
7905   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7906 echo "${ECHO_T}$ac_ct_STRIP" >&6
7907 else
7908   echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7910 fi
7911
7912   STRIP=$ac_ct_STRIP
7913 else
7914   STRIP="$ac_cv_prog_STRIP"
7915 fi
7916
7917
7918 old_CC="$CC"
7919 old_CFLAGS="$CFLAGS"
7920
7921 # Set sane defaults for various variables
7922 test -z "$AR" && AR=ar
7923 test -z "$AR_FLAGS" && AR_FLAGS=cru
7924 test -z "$AS" && AS=as
7925 test -z "$CC" && CC=cc
7926 test -z "$LTCC" && LTCC=$CC
7927 test -z "$DLLTOOL" && DLLTOOL=dlltool
7928 test -z "$LD" && LD=ld
7929 test -z "$LN_S" && LN_S="ln -s"
7930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7931 test -z "$NM" && NM=nm
7932 test -z "$SED" && SED=sed
7933 test -z "$OBJDUMP" && OBJDUMP=objdump
7934 test -z "$RANLIB" && RANLIB=:
7935 test -z "$STRIP" && STRIP=:
7936 test -z "$ac_objext" && ac_objext=o
7937
7938 # Determine commands to create old-style static archives.
7939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7940 old_postinstall_cmds='chmod 644 $oldlib'
7941 old_postuninstall_cmds=
7942
7943 if test -n "$RANLIB"; then
7944   case $host_os in
7945   openbsd*)
7946     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7947     ;;
7948   *)
7949     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7950     ;;
7951   esac
7952   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7953 fi
7954
7955 # Only perform the check for file, if the check method requires it
7956 case $deplibs_check_method in
7957 file_magic*)
7958   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7959     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7960 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   case $MAGIC_CMD in
7965 [\\/*] |  ?:[\\/]*)
7966   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7967   ;;
7968 *)
7969   lt_save_MAGIC_CMD="$MAGIC_CMD"
7970   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972   for ac_dir in $ac_dummy; do
7973     IFS="$lt_save_ifs"
7974     test -z "$ac_dir" && ac_dir=.
7975     if test -f $ac_dir/${ac_tool_prefix}file; then
7976       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7977       if test -n "$file_magic_test_file"; then
7978         case $deplibs_check_method in
7979         "file_magic "*)
7980           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7981           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983             $EGREP "$file_magic_regex" > /dev/null; then
7984             :
7985           else
7986             cat <<EOF 1>&2
7987
7988 *** Warning: the command libtool uses to detect shared libraries,
7989 *** $file_magic_cmd, produces output that libtool cannot recognize.
7990 *** The result is that libtool may fail to recognize shared libraries
7991 *** as such.  This will affect the creation of libtool libraries that
7992 *** depend on shared libraries, but programs linked with such libtool
7993 *** libraries will work regardless of this problem.  Nevertheless, you
7994 *** may want to report the problem to your system manager and/or to
7995 *** bug-libtool@gnu.org
7996
7997 EOF
7998           fi ;;
7999         esac
8000       fi
8001       break
8002     fi
8003   done
8004   IFS="$lt_save_ifs"
8005   MAGIC_CMD="$lt_save_MAGIC_CMD"
8006   ;;
8007 esac
8008 fi
8009
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if test -n "$MAGIC_CMD"; then
8012   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8013 echo "${ECHO_T}$MAGIC_CMD" >&6
8014 else
8015   echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6
8017 fi
8018
8019 if test -z "$lt_cv_path_MAGIC_CMD"; then
8020   if test -n "$ac_tool_prefix"; then
8021     echo "$as_me:$LINENO: checking for file" >&5
8022 echo $ECHO_N "checking for file... $ECHO_C" >&6
8023 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   case $MAGIC_CMD in
8027 [\\/*] |  ?:[\\/]*)
8028   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8029   ;;
8030 *)
8031   lt_save_MAGIC_CMD="$MAGIC_CMD"
8032   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8033   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8034   for ac_dir in $ac_dummy; do
8035     IFS="$lt_save_ifs"
8036     test -z "$ac_dir" && ac_dir=.
8037     if test -f $ac_dir/file; then
8038       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8039       if test -n "$file_magic_test_file"; then
8040         case $deplibs_check_method in
8041         "file_magic "*)
8042           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8043           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8045             $EGREP "$file_magic_regex" > /dev/null; then
8046             :
8047           else
8048             cat <<EOF 1>&2
8049
8050 *** Warning: the command libtool uses to detect shared libraries,
8051 *** $file_magic_cmd, produces output that libtool cannot recognize.
8052 *** The result is that libtool may fail to recognize shared libraries
8053 *** as such.  This will affect the creation of libtool libraries that
8054 *** depend on shared libraries, but programs linked with such libtool
8055 *** libraries will work regardless of this problem.  Nevertheless, you
8056 *** may want to report the problem to your system manager and/or to
8057 *** bug-libtool@gnu.org
8058
8059 EOF
8060           fi ;;
8061         esac
8062       fi
8063       break
8064     fi
8065   done
8066   IFS="$lt_save_ifs"
8067   MAGIC_CMD="$lt_save_MAGIC_CMD"
8068   ;;
8069 esac
8070 fi
8071
8072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8073 if test -n "$MAGIC_CMD"; then
8074   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8075 echo "${ECHO_T}$MAGIC_CMD" >&6
8076 else
8077   echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6
8079 fi
8080
8081   else
8082     MAGIC_CMD=:
8083   fi
8084 fi
8085
8086   fi
8087   ;;
8088 esac
8089
8090 enable_dlopen=no
8091 enable_win32_dll=no
8092
8093 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8094 if test "${enable_libtool_lock+set}" = set; then
8095   enableval="$enable_libtool_lock"
8096
8097 fi;
8098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8099
8100
8101 # Check whether --with-pic or --without-pic was given.
8102 if test "${with_pic+set}" = set; then
8103   withval="$with_pic"
8104   pic_mode="$withval"
8105 else
8106   pic_mode=default
8107 fi;
8108 test -z "$pic_mode" && pic_mode=default
8109
8110 # Use C for the default configuration in the libtool script
8111 tagname=
8112 lt_save_CC="$CC"
8113 ac_ext=c
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8118
8119
8120 # Source file extension for C test sources.
8121 ac_ext=c
8122
8123 # Object file extension for compiled C test sources.
8124 objext=o
8125 objext=$objext
8126
8127 # Code to be used in simple compile tests
8128 lt_simple_compile_test_code="int some_variable = 0;\n"
8129
8130 # Code to be used in simple link tests
8131 lt_simple_link_test_code='int main(){return(0);}\n'
8132
8133
8134 # If no C compiler was specified, use CC.
8135 LTCC=${LTCC-"$CC"}
8136
8137 # Allow CC to be a program name with arguments.
8138 compiler=$CC
8139
8140
8141 #
8142 # Check for any special shared library compilation flags.
8143 #
8144 lt_prog_cc_shlib=
8145 if test "$GCC" = no; then
8146   case $host_os in
8147   sco3.2v5*)
8148     lt_prog_cc_shlib='-belf'
8149     ;;
8150   esac
8151 fi
8152 if test -n "$lt_prog_cc_shlib"; then
8153   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8154 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8155   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8156   else
8157     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8158 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8159     lt_cv_prog_cc_can_build_shared=no
8160   fi
8161 fi
8162
8163
8164 #
8165 # Check to make sure the static flag actually works.
8166 #
8167 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8168 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8169 if test "${lt_prog_compiler_static_works+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   lt_prog_compiler_static_works=no
8173    save_LDFLAGS="$LDFLAGS"
8174    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8175    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8176    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8177      # The compiler can only warn and ignore the option if not recognized
8178      # So say no if there are warnings
8179      if test -s conftest.err; then
8180        # Append any errors to the config.log.
8181        cat conftest.err 1>&5
8182      else
8183        lt_prog_compiler_static_works=yes
8184      fi
8185    fi
8186    $rm conftest*
8187    LDFLAGS="$save_LDFLAGS"
8188
8189 fi
8190 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8191 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8192
8193 if test x"$lt_prog_compiler_static_works" = xyes; then
8194     :
8195 else
8196     lt_prog_compiler_static=
8197 fi
8198
8199
8200
8201 ## CAVEAT EMPTOR:
8202 ## There is no encapsulation within the following macros, do not change
8203 ## the running order or otherwise move them around unless you know exactly
8204 ## what you are doing...
8205
8206 lt_prog_compiler_no_builtin_flag=
8207
8208 if test "$GCC" = yes; then
8209   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8210
8211
8212 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   lt_cv_prog_compiler_rtti_exceptions=no
8218   ac_outfile=conftest.$ac_objext
8219    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8220    lt_compiler_flag="-fno-rtti -fno-exceptions"
8221    # Insert the option either (1) after the last *FLAGS variable, or
8222    # (2) before a word containing "conftest.", or (3) at the end.
8223    # Note that $ac_compile itself does not contain backslashes and begins
8224    # with a dollar sign (not a hyphen), so the echo should work correctly.
8225    # The option is referenced via a variable to avoid confusing sed.
8226    lt_compile=`echo "$ac_compile" | $SED \
8227    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229    -e 's:$: $lt_compiler_flag:'`
8230    (eval echo "\"\$as_me:8230: $lt_compile\"" >&5)
8231    (eval "$lt_compile" 2>conftest.err)
8232    ac_status=$?
8233    cat conftest.err >&5
8234    echo "$as_me:8234: \$? = $ac_status" >&5
8235    if (exit $ac_status) && test -s "$ac_outfile"; then
8236      # The compiler can only warn and ignore the option if not recognized
8237      # So say no if there are warnings
8238      if test ! -s conftest.err; then
8239        lt_cv_prog_compiler_rtti_exceptions=yes
8240      fi
8241    fi
8242    $rm conftest*
8243
8244 fi
8245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8246 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8247
8248 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8249     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8250 else
8251     :
8252 fi
8253
8254 fi
8255
8256 lt_prog_compiler_wl=
8257 lt_prog_compiler_pic=
8258 lt_prog_compiler_static=
8259
8260 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8261 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8262
8263   if test "$GCC" = yes; then
8264     lt_prog_compiler_wl='-Wl,'
8265     lt_prog_compiler_static='-static'
8266
8267     case $host_os in
8268       aix*)
8269       # All AIX code is PIC.
8270       if test "$host_cpu" = ia64; then
8271         # AIX 5 now supports IA64 processor
8272         lt_prog_compiler_static='-Bstatic'
8273       fi
8274       ;;
8275
8276     amigaos*)
8277       # FIXME: we need at least 68020 code to build shared libraries, but
8278       # adding the `-m68020' flag to GCC prevents building anything better,
8279       # like `-m68040'.
8280       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8281       ;;
8282
8283     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8284       # PIC is the default for these OSes.
8285       ;;
8286
8287     mingw* | pw32* | os2*)
8288       # This hack is so that the source file can tell whether it is being
8289       # built for inclusion in a dll (and should export symbols for example).
8290       lt_prog_compiler_pic='-DDLL_EXPORT'
8291       ;;
8292
8293     darwin* | rhapsody*)
8294       # PIC is the default on this platform
8295       # Common symbols not allowed in MH_DYLIB files
8296       lt_prog_compiler_pic='-fno-common'
8297       ;;
8298
8299     msdosdjgpp*)
8300       # Just because we use GCC doesn't mean we suddenly get shared libraries
8301       # on systems that don't support them.
8302       lt_prog_compiler_can_build_shared=no
8303       enable_shared=no
8304       ;;
8305
8306     sysv4*MP*)
8307       if test -d /usr/nec; then
8308         lt_prog_compiler_pic=-Kconform_pic
8309       fi
8310       ;;
8311
8312     hpux*)
8313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8314       # not for PA HP-UX.
8315       case "$host_cpu" in
8316       hppa*64*|ia64*)
8317         # +Z the default
8318         ;;
8319       *)
8320         lt_prog_compiler_pic='-fPIC'
8321         ;;
8322       esac
8323       ;;
8324
8325     *)
8326       lt_prog_compiler_pic='-fPIC'
8327       ;;
8328     esac
8329   else
8330     # PORTME Check for flag to pass linker flags through the system compiler.
8331     case $host_os in
8332     aix*)
8333       lt_prog_compiler_wl='-Wl,'
8334       if test "$host_cpu" = ia64; then
8335         # AIX 5 now supports IA64 processor
8336         lt_prog_compiler_static='-Bstatic'
8337       else
8338         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8339       fi
8340       ;;
8341
8342     mingw* | pw32* | os2*)
8343       # This hack is so that the source file can tell whether it is being
8344       # built for inclusion in a dll (and should export symbols for example).
8345       lt_prog_compiler_pic='-DDLL_EXPORT'
8346       ;;
8347
8348     hpux9* | hpux10* | hpux11*)
8349       lt_prog_compiler_wl='-Wl,'
8350       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8351       # not for PA HP-UX.
8352       case "$host_cpu" in
8353       hppa*64*|ia64*)
8354         # +Z the default
8355         ;;
8356       *)
8357         lt_prog_compiler_pic='+Z'
8358         ;;
8359       esac
8360       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8361       lt_prog_compiler_static='${wl}-a ${wl}archive'
8362       ;;
8363
8364     irix5* | irix6* | nonstopux*)
8365       lt_prog_compiler_wl='-Wl,'
8366       # PIC (with -KPIC) is the default.
8367       lt_prog_compiler_static='-non_shared'
8368       ;;
8369
8370     newsos6)
8371       lt_prog_compiler_pic='-KPIC'
8372       lt_prog_compiler_static='-Bstatic'
8373       ;;
8374
8375     linux*)
8376       case $CC in
8377       icc* | ecc*)
8378         lt_prog_compiler_wl='-Wl,'
8379         lt_prog_compiler_pic='-KPIC'
8380         lt_prog_compiler_static='-static'
8381         ;;
8382       ccc*)
8383         lt_prog_compiler_wl='-Wl,'
8384         # All Alpha code is PIC.
8385         lt_prog_compiler_static='-non_shared'
8386         ;;
8387       esac
8388       ;;
8389
8390     osf3* | osf4* | osf5*)
8391       lt_prog_compiler_wl='-Wl,'
8392       # All OSF/1 code is PIC.
8393       lt_prog_compiler_static='-non_shared'
8394       ;;
8395
8396     sco3.2v5*)
8397       lt_prog_compiler_pic='-Kpic'
8398       lt_prog_compiler_static='-dn'
8399       ;;
8400
8401     solaris*)
8402       lt_prog_compiler_wl='-Wl,'
8403       lt_prog_compiler_pic='-KPIC'
8404       lt_prog_compiler_static='-Bstatic'
8405       ;;
8406
8407     sunos4*)
8408       lt_prog_compiler_wl='-Qoption ld '
8409       lt_prog_compiler_pic='-PIC'
8410       lt_prog_compiler_static='-Bstatic'
8411       ;;
8412
8413     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8414       lt_prog_compiler_wl='-Wl,'
8415       lt_prog_compiler_pic='-KPIC'
8416       lt_prog_compiler_static='-Bstatic'
8417       ;;
8418
8419     sysv4*MP*)
8420       if test -d /usr/nec ;then
8421         lt_prog_compiler_pic='-Kconform_pic'
8422         lt_prog_compiler_static='-Bstatic'
8423       fi
8424       ;;
8425
8426     uts4*)
8427       lt_prog_compiler_pic='-pic'
8428       lt_prog_compiler_static='-Bstatic'
8429       ;;
8430
8431     *)
8432       lt_prog_compiler_can_build_shared=no
8433       ;;
8434     esac
8435   fi
8436
8437 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8438 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8439
8440 #
8441 # Check to make sure the PIC flag actually works.
8442 #
8443 if test -n "$lt_prog_compiler_pic"; then
8444
8445 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8447 if test "${lt_prog_compiler_pic_works+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   lt_prog_compiler_pic_works=no
8451   ac_outfile=conftest.$ac_objext
8452    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8453    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8454    # Insert the option either (1) after the last *FLAGS variable, or
8455    # (2) before a word containing "conftest.", or (3) at the end.
8456    # Note that $ac_compile itself does not contain backslashes and begins
8457    # with a dollar sign (not a hyphen), so the echo should work correctly.
8458    # The option is referenced via a variable to avoid confusing sed.
8459    lt_compile=`echo "$ac_compile" | $SED \
8460    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462    -e 's:$: $lt_compiler_flag:'`
8463    (eval echo "\"\$as_me:8463: $lt_compile\"" >&5)
8464    (eval "$lt_compile" 2>conftest.err)
8465    ac_status=$?
8466    cat conftest.err >&5
8467    echo "$as_me:8467: \$? = $ac_status" >&5
8468    if (exit $ac_status) && test -s "$ac_outfile"; then
8469      # The compiler can only warn and ignore the option if not recognized
8470      # So say no if there are warnings
8471      if test ! -s conftest.err; then
8472        lt_prog_compiler_pic_works=yes
8473      fi
8474    fi
8475    $rm conftest*
8476
8477 fi
8478 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8479 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8480
8481 if test x"$lt_prog_compiler_pic_works" = xyes; then
8482     case $lt_prog_compiler_pic in
8483      "" | " "*) ;;
8484      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8485      esac
8486 else
8487     lt_prog_compiler_pic=
8488      lt_prog_compiler_can_build_shared=no
8489 fi
8490
8491 fi
8492 case "$host_os" in
8493   # For platforms which do not support PIC, -DPIC is meaningless:
8494   *djgpp*)
8495     lt_prog_compiler_pic=
8496     ;;
8497   *)
8498     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8499     ;;
8500 esac
8501
8502 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8504 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   lt_cv_prog_compiler_c_o=no
8508    $rm -r conftest 2>/dev/null
8509    mkdir conftest
8510    cd conftest
8511    mkdir out
8512    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8513
8514    lt_compiler_flag="-o out/conftest2.$ac_objext"
8515    # Insert the option either (1) after the last *FLAGS variable, or
8516    # (2) before a word containing "conftest.", or (3) at the end.
8517    # Note that $ac_compile itself does not contain backslashes and begins
8518    # with a dollar sign (not a hyphen), so the echo should work correctly.
8519    lt_compile=`echo "$ac_compile" | $SED \
8520    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522    -e 's:$: $lt_compiler_flag:'`
8523    (eval echo "\"\$as_me:8523: $lt_compile\"" >&5)
8524    (eval "$lt_compile" 2>out/conftest.err)
8525    ac_status=$?
8526    cat out/conftest.err >&5
8527    echo "$as_me:8527: \$? = $ac_status" >&5
8528    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8529    then
8530      # The compiler can only warn and ignore the option if not recognized
8531      # So say no if there are warnings
8532      if test ! -s out/conftest.err; then
8533        lt_cv_prog_compiler_c_o=yes
8534      fi
8535    fi
8536    chmod u+w .
8537    $rm conftest*
8538    # SGI C++ compiler will create directory out/ii_files/ for
8539    # template instantiation
8540    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8541    $rm out/* && rmdir out
8542    cd ..
8543    rmdir conftest
8544    $rm conftest*
8545
8546 fi
8547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8548 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8549
8550
8551 hard_links="nottested"
8552 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8553   # do not overwrite the value of need_locks provided by the user
8554   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8555 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8556   hard_links=yes
8557   $rm conftest*
8558   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8559   touch conftest.a
8560   ln conftest.a conftest.b 2>&5 || hard_links=no
8561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8562   echo "$as_me:$LINENO: result: $hard_links" >&5
8563 echo "${ECHO_T}$hard_links" >&6
8564   if test "$hard_links" = no; then
8565     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8566 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8567     need_locks=warn
8568   fi
8569 else
8570   need_locks=no
8571 fi
8572
8573 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8574 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8575
8576   runpath_var=
8577   allow_undefined_flag=
8578   enable_shared_with_static_runtimes=no
8579   archive_cmds=
8580   archive_expsym_cmds=
8581   old_archive_From_new_cmds=
8582   old_archive_from_expsyms_cmds=
8583   export_dynamic_flag_spec=
8584   whole_archive_flag_spec=
8585   thread_safe_flag_spec=
8586   hardcode_libdir_flag_spec=
8587   hardcode_libdir_flag_spec_ld=
8588   hardcode_libdir_separator=
8589   hardcode_direct=no
8590   hardcode_minus_L=no
8591   hardcode_shlibpath_var=unsupported
8592   link_all_deplibs=unknown
8593   hardcode_automatic=no
8594   module_cmds=
8595   module_expsym_cmds=
8596   always_export_symbols=no
8597   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8598   # include_expsyms should be a list of space-separated symbols to be *always*
8599   # included in the symbol list
8600   include_expsyms=
8601   # exclude_expsyms can be an extended regexp of symbols to exclude
8602   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8603   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8604   # as well as any symbol that contains `d'.
8605   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8606   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8607   # platforms (ab)use it in PIC code, but their linkers get confused if
8608   # the symbol is explicitly referenced.  Since portable code cannot
8609   # rely on this symbol name, it's probably fine to never include it in
8610   # preloaded symbol tables.
8611   extract_expsyms_cmds=
8612
8613   case $host_os in
8614   cygwin* | mingw* | pw32*)
8615     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8616     # When not using gcc, we currently assume that we are using
8617     # Microsoft Visual C++.
8618     if test "$GCC" != yes; then
8619       with_gnu_ld=no
8620     fi
8621     ;;
8622   openbsd*)
8623     with_gnu_ld=no
8624     ;;
8625   esac
8626
8627   ld_shlibs=yes
8628   if test "$with_gnu_ld" = yes; then
8629     # If archive_cmds runs LD, not CC, wlarc should be empty
8630     wlarc='${wl}'
8631
8632     # See if GNU ld supports shared libraries.
8633     case $host_os in
8634     aix3* | aix4* | aix5*)
8635       # On AIX/PPC, the GNU linker is very broken
8636       if test "$host_cpu" != ia64; then
8637         ld_shlibs=no
8638         cat <<EOF 1>&2
8639
8640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8641 *** to be unable to reliably create shared libraries on AIX.
8642 *** Therefore, libtool is disabling shared libraries support.  If you
8643 *** really care for shared libraries, you may want to modify your PATH
8644 *** so that a non-GNU linker is found, and then restart.
8645
8646 EOF
8647       fi
8648       ;;
8649
8650     amigaos*)
8651       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)'
8652       hardcode_libdir_flag_spec='-L$libdir'
8653       hardcode_minus_L=yes
8654
8655       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8656       # that the semantics of dynamic libraries on AmigaOS, at least up
8657       # to version 4, is to share data among multiple programs linked
8658       # with the same dynamic library.  Since this doesn't match the
8659       # behavior of shared libraries on other platforms, we can't use
8660       # them.
8661       ld_shlibs=no
8662       ;;
8663
8664     beos*)
8665       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8666         allow_undefined_flag=unsupported
8667         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8668         # support --undefined.  This deserves some investigation.  FIXME
8669         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670       else
8671         ld_shlibs=no
8672       fi
8673       ;;
8674
8675     cygwin* | mingw* | pw32*)
8676       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8677       # as there is no search path for DLLs.
8678       hardcode_libdir_flag_spec='-L$libdir'
8679       allow_undefined_flag=unsupported
8680       always_export_symbols=no
8681       enable_shared_with_static_runtimes=yes
8682       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8683
8684       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8685         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8686         # If the export-symbols file already is a .def file (1st line
8687         # is EXPORTS), use it as is; otherwise, prepend...
8688         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8689           cp $export_symbols $output_objdir/$soname.def;
8690         else
8691           echo EXPORTS > $output_objdir/$soname.def;
8692           cat $export_symbols >> $output_objdir/$soname.def;
8693         fi~
8694         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8695       else
8696         ld_shlibs=no
8697       fi
8698       ;;
8699
8700     netbsd*)
8701       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8702         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8703         wlarc=
8704       else
8705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707       fi
8708       ;;
8709
8710     solaris* | sysv5*)
8711       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8712         ld_shlibs=no
8713         cat <<EOF 1>&2
8714
8715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8716 *** create shared libraries on Solaris systems.  Therefore, libtool
8717 *** is disabling shared libraries support.  We urge you to upgrade GNU
8718 *** binutils to release 2.9.1 or newer.  Another option is to modify
8719 *** your PATH or compiler configuration so that the native linker is
8720 *** used, and then restart.
8721
8722 EOF
8723       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8724         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8726       else
8727         ld_shlibs=no
8728       fi
8729       ;;
8730
8731     sunos4*)
8732       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8733       wlarc=
8734       hardcode_direct=yes
8735       hardcode_shlibpath_var=no
8736       ;;
8737
8738   linux*)
8739     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8740         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741         archive_cmds="$tmp_archive_cmds"
8742       supports_anon_versioning=no
8743       case `$LD -v 2>/dev/null` in
8744         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8745         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8746         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8747         *\ 2.11.*) ;; # other 2.11 versions
8748         *) supports_anon_versioning=yes ;;
8749       esac
8750       if test $supports_anon_versioning = yes; then
8751         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8753 $echo "local: *; };" >> $output_objdir/$libname.ver~
8754         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8755       else
8756         archive_expsym_cmds="$tmp_archive_cmds"
8757       fi
8758     else
8759       ld_shlibs=no
8760     fi
8761     ;;
8762
8763     *)
8764       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8765         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767       else
8768         ld_shlibs=no
8769       fi
8770       ;;
8771     esac
8772
8773     if test "$ld_shlibs" = yes; then
8774       runpath_var=LD_RUN_PATH
8775       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8776       export_dynamic_flag_spec='${wl}--export-dynamic'
8777       # ancient GNU ld didn't support --whole-archive et. al.
8778       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8779         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8780       else
8781         whole_archive_flag_spec=
8782       fi
8783     fi
8784   else
8785     # PORTME fill in a description of your system's linker (not GNU ld)
8786     case $host_os in
8787     aix3*)
8788       allow_undefined_flag=unsupported
8789       always_export_symbols=yes
8790       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'
8791       # Note: this linker hardcodes the directories in LIBPATH if there
8792       # are no directories specified by -L.
8793       hardcode_minus_L=yes
8794       if test "$GCC" = yes && test -z "$link_static_flag"; then
8795         # Neither direct hardcoding nor static linking is supported with a
8796         # broken collect2.
8797         hardcode_direct=unsupported
8798       fi
8799       ;;
8800
8801     aix4* | aix5*)
8802       if test "$host_cpu" = ia64; then
8803         # On IA64, the linker does run time linking by default, so we don't
8804         # have to do anything special.
8805         aix_use_runtimelinking=no
8806         exp_sym_flag='-Bexport'
8807         no_entry_flag=""
8808       else
8809         # If we're using GNU nm, then we don't want the "-C" option.
8810         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8811         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8812           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'
8813         else
8814           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'
8815         fi
8816         aix_use_runtimelinking=no
8817
8818         # Test if we are trying to use run time linking or normal
8819         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820         # need to do runtime linking.
8821         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8822           for ld_flag in $LDFLAGS; do
8823           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824             aix_use_runtimelinking=yes
8825             break
8826           fi
8827           done
8828         esac
8829
8830         exp_sym_flag='-bexport'
8831         no_entry_flag='-bnoentry'
8832       fi
8833
8834       # When large executables or shared objects are built, AIX ld can
8835       # have problems creating the table of contents.  If linking a library
8836       # or program results in "error TOC overflow" add -mminimal-toc to
8837       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8838       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8839
8840       archive_cmds=''
8841       hardcode_direct=yes
8842       hardcode_libdir_separator=':'
8843       link_all_deplibs=yes
8844
8845       if test "$GCC" = yes; then
8846         case $host_os in aix4.012|aix4.012.*)
8847         # We only want to do this on AIX 4.2 and lower, the check
8848         # below for broken collect2 doesn't work under 4.3+
8849           collect2name=`${CC} -print-prog-name=collect2`
8850           if test -f "$collect2name" && \
8851            strings "$collect2name" | grep resolve_lib_name >/dev/null
8852           then
8853           # We have reworked collect2
8854           hardcode_direct=yes
8855           else
8856           # We have old collect2
8857           hardcode_direct=unsupported
8858           # It fails to find uninstalled libraries when the uninstalled
8859           # path is not listed in the libpath.  Setting hardcode_minus_L
8860           # to unsupported forces relinking
8861           hardcode_minus_L=yes
8862           hardcode_libdir_flag_spec='-L$libdir'
8863           hardcode_libdir_separator=
8864           fi
8865         esac
8866         shared_flag='-shared'
8867       else
8868         # not using gcc
8869         if test "$host_cpu" = ia64; then
8870         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8871         # chokes on -Wl,-G. The following line is correct:
8872           shared_flag='-G'
8873         else
8874         if test "$aix_use_runtimelinking" = yes; then
8875             shared_flag='${wl}-G'
8876           else
8877             shared_flag='${wl}-bM:SRE'
8878         fi
8879         fi
8880       fi
8881
8882       # It seems that -bexpall does not export symbols beginning with
8883       # underscore (_), so it is better to generate a list of symbols to export.
8884       always_export_symbols=yes
8885       if test "$aix_use_runtimelinking" = yes; then
8886         # Warning - without using the other runtime loading flags (-brtl),
8887         # -berok will link without error, but may produce a broken library.
8888         allow_undefined_flag='-berok'
8889        # Determine the default libpath from the value encoded in an empty executable.
8890        cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 int
8898 main ()
8899 {
8900
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907   (eval $ac_link) 2>conftest.er1
8908   ac_status=$?
8909   grep -v '^ *+' conftest.er1 >conftest.err
8910   rm -f conftest.er1
8911   cat conftest.err >&5
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); } &&
8914          { ac_try='test -z "$ac_c_werror_flag"
8915                          || test ! -s conftest.err'
8916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; } &&
8921          { ac_try='test -s conftest$ac_exeext'
8922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923   (eval $ac_try) 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); }; }; then
8927
8928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8929 }'`
8930 # Check for a 64-bit object if we didn't find anything.
8931 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; }
8932 }'`; fi
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 fi
8938 rm -f conftest.err conftest.$ac_objext \
8939       conftest$ac_exeext conftest.$ac_ext
8940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8941
8942        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943         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"
8944        else
8945         if test "$host_cpu" = ia64; then
8946           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8947           allow_undefined_flag="-z nodefs"
8948           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"
8949         else
8950          # Determine the default libpath from the value encoded in an empty executable.
8951          cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957
8958 int
8959 main ()
8960 {
8961
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968   (eval $ac_link) 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -z "$ac_c_werror_flag"
8976                          || test ! -s conftest.err'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; } &&
8982          { ac_try='test -s conftest$ac_exeext'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8990 }'`
8991 # Check for a 64-bit object if we didn't find anything.
8992 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; }
8993 }'`; fi
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998 fi
8999 rm -f conftest.err conftest.$ac_objext \
9000       conftest$ac_exeext conftest.$ac_ext
9001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9002
9003          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004           # Warning - without using the other run time loading flags,
9005           # -berok will link without error, but may produce a broken library.
9006           no_undefined_flag=' ${wl}-bernotok'
9007           allow_undefined_flag=' ${wl}-berok'
9008           # -bexpall does not export symbols beginning with underscore (_)
9009           always_export_symbols=yes
9010           # Exported symbols can be pulled into shared objects from archives
9011           whole_archive_flag_spec=' '
9012           archive_cmds_need_lc=yes
9013           # This is similar to how AIX traditionally builds it's shared libraries.
9014           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'
9015         fi
9016       fi
9017       ;;
9018
9019     amigaos*)
9020       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)'
9021       hardcode_libdir_flag_spec='-L$libdir'
9022       hardcode_minus_L=yes
9023       # see comment about different semantics on the GNU ld section
9024       ld_shlibs=no
9025       ;;
9026
9027     bsdi4*)
9028       export_dynamic_flag_spec=-rdynamic
9029       ;;
9030
9031     cygwin* | mingw* | pw32*)
9032       # When not using gcc, we currently assume that we are using
9033       # Microsoft Visual C++.
9034       # hardcode_libdir_flag_spec is actually meaningless, as there is
9035       # no search path for DLLs.
9036       hardcode_libdir_flag_spec=' '
9037       allow_undefined_flag=unsupported
9038       # Tell ltmain to make .lib files, not .a files.
9039       libext=lib
9040       # Tell ltmain to make .dll files, not .so files.
9041       shrext_cmds=".dll"
9042       # FIXME: Setting linknames here is a bad hack.
9043       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9044       # The linker will automatically build a .lib file if we build a DLL.
9045       old_archive_From_new_cmds='true'
9046       # FIXME: Should let the user specify the lib program.
9047       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9048       fix_srcfile_path='`cygpath -w "$srcfile"`'
9049       enable_shared_with_static_runtimes=yes
9050       ;;
9051
9052     darwin* | rhapsody*)
9053     if test "$GXX" = yes ; then
9054       archive_cmds_need_lc=no
9055       case "$host_os" in
9056       rhapsody* | darwin1.[012])
9057         allow_undefined_flag='-undefined suppress'
9058         ;;
9059       *) # Darwin 1.3 on
9060       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9061         allow_undefined_flag='-flat_namespace -undefined suppress'
9062       else
9063         case ${MACOSX_DEPLOYMENT_TARGET} in
9064           10.[012])
9065             allow_undefined_flag='-flat_namespace -undefined suppress'
9066             ;;
9067           10.*)
9068             allow_undefined_flag='-undefined dynamic_lookup'
9069             ;;
9070         esac
9071       fi
9072         ;;
9073       esac
9074         lt_int_apple_cc_single_mod=no
9075         output_verbose_link_cmd='echo'
9076         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9077           lt_int_apple_cc_single_mod=yes
9078         fi
9079         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9080           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9081         else
9082         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'
9083       fi
9084       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9085       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9086         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9087           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}'
9088         else
9089           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}'
9090         fi
9091           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}'
9092       hardcode_direct=no
9093       hardcode_automatic=yes
9094       hardcode_shlibpath_var=unsupported
9095       whole_archive_flag_spec='-all_load $convenience'
9096       link_all_deplibs=yes
9097     else
9098       ld_shlibs=no
9099     fi
9100       ;;
9101
9102     dgux*)
9103       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104       hardcode_libdir_flag_spec='-L$libdir'
9105       hardcode_shlibpath_var=no
9106       ;;
9107
9108     freebsd1*)
9109       ld_shlibs=no
9110       ;;
9111
9112     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113     # support.  Future versions do this automatically, but an explicit c++rt0.o
9114     # does not break anything, and helps significantly (at the cost of a little
9115     # extra space).
9116     freebsd2.2*)
9117       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118       hardcode_libdir_flag_spec='-R$libdir'
9119       hardcode_direct=yes
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9124     freebsd2*)
9125       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126       hardcode_direct=yes
9127       hardcode_minus_L=yes
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132     freebsd* | kfreebsd*-gnu)
9133       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134       hardcode_libdir_flag_spec='-R$libdir'
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     hpux9*)
9140       if test "$GCC" = yes; then
9141         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'
9142       else
9143         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'
9144       fi
9145       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146       hardcode_libdir_separator=:
9147       hardcode_direct=yes
9148
9149       # hardcode_minus_L: Not really in the search PATH,
9150       # but as the default location of the library.
9151       hardcode_minus_L=yes
9152       export_dynamic_flag_spec='${wl}-E'
9153       ;;
9154
9155     hpux10* | hpux11*)
9156       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9157         case "$host_cpu" in
9158         hppa*64*|ia64*)
9159           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9160           ;;
9161         *)
9162           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         esac
9165       else
9166         case "$host_cpu" in
9167         hppa*64*|ia64*)
9168           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9169           ;;
9170         *)
9171           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9172           ;;
9173         esac
9174       fi
9175       if test "$with_gnu_ld" = no; then
9176         case "$host_cpu" in
9177         hppa*64*)
9178           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9179           hardcode_libdir_flag_spec_ld='+b $libdir'
9180           hardcode_libdir_separator=:
9181           hardcode_direct=no
9182           hardcode_shlibpath_var=no
9183           ;;
9184         ia64*)
9185           hardcode_libdir_flag_spec='-L$libdir'
9186           hardcode_direct=no
9187           hardcode_shlibpath_var=no
9188
9189           # hardcode_minus_L: Not really in the search PATH,
9190           # but as the default location of the library.
9191           hardcode_minus_L=yes
9192           ;;
9193         *)
9194           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9195           hardcode_libdir_separator=:
9196           hardcode_direct=yes
9197           export_dynamic_flag_spec='${wl}-E'
9198
9199           # hardcode_minus_L: Not really in the search PATH,
9200           # but as the default location of the library.
9201           hardcode_minus_L=yes
9202           ;;
9203         esac
9204       fi
9205       ;;
9206
9207     irix5* | irix6* | nonstopux*)
9208       if test "$GCC" = yes; then
9209         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'
9210       else
9211         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'
9212         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9213       fi
9214       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9215       hardcode_libdir_separator=:
9216       link_all_deplibs=yes
9217       ;;
9218
9219     netbsd*)
9220       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9221         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9222       else
9223         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9224       fi
9225       hardcode_libdir_flag_spec='-R$libdir'
9226       hardcode_direct=yes
9227       hardcode_shlibpath_var=no
9228       ;;
9229
9230     newsos6)
9231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232       hardcode_direct=yes
9233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234       hardcode_libdir_separator=:
9235       hardcode_shlibpath_var=no
9236       ;;
9237
9238     openbsd*)
9239       hardcode_direct=yes
9240       hardcode_shlibpath_var=no
9241       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9242         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244         export_dynamic_flag_spec='${wl}-E'
9245       else
9246        case $host_os in
9247          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9248            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249            hardcode_libdir_flag_spec='-R$libdir'
9250            ;;
9251          *)
9252            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254            ;;
9255        esac
9256       fi
9257       ;;
9258
9259     os2*)
9260       hardcode_libdir_flag_spec='-L$libdir'
9261       hardcode_minus_L=yes
9262       allow_undefined_flag=unsupported
9263       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'
9264       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9265       ;;
9266
9267     osf3*)
9268       if test "$GCC" = yes; then
9269         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9270         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'
9271       else
9272         allow_undefined_flag=' -expect_unresolved \*'
9273         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'
9274       fi
9275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276       hardcode_libdir_separator=:
9277       ;;
9278
9279     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9280       if test "$GCC" = yes; then
9281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282         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'
9283         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284       else
9285         allow_undefined_flag=' -expect_unresolved \*'
9286         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'
9287         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9288         $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'
9289
9290         # Both c and cxx compiler support -rpath directly
9291         hardcode_libdir_flag_spec='-rpath $libdir'
9292       fi
9293       hardcode_libdir_separator=:
9294       ;;
9295
9296     sco3.2v5*)
9297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298       hardcode_shlibpath_var=no
9299       export_dynamic_flag_spec='${wl}-Bexport'
9300       runpath_var=LD_RUN_PATH
9301       hardcode_runpath_var=yes
9302       ;;
9303
9304     solaris*)
9305       no_undefined_flag=' -z text'
9306       if test "$GCC" = yes; then
9307         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9309           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9310       else
9311         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9313         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9314       fi
9315       hardcode_libdir_flag_spec='-R$libdir'
9316       hardcode_shlibpath_var=no
9317       case $host_os in
9318       solaris2.[0-5] | solaris2.[0-5].*) ;;
9319       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9320         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9321       esac
9322       link_all_deplibs=yes
9323       ;;
9324
9325     sunos4*)
9326       if test "x$host_vendor" = xsequent; then
9327         # Use $CC to link under sequent, because it throws in some extra .o
9328         # files that make .init and .fini sections work.
9329         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9330       else
9331         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9332       fi
9333       hardcode_libdir_flag_spec='-L$libdir'
9334       hardcode_direct=yes
9335       hardcode_minus_L=yes
9336       hardcode_shlibpath_var=no
9337       ;;
9338
9339     sysv4)
9340       case $host_vendor in
9341         sni)
9342           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343           hardcode_direct=yes # is this really true???
9344         ;;
9345         siemens)
9346           ## LD is ld it makes a PLAMLIB
9347           ## CC just makes a GrossModule.
9348           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9349           reload_cmds='$CC -r -o $output$reload_objs'
9350           hardcode_direct=no
9351         ;;
9352         motorola)
9353           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9354           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9355         ;;
9356       esac
9357       runpath_var='LD_RUN_PATH'
9358       hardcode_shlibpath_var=no
9359       ;;
9360
9361     sysv4.3*)
9362       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363       hardcode_shlibpath_var=no
9364       export_dynamic_flag_spec='-Bexport'
9365       ;;
9366
9367     sysv4*MP*)
9368       if test -d /usr/nec; then
9369         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370         hardcode_shlibpath_var=no
9371         runpath_var=LD_RUN_PATH
9372         hardcode_runpath_var=yes
9373         ld_shlibs=yes
9374       fi
9375       ;;
9376
9377     sysv4.2uw2*)
9378       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9379       hardcode_direct=yes
9380       hardcode_minus_L=no
9381       hardcode_shlibpath_var=no
9382       hardcode_runpath_var=yes
9383       runpath_var=LD_RUN_PATH
9384       ;;
9385
9386    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9387       no_undefined_flag='${wl}-z ${wl}text'
9388       if test "$GCC" = yes; then
9389         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390       else
9391         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392       fi
9393       runpath_var='LD_RUN_PATH'
9394       hardcode_shlibpath_var=no
9395       ;;
9396
9397     sysv5*)
9398       no_undefined_flag=' -z text'
9399       # $CC -shared without GNU ld will not create a library from C++
9400       # object files and a static libstdc++, better avoid it by now
9401       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9403                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9404       hardcode_libdir_flag_spec=
9405       hardcode_shlibpath_var=no
9406       runpath_var='LD_RUN_PATH'
9407       ;;
9408
9409     uts4*)
9410       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411       hardcode_libdir_flag_spec='-L$libdir'
9412       hardcode_shlibpath_var=no
9413       ;;
9414
9415     *)
9416       ld_shlibs=no
9417       ;;
9418     esac
9419   fi
9420
9421 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9422 echo "${ECHO_T}$ld_shlibs" >&6
9423 test "$ld_shlibs" = no && can_build_shared=no
9424
9425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9426 if test "$GCC" = yes; then
9427   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9428 fi
9429
9430 #
9431 # Do we need to explicitly link libc?
9432 #
9433 case "x$archive_cmds_need_lc" in
9434 x|xyes)
9435   # Assume -lc should be added
9436   archive_cmds_need_lc=yes
9437
9438   if test "$enable_shared" = yes && test "$GCC" = yes; then
9439     case $archive_cmds in
9440     *'~'*)
9441       # FIXME: we may have to deal with multi-command sequences.
9442       ;;
9443     '$CC '*)
9444       # Test whether the compiler implicitly links with -lc since on some
9445       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9446       # to ld, don't add -lc before -lgcc.
9447       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9448 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9449       $rm conftest*
9450       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9451
9452       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453   (eval $ac_compile) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } 2>conftest.err; then
9457         soname=conftest
9458         lib=conftest
9459         libobjs=conftest.$ac_objext
9460         deplibs=
9461         wl=$lt_prog_compiler_wl
9462         compiler_flags=-v
9463         linker_flags=-v
9464         verstring=
9465         output_objdir=.
9466         libname=conftest
9467         lt_save_allow_undefined_flag=$allow_undefined_flag
9468         allow_undefined_flag=
9469         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9470   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }
9474         then
9475           archive_cmds_need_lc=no
9476         else
9477           archive_cmds_need_lc=yes
9478         fi
9479         allow_undefined_flag=$lt_save_allow_undefined_flag
9480       else
9481         cat conftest.err 1>&5
9482       fi
9483       $rm conftest*
9484       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9485 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9486       ;;
9487     esac
9488   fi
9489   ;;
9490 esac
9491
9492 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9494 library_names_spec=
9495 libname_spec='lib$name'
9496 soname_spec=
9497 shrext_cmds=".so"
9498 postinstall_cmds=
9499 postuninstall_cmds=
9500 finish_cmds=
9501 finish_eval=
9502 shlibpath_var=
9503 shlibpath_overrides_runpath=unknown
9504 version_type=none
9505 dynamic_linker="$host_os ld.so"
9506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9507 if test "$GCC" = yes; then
9508   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9509   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9510     # if the path contains ";" then we assume it to be the separator
9511     # otherwise default to the standard path separator (i.e. ":") - it is
9512     # assumed that no part of a normal pathname contains ";" but that should
9513     # okay in the real world where ";" in dirpaths is itself problematic.
9514     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9515   else
9516     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9517   fi
9518 else
9519   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9520 fi
9521 need_lib_prefix=unknown
9522 hardcode_into_libs=no
9523
9524 # when you set need_version to no, make sure it does not cause -set_version
9525 # flags to be left without arguments
9526 need_version=unknown
9527
9528 case $host_os in
9529 aix3*)
9530   version_type=linux
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9532   shlibpath_var=LIBPATH
9533
9534   # AIX 3 has no versioning support, so we append a major version to the name.
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   ;;
9537
9538 aix4* | aix5*)
9539   version_type=linux
9540   need_lib_prefix=no
9541   need_version=no
9542   hardcode_into_libs=yes
9543   if test "$host_cpu" = ia64; then
9544     # AIX 5 supports IA64
9545     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9546     shlibpath_var=LD_LIBRARY_PATH
9547   else
9548     # With GCC up to 2.95.x, collect2 would create an import file
9549     # for dependence libraries.  The import file would start with
9550     # the line `#! .'.  This would cause the generated library to
9551     # depend on `.', always an invalid library.  This was fixed in
9552     # development snapshots of GCC prior to 3.0.
9553     case $host_os in
9554       aix4 | aix4.[01] | aix4.[01].*)
9555       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9556            echo ' yes '
9557            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9558         :
9559       else
9560         can_build_shared=no
9561       fi
9562       ;;
9563     esac
9564     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9565     # soname into executable. Probably we can add versioning support to
9566     # collect2, so additional links can be useful in future.
9567     if test "$aix_use_runtimelinking" = yes; then
9568       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9569       # instead of lib<name>.a to let people know that these are not
9570       # typical AIX shared libraries.
9571       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572     else
9573       # We preserve .a as extension for shared libraries through AIX4.2
9574       # and later when we are not doing run time linking.
9575       library_names_spec='${libname}${release}.a $libname.a'
9576       soname_spec='${libname}${release}${shared_ext}$major'
9577     fi
9578     shlibpath_var=LIBPATH
9579   fi
9580   ;;
9581
9582 amigaos*)
9583   library_names_spec='$libname.ixlibrary $libname.a'
9584   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9585   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'
9586   ;;
9587
9588 beos*)
9589   library_names_spec='${libname}${shared_ext}'
9590   dynamic_linker="$host_os ld.so"
9591   shlibpath_var=LIBRARY_PATH
9592   ;;
9593
9594 bsdi4*)
9595   version_type=linux
9596   need_version=no
9597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598   soname_spec='${libname}${release}${shared_ext}$major'
9599   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9602   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9603   # the default ld.so.conf also contains /usr/contrib/lib and
9604   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9605   # libtool to hard-code these into programs
9606   ;;
9607
9608 cygwin* | mingw* | pw32*)
9609   version_type=windows
9610   shrext_cmds=".dll"
9611   need_version=no
9612   need_lib_prefix=no
9613
9614   case $GCC,$host_os in
9615   yes,cygwin* | yes,mingw* | yes,pw32*)
9616     library_names_spec='$libname.dll.a'
9617     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9618     postinstall_cmds='base_file=`basename \${file}`~
9619       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9620       dldir=$destdir/`dirname \$dlpath`~
9621       test -d \$dldir || mkdir -p \$dldir~
9622       $install_prog $dir/$dlname \$dldir/$dlname'
9623     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9624       dlpath=$dir/\$dldll~
9625        $rm \$dlpath'
9626     shlibpath_overrides_runpath=yes
9627
9628     case $host_os in
9629     cygwin*)
9630       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9631       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9632       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9633       ;;
9634     mingw*)
9635       # MinGW DLLs use traditional 'lib' prefix
9636       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9637       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9638       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9639         # It is most probably a Windows format PATH printed by
9640         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9641         # path with ; separators, and with drive letters. We can handle the
9642         # drive letters (cygwin fileutils understands them), so leave them,
9643         # especially as we might pass files found there to a mingw objdump,
9644         # which wouldn't understand a cygwinified path. Ahh.
9645         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9646       else
9647         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9648       fi
9649       ;;
9650     pw32*)
9651       # pw32 DLLs use 'pw' prefix rather than 'lib'
9652       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9653       ;;
9654     esac
9655     ;;
9656
9657   *)
9658     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9659     ;;
9660   esac
9661   dynamic_linker='Win32 ld.exe'
9662   # FIXME: first we should search . and the directory the executable is in
9663   shlibpath_var=PATH
9664   ;;
9665
9666 darwin* | rhapsody*)
9667   dynamic_linker="$host_os dyld"
9668   version_type=darwin
9669   need_lib_prefix=no
9670   need_version=no
9671   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9672   soname_spec='${libname}${release}${major}$shared_ext'
9673   shlibpath_overrides_runpath=yes
9674   shlibpath_var=DYLD_LIBRARY_PATH
9675   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9676   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9677   if test "$GCC" = yes; then
9678     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"`
9679   else
9680     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9681   fi
9682   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9683   ;;
9684
9685 dgux*)
9686   version_type=linux
9687   need_lib_prefix=no
9688   need_version=no
9689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9690   soname_spec='${libname}${release}${shared_ext}$major'
9691   shlibpath_var=LD_LIBRARY_PATH
9692   ;;
9693
9694 freebsd1*)
9695   dynamic_linker=no
9696   ;;
9697
9698 kfreebsd*-gnu)
9699   version_type=linux
9700   need_lib_prefix=no
9701   need_version=no
9702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703   soname_spec='${libname}${release}${shared_ext}$major'
9704   shlibpath_var=LD_LIBRARY_PATH
9705   shlibpath_overrides_runpath=no
9706   hardcode_into_libs=yes
9707   dynamic_linker='GNU ld.so'
9708   ;;
9709
9710 freebsd*)
9711   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9712   version_type=freebsd-$objformat
9713   case $version_type in
9714     freebsd-elf*)
9715       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9716       need_version=no
9717       need_lib_prefix=no
9718       ;;
9719     freebsd-*)
9720       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9721       need_version=yes
9722       ;;
9723   esac
9724   shlibpath_var=LD_LIBRARY_PATH
9725   case $host_os in
9726   freebsd2*)
9727     shlibpath_overrides_runpath=yes
9728     ;;
9729   freebsd3.01* | freebsdelf3.01*)
9730     shlibpath_overrides_runpath=yes
9731     hardcode_into_libs=yes
9732     ;;
9733   *) # from 3.2 on
9734     shlibpath_overrides_runpath=no
9735     hardcode_into_libs=yes
9736     ;;
9737   esac
9738   ;;
9739
9740 gnu*)
9741   version_type=linux
9742   need_lib_prefix=no
9743   need_version=no
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   shlibpath_var=LD_LIBRARY_PATH
9747   hardcode_into_libs=yes
9748   ;;
9749
9750 hpux9* | hpux10* | hpux11*)
9751   # Give a soname corresponding to the major version so that dld.sl refuses to
9752   # link against other versions.
9753   version_type=sunos
9754   need_lib_prefix=no
9755   need_version=no
9756   case "$host_cpu" in
9757   ia64*)
9758     shrext_cmds='.so'
9759     hardcode_into_libs=yes
9760     dynamic_linker="$host_os dld.so"
9761     shlibpath_var=LD_LIBRARY_PATH
9762     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764     soname_spec='${libname}${release}${shared_ext}$major'
9765     if test "X$HPUX_IA64_MODE" = X32; then
9766       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9767     else
9768       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9769     fi
9770     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9771     ;;
9772    hppa*64*)
9773      shrext_cmds='.sl'
9774      hardcode_into_libs=yes
9775      dynamic_linker="$host_os dld.sl"
9776      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9777      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779      soname_spec='${libname}${release}${shared_ext}$major'
9780      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9781      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9782      ;;
9783    *)
9784     shrext_cmds='.sl'
9785     dynamic_linker="$host_os dld.sl"
9786     shlibpath_var=SHLIB_PATH
9787     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789     soname_spec='${libname}${release}${shared_ext}$major'
9790     ;;
9791   esac
9792   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9793   postinstall_cmds='chmod 555 $lib'
9794   ;;
9795
9796 irix5* | irix6* | nonstopux*)
9797   case $host_os in
9798     nonstopux*) version_type=nonstopux ;;
9799     *)
9800         if test "$lt_cv_prog_gnu_ld" = yes; then
9801                 version_type=linux
9802         else
9803                 version_type=irix
9804         fi ;;
9805   esac
9806   need_lib_prefix=no
9807   need_version=no
9808   soname_spec='${libname}${release}${shared_ext}$major'
9809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9810   case $host_os in
9811   irix5* | nonstopux*)
9812     libsuff= shlibsuff=
9813     ;;
9814   *)
9815     case $LD in # libtool.m4 will add one of these switches to LD
9816     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9817       libsuff= shlibsuff= libmagic=32-bit;;
9818     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9819       libsuff=32 shlibsuff=N32 libmagic=N32;;
9820     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9821       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9822     *) libsuff= shlibsuff= libmagic=never-match;;
9823     esac
9824     ;;
9825   esac
9826   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9827   shlibpath_overrides_runpath=no
9828   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9829   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9830   hardcode_into_libs=yes
9831   ;;
9832
9833 # No shared lib support for Linux oldld, aout, or coff.
9834 linux*oldld* | linux*aout* | linux*coff*)
9835   dynamic_linker=no
9836   ;;
9837
9838 # This must be Linux ELF.
9839 linux*)
9840   version_type=linux
9841   need_lib_prefix=no
9842   need_version=no
9843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844   soname_spec='${libname}${release}${shared_ext}$major'
9845   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9846   shlibpath_var=LD_LIBRARY_PATH
9847   shlibpath_overrides_runpath=no
9848   # This implies no fast_install, which is unacceptable.
9849   # Some rework will be needed to allow for fast_install
9850   # before this can be enabled.
9851   hardcode_into_libs=yes
9852
9853   # find out which ABI we are using
9854   libsuff=
9855   case "$host_cpu" in
9856   x86_64*|s390x*|powerpc64*)
9857     echo '#line 9857 "configure"' > conftest.$ac_ext
9858     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859   (eval $ac_compile) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; then
9863       case `/usr/bin/file conftest.$ac_objext` in
9864       *64-bit*)
9865         libsuff=64
9866         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9867         ;;
9868       esac
9869     fi
9870     rm -rf conftest*
9871     ;;
9872   esac
9873
9874   # Append ld.so.conf contents to the search path
9875   if test -f /etc/ld.so.conf; then
9876     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9877     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9878   fi
9879
9880   # We used to test for /lib/ld.so.1 and disable shared libraries on
9881   # powerpc, because MkLinux only supported shared libraries with the
9882   # GNU dynamic linker.  Since this was broken with cross compilers,
9883   # most powerpc-linux boxes support dynamic linking these days and
9884   # people can always --disable-shared, the test was removed, and we
9885   # assume the GNU/Linux dynamic linker is in use.
9886   dynamic_linker='GNU/Linux ld.so'
9887   ;;
9888
9889 knetbsd*-gnu)
9890   version_type=linux
9891   need_lib_prefix=no
9892   need_version=no
9893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9894   soname_spec='${libname}${release}${shared_ext}$major'
9895   shlibpath_var=LD_LIBRARY_PATH
9896   shlibpath_overrides_runpath=no
9897   hardcode_into_libs=yes
9898   dynamic_linker='GNU ld.so'
9899   ;;
9900
9901 netbsd*)
9902   version_type=sunos
9903   need_lib_prefix=no
9904   need_version=no
9905   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9907     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9908     dynamic_linker='NetBSD (a.out) ld.so'
9909   else
9910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9911     soname_spec='${libname}${release}${shared_ext}$major'
9912     dynamic_linker='NetBSD ld.elf_so'
9913   fi
9914   shlibpath_var=LD_LIBRARY_PATH
9915   shlibpath_overrides_runpath=yes
9916   hardcode_into_libs=yes
9917   ;;
9918
9919 newsos6)
9920   version_type=linux
9921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922   shlibpath_var=LD_LIBRARY_PATH
9923   shlibpath_overrides_runpath=yes
9924   ;;
9925
9926 nto-qnx*)
9927   version_type=linux
9928   need_lib_prefix=no
9929   need_version=no
9930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931   soname_spec='${libname}${release}${shared_ext}$major'
9932   shlibpath_var=LD_LIBRARY_PATH
9933   shlibpath_overrides_runpath=yes
9934   ;;
9935
9936 openbsd*)
9937   version_type=sunos
9938   need_lib_prefix=no
9939   need_version=yes
9940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942   shlibpath_var=LD_LIBRARY_PATH
9943   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9944     case $host_os in
9945       openbsd2.[89] | openbsd2.[89].*)
9946         shlibpath_overrides_runpath=no
9947         ;;
9948       *)
9949         shlibpath_overrides_runpath=yes
9950         ;;
9951       esac
9952   else
9953     shlibpath_overrides_runpath=yes
9954   fi
9955   ;;
9956
9957 os2*)
9958   libname_spec='$name'
9959   shrext_cmds=".dll"
9960   need_lib_prefix=no
9961   library_names_spec='$libname${shared_ext} $libname.a'
9962   dynamic_linker='OS/2 ld.exe'
9963   shlibpath_var=LIBPATH
9964   ;;
9965
9966 osf3* | osf4* | osf5*)
9967   version_type=osf
9968   need_lib_prefix=no
9969   need_version=no
9970   soname_spec='${libname}${release}${shared_ext}$major'
9971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972   shlibpath_var=LD_LIBRARY_PATH
9973   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9974   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9975   ;;
9976
9977 sco3.2v5*)
9978   version_type=osf
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   ;;
9983
9984 solaris*)
9985   version_type=linux
9986   need_lib_prefix=no
9987   need_version=no
9988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989   soname_spec='${libname}${release}${shared_ext}$major'
9990   shlibpath_var=LD_LIBRARY_PATH
9991   shlibpath_overrides_runpath=yes
9992   hardcode_into_libs=yes
9993   # ldd complains unless libraries are executable
9994   postinstall_cmds='chmod +x $lib'
9995   ;;
9996
9997 sunos4*)
9998   version_type=sunos
9999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10000   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10001   shlibpath_var=LD_LIBRARY_PATH
10002   shlibpath_overrides_runpath=yes
10003   if test "$with_gnu_ld" = yes; then
10004     need_lib_prefix=no
10005   fi
10006   need_version=yes
10007   ;;
10008
10009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10010   version_type=linux
10011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012   soname_spec='${libname}${release}${shared_ext}$major'
10013   shlibpath_var=LD_LIBRARY_PATH
10014   case $host_vendor in
10015     sni)
10016       shlibpath_overrides_runpath=no
10017       need_lib_prefix=no
10018       export_dynamic_flag_spec='${wl}-Blargedynsym'
10019       runpath_var=LD_RUN_PATH
10020       ;;
10021     siemens)
10022       need_lib_prefix=no
10023       ;;
10024     motorola)
10025       need_lib_prefix=no
10026       need_version=no
10027       shlibpath_overrides_runpath=no
10028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10029       ;;
10030   esac
10031   ;;
10032
10033 sysv4*MP*)
10034   if test -d /usr/nec ;then
10035     version_type=linux
10036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10037     soname_spec='$libname${shared_ext}.$major'
10038     shlibpath_var=LD_LIBRARY_PATH
10039   fi
10040   ;;
10041
10042 uts4*)
10043   version_type=linux
10044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045   soname_spec='${libname}${release}${shared_ext}$major'
10046   shlibpath_var=LD_LIBRARY_PATH
10047   ;;
10048
10049 *)
10050   dynamic_linker=no
10051   ;;
10052 esac
10053 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10054 echo "${ECHO_T}$dynamic_linker" >&6
10055 test "$dynamic_linker" = no && can_build_shared=no
10056
10057 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10058 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10059 hardcode_action=
10060 if test -n "$hardcode_libdir_flag_spec" || \
10061    test -n "$runpath_var " || \
10062    test "X$hardcode_automatic"="Xyes" ; then
10063
10064   # We can hardcode non-existant directories.
10065   if test "$hardcode_direct" != no &&
10066      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10067      # have to relink, otherwise we might link with an installed library
10068      # when we should be linking with a yet-to-be-installed one
10069      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10070      test "$hardcode_minus_L" != no; then
10071     # Linking always hardcodes the temporary library directory.
10072     hardcode_action=relink
10073   else
10074     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10075     hardcode_action=immediate
10076   fi
10077 else
10078   # We cannot hardcode anything, or else we can only hardcode existing
10079   # directories.
10080   hardcode_action=unsupported
10081 fi
10082 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10083 echo "${ECHO_T}$hardcode_action" >&6
10084
10085 if test "$hardcode_action" = relink; then
10086   # Fast installation is not supported
10087   enable_fast_install=no
10088 elif test "$shlibpath_overrides_runpath" = yes ||
10089      test "$enable_shared" = no; then
10090   # Fast installation is not necessary
10091   enable_fast_install=needless
10092 fi
10093
10094 striplib=
10095 old_striplib=
10096 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10097 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10098 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10099   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10100   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10101   echo "$as_me:$LINENO: result: yes" >&5
10102 echo "${ECHO_T}yes" >&6
10103 else
10104 # FIXME - insert some real tests, host_os isn't really good enough
10105   case $host_os in
10106    darwin*)
10107        if test -n "$STRIP" ; then
10108          striplib="$STRIP -x"
10109          echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10111        else
10112   echo "$as_me:$LINENO: result: no" >&5
10113 echo "${ECHO_T}no" >&6
10114 fi
10115        ;;
10116    *)
10117   echo "$as_me:$LINENO: result: no" >&5
10118 echo "${ECHO_T}no" >&6
10119     ;;
10120   esac
10121 fi
10122
10123 if test "x$enable_dlopen" != xyes; then
10124   enable_dlopen=unknown
10125   enable_dlopen_self=unknown
10126   enable_dlopen_self_static=unknown
10127 else
10128   lt_cv_dlopen=no
10129   lt_cv_dlopen_libs=
10130
10131   case $host_os in
10132   beos*)
10133     lt_cv_dlopen="load_add_on"
10134     lt_cv_dlopen_libs=
10135     lt_cv_dlopen_self=yes
10136     ;;
10137
10138   mingw* | pw32*)
10139     lt_cv_dlopen="LoadLibrary"
10140     lt_cv_dlopen_libs=
10141    ;;
10142
10143   cygwin*)
10144     lt_cv_dlopen="dlopen"
10145     lt_cv_dlopen_libs=
10146    ;;
10147
10148   darwin*)
10149   # if libdl is installed we need to link against it
10150     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-ldl  $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 /* Override any gcc2 internal prototype to avoid an error.  */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 /* We use char because int might match the return type of a gcc2
10169    builtin and then its argument prototype would still apply.  */
10170 char dlopen ();
10171 int
10172 main ()
10173 {
10174 dlopen ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181   (eval $ac_link) 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -z "$ac_c_werror_flag"
10189                          || test ! -s conftest.err'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest$ac_exeext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_cv_lib_dl_dlopen=yes
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_cv_lib_dl_dlopen=no
10207 fi
10208 rm -f conftest.err conftest.$ac_objext \
10209       conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10211 fi
10212 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10214 if test $ac_cv_lib_dl_dlopen = yes; then
10215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10216 else
10217
10218     lt_cv_dlopen="dyld"
10219     lt_cv_dlopen_libs=
10220     lt_cv_dlopen_self=yes
10221
10222 fi
10223
10224    ;;
10225
10226   *)
10227     echo "$as_me:$LINENO: checking for shl_load" >&5
10228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10229 if test "${ac_cv_func_shl_load+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10240 #define shl_load innocuous_shl_load
10241
10242 /* System header to define __stub macros and hopefully few prototypes,
10243     which can conflict with char shl_load (); below.
10244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10245     <limits.h> exists even on freestanding compilers.  */
10246
10247 #ifdef __STDC__
10248 # include <limits.h>
10249 #else
10250 # include <assert.h>
10251 #endif
10252
10253 #undef shl_load
10254
10255 /* Override any gcc2 internal prototype to avoid an error.  */
10256 #ifdef __cplusplus
10257 extern "C"
10258 {
10259 #endif
10260 /* We use char because int might match the return type of a gcc2
10261    builtin and then its argument prototype would still apply.  */
10262 char shl_load ();
10263 /* The GNU C library defines this for functions which it implements
10264     to always fail with ENOSYS.  Some functions are actually named
10265     something starting with __ and the normal name is an alias.  */
10266 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10267 choke me
10268 #else
10269 char (*f) () = shl_load;
10270 #endif
10271 #ifdef __cplusplus
10272 }
10273 #endif
10274
10275 int
10276 main ()
10277 {
10278 return f != shl_load;
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285   (eval $ac_link) 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } &&
10292          { ac_try='test -z "$ac_c_werror_flag"
10293                          || test ! -s conftest.err'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; } &&
10299          { ac_try='test -s conftest$ac_exeext'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_func_shl_load=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310 ac_cv_func_shl_load=no
10311 fi
10312 rm -f conftest.err conftest.$ac_objext \
10313       conftest$ac_exeext conftest.$ac_ext
10314 fi
10315 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10316 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10317 if test $ac_cv_func_shl_load = yes; then
10318   lt_cv_dlopen="shl_load"
10319 else
10320   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10321 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10322 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-ldld  $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333
10334 /* Override any gcc2 internal prototype to avoid an error.  */
10335 #ifdef __cplusplus
10336 extern "C"
10337 #endif
10338 /* We use char because int might match the return type of a gcc2
10339    builtin and then its argument prototype would still apply.  */
10340 char shl_load ();
10341 int
10342 main ()
10343 {
10344 shl_load ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>conftest.er1
10352   ac_status=$?
10353   grep -v '^ *+' conftest.er1 >conftest.err
10354   rm -f conftest.er1
10355   cat conftest.err >&5
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } &&
10358          { ac_try='test -z "$ac_c_werror_flag"
10359                          || test ! -s conftest.err'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; } &&
10365          { ac_try='test -s conftest$ac_exeext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_lib_dld_shl_load=yes
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_dld_shl_load=no
10377 fi
10378 rm -f conftest.err conftest.$ac_objext \
10379       conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10383 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10384 if test $ac_cv_lib_dld_shl_load = yes; then
10385   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10386 else
10387   echo "$as_me:$LINENO: checking for dlopen" >&5
10388 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10389 if test "${ac_cv_func_dlopen+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10400 #define dlopen innocuous_dlopen
10401
10402 /* System header to define __stub macros and hopefully few prototypes,
10403     which can conflict with char dlopen (); below.
10404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10405     <limits.h> exists even on freestanding compilers.  */
10406
10407 #ifdef __STDC__
10408 # include <limits.h>
10409 #else
10410 # include <assert.h>
10411 #endif
10412
10413 #undef dlopen
10414
10415 /* Override any gcc2 internal prototype to avoid an error.  */
10416 #ifdef __cplusplus
10417 extern "C"
10418 {
10419 #endif
10420 /* We use char because int might match the return type of a gcc2
10421    builtin and then its argument prototype would still apply.  */
10422 char dlopen ();
10423 /* The GNU C library defines this for functions which it implements
10424     to always fail with ENOSYS.  Some functions are actually named
10425     something starting with __ and the normal name is an alias.  */
10426 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10427 choke me
10428 #else
10429 char (*f) () = dlopen;
10430 #endif
10431 #ifdef __cplusplus
10432 }
10433 #endif
10434
10435 int
10436 main ()
10437 {
10438 return f != dlopen;
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445   (eval $ac_link) 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } &&
10452          { ac_try='test -z "$ac_c_werror_flag"
10453                          || test ! -s conftest.err'
10454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455   (eval $ac_try) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; } &&
10459          { ac_try='test -s conftest$ac_exeext'
10460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461   (eval $ac_try) 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; }; then
10465   ac_cv_func_dlopen=yes
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470 ac_cv_func_dlopen=no
10471 fi
10472 rm -f conftest.err conftest.$ac_objext \
10473       conftest$ac_exeext conftest.$ac_ext
10474 fi
10475 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10476 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10477 if test $ac_cv_func_dlopen = yes; then
10478   lt_cv_dlopen="dlopen"
10479 else
10480   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   ac_check_lib_save_LIBS=$LIBS
10486 LIBS="-ldl  $LIBS"
10487 cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493
10494 /* Override any gcc2 internal prototype to avoid an error.  */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 /* We use char because int might match the return type of a gcc2
10499    builtin and then its argument prototype would still apply.  */
10500 char dlopen ();
10501 int
10502 main ()
10503 {
10504 dlopen ();
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511   (eval $ac_link) 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -z "$ac_c_werror_flag"
10519                          || test ! -s conftest.err'
10520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521   (eval $ac_try) 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; } &&
10525          { ac_try='test -s conftest$ac_exeext'
10526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527   (eval $ac_try) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; }; then
10531   ac_cv_lib_dl_dlopen=yes
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536 ac_cv_lib_dl_dlopen=no
10537 fi
10538 rm -f conftest.err conftest.$ac_objext \
10539       conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10541 fi
10542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10544 if test $ac_cv_lib_dl_dlopen = yes; then
10545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10546 else
10547   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10548 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10549 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   ac_check_lib_save_LIBS=$LIBS
10553 LIBS="-lsvld  $LIBS"
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h.  */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h.  */
10560
10561 /* Override any gcc2 internal prototype to avoid an error.  */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 /* We use char because int might match the return type of a gcc2
10566    builtin and then its argument prototype would still apply.  */
10567 char dlopen ();
10568 int
10569 main ()
10570 {
10571 dlopen ();
10572   ;
10573   return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext conftest$ac_exeext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10578   (eval $ac_link) 2>conftest.er1
10579   ac_status=$?
10580   grep -v '^ *+' conftest.er1 >conftest.err
10581   rm -f conftest.er1
10582   cat conftest.err >&5
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } &&
10585          { ac_try='test -z "$ac_c_werror_flag"
10586                          || test ! -s conftest.err'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; } &&
10592          { ac_try='test -s conftest$ac_exeext'
10593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594   (eval $ac_try) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; }; then
10598   ac_cv_lib_svld_dlopen=yes
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 ac_cv_lib_svld_dlopen=no
10604 fi
10605 rm -f conftest.err conftest.$ac_objext \
10606       conftest$ac_exeext conftest.$ac_ext
10607 LIBS=$ac_check_lib_save_LIBS
10608 fi
10609 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10610 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10611 if test $ac_cv_lib_svld_dlopen = yes; then
10612   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10613 else
10614   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10615 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10616 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10617   echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619   ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-ldld  $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627
10628 /* Override any gcc2 internal prototype to avoid an error.  */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 /* We use char because int might match the return type of a gcc2
10633    builtin and then its argument prototype would still apply.  */
10634 char dld_link ();
10635 int
10636 main ()
10637 {
10638 dld_link ();
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645   (eval $ac_link) 2>conftest.er1
10646   ac_status=$?
10647   grep -v '^ *+' conftest.er1 >conftest.err
10648   rm -f conftest.er1
10649   cat conftest.err >&5
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } &&
10652          { ac_try='test -z "$ac_c_werror_flag"
10653                          || test ! -s conftest.err'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; } &&
10659          { ac_try='test -s conftest$ac_exeext'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; }; then
10665   ac_cv_lib_dld_dld_link=yes
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_cv_lib_dld_dld_link=no
10671 fi
10672 rm -f conftest.err conftest.$ac_objext \
10673       conftest$ac_exeext conftest.$ac_ext
10674 LIBS=$ac_check_lib_save_LIBS
10675 fi
10676 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10677 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10678 if test $ac_cv_lib_dld_dld_link = yes; then
10679   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10680 fi
10681
10682
10683 fi
10684
10685
10686 fi
10687
10688
10689 fi
10690
10691
10692 fi
10693
10694
10695 fi
10696
10697     ;;
10698   esac
10699
10700   if test "x$lt_cv_dlopen" != xno; then
10701     enable_dlopen=yes
10702   else
10703     enable_dlopen=no
10704   fi
10705
10706   case $lt_cv_dlopen in
10707   dlopen)
10708     save_CPPFLAGS="$CPPFLAGS"
10709     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10710
10711     save_LDFLAGS="$LDFLAGS"
10712     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10713
10714     save_LIBS="$LIBS"
10715     LIBS="$lt_cv_dlopen_libs $LIBS"
10716
10717     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10718 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10719 if test "${lt_cv_dlopen_self+set}" = set; then
10720   echo $ECHO_N "(cached) $ECHO_C" >&6
10721 else
10722           if test "$cross_compiling" = yes; then :
10723   lt_cv_dlopen_self=cross
10724 else
10725   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10726   lt_status=$lt_dlunknown
10727   cat > conftest.$ac_ext <<EOF
10728 #line 10728 "configure"
10729 #include "confdefs.h"
10730
10731 #if HAVE_DLFCN_H
10732 #include <dlfcn.h>
10733 #endif
10734
10735 #include <stdio.h>
10736
10737 #ifdef RTLD_GLOBAL
10738 #  define LT_DLGLOBAL           RTLD_GLOBAL
10739 #else
10740 #  ifdef DL_GLOBAL
10741 #    define LT_DLGLOBAL         DL_GLOBAL
10742 #  else
10743 #    define LT_DLGLOBAL         0
10744 #  endif
10745 #endif
10746
10747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10748    find out it does not work in some platform. */
10749 #ifndef LT_DLLAZY_OR_NOW
10750 #  ifdef RTLD_LAZY
10751 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10752 #  else
10753 #    ifdef DL_LAZY
10754 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10755 #    else
10756 #      ifdef RTLD_NOW
10757 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10758 #      else
10759 #        ifdef DL_NOW
10760 #          define LT_DLLAZY_OR_NOW      DL_NOW
10761 #        else
10762 #          define LT_DLLAZY_OR_NOW      0
10763 #        endif
10764 #      endif
10765 #    endif
10766 #  endif
10767 #endif
10768
10769 #ifdef __cplusplus
10770 extern "C" void exit (int);
10771 #endif
10772
10773 void fnord() { int i=42;}
10774 int main ()
10775 {
10776   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10777   int status = $lt_dlunknown;
10778
10779   if (self)
10780     {
10781       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10782       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10783       /* dlclose (self); */
10784     }
10785
10786     exit (status);
10787 }
10788 EOF
10789   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790   (eval $ac_link) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10794     (./conftest; exit; ) 2>/dev/null
10795     lt_status=$?
10796     case x$lt_status in
10797       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10798       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10799       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10800     esac
10801   else :
10802     # compilation failed
10803     lt_cv_dlopen_self=no
10804   fi
10805 fi
10806 rm -fr conftest*
10807
10808
10809 fi
10810 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10811 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10812
10813     if test "x$lt_cv_dlopen_self" = xyes; then
10814       LDFLAGS="$LDFLAGS $link_static_flag"
10815       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10816 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10817 if test "${lt_cv_dlopen_self_static+set}" = set; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820           if test "$cross_compiling" = yes; then :
10821   lt_cv_dlopen_self_static=cross
10822 else
10823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10824   lt_status=$lt_dlunknown
10825   cat > conftest.$ac_ext <<EOF
10826 #line 10826 "configure"
10827 #include "confdefs.h"
10828
10829 #if HAVE_DLFCN_H
10830 #include <dlfcn.h>
10831 #endif
10832
10833 #include <stdio.h>
10834
10835 #ifdef RTLD_GLOBAL
10836 #  define LT_DLGLOBAL           RTLD_GLOBAL
10837 #else
10838 #  ifdef DL_GLOBAL
10839 #    define LT_DLGLOBAL         DL_GLOBAL
10840 #  else
10841 #    define LT_DLGLOBAL         0
10842 #  endif
10843 #endif
10844
10845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10846    find out it does not work in some platform. */
10847 #ifndef LT_DLLAZY_OR_NOW
10848 #  ifdef RTLD_LAZY
10849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10850 #  else
10851 #    ifdef DL_LAZY
10852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10853 #    else
10854 #      ifdef RTLD_NOW
10855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10856 #      else
10857 #        ifdef DL_NOW
10858 #          define LT_DLLAZY_OR_NOW      DL_NOW
10859 #        else
10860 #          define LT_DLLAZY_OR_NOW      0
10861 #        endif
10862 #      endif
10863 #    endif
10864 #  endif
10865 #endif
10866
10867 #ifdef __cplusplus
10868 extern "C" void exit (int);
10869 #endif
10870
10871 void fnord() { int i=42;}
10872 int main ()
10873 {
10874   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10875   int status = $lt_dlunknown;
10876
10877   if (self)
10878     {
10879       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10880       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10881       /* dlclose (self); */
10882     }
10883
10884     exit (status);
10885 }
10886 EOF
10887   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888   (eval $ac_link) 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10892     (./conftest; exit; ) 2>/dev/null
10893     lt_status=$?
10894     case x$lt_status in
10895       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10896       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10897       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10898     esac
10899   else :
10900     # compilation failed
10901     lt_cv_dlopen_self_static=no
10902   fi
10903 fi
10904 rm -fr conftest*
10905
10906
10907 fi
10908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10909 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10910     fi
10911
10912     CPPFLAGS="$save_CPPFLAGS"
10913     LDFLAGS="$save_LDFLAGS"
10914     LIBS="$save_LIBS"
10915     ;;
10916   esac
10917
10918   case $lt_cv_dlopen_self in
10919   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10920   *) enable_dlopen_self=unknown ;;
10921   esac
10922
10923   case $lt_cv_dlopen_self_static in
10924   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10925   *) enable_dlopen_self_static=unknown ;;
10926   esac
10927 fi
10928
10929
10930 # Report which librarie types wil actually be built
10931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10934 echo "${ECHO_T}$can_build_shared" >&6
10935
10936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10938 test "$can_build_shared" = "no" && enable_shared=no
10939
10940 # On AIX, shared libraries and static libraries use the same namespace, and
10941 # are all built from PIC.
10942 case "$host_os" in
10943 aix3*)
10944   test "$enable_shared" = yes && enable_static=no
10945   if test -n "$RANLIB"; then
10946     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10947     postinstall_cmds='$RANLIB $lib'
10948   fi
10949   ;;
10950
10951 aix4* | aix5*)
10952   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10953     test "$enable_shared" = yes && enable_static=no
10954   fi
10955   ;;
10956   darwin* | rhapsody*)
10957   if test "$GCC" = yes; then
10958     archive_cmds_need_lc=no
10959     case "$host_os" in
10960     rhapsody* | darwin1.[012])
10961       allow_undefined_flag='-undefined suppress'
10962       ;;
10963     *) # Darwin 1.3 on
10964       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10965         allow_undefined_flag='-flat_namespace -undefined suppress'
10966       else
10967         case ${MACOSX_DEPLOYMENT_TARGET} in
10968           10.[012])
10969             allow_undefined_flag='-flat_namespace -undefined suppress'
10970             ;;
10971           10.*)
10972             allow_undefined_flag='-undefined dynamic_lookup'
10973             ;;
10974         esac
10975       fi
10976       ;;
10977     esac
10978     output_verbose_link_cmd='echo'
10979     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10980     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10981     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10982     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}'
10983     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}'
10984     hardcode_direct=no
10985     hardcode_automatic=yes
10986     hardcode_shlibpath_var=unsupported
10987     whole_archive_flag_spec='-all_load $convenience'
10988     link_all_deplibs=yes
10989   else
10990     ld_shlibs=no
10991   fi
10992     ;;
10993 esac
10994 echo "$as_me:$LINENO: result: $enable_shared" >&5
10995 echo "${ECHO_T}$enable_shared" >&6
10996
10997 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10998 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10999 # Make sure either enable_shared or enable_static is yes.
11000 test "$enable_shared" = yes || enable_static=yes
11001 echo "$as_me:$LINENO: result: $enable_static" >&5
11002 echo "${ECHO_T}$enable_static" >&6
11003
11004 # The else clause should only fire when bootstrapping the
11005 # libtool distribution, otherwise you forgot to ship ltmain.sh
11006 # with your package, and you will get complaints that there are
11007 # no rules to generate ltmain.sh.
11008 if test -f "$ltmain"; then
11009   # See if we are running on zsh, and set the options which allow our commands through
11010   # without removal of \ escapes.
11011   if test -n "${ZSH_VERSION+set}" ; then
11012     setopt NO_GLOB_SUBST
11013   fi
11014   # Now quote all the things that may contain metacharacters while being
11015   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11016   # variables and quote the copies for generation of the libtool script.
11017   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11018     SED SHELL STRIP \
11019     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11020     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11021     deplibs_check_method reload_flag reload_cmds need_locks \
11022     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11023     lt_cv_sys_global_symbol_to_c_name_address \
11024     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11025     old_postinstall_cmds old_postuninstall_cmds \
11026     compiler \
11027     CC \
11028     LD \
11029     lt_prog_compiler_wl \
11030     lt_prog_compiler_pic \
11031     lt_prog_compiler_static \
11032     lt_prog_compiler_no_builtin_flag \
11033     export_dynamic_flag_spec \
11034     thread_safe_flag_spec \
11035     whole_archive_flag_spec \
11036     enable_shared_with_static_runtimes \
11037     old_archive_cmds \
11038     old_archive_from_new_cmds \
11039     predep_objects \
11040     postdep_objects \
11041     predeps \
11042     postdeps \
11043     compiler_lib_search_path \
11044     archive_cmds \
11045     archive_expsym_cmds \
11046     postinstall_cmds \
11047     postuninstall_cmds \
11048     old_archive_from_expsyms_cmds \
11049     allow_undefined_flag \
11050     no_undefined_flag \
11051     export_symbols_cmds \
11052     hardcode_libdir_flag_spec \
11053     hardcode_libdir_flag_spec_ld \
11054     hardcode_libdir_separator \
11055     hardcode_automatic \
11056     module_cmds \
11057     module_expsym_cmds \
11058     lt_cv_prog_compiler_c_o \
11059     exclude_expsyms \
11060     include_expsyms; do
11061
11062     case $var in
11063     old_archive_cmds | \
11064     old_archive_from_new_cmds | \
11065     archive_cmds | \
11066     archive_expsym_cmds | \
11067     module_cmds | \
11068     module_expsym_cmds | \
11069     old_archive_from_expsyms_cmds | \
11070     export_symbols_cmds | \
11071     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11072     postinstall_cmds | postuninstall_cmds | \
11073     old_postinstall_cmds | old_postuninstall_cmds | \
11074     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11075       # Double-quote double-evaled strings.
11076       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11077       ;;
11078     *)
11079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11080       ;;
11081     esac
11082   done
11083
11084   case $lt_echo in
11085   *'\$0 --fallback-echo"')
11086     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11087     ;;
11088   esac
11089
11090 cfgfile="${ofile}T"
11091   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11092   $rm -f "$cfgfile"
11093   { echo "$as_me:$LINENO: creating $ofile" >&5
11094 echo "$as_me: creating $ofile" >&6;}
11095
11096   cat <<__EOF__ >> "$cfgfile"
11097 #! $SHELL
11098
11099 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11100 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11101 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11102 #
11103 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11104 # Free Software Foundation, Inc.
11105 #
11106 # This file is part of GNU Libtool:
11107 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11108 #
11109 # This program is free software; you can redistribute it and/or modify
11110 # it under the terms of the GNU General Public License as published by
11111 # the Free Software Foundation; either version 2 of the License, or
11112 # (at your option) any later version.
11113 #
11114 # This program is distributed in the hope that it will be useful, but
11115 # WITHOUT ANY WARRANTY; without even the implied warranty of
11116 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11117 # General Public License for more details.
11118 #
11119 # You should have received a copy of the GNU General Public License
11120 # along with this program; if not, write to the Free Software
11121 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11122 #
11123 # As a special exception to the GNU General Public License, if you
11124 # distribute this file as part of a program that contains a
11125 # configuration script generated by Autoconf, you may include it under
11126 # the same distribution terms that you use for the rest of that program.
11127
11128 # A sed program that does not truncate output.
11129 SED=$lt_SED
11130
11131 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11132 Xsed="$SED -e s/^X//"
11133
11134 # The HP-UX ksh and POSIX shell print the target directory to stdout
11135 # if CDPATH is set.
11136 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11137
11138 # The names of the tagged configurations supported by this script.
11139 available_tags=
11140
11141 # ### BEGIN LIBTOOL CONFIG
11142
11143 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11144
11145 # Shell to use when invoking shell scripts.
11146 SHELL=$lt_SHELL
11147
11148 # Whether or not to build shared libraries.
11149 build_libtool_libs=$enable_shared
11150
11151 # Whether or not to build static libraries.
11152 build_old_libs=$enable_static
11153
11154 # Whether or not to add -lc for building shared libraries.
11155 build_libtool_need_lc=$archive_cmds_need_lc
11156
11157 # Whether or not to disallow shared libs when runtime libs are static
11158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11159
11160 # Whether or not to optimize for fast installation.
11161 fast_install=$enable_fast_install
11162
11163 # The host system.
11164 host_alias=$host_alias
11165 host=$host
11166
11167 # An echo program that does not interpret backslashes.
11168 echo=$lt_echo
11169
11170 # The archiver.
11171 AR=$lt_AR
11172 AR_FLAGS=$lt_AR_FLAGS
11173
11174 # A C compiler.
11175 LTCC=$lt_LTCC
11176
11177 # A language-specific compiler.
11178 CC=$lt_compiler
11179
11180 # Is the compiler the GNU C compiler?
11181 with_gcc=$GCC
11182
11183 # An ERE matcher.
11184 EGREP=$lt_EGREP
11185
11186 # The linker used to build libraries.
11187 LD=$lt_LD
11188
11189 # Whether we need hard or soft links.
11190 LN_S=$lt_LN_S
11191
11192 # A BSD-compatible nm program.
11193 NM=$lt_NM
11194
11195 # A symbol stripping program
11196 STRIP=$lt_STRIP
11197
11198 # Used to examine libraries when file_magic_cmd begins "file"
11199 MAGIC_CMD=$MAGIC_CMD
11200
11201 # Used on cygwin: DLL creation program.
11202 DLLTOOL="$DLLTOOL"
11203
11204 # Used on cygwin: object dumper.
11205 OBJDUMP="$OBJDUMP"
11206
11207 # Used on cygwin: assembler.
11208 AS="$AS"
11209
11210 # The name of the directory that contains temporary libtool files.
11211 objdir=$objdir
11212
11213 # How to create reloadable object files.
11214 reload_flag=$lt_reload_flag
11215 reload_cmds=$lt_reload_cmds
11216
11217 # How to pass a linker flag through the compiler.
11218 wl=$lt_lt_prog_compiler_wl
11219
11220 # Object file suffix (normally "o").
11221 objext="$ac_objext"
11222
11223 # Old archive suffix (normally "a").
11224 libext="$libext"
11225
11226 # Shared library suffix (normally ".so").
11227 shrext_cmds='$shrext_cmds'
11228
11229 # Executable file suffix (normally "").
11230 exeext="$exeext"
11231
11232 # Additional compiler flags for building library objects.
11233 pic_flag=$lt_lt_prog_compiler_pic
11234 pic_mode=$pic_mode
11235
11236 # What is the maximum length of a command?
11237 max_cmd_len=$lt_cv_sys_max_cmd_len
11238
11239 # Does compiler simultaneously support -c and -o options?
11240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11241
11242 # Must we lock files when doing compilation ?
11243 need_locks=$lt_need_locks
11244
11245 # Do we need the lib prefix for modules?
11246 need_lib_prefix=$need_lib_prefix
11247
11248 # Do we need a version for libraries?
11249 need_version=$need_version
11250
11251 # Whether dlopen is supported.
11252 dlopen_support=$enable_dlopen
11253
11254 # Whether dlopen of programs is supported.
11255 dlopen_self=$enable_dlopen_self
11256
11257 # Whether dlopen of statically linked programs is supported.
11258 dlopen_self_static=$enable_dlopen_self_static
11259
11260 # Compiler flag to prevent dynamic linking.
11261 link_static_flag=$lt_lt_prog_compiler_static
11262
11263 # Compiler flag to turn off builtin functions.
11264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11265
11266 # Compiler flag to allow reflexive dlopens.
11267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11268
11269 # Compiler flag to generate shared objects directly from archives.
11270 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11271
11272 # Compiler flag to generate thread-safe objects.
11273 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11274
11275 # Library versioning type.
11276 version_type=$version_type
11277
11278 # Format of library name prefix.
11279 libname_spec=$lt_libname_spec
11280
11281 # List of archive names.  First name is the real one, the rest are links.
11282 # The last name is the one that the linker finds with -lNAME.
11283 library_names_spec=$lt_library_names_spec
11284
11285 # The coded name of the library, if different from the real name.
11286 soname_spec=$lt_soname_spec
11287
11288 # Commands used to build and install an old-style archive.
11289 RANLIB=$lt_RANLIB
11290 old_archive_cmds=$lt_old_archive_cmds
11291 old_postinstall_cmds=$lt_old_postinstall_cmds
11292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11293
11294 # Create an old-style archive from a shared archive.
11295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11296
11297 # Create a temporary old-style archive to link instead of a shared archive.
11298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11299
11300 # Commands used to build and install a shared archive.
11301 archive_cmds=$lt_archive_cmds
11302 archive_expsym_cmds=$lt_archive_expsym_cmds
11303 postinstall_cmds=$lt_postinstall_cmds
11304 postuninstall_cmds=$lt_postuninstall_cmds
11305
11306 # Commands used to build a loadable module (assumed same as above if empty)
11307 module_cmds=$lt_module_cmds
11308 module_expsym_cmds=$lt_module_expsym_cmds
11309
11310 # Commands to strip libraries.
11311 old_striplib=$lt_old_striplib
11312 striplib=$lt_striplib
11313
11314 # Dependencies to place before the objects being linked to create a
11315 # shared library.
11316 predep_objects=$lt_predep_objects
11317
11318 # Dependencies to place after the objects being linked to create a
11319 # shared library.
11320 postdep_objects=$lt_postdep_objects
11321
11322 # Dependencies to place before the objects being linked to create a
11323 # shared library.
11324 predeps=$lt_predeps
11325
11326 # Dependencies to place after the objects being linked to create a
11327 # shared library.
11328 postdeps=$lt_postdeps
11329
11330 # The library search path used internally by the compiler when linking
11331 # a shared library.
11332 compiler_lib_search_path=$lt_compiler_lib_search_path
11333
11334 # Method to check whether dependent libraries are shared objects.
11335 deplibs_check_method=$lt_deplibs_check_method
11336
11337 # Command to use when deplibs_check_method == file_magic.
11338 file_magic_cmd=$lt_file_magic_cmd
11339
11340 # Flag that allows shared libraries with undefined symbols to be built.
11341 allow_undefined_flag=$lt_allow_undefined_flag
11342
11343 # Flag that forces no undefined symbols.
11344 no_undefined_flag=$lt_no_undefined_flag
11345
11346 # Commands used to finish a libtool library installation in a directory.
11347 finish_cmds=$lt_finish_cmds
11348
11349 # Same as above, but a single script fragment to be evaled but not shown.
11350 finish_eval=$lt_finish_eval
11351
11352 # Take the output of nm and produce a listing of raw symbols and C names.
11353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11354
11355 # Transform the output of nm in a proper C declaration
11356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11357
11358 # Transform the output of nm in a C name address pair
11359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11360
11361 # This is the shared library runtime path variable.
11362 runpath_var=$runpath_var
11363
11364 # This is the shared library path variable.
11365 shlibpath_var=$shlibpath_var
11366
11367 # Is shlibpath searched before the hard-coded library search path?
11368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11369
11370 # How to hardcode a shared library path into an executable.
11371 hardcode_action=$hardcode_action
11372
11373 # Whether we should hardcode library paths into libraries.
11374 hardcode_into_libs=$hardcode_into_libs
11375
11376 # Flag to hardcode \$libdir into a binary during linking.
11377 # This must work even if \$libdir does not exist.
11378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11379
11380 # If ld is used when linking, flag to hardcode \$libdir into
11381 # a binary during linking. This must work even if \$libdir does
11382 # not exist.
11383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11384
11385 # Whether we need a single -rpath flag with a separated argument.
11386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11387
11388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11389 # resulting binary.
11390 hardcode_direct=$hardcode_direct
11391
11392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11393 # resulting binary.
11394 hardcode_minus_L=$hardcode_minus_L
11395
11396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11397 # the resulting binary.
11398 hardcode_shlibpath_var=$hardcode_shlibpath_var
11399
11400 # Set to yes if building a shared library automatically hardcodes DIR into the library
11401 # and all subsequent libraries and executables linked against it.
11402 hardcode_automatic=$hardcode_automatic
11403
11404 # Variables whose values should be saved in libtool wrapper scripts and
11405 # restored at relink time.
11406 variables_saved_for_relink="$variables_saved_for_relink"
11407
11408 # Whether libtool must link a program against all its dependency libraries.
11409 link_all_deplibs=$link_all_deplibs
11410
11411 # Compile-time system search path for libraries
11412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11413
11414 # Run-time system search path for libraries
11415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11416
11417 # Fix the shell variable \$srcfile for the compiler.
11418 fix_srcfile_path="$fix_srcfile_path"
11419
11420 # Set to yes if exported symbols are required.
11421 always_export_symbols=$always_export_symbols
11422
11423 # The commands to list exported symbols.
11424 export_symbols_cmds=$lt_export_symbols_cmds
11425
11426 # The commands to extract the exported symbol list from a shared archive.
11427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11428
11429 # Symbols that should not be listed in the preloaded symbols.
11430 exclude_expsyms=$lt_exclude_expsyms
11431
11432 # Symbols that must always be exported.
11433 include_expsyms=$lt_include_expsyms
11434
11435 # ### END LIBTOOL CONFIG
11436
11437 __EOF__
11438
11439
11440   case $host_os in
11441   aix3*)
11442     cat <<\EOF >> "$cfgfile"
11443
11444 # AIX sometimes has problems with the GCC collect2 program.  For some
11445 # reason, if we set the COLLECT_NAMES environment variable, the problems
11446 # vanish in a puff of smoke.
11447 if test "X${COLLECT_NAMES+set}" != Xset; then
11448   COLLECT_NAMES=
11449   export COLLECT_NAMES
11450 fi
11451 EOF
11452     ;;
11453   esac
11454
11455   # We use sed instead of cat because bash on DJGPP gets confused if
11456   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11457   # text mode, it properly converts lines to CR/LF.  This bash problem
11458   # is reportedly fixed, but why not run on old versions too?
11459   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11460
11461   mv -f "$cfgfile" "$ofile" || \
11462     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11463   chmod +x "$ofile"
11464
11465 else
11466   # If there is no Makefile yet, we rely on a make rule to execute
11467   # `config.status --recheck' to rerun these tests and create the
11468   # libtool script then.
11469   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11470   if test -f "$ltmain_in"; then
11471     test -f Makefile && make "$ltmain"
11472   fi
11473 fi
11474
11475
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481
11482 CC="$lt_save_CC"
11483
11484
11485 # Check whether --with-tags or --without-tags was given.
11486 if test "${with_tags+set}" = set; then
11487   withval="$with_tags"
11488   tagnames="$withval"
11489 fi;
11490
11491 if test -f "$ltmain" && test -n "$tagnames"; then
11492   if test ! -f "${ofile}"; then
11493     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11494 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11495   fi
11496
11497   if test -z "$LTCC"; then
11498     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11499     if test -z "$LTCC"; then
11500       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11501 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11502     else
11503       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11504 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11505     fi
11506   fi
11507
11508   # Extract list of available tagged configurations in $ofile.
11509   # Note that this assumes the entire list is on one line.
11510   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11511
11512   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11513   for tagname in $tagnames; do
11514     IFS="$lt_save_ifs"
11515     # Check whether tagname contains only valid characters
11516     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11517     "") ;;
11518     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11519 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11520    { (exit 1); exit 1; }; }
11521         ;;
11522     esac
11523
11524     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11525     then
11526       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11527 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11528    { (exit 1); exit 1; }; }
11529     fi
11530
11531     # Update the list of available tags.
11532     if test -n "$tagname"; then
11533       echo appending configuration tag \"$tagname\" to $ofile
11534
11535       case $tagname in
11536       CXX)
11537         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11538           ac_ext=cc
11539 ac_cpp='$CXXCPP $CPPFLAGS'
11540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543
11544
11545
11546
11547 archive_cmds_need_lc_CXX=no
11548 allow_undefined_flag_CXX=
11549 always_export_symbols_CXX=no
11550 archive_expsym_cmds_CXX=
11551 export_dynamic_flag_spec_CXX=
11552 hardcode_direct_CXX=no
11553 hardcode_libdir_flag_spec_CXX=
11554 hardcode_libdir_flag_spec_ld_CXX=
11555 hardcode_libdir_separator_CXX=
11556 hardcode_minus_L_CXX=no
11557 hardcode_automatic_CXX=no
11558 module_cmds_CXX=
11559 module_expsym_cmds_CXX=
11560 link_all_deplibs_CXX=unknown
11561 old_archive_cmds_CXX=$old_archive_cmds
11562 no_undefined_flag_CXX=
11563 whole_archive_flag_spec_CXX=
11564 enable_shared_with_static_runtimes_CXX=no
11565
11566 # Dependencies to place before and after the object being linked:
11567 predep_objects_CXX=
11568 postdep_objects_CXX=
11569 predeps_CXX=
11570 postdeps_CXX=
11571 compiler_lib_search_path_CXX=
11572
11573 # Source file extension for C++ test sources.
11574 ac_ext=cc
11575
11576 # Object file extension for compiled C++ test sources.
11577 objext=o
11578 objext_CXX=$objext
11579
11580 # Code to be used in simple compile tests
11581 lt_simple_compile_test_code="int some_variable = 0;\n"
11582
11583 # Code to be used in simple link tests
11584 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11585
11586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11587
11588 # If no C compiler was specified, use CC.
11589 LTCC=${LTCC-"$CC"}
11590
11591 # Allow CC to be a program name with arguments.
11592 compiler=$CC
11593
11594
11595 # Allow CC to be a program name with arguments.
11596 lt_save_CC=$CC
11597 lt_save_LD=$LD
11598 lt_save_GCC=$GCC
11599 GCC=$GXX
11600 lt_save_with_gnu_ld=$with_gnu_ld
11601 lt_save_path_LD=$lt_cv_path_LD
11602 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11603   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11604 else
11605   unset lt_cv_prog_gnu_ld
11606 fi
11607 if test -n "${lt_cv_path_LDCXX+set}"; then
11608   lt_cv_path_LD=$lt_cv_path_LDCXX
11609 else
11610   unset lt_cv_path_LD
11611 fi
11612 test -z "${LDCXX+set}" || LD=$LDCXX
11613 CC=${CXX-"c++"}
11614 compiler=$CC
11615 compiler_CXX=$CC
11616 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11617
11618 # We don't want -fno-exception wen compiling C++ code, so set the
11619 # no_builtin_flag separately
11620 if test "$GXX" = yes; then
11621   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11622 else
11623   lt_prog_compiler_no_builtin_flag_CXX=
11624 fi
11625
11626 if test "$GXX" = yes; then
11627   # Set up default GNU C++ configuration
11628
11629
11630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11631 if test "${with_gnu_ld+set}" = set; then
11632   withval="$with_gnu_ld"
11633   test "$withval" = no || with_gnu_ld=yes
11634 else
11635   with_gnu_ld=no
11636 fi;
11637 ac_prog=ld
11638 if test "$GCC" = yes; then
11639   # Check if gcc -print-prog-name=ld gives a path.
11640   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11641 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11642   case $host in
11643   *-*-mingw*)
11644     # gcc leaves a trailing carriage return which upsets mingw
11645     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11646   *)
11647     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11648   esac
11649   case $ac_prog in
11650     # Accept absolute paths.
11651     [\\/]* | ?:[\\/]*)
11652       re_direlt='/[^/][^/]*/\.\./'
11653       # Canonicalize the pathname of ld
11654       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11655       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11656         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11657       done
11658       test -z "$LD" && LD="$ac_prog"
11659       ;;
11660   "")
11661     # If it fails, then pretend we aren't using GCC.
11662     ac_prog=ld
11663     ;;
11664   *)
11665     # If it is relative, then search for the first ld in PATH.
11666     with_gnu_ld=unknown
11667     ;;
11668   esac
11669 elif test "$with_gnu_ld" = yes; then
11670   echo "$as_me:$LINENO: checking for GNU ld" >&5
11671 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11672 else
11673   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11674 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11675 fi
11676 if test "${lt_cv_path_LD+set}" = set; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   if test -z "$LD"; then
11680   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11681   for ac_dir in $PATH; do
11682     IFS="$lt_save_ifs"
11683     test -z "$ac_dir" && ac_dir=.
11684     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11685       lt_cv_path_LD="$ac_dir/$ac_prog"
11686       # Check to see if the program is GNU ld.  I'd rather use --version,
11687       # but apparently some GNU ld's only accept -v.
11688       # Break only if it was the GNU/non-GNU ld that we prefer.
11689       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11690       *GNU* | *'with BFD'*)
11691         test "$with_gnu_ld" != no && break
11692         ;;
11693       *)
11694         test "$with_gnu_ld" != yes && break
11695         ;;
11696       esac
11697     fi
11698   done
11699   IFS="$lt_save_ifs"
11700 else
11701   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11702 fi
11703 fi
11704
11705 LD="$lt_cv_path_LD"
11706 if test -n "$LD"; then
11707   echo "$as_me:$LINENO: result: $LD" >&5
11708 echo "${ECHO_T}$LD" >&6
11709 else
11710   echo "$as_me:$LINENO: result: no" >&5
11711 echo "${ECHO_T}no" >&6
11712 fi
11713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11715    { (exit 1); exit 1; }; }
11716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11718 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11722 case `$LD -v 2>&1 </dev/null` in
11723 *GNU* | *'with BFD'*)
11724   lt_cv_prog_gnu_ld=yes
11725   ;;
11726 *)
11727   lt_cv_prog_gnu_ld=no
11728   ;;
11729 esac
11730 fi
11731 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11732 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11733 with_gnu_ld=$lt_cv_prog_gnu_ld
11734
11735
11736
11737   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11738   # archiving commands below assume that GNU ld is being used.
11739   if test "$with_gnu_ld" = yes; then
11740     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741     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'
11742
11743     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11744     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11745
11746     # If archive_cmds runs LD, not CC, wlarc should be empty
11747     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11748     #     investigate it a little bit more. (MM)
11749     wlarc='${wl}'
11750
11751     # ancient GNU ld didn't support --whole-archive et. al.
11752     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11753         grep 'no-whole-archive' > /dev/null; then
11754       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11755     else
11756       whole_archive_flag_spec_CXX=
11757     fi
11758   else
11759     with_gnu_ld=no
11760     wlarc=
11761
11762     # A generic and very simple default shared library creation
11763     # command for GNU C++ for the case where it uses the native
11764     # linker, instead of GNU ld.  If possible, this setting should
11765     # overridden to take advantage of the native linker features on
11766     # the platform it is being used on.
11767     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11768   fi
11769
11770   # Commands to make compiler produce verbose output that lists
11771   # what "hidden" libraries, object files and flags are used when
11772   # linking a shared library.
11773   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11774
11775 else
11776   GXX=no
11777   with_gnu_ld=no
11778   wlarc=
11779 fi
11780
11781 # PORTME: fill in a description of your system's C++ link characteristics
11782 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11784 ld_shlibs_CXX=yes
11785 case $host_os in
11786   aix3*)
11787     # FIXME: insert proper C++ library support
11788     ld_shlibs_CXX=no
11789     ;;
11790   aix4* | aix5*)
11791     if test "$host_cpu" = ia64; then
11792       # On IA64, the linker does run time linking by default, so we don't
11793       # have to do anything special.
11794       aix_use_runtimelinking=no
11795       exp_sym_flag='-Bexport'
11796       no_entry_flag=""
11797     else
11798       aix_use_runtimelinking=no
11799
11800       # Test if we are trying to use run time linking or normal
11801       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11802       # need to do runtime linking.
11803       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11804         for ld_flag in $LDFLAGS; do
11805           case $ld_flag in
11806           *-brtl*)
11807             aix_use_runtimelinking=yes
11808             break
11809             ;;
11810           esac
11811         done
11812       esac
11813
11814       exp_sym_flag='-bexport'
11815       no_entry_flag='-bnoentry'
11816     fi
11817
11818     # When large executables or shared objects are built, AIX ld can
11819     # have problems creating the table of contents.  If linking a library
11820     # or program results in "error TOC overflow" add -mminimal-toc to
11821     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11822     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11823
11824     archive_cmds_CXX=''
11825     hardcode_direct_CXX=yes
11826     hardcode_libdir_separator_CXX=':'
11827     link_all_deplibs_CXX=yes
11828
11829     if test "$GXX" = yes; then
11830       case $host_os in aix4.012|aix4.012.*)
11831       # We only want to do this on AIX 4.2 and lower, the check
11832       # below for broken collect2 doesn't work under 4.3+
11833         collect2name=`${CC} -print-prog-name=collect2`
11834         if test -f "$collect2name" && \
11835            strings "$collect2name" | grep resolve_lib_name >/dev/null
11836         then
11837           # We have reworked collect2
11838           hardcode_direct_CXX=yes
11839         else
11840           # We have old collect2
11841           hardcode_direct_CXX=unsupported
11842           # It fails to find uninstalled libraries when the uninstalled
11843           # path is not listed in the libpath.  Setting hardcode_minus_L
11844           # to unsupported forces relinking
11845           hardcode_minus_L_CXX=yes
11846           hardcode_libdir_flag_spec_CXX='-L$libdir'
11847           hardcode_libdir_separator_CXX=
11848         fi
11849       esac
11850       shared_flag='-shared'
11851     else
11852       # not using gcc
11853       if test "$host_cpu" = ia64; then
11854         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11855         # chokes on -Wl,-G. The following line is correct:
11856         shared_flag='-G'
11857       else
11858         if test "$aix_use_runtimelinking" = yes; then
11859           shared_flag='${wl}-G'
11860         else
11861           shared_flag='${wl}-bM:SRE'
11862         fi
11863       fi
11864     fi
11865
11866     # It seems that -bexpall does not export symbols beginning with
11867     # underscore (_), so it is better to generate a list of symbols to export.
11868     always_export_symbols_CXX=yes
11869     if test "$aix_use_runtimelinking" = yes; then
11870       # Warning - without using the other runtime loading flags (-brtl),
11871       # -berok will link without error, but may produce a broken library.
11872       allow_undefined_flag_CXX='-berok'
11873       # Determine the default libpath from the value encoded in an empty executable.
11874       cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880
11881 int
11882 main ()
11883 {
11884
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891   (eval $ac_link) 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -z "$ac_cxx_werror_flag"
11899                          || test ! -s conftest.err'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; } &&
11905          { ac_try='test -s conftest$ac_exeext'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911
11912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11913 }'`
11914 # Check for a 64-bit object if we didn't find anything.
11915 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; }
11916 }'`; fi
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 fi
11922 rm -f conftest.err conftest.$ac_objext \
11923       conftest$ac_exeext conftest.$ac_ext
11924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11925
11926       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11927
11928       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"
11929      else
11930       if test "$host_cpu" = ia64; then
11931         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11932         allow_undefined_flag_CXX="-z nodefs"
11933         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"
11934       else
11935         # Determine the default libpath from the value encoded in an empty executable.
11936         cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942
11943 int
11944 main ()
11945 {
11946
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953   (eval $ac_link) 2>conftest.er1
11954   ac_status=$?
11955   grep -v '^ *+' conftest.er1 >conftest.err
11956   rm -f conftest.er1
11957   cat conftest.err >&5
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } &&
11960          { ac_try='test -z "$ac_cxx_werror_flag"
11961                          || test ! -s conftest.err'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; } &&
11967          { ac_try='test -s conftest$ac_exeext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973
11974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11975 }'`
11976 # Check for a 64-bit object if we didn't find anything.
11977 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; }
11978 }'`; fi
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 fi
11984 rm -f conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11987
11988         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11989         # Warning - without using the other run time loading flags,
11990         # -berok will link without error, but may produce a broken library.
11991         no_undefined_flag_CXX=' ${wl}-bernotok'
11992         allow_undefined_flag_CXX=' ${wl}-berok'
11993         # -bexpall does not export symbols beginning with underscore (_)
11994         always_export_symbols_CXX=yes
11995         # Exported symbols can be pulled into shared objects from archives
11996         whole_archive_flag_spec_CXX=' '
11997         archive_cmds_need_lc_CXX=yes
11998         # This is similar to how AIX traditionally builds it's shared libraries.
11999         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'
12000       fi
12001     fi
12002     ;;
12003   chorus*)
12004     case $cc_basename in
12005       *)
12006         # FIXME: insert proper C++ library support
12007         ld_shlibs_CXX=no
12008         ;;
12009     esac
12010     ;;
12011
12012   cygwin* | mingw* | pw32*)
12013     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12014     # as there is no search path for DLLs.
12015     hardcode_libdir_flag_spec_CXX='-L$libdir'
12016     allow_undefined_flag_CXX=unsupported
12017     always_export_symbols_CXX=no
12018     enable_shared_with_static_runtimes_CXX=yes
12019
12020     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12021       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'
12022       # If the export-symbols file already is a .def file (1st line
12023       # is EXPORTS), use it as is; otherwise, prepend...
12024       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12025         cp $export_symbols $output_objdir/$soname.def;
12026       else
12027         echo EXPORTS > $output_objdir/$soname.def;
12028         cat $export_symbols >> $output_objdir/$soname.def;
12029       fi~
12030       $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'
12031     else
12032       ld_shlibs_CXX=no
12033     fi
12034   ;;
12035
12036   darwin* | rhapsody*)
12037   if test "$GXX" = yes; then
12038     archive_cmds_need_lc_CXX=no
12039     case "$host_os" in
12040     rhapsody* | darwin1.[012])
12041       allow_undefined_flag_CXX='-undefined suppress'
12042       ;;
12043     *) # Darwin 1.3 on
12044       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12045         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12046       else
12047         case ${MACOSX_DEPLOYMENT_TARGET} in
12048           10.[012])
12049             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12050             ;;
12051           10.*)
12052             allow_undefined_flag_CXX='-undefined dynamic_lookup'
12053             ;;
12054         esac
12055       fi
12056       ;;
12057     esac
12058     lt_int_apple_cc_single_mod=no
12059     output_verbose_link_cmd='echo'
12060     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12061       lt_int_apple_cc_single_mod=yes
12062     fi
12063     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12064       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12065     else
12066       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'
12067     fi
12068     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12069
12070     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12071     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12072       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}'
12073     else
12074       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}'
12075     fi
12076     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}'
12077     hardcode_direct_CXX=no
12078     hardcode_automatic_CXX=yes
12079     hardcode_shlibpath_var_CXX=unsupported
12080     whole_archive_flag_spec_CXX='-all_load $convenience'
12081     link_all_deplibs_CXX=yes
12082   else
12083     ld_shlibs_CXX=no
12084   fi
12085     ;;
12086
12087   dgux*)
12088     case $cc_basename in
12089       ec++)
12090         # FIXME: insert proper C++ library support
12091         ld_shlibs_CXX=no
12092         ;;
12093       ghcx)
12094         # Green Hills C++ Compiler
12095         # FIXME: insert proper C++ library support
12096         ld_shlibs_CXX=no
12097         ;;
12098       *)
12099         # FIXME: insert proper C++ library support
12100         ld_shlibs_CXX=no
12101         ;;
12102     esac
12103     ;;
12104   freebsd12*)
12105     # C++ shared libraries reported to be fairly broken before switch to ELF
12106     ld_shlibs_CXX=no
12107     ;;
12108   freebsd-elf*)
12109     archive_cmds_need_lc_CXX=no
12110     ;;
12111   freebsd* | kfreebsd*-gnu)
12112     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12113     # conventions
12114     ld_shlibs_CXX=yes
12115     ;;
12116   gnu*)
12117     ;;
12118   hpux9*)
12119     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12120     hardcode_libdir_separator_CXX=:
12121     export_dynamic_flag_spec_CXX='${wl}-E'
12122     hardcode_direct_CXX=yes
12123     hardcode_minus_L_CXX=yes # Not in the search PATH,
12124                                 # but as the default
12125                                 # location of the library.
12126
12127     case $cc_basename in
12128     CC)
12129       # FIXME: insert proper C++ library support
12130       ld_shlibs_CXX=no
12131       ;;
12132     aCC)
12133       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'
12134       # Commands to make compiler produce verbose output that lists
12135       # what "hidden" libraries, object files and flags are used when
12136       # linking a shared library.
12137       #
12138       # There doesn't appear to be a way to prevent this compiler from
12139       # explicitly linking system object files so we need to strip them
12140       # from the output so that they don't get included in the library
12141       # dependencies.
12142       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'
12143       ;;
12144     *)
12145       if test "$GXX" = yes; then
12146         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'
12147       else
12148         # FIXME: insert proper C++ library support
12149         ld_shlibs_CXX=no
12150       fi
12151       ;;
12152     esac
12153     ;;
12154   hpux10*|hpux11*)
12155     if test $with_gnu_ld = no; then
12156       case "$host_cpu" in
12157       hppa*64*)
12158         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12159         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12160         hardcode_libdir_separator_CXX=:
12161         ;;
12162       ia64*)
12163         hardcode_libdir_flag_spec_CXX='-L$libdir'
12164         ;;
12165       *)
12166         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12167         hardcode_libdir_separator_CXX=:
12168         export_dynamic_flag_spec_CXX='${wl}-E'
12169         ;;
12170       esac
12171     fi
12172     case "$host_cpu" in
12173     hppa*64*)
12174       hardcode_direct_CXX=no
12175       hardcode_shlibpath_var_CXX=no
12176       ;;
12177     ia64*)
12178       hardcode_direct_CXX=no
12179       hardcode_shlibpath_var_CXX=no
12180       hardcode_minus_L_CXX=yes # Not in the search PATH,
12181                                               # but as the default
12182                                               # location of the library.
12183       ;;
12184     *)
12185       hardcode_direct_CXX=yes
12186       hardcode_minus_L_CXX=yes # Not in the search PATH,
12187                                               # but as the default
12188                                               # location of the library.
12189       ;;
12190     esac
12191
12192     case $cc_basename in
12193       CC)
12194         # FIXME: insert proper C++ library support
12195         ld_shlibs_CXX=no
12196         ;;
12197       aCC)
12198         case "$host_cpu" in
12199         hppa*64*|ia64*)
12200           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12201           ;;
12202         *)
12203           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12204           ;;
12205         esac
12206         # Commands to make compiler produce verbose output that lists
12207         # what "hidden" libraries, object files and flags are used when
12208         # linking a shared library.
12209         #
12210         # There doesn't appear to be a way to prevent this compiler from
12211         # explicitly linking system object files so we need to strip them
12212         # from the output so that they don't get included in the library
12213         # dependencies.
12214         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'
12215         ;;
12216       *)
12217         if test "$GXX" = yes; then
12218           if test $with_gnu_ld = no; then
12219             case "$host_cpu" in
12220             ia64*|hppa*64*)
12221               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12222               ;;
12223             *)
12224               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'
12225               ;;
12226             esac
12227           fi
12228         else
12229           # FIXME: insert proper C++ library support
12230           ld_shlibs_CXX=no
12231         fi
12232         ;;
12233     esac
12234     ;;
12235   irix5* | irix6*)
12236     case $cc_basename in
12237       CC)
12238         # SGI C++
12239         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'
12240
12241         # Archives containing C++ object files must be created using
12242         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12243         # necessary to make sure instantiated templates are included
12244         # in the archive.
12245         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12246         ;;
12247       *)
12248         if test "$GXX" = yes; then
12249           if test "$with_gnu_ld" = no; then
12250             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'
12251           else
12252             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'
12253           fi
12254         fi
12255         link_all_deplibs_CXX=yes
12256         ;;
12257     esac
12258     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12259     hardcode_libdir_separator_CXX=:
12260     ;;
12261   linux*)
12262     case $cc_basename in
12263       KCC)
12264         # Kuck and Associates, Inc. (KAI) C++ Compiler
12265
12266         # KCC will only create a shared library if the output file
12267         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12268         # to its proper name (with version) after linking.
12269         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'
12270         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'
12271         # Commands to make compiler produce verbose output that lists
12272         # what "hidden" libraries, object files and flags are used when
12273         # linking a shared library.
12274         #
12275         # There doesn't appear to be a way to prevent this compiler from
12276         # explicitly linking system object files so we need to strip them
12277         # from the output so that they don't get included in the library
12278         # dependencies.
12279         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'
12280
12281         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12282         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12283
12284         # Archives containing C++ object files must be created using
12285         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12286         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12287         ;;
12288       icpc)
12289         # Intel C++
12290         with_gnu_ld=yes
12291         archive_cmds_need_lc_CXX=no
12292         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293         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'
12294         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12295         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12296         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12297         ;;
12298       cxx)
12299         # Compaq C++
12300         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301         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'
12302
12303         runpath_var=LD_RUN_PATH
12304         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12305         hardcode_libdir_separator_CXX=:
12306
12307         # Commands to make compiler produce verbose output that lists
12308         # what "hidden" libraries, object files and flags are used when
12309         # linking a shared library.
12310         #
12311         # There doesn't appear to be a way to prevent this compiler from
12312         # explicitly linking system object files so we need to strip them
12313         # from the output so that they don't get included in the library
12314         # dependencies.
12315         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'
12316         ;;
12317     esac
12318     ;;
12319   lynxos*)
12320     # FIXME: insert proper C++ library support
12321     ld_shlibs_CXX=no
12322     ;;
12323   m88k*)
12324     # FIXME: insert proper C++ library support
12325     ld_shlibs_CXX=no
12326     ;;
12327   mvs*)
12328     case $cc_basename in
12329       cxx)
12330         # FIXME: insert proper C++ library support
12331         ld_shlibs_CXX=no
12332         ;;
12333       *)
12334         # FIXME: insert proper C++ library support
12335         ld_shlibs_CXX=no
12336         ;;
12337     esac
12338     ;;
12339   netbsd*)
12340     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12341       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12342       wlarc=
12343       hardcode_libdir_flag_spec_CXX='-R$libdir'
12344       hardcode_direct_CXX=yes
12345       hardcode_shlibpath_var_CXX=no
12346     fi
12347     # Workaround some broken pre-1.5 toolchains
12348     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12349     ;;
12350   osf3*)
12351     case $cc_basename in
12352       KCC)
12353         # Kuck and Associates, Inc. (KAI) C++ Compiler
12354
12355         # KCC will only create a shared library if the output file
12356         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12357         # to its proper name (with version) after linking.
12358         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'
12359
12360         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12361         hardcode_libdir_separator_CXX=:
12362
12363         # Archives containing C++ object files must be created using
12364         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12365         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12366
12367         ;;
12368       RCC)
12369         # Rational C++ 2.4.1
12370         # FIXME: insert proper C++ library support
12371         ld_shlibs_CXX=no
12372         ;;
12373       cxx)
12374         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12375         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'
12376
12377         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12378         hardcode_libdir_separator_CXX=:
12379
12380         # Commands to make compiler produce verbose output that lists
12381         # what "hidden" libraries, object files and flags are used when
12382         # linking a shared library.
12383         #
12384         # There doesn't appear to be a way to prevent this compiler from
12385         # explicitly linking system object files so we need to strip them
12386         # from the output so that they don't get included in the library
12387         # dependencies.
12388         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'
12389         ;;
12390       *)
12391         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12392           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12393           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'
12394
12395           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12396           hardcode_libdir_separator_CXX=:
12397
12398           # Commands to make compiler produce verbose output that lists
12399           # what "hidden" libraries, object files and flags are used when
12400           # linking a shared library.
12401           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12402
12403         else
12404           # FIXME: insert proper C++ library support
12405           ld_shlibs_CXX=no
12406         fi
12407         ;;
12408     esac
12409     ;;
12410   osf4* | osf5*)
12411     case $cc_basename in
12412       KCC)
12413         # Kuck and Associates, Inc. (KAI) C++ Compiler
12414
12415         # KCC will only create a shared library if the output file
12416         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12417         # to its proper name (with version) after linking.
12418         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'
12419
12420         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12421         hardcode_libdir_separator_CXX=:
12422
12423         # Archives containing C++ object files must be created using
12424         # the KAI C++ compiler.
12425         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12426         ;;
12427       RCC)
12428         # Rational C++ 2.4.1
12429         # FIXME: insert proper C++ library support
12430         ld_shlibs_CXX=no
12431         ;;
12432       cxx)
12433         allow_undefined_flag_CXX=' -expect_unresolved \*'
12434         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'
12435         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12436           echo "-hidden">> $lib.exp~
12437           $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~
12438           $rm $lib.exp'
12439
12440         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12441         hardcode_libdir_separator_CXX=:
12442
12443         # Commands to make compiler produce verbose output that lists
12444         # what "hidden" libraries, object files and flags are used when
12445         # linking a shared library.
12446         #
12447         # There doesn't appear to be a way to prevent this compiler from
12448         # explicitly linking system object files so we need to strip them
12449         # from the output so that they don't get included in the library
12450         # dependencies.
12451         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'
12452         ;;
12453       *)
12454         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12455           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12456          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'
12457
12458           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12459           hardcode_libdir_separator_CXX=:
12460
12461           # Commands to make compiler produce verbose output that lists
12462           # what "hidden" libraries, object files and flags are used when
12463           # linking a shared library.
12464           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12465
12466         else
12467           # FIXME: insert proper C++ library support
12468           ld_shlibs_CXX=no
12469         fi
12470         ;;
12471     esac
12472     ;;
12473   psos*)
12474     # FIXME: insert proper C++ library support
12475     ld_shlibs_CXX=no
12476     ;;
12477   sco*)
12478     archive_cmds_need_lc_CXX=no
12479     case $cc_basename in
12480       CC)
12481         # FIXME: insert proper C++ library support
12482         ld_shlibs_CXX=no
12483         ;;
12484       *)
12485         # FIXME: insert proper C++ library support
12486         ld_shlibs_CXX=no
12487         ;;
12488     esac
12489     ;;
12490   sunos4*)
12491     case $cc_basename in
12492       CC)
12493         # Sun C++ 4.x
12494         # FIXME: insert proper C++ library support
12495         ld_shlibs_CXX=no
12496         ;;
12497       lcc)
12498         # Lucid
12499         # FIXME: insert proper C++ library support
12500         ld_shlibs_CXX=no
12501         ;;
12502       *)
12503         # FIXME: insert proper C++ library support
12504         ld_shlibs_CXX=no
12505         ;;
12506     esac
12507     ;;
12508   solaris*)
12509     case $cc_basename in
12510       CC)
12511         # Sun C++ 4.2, 5.x and Centerline C++
12512         no_undefined_flag_CXX=' -zdefs'
12513         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12514         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12515         $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'
12516
12517         hardcode_libdir_flag_spec_CXX='-R$libdir'
12518         hardcode_shlibpath_var_CXX=no
12519         case $host_os in
12520           solaris2.0-5 | solaris2.0-5.*) ;;
12521           *)
12522             # The C++ compiler is used as linker so we must use $wl
12523             # flag to pass the commands to the underlying system
12524             # linker.
12525             # Supported since Solaris 2.6 (maybe 2.5.1?)
12526             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12527             ;;
12528         esac
12529         link_all_deplibs_CXX=yes
12530
12531         # Commands to make compiler produce verbose output that lists
12532         # what "hidden" libraries, object files and flags are used when
12533         # linking a shared library.
12534         #
12535         # There doesn't appear to be a way to prevent this compiler from
12536         # explicitly linking system object files so we need to strip them
12537         # from the output so that they don't get included in the library
12538         # dependencies.
12539         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'
12540
12541         # Archives containing C++ object files must be created using
12542         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12543         # necessary to make sure instantiated templates are included
12544         # in the archive.
12545         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12546         ;;
12547       gcx)
12548         # Green Hills C++ Compiler
12549         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12550
12551         # The C++ compiler must be used to create the archive.
12552         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12553         ;;
12554       *)
12555         # GNU C++ compiler with Solaris linker
12556         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12557           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12558           if $CC --version | grep -v '^2\.7' > /dev/null; then
12559             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12560             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12561                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12562
12563             # Commands to make compiler produce verbose output that lists
12564             # what "hidden" libraries, object files and flags are used when
12565             # linking a shared library.
12566             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12567           else
12568             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12569             # platform.
12570             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12571             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12572                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12573
12574             # Commands to make compiler produce verbose output that lists
12575             # what "hidden" libraries, object files and flags are used when
12576             # linking a shared library.
12577             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12578           fi
12579
12580           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12581         fi
12582         ;;
12583     esac
12584     ;;
12585   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12586     archive_cmds_need_lc_CXX=no
12587     ;;
12588   tandem*)
12589     case $cc_basename in
12590       NCC)
12591         # NonStop-UX NCC 3.20
12592         # FIXME: insert proper C++ library support
12593         ld_shlibs_CXX=no
12594         ;;
12595       *)
12596         # FIXME: insert proper C++ library support
12597         ld_shlibs_CXX=no
12598         ;;
12599     esac
12600     ;;
12601   vxworks*)
12602     # FIXME: insert proper C++ library support
12603     ld_shlibs_CXX=no
12604     ;;
12605   *)
12606     # FIXME: insert proper C++ library support
12607     ld_shlibs_CXX=no
12608     ;;
12609 esac
12610 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12611 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12612 test "$ld_shlibs_CXX" = no && can_build_shared=no
12613
12614 GCC_CXX="$GXX"
12615 LD_CXX="$LD"
12616
12617 ## CAVEAT EMPTOR:
12618 ## There is no encapsulation within the following macros, do not change
12619 ## the running order or otherwise move them around unless you know exactly
12620 ## what you are doing...
12621
12622 cat > conftest.$ac_ext <<EOF
12623 class Foo
12624 {
12625 public:
12626   Foo (void) { a = 0; }
12627 private:
12628   int a;
12629 };
12630 EOF
12631
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633   (eval $ac_compile) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; then
12637   # Parse the compiler output and extract the necessary
12638   # objects, libraries and library flags.
12639
12640   # Sentinel used to keep track of whether or not we are before
12641   # the conftest object file.
12642   pre_test_object_deps_done=no
12643
12644   # The `*' in the case matches for architectures that use `case' in
12645   # $output_verbose_cmd can trigger glob expansion during the loop
12646   # eval without this substitution.
12647   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12648
12649   for p in `eval $output_verbose_link_cmd`; do
12650     case $p in
12651
12652     -L* | -R* | -l*)
12653        # Some compilers place space between "-{L,R}" and the path.
12654        # Remove the space.
12655        if test $p = "-L" \
12656           || test $p = "-R"; then
12657          prev=$p
12658          continue
12659        else
12660          prev=
12661        fi
12662
12663        if test "$pre_test_object_deps_done" = no; then
12664          case $p in
12665          -L* | -R*)
12666            # Internal compiler library paths should come after those
12667            # provided the user.  The postdeps already come after the
12668            # user supplied libs so there is no need to process them.
12669            if test -z "$compiler_lib_search_path_CXX"; then
12670              compiler_lib_search_path_CXX="${prev}${p}"
12671            else
12672              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12673            fi
12674            ;;
12675          # The "-l" case would never come before the object being
12676          # linked, so don't bother handling this case.
12677          esac
12678        else
12679          if test -z "$postdeps_CXX"; then
12680            postdeps_CXX="${prev}${p}"
12681          else
12682            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12683          fi
12684        fi
12685        ;;
12686
12687     *.$objext)
12688        # This assumes that the test object file only shows up
12689        # once in the compiler output.
12690        if test "$p" = "conftest.$objext"; then
12691          pre_test_object_deps_done=yes
12692          continue
12693        fi
12694
12695        if test "$pre_test_object_deps_done" = no; then
12696          if test -z "$predep_objects_CXX"; then
12697            predep_objects_CXX="$p"
12698          else
12699            predep_objects_CXX="$predep_objects_CXX $p"
12700          fi
12701        else
12702          if test -z "$postdep_objects_CXX"; then
12703            postdep_objects_CXX="$p"
12704          else
12705            postdep_objects_CXX="$postdep_objects_CXX $p"
12706          fi
12707        fi
12708        ;;
12709
12710     *) ;; # Ignore the rest.
12711
12712     esac
12713   done
12714
12715   # Clean up.
12716   rm -f a.out a.exe
12717 else
12718   echo "libtool.m4: error: problem compiling CXX test program"
12719 fi
12720
12721 $rm -f confest.$objext
12722
12723 case " $postdeps_CXX " in
12724 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12725 esac
12726
12727 lt_prog_compiler_wl_CXX=
12728 lt_prog_compiler_pic_CXX=
12729 lt_prog_compiler_static_CXX=
12730
12731 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12732 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12733
12734   # C++ specific cases for pic, static, wl, etc.
12735   if test "$GXX" = yes; then
12736     lt_prog_compiler_wl_CXX='-Wl,'
12737     lt_prog_compiler_static_CXX='-static'
12738
12739     case $host_os in
12740     aix*)
12741       # All AIX code is PIC.
12742       if test "$host_cpu" = ia64; then
12743         # AIX 5 now supports IA64 processor
12744         lt_prog_compiler_static_CXX='-Bstatic'
12745       fi
12746       ;;
12747     amigaos*)
12748       # FIXME: we need at least 68020 code to build shared libraries, but
12749       # adding the `-m68020' flag to GCC prevents building anything better,
12750       # like `-m68040'.
12751       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12752       ;;
12753     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12754       # PIC is the default for these OSes.
12755       ;;
12756     mingw* | os2* | pw32*)
12757       # This hack is so that the source file can tell whether it is being
12758       # built for inclusion in a dll (and should export symbols for example).
12759       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12760       ;;
12761     darwin* | rhapsody*)
12762       # PIC is the default on this platform
12763       # Common symbols not allowed in MH_DYLIB files
12764       lt_prog_compiler_pic_CXX='-fno-common'
12765       ;;
12766     *djgpp*)
12767       # DJGPP does not support shared libraries at all
12768       lt_prog_compiler_pic_CXX=
12769       ;;
12770     sysv4*MP*)
12771       if test -d /usr/nec; then
12772         lt_prog_compiler_pic_CXX=-Kconform_pic
12773       fi
12774       ;;
12775     hpux*)
12776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12777       # not for PA HP-UX.
12778       case "$host_cpu" in
12779       hppa*64*|ia64*)
12780         ;;
12781       *)
12782         lt_prog_compiler_pic_CXX='-fPIC'
12783         ;;
12784       esac
12785       ;;
12786     *)
12787       lt_prog_compiler_pic_CXX='-fPIC'
12788       ;;
12789     esac
12790   else
12791     case $host_os in
12792       aix4* | aix5*)
12793         # All AIX code is PIC.
12794         if test "$host_cpu" = ia64; then
12795           # AIX 5 now supports IA64 processor
12796           lt_prog_compiler_static_CXX='-Bstatic'
12797         else
12798           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12799         fi
12800         ;;
12801       chorus*)
12802         case $cc_basename in
12803         cxch68)
12804           # Green Hills C++ Compiler
12805           # _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"
12806           ;;
12807         esac
12808         ;;
12809       dgux*)
12810         case $cc_basename in
12811           ec++)
12812             lt_prog_compiler_pic_CXX='-KPIC'
12813             ;;
12814           ghcx)
12815             # Green Hills C++ Compiler
12816             lt_prog_compiler_pic_CXX='-pic'
12817             ;;
12818           *)
12819             ;;
12820         esac
12821         ;;
12822       freebsd* | kfreebsd*-gnu)
12823         # FreeBSD uses GNU C++
12824         ;;
12825       hpux9* | hpux10* | hpux11*)
12826         case $cc_basename in
12827           CC)
12828             lt_prog_compiler_wl_CXX='-Wl,'
12829             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12830             if test "$host_cpu" != ia64; then
12831               lt_prog_compiler_pic_CXX='+Z'
12832             fi
12833             ;;
12834           aCC)
12835             lt_prog_compiler_wl_CXX='-Wl,'
12836             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12837             case "$host_cpu" in
12838             hppa*64*|ia64*)
12839               # +Z the default
12840               ;;
12841             *)
12842               lt_prog_compiler_pic_CXX='+Z'
12843               ;;
12844             esac
12845             ;;
12846           *)
12847             ;;
12848         esac
12849         ;;
12850       irix5* | irix6* | nonstopux*)
12851         case $cc_basename in
12852           CC)
12853             lt_prog_compiler_wl_CXX='-Wl,'
12854             lt_prog_compiler_static_CXX='-non_shared'
12855             # CC pic flag -KPIC is the default.
12856             ;;
12857           *)
12858             ;;
12859         esac
12860         ;;
12861       linux*)
12862         case $cc_basename in
12863           KCC)
12864             # KAI C++ Compiler
12865             lt_prog_compiler_wl_CXX='--backend -Wl,'
12866             lt_prog_compiler_pic_CXX='-fPIC'
12867             ;;
12868           icpc)
12869             # Intel C++
12870             lt_prog_compiler_wl_CXX='-Wl,'
12871             lt_prog_compiler_pic_CXX='-KPIC'
12872             lt_prog_compiler_static_CXX='-static'
12873             ;;
12874           cxx)
12875             # Compaq C++
12876             # Make sure the PIC flag is empty.  It appears that all Alpha
12877             # Linux and Compaq Tru64 Unix objects are PIC.
12878             lt_prog_compiler_pic_CXX=
12879             lt_prog_compiler_static_CXX='-non_shared'
12880             ;;
12881           *)
12882             ;;
12883         esac
12884         ;;
12885       lynxos*)
12886         ;;
12887       m88k*)
12888         ;;
12889       mvs*)
12890         case $cc_basename in
12891           cxx)
12892             lt_prog_compiler_pic_CXX='-W c,exportall'
12893             ;;
12894           *)
12895             ;;
12896         esac
12897         ;;
12898       netbsd*)
12899         ;;
12900       osf3* | osf4* | osf5*)
12901         case $cc_basename in
12902           KCC)
12903             lt_prog_compiler_wl_CXX='--backend -Wl,'
12904             ;;
12905           RCC)
12906             # Rational C++ 2.4.1
12907             lt_prog_compiler_pic_CXX='-pic'
12908             ;;
12909           cxx)
12910             # Digital/Compaq C++
12911             lt_prog_compiler_wl_CXX='-Wl,'
12912             # Make sure the PIC flag is empty.  It appears that all Alpha
12913             # Linux and Compaq Tru64 Unix objects are PIC.
12914             lt_prog_compiler_pic_CXX=
12915             lt_prog_compiler_static_CXX='-non_shared'
12916             ;;
12917           *)
12918             ;;
12919         esac
12920         ;;
12921       psos*)
12922         ;;
12923       sco*)
12924         case $cc_basename in
12925           CC)
12926             lt_prog_compiler_pic_CXX='-fPIC'
12927             ;;
12928           *)
12929             ;;
12930         esac
12931         ;;
12932       solaris*)
12933         case $cc_basename in
12934           CC)
12935             # Sun C++ 4.2, 5.x and Centerline C++
12936             lt_prog_compiler_pic_CXX='-KPIC'
12937             lt_prog_compiler_static_CXX='-Bstatic'
12938             lt_prog_compiler_wl_CXX='-Qoption ld '
12939             ;;
12940           gcx)
12941             # Green Hills C++ Compiler
12942             lt_prog_compiler_pic_CXX='-PIC'
12943             ;;
12944           *)
12945             ;;
12946         esac
12947         ;;
12948       sunos4*)
12949         case $cc_basename in
12950           CC)
12951             # Sun C++ 4.x
12952             lt_prog_compiler_pic_CXX='-pic'
12953             lt_prog_compiler_static_CXX='-Bstatic'
12954             ;;
12955           lcc)
12956             # Lucid
12957             lt_prog_compiler_pic_CXX='-pic'
12958             ;;
12959           *)
12960             ;;
12961         esac
12962         ;;
12963       tandem*)
12964         case $cc_basename in
12965           NCC)
12966             # NonStop-UX NCC 3.20
12967             lt_prog_compiler_pic_CXX='-KPIC'
12968             ;;
12969           *)
12970             ;;
12971         esac
12972         ;;
12973       unixware*)
12974         ;;
12975       vxworks*)
12976         ;;
12977       *)
12978         lt_prog_compiler_can_build_shared_CXX=no
12979         ;;
12980     esac
12981   fi
12982
12983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12984 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12985
12986 #
12987 # Check to make sure the PIC flag actually works.
12988 #
12989 if test -n "$lt_prog_compiler_pic_CXX"; then
12990
12991 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12992 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12993 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12994   echo $ECHO_N "(cached) $ECHO_C" >&6
12995 else
12996   lt_prog_compiler_pic_works_CXX=no
12997   ac_outfile=conftest.$ac_objext
12998    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12999    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13000    # Insert the option either (1) after the last *FLAGS variable, or
13001    # (2) before a word containing "conftest.", or (3) at the end.
13002    # Note that $ac_compile itself does not contain backslashes and begins
13003    # with a dollar sign (not a hyphen), so the echo should work correctly.
13004    # The option is referenced via a variable to avoid confusing sed.
13005    lt_compile=`echo "$ac_compile" | $SED \
13006    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13008    -e 's:$: $lt_compiler_flag:'`
13009    (eval echo "\"\$as_me:13009: $lt_compile\"" >&5)
13010    (eval "$lt_compile" 2>conftest.err)
13011    ac_status=$?
13012    cat conftest.err >&5
13013    echo "$as_me:13013: \$? = $ac_status" >&5
13014    if (exit $ac_status) && test -s "$ac_outfile"; then
13015      # The compiler can only warn and ignore the option if not recognized
13016      # So say no if there are warnings
13017      if test ! -s conftest.err; then
13018        lt_prog_compiler_pic_works_CXX=yes
13019      fi
13020    fi
13021    $rm conftest*
13022
13023 fi
13024 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13025 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13026
13027 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13028     case $lt_prog_compiler_pic_CXX in
13029      "" | " "*) ;;
13030      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13031      esac
13032 else
13033     lt_prog_compiler_pic_CXX=
13034      lt_prog_compiler_can_build_shared_CXX=no
13035 fi
13036
13037 fi
13038 case "$host_os" in
13039   # For platforms which do not support PIC, -DPIC is meaningless:
13040   *djgpp*)
13041     lt_prog_compiler_pic_CXX=
13042     ;;
13043   *)
13044     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13045     ;;
13046 esac
13047
13048 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13050 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   lt_cv_prog_compiler_c_o_CXX=no
13054    $rm -r conftest 2>/dev/null
13055    mkdir conftest
13056    cd conftest
13057    mkdir out
13058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13059
13060    lt_compiler_flag="-o out/conftest2.$ac_objext"
13061    # Insert the option either (1) after the last *FLAGS variable, or
13062    # (2) before a word containing "conftest.", or (3) at the end.
13063    # Note that $ac_compile itself does not contain backslashes and begins
13064    # with a dollar sign (not a hyphen), so the echo should work correctly.
13065    lt_compile=`echo "$ac_compile" | $SED \
13066    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13068    -e 's:$: $lt_compiler_flag:'`
13069    (eval echo "\"\$as_me:13069: $lt_compile\"" >&5)
13070    (eval "$lt_compile" 2>out/conftest.err)
13071    ac_status=$?
13072    cat out/conftest.err >&5
13073    echo "$as_me:13073: \$? = $ac_status" >&5
13074    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13075    then
13076      # The compiler can only warn and ignore the option if not recognized
13077      # So say no if there are warnings
13078      if test ! -s out/conftest.err; then
13079        lt_cv_prog_compiler_c_o_CXX=yes
13080      fi
13081    fi
13082    chmod u+w .
13083    $rm conftest*
13084    # SGI C++ compiler will create directory out/ii_files/ for
13085    # template instantiation
13086    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13087    $rm out/* && rmdir out
13088    cd ..
13089    rmdir conftest
13090    $rm conftest*
13091
13092 fi
13093 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13094 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13095
13096
13097 hard_links="nottested"
13098 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13099   # do not overwrite the value of need_locks provided by the user
13100   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13101 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13102   hard_links=yes
13103   $rm conftest*
13104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13105   touch conftest.a
13106   ln conftest.a conftest.b 2>&5 || hard_links=no
13107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108   echo "$as_me:$LINENO: result: $hard_links" >&5
13109 echo "${ECHO_T}$hard_links" >&6
13110   if test "$hard_links" = no; then
13111     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13112 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13113     need_locks=warn
13114   fi
13115 else
13116   need_locks=no
13117 fi
13118
13119 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13120 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13121
13122   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13123   case $host_os in
13124   aix4* | aix5*)
13125     # If we're using GNU nm, then we don't want the "-C" option.
13126     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13127     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13128       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'
13129     else
13130       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'
13131     fi
13132     ;;
13133   pw32*)
13134     export_symbols_cmds_CXX="$ltdll_cmds"
13135   ;;
13136   cygwin* | mingw*)
13137     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13138   ;;
13139   *)
13140     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13141   ;;
13142   esac
13143
13144 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13145 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13146 test "$ld_shlibs_CXX" = no && can_build_shared=no
13147
13148 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13149 if test "$GCC" = yes; then
13150   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13151 fi
13152
13153 #
13154 # Do we need to explicitly link libc?
13155 #
13156 case "x$archive_cmds_need_lc_CXX" in
13157 x|xyes)
13158   # Assume -lc should be added
13159   archive_cmds_need_lc_CXX=yes
13160
13161   if test "$enable_shared" = yes && test "$GCC" = yes; then
13162     case $archive_cmds_CXX in
13163     *'~'*)
13164       # FIXME: we may have to deal with multi-command sequences.
13165       ;;
13166     '$CC '*)
13167       # Test whether the compiler implicitly links with -lc since on some
13168       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13169       # to ld, don't add -lc before -lgcc.
13170       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13171 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13172       $rm conftest*
13173       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13174
13175       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176   (eval $ac_compile) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } 2>conftest.err; then
13180         soname=conftest
13181         lib=conftest
13182         libobjs=conftest.$ac_objext
13183         deplibs=
13184         wl=$lt_prog_compiler_wl_CXX
13185         compiler_flags=-v
13186         linker_flags=-v
13187         verstring=
13188         output_objdir=.
13189         libname=conftest
13190         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13191         allow_undefined_flag_CXX=
13192         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13193   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }
13197         then
13198           archive_cmds_need_lc_CXX=no
13199         else
13200           archive_cmds_need_lc_CXX=yes
13201         fi
13202         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13203       else
13204         cat conftest.err 1>&5
13205       fi
13206       $rm conftest*
13207       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13208 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13209       ;;
13210     esac
13211   fi
13212   ;;
13213 esac
13214
13215 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13216 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13217 library_names_spec=
13218 libname_spec='lib$name'
13219 soname_spec=
13220 shrext_cmds=".so"
13221 postinstall_cmds=
13222 postuninstall_cmds=
13223 finish_cmds=
13224 finish_eval=
13225 shlibpath_var=
13226 shlibpath_overrides_runpath=unknown
13227 version_type=none
13228 dynamic_linker="$host_os ld.so"
13229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13230 if test "$GCC" = yes; then
13231   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13232   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13233     # if the path contains ";" then we assume it to be the separator
13234     # otherwise default to the standard path separator (i.e. ":") - it is
13235     # assumed that no part of a normal pathname contains ";" but that should
13236     # okay in the real world where ";" in dirpaths is itself problematic.
13237     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13238   else
13239     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13240   fi
13241 else
13242   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13243 fi
13244 need_lib_prefix=unknown
13245 hardcode_into_libs=no
13246
13247 # when you set need_version to no, make sure it does not cause -set_version
13248 # flags to be left without arguments
13249 need_version=unknown
13250
13251 case $host_os in
13252 aix3*)
13253   version_type=linux
13254   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13255   shlibpath_var=LIBPATH
13256
13257   # AIX 3 has no versioning support, so we append a major version to the name.
13258   soname_spec='${libname}${release}${shared_ext}$major'
13259   ;;
13260
13261 aix4* | aix5*)
13262   version_type=linux
13263   need_lib_prefix=no
13264   need_version=no
13265   hardcode_into_libs=yes
13266   if test "$host_cpu" = ia64; then
13267     # AIX 5 supports IA64
13268     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13269     shlibpath_var=LD_LIBRARY_PATH
13270   else
13271     # With GCC up to 2.95.x, collect2 would create an import file
13272     # for dependence libraries.  The import file would start with
13273     # the line `#! .'.  This would cause the generated library to
13274     # depend on `.', always an invalid library.  This was fixed in
13275     # development snapshots of GCC prior to 3.0.
13276     case $host_os in
13277       aix4 | aix4.[01] | aix4.[01].*)
13278       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13279            echo ' yes '
13280            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13281         :
13282       else
13283         can_build_shared=no
13284       fi
13285       ;;
13286     esac
13287     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13288     # soname into executable. Probably we can add versioning support to
13289     # collect2, so additional links can be useful in future.
13290     if test "$aix_use_runtimelinking" = yes; then
13291       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13292       # instead of lib<name>.a to let people know that these are not
13293       # typical AIX shared libraries.
13294       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295     else
13296       # We preserve .a as extension for shared libraries through AIX4.2
13297       # and later when we are not doing run time linking.
13298       library_names_spec='${libname}${release}.a $libname.a'
13299       soname_spec='${libname}${release}${shared_ext}$major'
13300     fi
13301     shlibpath_var=LIBPATH
13302   fi
13303   ;;
13304
13305 amigaos*)
13306   library_names_spec='$libname.ixlibrary $libname.a'
13307   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13308   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'
13309   ;;
13310
13311 beos*)
13312   library_names_spec='${libname}${shared_ext}'
13313   dynamic_linker="$host_os ld.so"
13314   shlibpath_var=LIBRARY_PATH
13315   ;;
13316
13317 bsdi4*)
13318   version_type=linux
13319   need_version=no
13320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321   soname_spec='${libname}${release}${shared_ext}$major'
13322   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13323   shlibpath_var=LD_LIBRARY_PATH
13324   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13325   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13326   # the default ld.so.conf also contains /usr/contrib/lib and
13327   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13328   # libtool to hard-code these into programs
13329   ;;
13330
13331 cygwin* | mingw* | pw32*)
13332   version_type=windows
13333   shrext_cmds=".dll"
13334   need_version=no
13335   need_lib_prefix=no
13336
13337   case $GCC,$host_os in
13338   yes,cygwin* | yes,mingw* | yes,pw32*)
13339     library_names_spec='$libname.dll.a'
13340     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13341     postinstall_cmds='base_file=`basename \${file}`~
13342       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13343       dldir=$destdir/`dirname \$dlpath`~
13344       test -d \$dldir || mkdir -p \$dldir~
13345       $install_prog $dir/$dlname \$dldir/$dlname'
13346     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347       dlpath=$dir/\$dldll~
13348        $rm \$dlpath'
13349     shlibpath_overrides_runpath=yes
13350
13351     case $host_os in
13352     cygwin*)
13353       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13354       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13356       ;;
13357     mingw*)
13358       # MinGW DLLs use traditional 'lib' prefix
13359       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13360       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13362         # It is most probably a Windows format PATH printed by
13363         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13364         # path with ; separators, and with drive letters. We can handle the
13365         # drive letters (cygwin fileutils understands them), so leave them,
13366         # especially as we might pass files found there to a mingw objdump,
13367         # which wouldn't understand a cygwinified path. Ahh.
13368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13369       else
13370         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13371       fi
13372       ;;
13373     pw32*)
13374       # pw32 DLLs use 'pw' prefix rather than 'lib'
13375       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13376       ;;
13377     esac
13378     ;;
13379
13380   *)
13381     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13382     ;;
13383   esac
13384   dynamic_linker='Win32 ld.exe'
13385   # FIXME: first we should search . and the directory the executable is in
13386   shlibpath_var=PATH
13387   ;;
13388
13389 darwin* | rhapsody*)
13390   dynamic_linker="$host_os dyld"
13391   version_type=darwin
13392   need_lib_prefix=no
13393   need_version=no
13394   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13395   soname_spec='${libname}${release}${major}$shared_ext'
13396   shlibpath_overrides_runpath=yes
13397   shlibpath_var=DYLD_LIBRARY_PATH
13398   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13399   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13400   if test "$GCC" = yes; then
13401     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"`
13402   else
13403     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13404   fi
13405   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13406   ;;
13407
13408 dgux*)
13409   version_type=linux
13410   need_lib_prefix=no
13411   need_version=no
13412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13413   soname_spec='${libname}${release}${shared_ext}$major'
13414   shlibpath_var=LD_LIBRARY_PATH
13415   ;;
13416
13417 freebsd1*)
13418   dynamic_linker=no
13419   ;;
13420
13421 kfreebsd*-gnu)
13422   version_type=linux
13423   need_lib_prefix=no
13424   need_version=no
13425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426   soname_spec='${libname}${release}${shared_ext}$major'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   shlibpath_overrides_runpath=no
13429   hardcode_into_libs=yes
13430   dynamic_linker='GNU ld.so'
13431   ;;
13432
13433 freebsd*)
13434   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13435   version_type=freebsd-$objformat
13436   case $version_type in
13437     freebsd-elf*)
13438       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13439       need_version=no
13440       need_lib_prefix=no
13441       ;;
13442     freebsd-*)
13443       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13444       need_version=yes
13445       ;;
13446   esac
13447   shlibpath_var=LD_LIBRARY_PATH
13448   case $host_os in
13449   freebsd2*)
13450     shlibpath_overrides_runpath=yes
13451     ;;
13452   freebsd3.01* | freebsdelf3.01*)
13453     shlibpath_overrides_runpath=yes
13454     hardcode_into_libs=yes
13455     ;;
13456   *) # from 3.2 on
13457     shlibpath_overrides_runpath=no
13458     hardcode_into_libs=yes
13459     ;;
13460   esac
13461   ;;
13462
13463 gnu*)
13464   version_type=linux
13465   need_lib_prefix=no
13466   need_version=no
13467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13468   soname_spec='${libname}${release}${shared_ext}$major'
13469   shlibpath_var=LD_LIBRARY_PATH
13470   hardcode_into_libs=yes
13471   ;;
13472
13473 hpux9* | hpux10* | hpux11*)
13474   # Give a soname corresponding to the major version so that dld.sl refuses to
13475   # link against other versions.
13476   version_type=sunos
13477   need_lib_prefix=no
13478   need_version=no
13479   case "$host_cpu" in
13480   ia64*)
13481     shrext_cmds='.so'
13482     hardcode_into_libs=yes
13483     dynamic_linker="$host_os dld.so"
13484     shlibpath_var=LD_LIBRARY_PATH
13485     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487     soname_spec='${libname}${release}${shared_ext}$major'
13488     if test "X$HPUX_IA64_MODE" = X32; then
13489       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13490     else
13491       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13492     fi
13493     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13494     ;;
13495    hppa*64*)
13496      shrext_cmds='.sl'
13497      hardcode_into_libs=yes
13498      dynamic_linker="$host_os dld.sl"
13499      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13500      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13501      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502      soname_spec='${libname}${release}${shared_ext}$major'
13503      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13504      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13505      ;;
13506    *)
13507     shrext_cmds='.sl'
13508     dynamic_linker="$host_os dld.sl"
13509     shlibpath_var=SHLIB_PATH
13510     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512     soname_spec='${libname}${release}${shared_ext}$major'
13513     ;;
13514   esac
13515   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13516   postinstall_cmds='chmod 555 $lib'
13517   ;;
13518
13519 irix5* | irix6* | nonstopux*)
13520   case $host_os in
13521     nonstopux*) version_type=nonstopux ;;
13522     *)
13523         if test "$lt_cv_prog_gnu_ld" = yes; then
13524                 version_type=linux
13525         else
13526                 version_type=irix
13527         fi ;;
13528   esac
13529   need_lib_prefix=no
13530   need_version=no
13531   soname_spec='${libname}${release}${shared_ext}$major'
13532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13533   case $host_os in
13534   irix5* | nonstopux*)
13535     libsuff= shlibsuff=
13536     ;;
13537   *)
13538     case $LD in # libtool.m4 will add one of these switches to LD
13539     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13540       libsuff= shlibsuff= libmagic=32-bit;;
13541     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13542       libsuff=32 shlibsuff=N32 libmagic=N32;;
13543     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13544       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13545     *) libsuff= shlibsuff= libmagic=never-match;;
13546     esac
13547     ;;
13548   esac
13549   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13550   shlibpath_overrides_runpath=no
13551   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13552   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13553   hardcode_into_libs=yes
13554   ;;
13555
13556 # No shared lib support for Linux oldld, aout, or coff.
13557 linux*oldld* | linux*aout* | linux*coff*)
13558   dynamic_linker=no
13559   ;;
13560
13561 # This must be Linux ELF.
13562 linux*)
13563   version_type=linux
13564   need_lib_prefix=no
13565   need_version=no
13566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567   soname_spec='${libname}${release}${shared_ext}$major'
13568   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13569   shlibpath_var=LD_LIBRARY_PATH
13570   shlibpath_overrides_runpath=no
13571   # This implies no fast_install, which is unacceptable.
13572   # Some rework will be needed to allow for fast_install
13573   # before this can be enabled.
13574   hardcode_into_libs=yes
13575
13576   # find out which ABI we are using
13577   libsuff=
13578   case "$host_cpu" in
13579   x86_64*|s390x*|powerpc64*)
13580     echo '#line 13580 "configure"' > conftest.$ac_ext
13581     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582   (eval $ac_compile) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; then
13586       case `/usr/bin/file conftest.$ac_objext` in
13587       *64-bit*)
13588         libsuff=64
13589         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13590         ;;
13591       esac
13592     fi
13593     rm -rf conftest*
13594     ;;
13595   esac
13596
13597   # Append ld.so.conf contents to the search path
13598   if test -f /etc/ld.so.conf; then
13599     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13600     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13601   fi
13602
13603   # We used to test for /lib/ld.so.1 and disable shared libraries on
13604   # powerpc, because MkLinux only supported shared libraries with the
13605   # GNU dynamic linker.  Since this was broken with cross compilers,
13606   # most powerpc-linux boxes support dynamic linking these days and
13607   # people can always --disable-shared, the test was removed, and we
13608   # assume the GNU/Linux dynamic linker is in use.
13609   dynamic_linker='GNU/Linux ld.so'
13610   ;;
13611
13612 knetbsd*-gnu)
13613   version_type=linux
13614   need_lib_prefix=no
13615   need_version=no
13616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13617   soname_spec='${libname}${release}${shared_ext}$major'
13618   shlibpath_var=LD_LIBRARY_PATH
13619   shlibpath_overrides_runpath=no
13620   hardcode_into_libs=yes
13621   dynamic_linker='GNU ld.so'
13622   ;;
13623
13624 netbsd*)
13625   version_type=sunos
13626   need_lib_prefix=no
13627   need_version=no
13628   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13630     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13631     dynamic_linker='NetBSD (a.out) ld.so'
13632   else
13633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13634     soname_spec='${libname}${release}${shared_ext}$major'
13635     dynamic_linker='NetBSD ld.elf_so'
13636   fi
13637   shlibpath_var=LD_LIBRARY_PATH
13638   shlibpath_overrides_runpath=yes
13639   hardcode_into_libs=yes
13640   ;;
13641
13642 newsos6)
13643   version_type=linux
13644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645   shlibpath_var=LD_LIBRARY_PATH
13646   shlibpath_overrides_runpath=yes
13647   ;;
13648
13649 nto-qnx*)
13650   version_type=linux
13651   need_lib_prefix=no
13652   need_version=no
13653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654   soname_spec='${libname}${release}${shared_ext}$major'
13655   shlibpath_var=LD_LIBRARY_PATH
13656   shlibpath_overrides_runpath=yes
13657   ;;
13658
13659 openbsd*)
13660   version_type=sunos
13661   need_lib_prefix=no
13662   need_version=yes
13663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13664   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13665   shlibpath_var=LD_LIBRARY_PATH
13666   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13667     case $host_os in
13668       openbsd2.[89] | openbsd2.[89].*)
13669         shlibpath_overrides_runpath=no
13670         ;;
13671       *)
13672         shlibpath_overrides_runpath=yes
13673         ;;
13674       esac
13675   else
13676     shlibpath_overrides_runpath=yes
13677   fi
13678   ;;
13679
13680 os2*)
13681   libname_spec='$name'
13682   shrext_cmds=".dll"
13683   need_lib_prefix=no
13684   library_names_spec='$libname${shared_ext} $libname.a'
13685   dynamic_linker='OS/2 ld.exe'
13686   shlibpath_var=LIBPATH
13687   ;;
13688
13689 osf3* | osf4* | osf5*)
13690   version_type=osf
13691   need_lib_prefix=no
13692   need_version=no
13693   soname_spec='${libname}${release}${shared_ext}$major'
13694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695   shlibpath_var=LD_LIBRARY_PATH
13696   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13697   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13698   ;;
13699
13700 sco3.2v5*)
13701   version_type=osf
13702   soname_spec='${libname}${release}${shared_ext}$major'
13703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704   shlibpath_var=LD_LIBRARY_PATH
13705   ;;
13706
13707 solaris*)
13708   version_type=linux
13709   need_lib_prefix=no
13710   need_version=no
13711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13712   soname_spec='${libname}${release}${shared_ext}$major'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   shlibpath_overrides_runpath=yes
13715   hardcode_into_libs=yes
13716   # ldd complains unless libraries are executable
13717   postinstall_cmds='chmod +x $lib'
13718   ;;
13719
13720 sunos4*)
13721   version_type=sunos
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13723   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13724   shlibpath_var=LD_LIBRARY_PATH
13725   shlibpath_overrides_runpath=yes
13726   if test "$with_gnu_ld" = yes; then
13727     need_lib_prefix=no
13728   fi
13729   need_version=yes
13730   ;;
13731
13732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13733   version_type=linux
13734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13735   soname_spec='${libname}${release}${shared_ext}$major'
13736   shlibpath_var=LD_LIBRARY_PATH
13737   case $host_vendor in
13738     sni)
13739       shlibpath_overrides_runpath=no
13740       need_lib_prefix=no
13741       export_dynamic_flag_spec='${wl}-Blargedynsym'
13742       runpath_var=LD_RUN_PATH
13743       ;;
13744     siemens)
13745       need_lib_prefix=no
13746       ;;
13747     motorola)
13748       need_lib_prefix=no
13749       need_version=no
13750       shlibpath_overrides_runpath=no
13751       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13752       ;;
13753   esac
13754   ;;
13755
13756 sysv4*MP*)
13757   if test -d /usr/nec ;then
13758     version_type=linux
13759     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13760     soname_spec='$libname${shared_ext}.$major'
13761     shlibpath_var=LD_LIBRARY_PATH
13762   fi
13763   ;;
13764
13765 uts4*)
13766   version_type=linux
13767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768   soname_spec='${libname}${release}${shared_ext}$major'
13769   shlibpath_var=LD_LIBRARY_PATH
13770   ;;
13771
13772 *)
13773   dynamic_linker=no
13774   ;;
13775 esac
13776 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13777 echo "${ECHO_T}$dynamic_linker" >&6
13778 test "$dynamic_linker" = no && can_build_shared=no
13779
13780 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13781 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13782 hardcode_action_CXX=
13783 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13784    test -n "$runpath_var CXX" || \
13785    test "X$hardcode_automatic_CXX"="Xyes" ; then
13786
13787   # We can hardcode non-existant directories.
13788   if test "$hardcode_direct_CXX" != no &&
13789      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13790      # have to relink, otherwise we might link with an installed library
13791      # when we should be linking with a yet-to-be-installed one
13792      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13793      test "$hardcode_minus_L_CXX" != no; then
13794     # Linking always hardcodes the temporary library directory.
13795     hardcode_action_CXX=relink
13796   else
13797     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13798     hardcode_action_CXX=immediate
13799   fi
13800 else
13801   # We cannot hardcode anything, or else we can only hardcode existing
13802   # directories.
13803   hardcode_action_CXX=unsupported
13804 fi
13805 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13806 echo "${ECHO_T}$hardcode_action_CXX" >&6
13807
13808 if test "$hardcode_action_CXX" = relink; then
13809   # Fast installation is not supported
13810   enable_fast_install=no
13811 elif test "$shlibpath_overrides_runpath" = yes ||
13812      test "$enable_shared" = no; then
13813   # Fast installation is not necessary
13814   enable_fast_install=needless
13815 fi
13816
13817 striplib=
13818 old_striplib=
13819 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13820 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13821 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13822   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13823   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13824   echo "$as_me:$LINENO: result: yes" >&5
13825 echo "${ECHO_T}yes" >&6
13826 else
13827 # FIXME - insert some real tests, host_os isn't really good enough
13828   case $host_os in
13829    darwin*)
13830        if test -n "$STRIP" ; then
13831          striplib="$STRIP -x"
13832          echo "$as_me:$LINENO: result: yes" >&5
13833 echo "${ECHO_T}yes" >&6
13834        else
13835   echo "$as_me:$LINENO: result: no" >&5
13836 echo "${ECHO_T}no" >&6
13837 fi
13838        ;;
13839    *)
13840   echo "$as_me:$LINENO: result: no" >&5
13841 echo "${ECHO_T}no" >&6
13842     ;;
13843   esac
13844 fi
13845
13846 if test "x$enable_dlopen" != xyes; then
13847   enable_dlopen=unknown
13848   enable_dlopen_self=unknown
13849   enable_dlopen_self_static=unknown
13850 else
13851   lt_cv_dlopen=no
13852   lt_cv_dlopen_libs=
13853
13854   case $host_os in
13855   beos*)
13856     lt_cv_dlopen="load_add_on"
13857     lt_cv_dlopen_libs=
13858     lt_cv_dlopen_self=yes
13859     ;;
13860
13861   mingw* | pw32*)
13862     lt_cv_dlopen="LoadLibrary"
13863     lt_cv_dlopen_libs=
13864    ;;
13865
13866   cygwin*)
13867     lt_cv_dlopen="dlopen"
13868     lt_cv_dlopen_libs=
13869    ;;
13870
13871   darwin*)
13872   # if libdl is installed we need to link against it
13873     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-ldl  $LIBS"
13880 cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h.  */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h.  */
13886
13887 /* Override any gcc2 internal prototype to avoid an error.  */
13888 #ifdef __cplusplus
13889 extern "C"
13890 #endif
13891 /* We use char because int might match the return type of a gcc2
13892    builtin and then its argument prototype would still apply.  */
13893 char dlopen ();
13894 int
13895 main ()
13896 {
13897 dlopen ();
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904   (eval $ac_link) 2>conftest.er1
13905   ac_status=$?
13906   grep -v '^ *+' conftest.er1 >conftest.err
13907   rm -f conftest.er1
13908   cat conftest.err >&5
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); } &&
13911          { ac_try='test -z "$ac_cxx_werror_flag"
13912                          || test ! -s conftest.err'
13913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914   (eval $ac_try) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; } &&
13918          { ac_try='test -s conftest$ac_exeext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_cv_lib_dl_dlopen=yes
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_cv_lib_dl_dlopen=no
13930 fi
13931 rm -f conftest.err conftest.$ac_objext \
13932       conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13934 fi
13935 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13937 if test $ac_cv_lib_dl_dlopen = yes; then
13938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13939 else
13940
13941     lt_cv_dlopen="dyld"
13942     lt_cv_dlopen_libs=
13943     lt_cv_dlopen_self=yes
13944
13945 fi
13946
13947    ;;
13948
13949   *)
13950     echo "$as_me:$LINENO: checking for shl_load" >&5
13951 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13952 if test "${ac_cv_func_shl_load+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955   cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h.  */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h.  */
13961 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13963 #define shl_load innocuous_shl_load
13964
13965 /* System header to define __stub macros and hopefully few prototypes,
13966     which can conflict with char shl_load (); below.
13967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13968     <limits.h> exists even on freestanding compilers.  */
13969
13970 #ifdef __STDC__
13971 # include <limits.h>
13972 #else
13973 # include <assert.h>
13974 #endif
13975
13976 #undef shl_load
13977
13978 /* Override any gcc2 internal prototype to avoid an error.  */
13979 #ifdef __cplusplus
13980 extern "C"
13981 {
13982 #endif
13983 /* We use char because int might match the return type of a gcc2
13984    builtin and then its argument prototype would still apply.  */
13985 char shl_load ();
13986 /* The GNU C library defines this for functions which it implements
13987     to always fail with ENOSYS.  Some functions are actually named
13988     something starting with __ and the normal name is an alias.  */
13989 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13990 choke me
13991 #else
13992 char (*f) () = shl_load;
13993 #endif
13994 #ifdef __cplusplus
13995 }
13996 #endif
13997
13998 int
13999 main ()
14000 {
14001 return f != shl_load;
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 rm -f conftest.$ac_objext conftest$ac_exeext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008   (eval $ac_link) 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } &&
14015          { ac_try='test -z "$ac_cxx_werror_flag"
14016                          || test ! -s conftest.err'
14017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018   (eval $ac_try) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; } &&
14022          { ac_try='test -s conftest$ac_exeext'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   ac_cv_func_shl_load=yes
14029 else
14030   echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_cv_func_shl_load=no
14034 fi
14035 rm -f conftest.err conftest.$ac_objext \
14036       conftest$ac_exeext conftest.$ac_ext
14037 fi
14038 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14039 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14040 if test $ac_cv_func_shl_load = yes; then
14041   lt_cv_dlopen="shl_load"
14042 else
14043   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14044 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14045 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   ac_check_lib_save_LIBS=$LIBS
14049 LIBS="-ldld  $LIBS"
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056
14057 /* Override any gcc2 internal prototype to avoid an error.  */
14058 #ifdef __cplusplus
14059 extern "C"
14060 #endif
14061 /* We use char because int might match the return type of a gcc2
14062    builtin and then its argument prototype would still apply.  */
14063 char shl_load ();
14064 int
14065 main ()
14066 {
14067 shl_load ();
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074   (eval $ac_link) 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -z "$ac_cxx_werror_flag"
14082                          || test ! -s conftest.err'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; } &&
14088          { ac_try='test -s conftest$ac_exeext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   ac_cv_lib_dld_shl_load=yes
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ac_cv_lib_dld_shl_load=no
14100 fi
14101 rm -f conftest.err conftest.$ac_objext \
14102       conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14104 fi
14105 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14106 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14107 if test $ac_cv_lib_dld_shl_load = yes; then
14108   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14109 else
14110   echo "$as_me:$LINENO: checking for dlopen" >&5
14111 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14112 if test "${ac_cv_func_dlopen+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14123 #define dlopen innocuous_dlopen
14124
14125 /* System header to define __stub macros and hopefully few prototypes,
14126     which can conflict with char dlopen (); below.
14127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14128     <limits.h> exists even on freestanding compilers.  */
14129
14130 #ifdef __STDC__
14131 # include <limits.h>
14132 #else
14133 # include <assert.h>
14134 #endif
14135
14136 #undef dlopen
14137
14138 /* Override any gcc2 internal prototype to avoid an error.  */
14139 #ifdef __cplusplus
14140 extern "C"
14141 {
14142 #endif
14143 /* We use char because int might match the return type of a gcc2
14144    builtin and then its argument prototype would still apply.  */
14145 char dlopen ();
14146 /* The GNU C library defines this for functions which it implements
14147     to always fail with ENOSYS.  Some functions are actually named
14148     something starting with __ and the normal name is an alias.  */
14149 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14150 choke me
14151 #else
14152 char (*f) () = dlopen;
14153 #endif
14154 #ifdef __cplusplus
14155 }
14156 #endif
14157
14158 int
14159 main ()
14160 {
14161 return f != dlopen;
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168   (eval $ac_link) 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_cxx_werror_flag"
14176                          || test ! -s conftest.err'
14177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178   (eval $ac_try) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; } &&
14182          { ac_try='test -s conftest$ac_exeext'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; }; then
14188   ac_cv_func_dlopen=yes
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_cv_func_dlopen=no
14194 fi
14195 rm -f conftest.err conftest.$ac_objext \
14196       conftest$ac_exeext conftest.$ac_ext
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14199 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14200 if test $ac_cv_func_dlopen = yes; then
14201   lt_cv_dlopen="dlopen"
14202 else
14203   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   ac_check_lib_save_LIBS=$LIBS
14209 LIBS="-ldl  $LIBS"
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216
14217 /* Override any gcc2 internal prototype to avoid an error.  */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 /* We use char because int might match the return type of a gcc2
14222    builtin and then its argument prototype would still apply.  */
14223 char dlopen ();
14224 int
14225 main ()
14226 {
14227 dlopen ();
14228   ;
14229   return 0;
14230 }
14231 _ACEOF
14232 rm -f conftest.$ac_objext conftest$ac_exeext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14234   (eval $ac_link) 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_cxx_werror_flag"
14242                          || test ! -s conftest.err'
14243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244   (eval $ac_try) 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; } &&
14248          { ac_try='test -s conftest$ac_exeext'
14249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250   (eval $ac_try) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; }; then
14254   ac_cv_lib_dl_dlopen=yes
14255 else
14256   echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 ac_cv_lib_dl_dlopen=no
14260 fi
14261 rm -f conftest.err conftest.$ac_objext \
14262       conftest$ac_exeext conftest.$ac_ext
14263 LIBS=$ac_check_lib_save_LIBS
14264 fi
14265 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14266 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14267 if test $ac_cv_lib_dl_dlopen = yes; then
14268   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14269 else
14270   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14271 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14272 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   ac_check_lib_save_LIBS=$LIBS
14276 LIBS="-lsvld  $LIBS"
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283
14284 /* Override any gcc2 internal prototype to avoid an error.  */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 /* We use char because int might match the return type of a gcc2
14289    builtin and then its argument prototype would still apply.  */
14290 char dlopen ();
14291 int
14292 main ()
14293 {
14294 dlopen ();
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext conftest$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301   (eval $ac_link) 2>conftest.er1
14302   ac_status=$?
14303   grep -v '^ *+' conftest.er1 >conftest.err
14304   rm -f conftest.er1
14305   cat conftest.err >&5
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); } &&
14308          { ac_try='test -z "$ac_cxx_werror_flag"
14309                          || test ! -s conftest.err'
14310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311   (eval $ac_try) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; } &&
14315          { ac_try='test -s conftest$ac_exeext'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   ac_cv_lib_svld_dlopen=yes
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ac_cv_lib_svld_dlopen=no
14327 fi
14328 rm -f conftest.err conftest.$ac_objext \
14329       conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14331 fi
14332 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14333 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14334 if test $ac_cv_lib_svld_dlopen = yes; then
14335   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14336 else
14337   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14338 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14339 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14340   echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342   ac_check_lib_save_LIBS=$LIBS
14343 LIBS="-ldld  $LIBS"
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350
14351 /* Override any gcc2 internal prototype to avoid an error.  */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 /* We use char because int might match the return type of a gcc2
14356    builtin and then its argument prototype would still apply.  */
14357 char dld_link ();
14358 int
14359 main ()
14360 {
14361 dld_link ();
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368   (eval $ac_link) 2>conftest.er1
14369   ac_status=$?
14370   grep -v '^ *+' conftest.er1 >conftest.err
14371   rm -f conftest.er1
14372   cat conftest.err >&5
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); } &&
14375          { ac_try='test -z "$ac_cxx_werror_flag"
14376                          || test ! -s conftest.err'
14377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378   (eval $ac_try) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; } &&
14382          { ac_try='test -s conftest$ac_exeext'
14383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384   (eval $ac_try) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; }; then
14388   ac_cv_lib_dld_dld_link=yes
14389 else
14390   echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 ac_cv_lib_dld_dld_link=no
14394 fi
14395 rm -f conftest.err conftest.$ac_objext \
14396       conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_check_lib_save_LIBS
14398 fi
14399 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14400 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14401 if test $ac_cv_lib_dld_dld_link = yes; then
14402   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14403 fi
14404
14405
14406 fi
14407
14408
14409 fi
14410
14411
14412 fi
14413
14414
14415 fi
14416
14417
14418 fi
14419
14420     ;;
14421   esac
14422
14423   if test "x$lt_cv_dlopen" != xno; then
14424     enable_dlopen=yes
14425   else
14426     enable_dlopen=no
14427   fi
14428
14429   case $lt_cv_dlopen in
14430   dlopen)
14431     save_CPPFLAGS="$CPPFLAGS"
14432     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14433
14434     save_LDFLAGS="$LDFLAGS"
14435     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14436
14437     save_LIBS="$LIBS"
14438     LIBS="$lt_cv_dlopen_libs $LIBS"
14439
14440     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14441 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14442 if test "${lt_cv_dlopen_self+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445           if test "$cross_compiling" = yes; then :
14446   lt_cv_dlopen_self=cross
14447 else
14448   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14449   lt_status=$lt_dlunknown
14450   cat > conftest.$ac_ext <<EOF
14451 #line 14451 "configure"
14452 #include "confdefs.h"
14453
14454 #if HAVE_DLFCN_H
14455 #include <dlfcn.h>
14456 #endif
14457
14458 #include <stdio.h>
14459
14460 #ifdef RTLD_GLOBAL
14461 #  define LT_DLGLOBAL           RTLD_GLOBAL
14462 #else
14463 #  ifdef DL_GLOBAL
14464 #    define LT_DLGLOBAL         DL_GLOBAL
14465 #  else
14466 #    define LT_DLGLOBAL         0
14467 #  endif
14468 #endif
14469
14470 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14471    find out it does not work in some platform. */
14472 #ifndef LT_DLLAZY_OR_NOW
14473 #  ifdef RTLD_LAZY
14474 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14475 #  else
14476 #    ifdef DL_LAZY
14477 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14478 #    else
14479 #      ifdef RTLD_NOW
14480 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14481 #      else
14482 #        ifdef DL_NOW
14483 #          define LT_DLLAZY_OR_NOW      DL_NOW
14484 #        else
14485 #          define LT_DLLAZY_OR_NOW      0
14486 #        endif
14487 #      endif
14488 #    endif
14489 #  endif
14490 #endif
14491
14492 #ifdef __cplusplus
14493 extern "C" void exit (int);
14494 #endif
14495
14496 void fnord() { int i=42;}
14497 int main ()
14498 {
14499   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14500   int status = $lt_dlunknown;
14501
14502   if (self)
14503     {
14504       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14505       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14506       /* dlclose (self); */
14507     }
14508
14509     exit (status);
14510 }
14511 EOF
14512   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513   (eval $ac_link) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14517     (./conftest; exit; ) 2>/dev/null
14518     lt_status=$?
14519     case x$lt_status in
14520       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14521       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14522       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14523     esac
14524   else :
14525     # compilation failed
14526     lt_cv_dlopen_self=no
14527   fi
14528 fi
14529 rm -fr conftest*
14530
14531
14532 fi
14533 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14534 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14535
14536     if test "x$lt_cv_dlopen_self" = xyes; then
14537       LDFLAGS="$LDFLAGS $link_static_flag"
14538       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14539 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14540 if test "${lt_cv_dlopen_self_static+set}" = set; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543           if test "$cross_compiling" = yes; then :
14544   lt_cv_dlopen_self_static=cross
14545 else
14546   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14547   lt_status=$lt_dlunknown
14548   cat > conftest.$ac_ext <<EOF
14549 #line 14549 "configure"
14550 #include "confdefs.h"
14551
14552 #if HAVE_DLFCN_H
14553 #include <dlfcn.h>
14554 #endif
14555
14556 #include <stdio.h>
14557
14558 #ifdef RTLD_GLOBAL
14559 #  define LT_DLGLOBAL           RTLD_GLOBAL
14560 #else
14561 #  ifdef DL_GLOBAL
14562 #    define LT_DLGLOBAL         DL_GLOBAL
14563 #  else
14564 #    define LT_DLGLOBAL         0
14565 #  endif
14566 #endif
14567
14568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569    find out it does not work in some platform. */
14570 #ifndef LT_DLLAZY_OR_NOW
14571 #  ifdef RTLD_LAZY
14572 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14573 #  else
14574 #    ifdef DL_LAZY
14575 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14576 #    else
14577 #      ifdef RTLD_NOW
14578 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14579 #      else
14580 #        ifdef DL_NOW
14581 #          define LT_DLLAZY_OR_NOW      DL_NOW
14582 #        else
14583 #          define LT_DLLAZY_OR_NOW      0
14584 #        endif
14585 #      endif
14586 #    endif
14587 #  endif
14588 #endif
14589
14590 #ifdef __cplusplus
14591 extern "C" void exit (int);
14592 #endif
14593
14594 void fnord() { int i=42;}
14595 int main ()
14596 {
14597   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14598   int status = $lt_dlunknown;
14599
14600   if (self)
14601     {
14602       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14603       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14604       /* dlclose (self); */
14605     }
14606
14607     exit (status);
14608 }
14609 EOF
14610   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611   (eval $ac_link) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14615     (./conftest; exit; ) 2>/dev/null
14616     lt_status=$?
14617     case x$lt_status in
14618       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14619       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14620       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14621     esac
14622   else :
14623     # compilation failed
14624     lt_cv_dlopen_self_static=no
14625   fi
14626 fi
14627 rm -fr conftest*
14628
14629
14630 fi
14631 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14632 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14633     fi
14634
14635     CPPFLAGS="$save_CPPFLAGS"
14636     LDFLAGS="$save_LDFLAGS"
14637     LIBS="$save_LIBS"
14638     ;;
14639   esac
14640
14641   case $lt_cv_dlopen_self in
14642   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14643   *) enable_dlopen_self=unknown ;;
14644   esac
14645
14646   case $lt_cv_dlopen_self_static in
14647   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14648   *) enable_dlopen_self_static=unknown ;;
14649   esac
14650 fi
14651
14652
14653 # The else clause should only fire when bootstrapping the
14654 # libtool distribution, otherwise you forgot to ship ltmain.sh
14655 # with your package, and you will get complaints that there are
14656 # no rules to generate ltmain.sh.
14657 if test -f "$ltmain"; then
14658   # See if we are running on zsh, and set the options which allow our commands through
14659   # without removal of \ escapes.
14660   if test -n "${ZSH_VERSION+set}" ; then
14661     setopt NO_GLOB_SUBST
14662   fi
14663   # Now quote all the things that may contain metacharacters while being
14664   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14665   # variables and quote the copies for generation of the libtool script.
14666   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14667     SED SHELL STRIP \
14668     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14669     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14670     deplibs_check_method reload_flag reload_cmds need_locks \
14671     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14672     lt_cv_sys_global_symbol_to_c_name_address \
14673     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14674     old_postinstall_cmds old_postuninstall_cmds \
14675     compiler_CXX \
14676     CC_CXX \
14677     LD_CXX \
14678     lt_prog_compiler_wl_CXX \
14679     lt_prog_compiler_pic_CXX \
14680     lt_prog_compiler_static_CXX \
14681     lt_prog_compiler_no_builtin_flag_CXX \
14682     export_dynamic_flag_spec_CXX \
14683     thread_safe_flag_spec_CXX \
14684     whole_archive_flag_spec_CXX \
14685     enable_shared_with_static_runtimes_CXX \
14686     old_archive_cmds_CXX \
14687     old_archive_from_new_cmds_CXX \
14688     predep_objects_CXX \
14689     postdep_objects_CXX \
14690     predeps_CXX \
14691     postdeps_CXX \
14692     compiler_lib_search_path_CXX \
14693     archive_cmds_CXX \
14694     archive_expsym_cmds_CXX \
14695     postinstall_cmds_CXX \
14696     postuninstall_cmds_CXX \
14697     old_archive_from_expsyms_cmds_CXX \
14698     allow_undefined_flag_CXX \
14699     no_undefined_flag_CXX \
14700     export_symbols_cmds_CXX \
14701     hardcode_libdir_flag_spec_CXX \
14702     hardcode_libdir_flag_spec_ld_CXX \
14703     hardcode_libdir_separator_CXX \
14704     hardcode_automatic_CXX \
14705     module_cmds_CXX \
14706     module_expsym_cmds_CXX \
14707     lt_cv_prog_compiler_c_o_CXX \
14708     exclude_expsyms_CXX \
14709     include_expsyms_CXX; do
14710
14711     case $var in
14712     old_archive_cmds_CXX | \
14713     old_archive_from_new_cmds_CXX | \
14714     archive_cmds_CXX | \
14715     archive_expsym_cmds_CXX | \
14716     module_cmds_CXX | \
14717     module_expsym_cmds_CXX | \
14718     old_archive_from_expsyms_cmds_CXX | \
14719     export_symbols_cmds_CXX | \
14720     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14721     postinstall_cmds | postuninstall_cmds | \
14722     old_postinstall_cmds | old_postuninstall_cmds | \
14723     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14724       # Double-quote double-evaled strings.
14725       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14726       ;;
14727     *)
14728       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14729       ;;
14730     esac
14731   done
14732
14733   case $lt_echo in
14734   *'\$0 --fallback-echo"')
14735     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14736     ;;
14737   esac
14738
14739 cfgfile="$ofile"
14740
14741   cat <<__EOF__ >> "$cfgfile"
14742 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14743
14744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14745
14746 # Shell to use when invoking shell scripts.
14747 SHELL=$lt_SHELL
14748
14749 # Whether or not to build shared libraries.
14750 build_libtool_libs=$enable_shared
14751
14752 # Whether or not to build static libraries.
14753 build_old_libs=$enable_static
14754
14755 # Whether or not to add -lc for building shared libraries.
14756 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14757
14758 # Whether or not to disallow shared libs when runtime libs are static
14759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14760
14761 # Whether or not to optimize for fast installation.
14762 fast_install=$enable_fast_install
14763
14764 # The host system.
14765 host_alias=$host_alias
14766 host=$host
14767
14768 # An echo program that does not interpret backslashes.
14769 echo=$lt_echo
14770
14771 # The archiver.
14772 AR=$lt_AR
14773 AR_FLAGS=$lt_AR_FLAGS
14774
14775 # A C compiler.
14776 LTCC=$lt_LTCC
14777
14778 # A language-specific compiler.
14779 CC=$lt_compiler_CXX
14780
14781 # Is the compiler the GNU C compiler?
14782 with_gcc=$GCC_CXX
14783
14784 # An ERE matcher.
14785 EGREP=$lt_EGREP
14786
14787 # The linker used to build libraries.
14788 LD=$lt_LD_CXX
14789
14790 # Whether we need hard or soft links.
14791 LN_S=$lt_LN_S
14792
14793 # A BSD-compatible nm program.
14794 NM=$lt_NM
14795
14796 # A symbol stripping program
14797 STRIP=$lt_STRIP
14798
14799 # Used to examine libraries when file_magic_cmd begins "file"
14800 MAGIC_CMD=$MAGIC_CMD
14801
14802 # Used on cygwin: DLL creation program.
14803 DLLTOOL="$DLLTOOL"
14804
14805 # Used on cygwin: object dumper.
14806 OBJDUMP="$OBJDUMP"
14807
14808 # Used on cygwin: assembler.
14809 AS="$AS"
14810
14811 # The name of the directory that contains temporary libtool files.
14812 objdir=$objdir
14813
14814 # How to create reloadable object files.
14815 reload_flag=$lt_reload_flag
14816 reload_cmds=$lt_reload_cmds
14817
14818 # How to pass a linker flag through the compiler.
14819 wl=$lt_lt_prog_compiler_wl_CXX
14820
14821 # Object file suffix (normally "o").
14822 objext="$ac_objext"
14823
14824 # Old archive suffix (normally "a").
14825 libext="$libext"
14826
14827 # Shared library suffix (normally ".so").
14828 shrext_cmds='$shrext_cmds'
14829
14830 # Executable file suffix (normally "").
14831 exeext="$exeext"
14832
14833 # Additional compiler flags for building library objects.
14834 pic_flag=$lt_lt_prog_compiler_pic_CXX
14835 pic_mode=$pic_mode
14836
14837 # What is the maximum length of a command?
14838 max_cmd_len=$lt_cv_sys_max_cmd_len
14839
14840 # Does compiler simultaneously support -c and -o options?
14841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14842
14843 # Must we lock files when doing compilation ?
14844 need_locks=$lt_need_locks
14845
14846 # Do we need the lib prefix for modules?
14847 need_lib_prefix=$need_lib_prefix
14848
14849 # Do we need a version for libraries?
14850 need_version=$need_version
14851
14852 # Whether dlopen is supported.
14853 dlopen_support=$enable_dlopen
14854
14855 # Whether dlopen of programs is supported.
14856 dlopen_self=$enable_dlopen_self
14857
14858 # Whether dlopen of statically linked programs is supported.
14859 dlopen_self_static=$enable_dlopen_self_static
14860
14861 # Compiler flag to prevent dynamic linking.
14862 link_static_flag=$lt_lt_prog_compiler_static_CXX
14863
14864 # Compiler flag to turn off builtin functions.
14865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14866
14867 # Compiler flag to allow reflexive dlopens.
14868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14869
14870 # Compiler flag to generate shared objects directly from archives.
14871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14872
14873 # Compiler flag to generate thread-safe objects.
14874 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14875
14876 # Library versioning type.
14877 version_type=$version_type
14878
14879 # Format of library name prefix.
14880 libname_spec=$lt_libname_spec
14881
14882 # List of archive names.  First name is the real one, the rest are links.
14883 # The last name is the one that the linker finds with -lNAME.
14884 library_names_spec=$lt_library_names_spec
14885
14886 # The coded name of the library, if different from the real name.
14887 soname_spec=$lt_soname_spec
14888
14889 # Commands used to build and install an old-style archive.
14890 RANLIB=$lt_RANLIB
14891 old_archive_cmds=$lt_old_archive_cmds_CXX
14892 old_postinstall_cmds=$lt_old_postinstall_cmds
14893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14894
14895 # Create an old-style archive from a shared archive.
14896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14897
14898 # Create a temporary old-style archive to link instead of a shared archive.
14899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14900
14901 # Commands used to build and install a shared archive.
14902 archive_cmds=$lt_archive_cmds_CXX
14903 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14904 postinstall_cmds=$lt_postinstall_cmds
14905 postuninstall_cmds=$lt_postuninstall_cmds
14906
14907 # Commands used to build a loadable module (assumed same as above if empty)
14908 module_cmds=$lt_module_cmds_CXX
14909 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14910
14911 # Commands to strip libraries.
14912 old_striplib=$lt_old_striplib
14913 striplib=$lt_striplib
14914
14915 # Dependencies to place before the objects being linked to create a
14916 # shared library.
14917 predep_objects=$lt_predep_objects_CXX
14918
14919 # Dependencies to place after the objects being linked to create a
14920 # shared library.
14921 postdep_objects=$lt_postdep_objects_CXX
14922
14923 # Dependencies to place before the objects being linked to create a
14924 # shared library.
14925 predeps=$lt_predeps_CXX
14926
14927 # Dependencies to place after the objects being linked to create a
14928 # shared library.
14929 postdeps=$lt_postdeps_CXX
14930
14931 # The library search path used internally by the compiler when linking
14932 # a shared library.
14933 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14934
14935 # Method to check whether dependent libraries are shared objects.
14936 deplibs_check_method=$lt_deplibs_check_method
14937
14938 # Command to use when deplibs_check_method == file_magic.
14939 file_magic_cmd=$lt_file_magic_cmd
14940
14941 # Flag that allows shared libraries with undefined symbols to be built.
14942 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14943
14944 # Flag that forces no undefined symbols.
14945 no_undefined_flag=$lt_no_undefined_flag_CXX
14946
14947 # Commands used to finish a libtool library installation in a directory.
14948 finish_cmds=$lt_finish_cmds
14949
14950 # Same as above, but a single script fragment to be evaled but not shown.
14951 finish_eval=$lt_finish_eval
14952
14953 # Take the output of nm and produce a listing of raw symbols and C names.
14954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14955
14956 # Transform the output of nm in a proper C declaration
14957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14958
14959 # Transform the output of nm in a C name address pair
14960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14961
14962 # This is the shared library runtime path variable.
14963 runpath_var=$runpath_var
14964
14965 # This is the shared library path variable.
14966 shlibpath_var=$shlibpath_var
14967
14968 # Is shlibpath searched before the hard-coded library search path?
14969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14970
14971 # How to hardcode a shared library path into an executable.
14972 hardcode_action=$hardcode_action_CXX
14973
14974 # Whether we should hardcode library paths into libraries.
14975 hardcode_into_libs=$hardcode_into_libs
14976
14977 # Flag to hardcode \$libdir into a binary during linking.
14978 # This must work even if \$libdir does not exist.
14979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14980
14981 # If ld is used when linking, flag to hardcode \$libdir into
14982 # a binary during linking. This must work even if \$libdir does
14983 # not exist.
14984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14985
14986 # Whether we need a single -rpath flag with a separated argument.
14987 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14988
14989 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14990 # resulting binary.
14991 hardcode_direct=$hardcode_direct_CXX
14992
14993 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14994 # resulting binary.
14995 hardcode_minus_L=$hardcode_minus_L_CXX
14996
14997 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14998 # the resulting binary.
14999 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15000
15001 # Set to yes if building a shared library automatically hardcodes DIR into the library
15002 # and all subsequent libraries and executables linked against it.
15003 hardcode_automatic=$hardcode_automatic_CXX
15004
15005 # Variables whose values should be saved in libtool wrapper scripts and
15006 # restored at relink time.
15007 variables_saved_for_relink="$variables_saved_for_relink"
15008
15009 # Whether libtool must link a program against all its dependency libraries.
15010 link_all_deplibs=$link_all_deplibs_CXX
15011
15012 # Compile-time system search path for libraries
15013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15014
15015 # Run-time system search path for libraries
15016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15017
15018 # Fix the shell variable \$srcfile for the compiler.
15019 fix_srcfile_path="$fix_srcfile_path_CXX"
15020
15021 # Set to yes if exported symbols are required.
15022 always_export_symbols=$always_export_symbols_CXX
15023
15024 # The commands to list exported symbols.
15025 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15026
15027 # The commands to extract the exported symbol list from a shared archive.
15028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15029
15030 # Symbols that should not be listed in the preloaded symbols.
15031 exclude_expsyms=$lt_exclude_expsyms_CXX
15032
15033 # Symbols that must always be exported.
15034 include_expsyms=$lt_include_expsyms_CXX
15035
15036 # ### END LIBTOOL TAG CONFIG: $tagname
15037
15038 __EOF__
15039
15040
15041 else
15042   # If there is no Makefile yet, we rely on a make rule to execute
15043   # `config.status --recheck' to rerun these tests and create the
15044   # libtool script then.
15045   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15046   if test -f "$ltmain_in"; then
15047     test -f Makefile && make "$ltmain"
15048   fi
15049 fi
15050
15051
15052 ac_ext=c
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15057
15058 CC=$lt_save_CC
15059 LDCXX=$LD
15060 LD=$lt_save_LD
15061 GCC=$lt_save_GCC
15062 with_gnu_ldcxx=$with_gnu_ld
15063 with_gnu_ld=$lt_save_with_gnu_ld
15064 lt_cv_path_LDCXX=$lt_cv_path_LD
15065 lt_cv_path_LD=$lt_save_path_LD
15066 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15067 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15068
15069         else
15070           tagname=""
15071         fi
15072         ;;
15073
15074       F77)
15075         if test -n "$F77" && test "X$F77" != "Xno"; then
15076
15077 ac_ext=f
15078 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15079 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15080 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15081
15082
15083 archive_cmds_need_lc_F77=no
15084 allow_undefined_flag_F77=
15085 always_export_symbols_F77=no
15086 archive_expsym_cmds_F77=
15087 export_dynamic_flag_spec_F77=
15088 hardcode_direct_F77=no
15089 hardcode_libdir_flag_spec_F77=
15090 hardcode_libdir_flag_spec_ld_F77=
15091 hardcode_libdir_separator_F77=
15092 hardcode_minus_L_F77=no
15093 hardcode_automatic_F77=no
15094 module_cmds_F77=
15095 module_expsym_cmds_F77=
15096 link_all_deplibs_F77=unknown
15097 old_archive_cmds_F77=$old_archive_cmds
15098 no_undefined_flag_F77=
15099 whole_archive_flag_spec_F77=
15100 enable_shared_with_static_runtimes_F77=no
15101
15102 # Source file extension for f77 test sources.
15103 ac_ext=f
15104
15105 # Object file extension for compiled f77 test sources.
15106 objext=o
15107 objext_F77=$objext
15108
15109 # Code to be used in simple compile tests
15110 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15111
15112 # Code to be used in simple link tests
15113 lt_simple_link_test_code="      program t\n      end\n"
15114
15115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15116
15117 # If no C compiler was specified, use CC.
15118 LTCC=${LTCC-"$CC"}
15119
15120 # Allow CC to be a program name with arguments.
15121 compiler=$CC
15122
15123
15124 # Allow CC to be a program name with arguments.
15125 lt_save_CC="$CC"
15126 CC=${F77-"f77"}
15127 compiler=$CC
15128 compiler_F77=$CC
15129 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15130
15131 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15132 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15133 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15134 echo "${ECHO_T}$can_build_shared" >&6
15135
15136 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15137 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15138 test "$can_build_shared" = "no" && enable_shared=no
15139
15140 # On AIX, shared libraries and static libraries use the same namespace, and
15141 # are all built from PIC.
15142 case "$host_os" in
15143 aix3*)
15144   test "$enable_shared" = yes && enable_static=no
15145   if test -n "$RANLIB"; then
15146     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15147     postinstall_cmds='$RANLIB $lib'
15148   fi
15149   ;;
15150 aix4* | aix5*)
15151   test "$enable_shared" = yes && enable_static=no
15152   ;;
15153 esac
15154 echo "$as_me:$LINENO: result: $enable_shared" >&5
15155 echo "${ECHO_T}$enable_shared" >&6
15156
15157 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15158 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15159 # Make sure either enable_shared or enable_static is yes.
15160 test "$enable_shared" = yes || enable_static=yes
15161 echo "$as_me:$LINENO: result: $enable_static" >&5
15162 echo "${ECHO_T}$enable_static" >&6
15163
15164 test "$ld_shlibs_F77" = no && can_build_shared=no
15165
15166 GCC_F77="$G77"
15167 LD_F77="$LD"
15168
15169 lt_prog_compiler_wl_F77=
15170 lt_prog_compiler_pic_F77=
15171 lt_prog_compiler_static_F77=
15172
15173 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15174 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15175
15176   if test "$GCC" = yes; then
15177     lt_prog_compiler_wl_F77='-Wl,'
15178     lt_prog_compiler_static_F77='-static'
15179
15180     case $host_os in
15181       aix*)
15182       # All AIX code is PIC.
15183       if test "$host_cpu" = ia64; then
15184         # AIX 5 now supports IA64 processor
15185         lt_prog_compiler_static_F77='-Bstatic'
15186       fi
15187       ;;
15188
15189     amigaos*)
15190       # FIXME: we need at least 68020 code to build shared libraries, but
15191       # adding the `-m68020' flag to GCC prevents building anything better,
15192       # like `-m68040'.
15193       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15194       ;;
15195
15196     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15197       # PIC is the default for these OSes.
15198       ;;
15199
15200     mingw* | pw32* | os2*)
15201       # This hack is so that the source file can tell whether it is being
15202       # built for inclusion in a dll (and should export symbols for example).
15203       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15204       ;;
15205
15206     darwin* | rhapsody*)
15207       # PIC is the default on this platform
15208       # Common symbols not allowed in MH_DYLIB files
15209       lt_prog_compiler_pic_F77='-fno-common'
15210       ;;
15211
15212     msdosdjgpp*)
15213       # Just because we use GCC doesn't mean we suddenly get shared libraries
15214       # on systems that don't support them.
15215       lt_prog_compiler_can_build_shared_F77=no
15216       enable_shared=no
15217       ;;
15218
15219     sysv4*MP*)
15220       if test -d /usr/nec; then
15221         lt_prog_compiler_pic_F77=-Kconform_pic
15222       fi
15223       ;;
15224
15225     hpux*)
15226       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15227       # not for PA HP-UX.
15228       case "$host_cpu" in
15229       hppa*64*|ia64*)
15230         # +Z the default
15231         ;;
15232       *)
15233         lt_prog_compiler_pic_F77='-fPIC'
15234         ;;
15235       esac
15236       ;;
15237
15238     *)
15239       lt_prog_compiler_pic_F77='-fPIC'
15240       ;;
15241     esac
15242   else
15243     # PORTME Check for flag to pass linker flags through the system compiler.
15244     case $host_os in
15245     aix*)
15246       lt_prog_compiler_wl_F77='-Wl,'
15247       if test "$host_cpu" = ia64; then
15248         # AIX 5 now supports IA64 processor
15249         lt_prog_compiler_static_F77='-Bstatic'
15250       else
15251         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15252       fi
15253       ;;
15254
15255     mingw* | pw32* | os2*)
15256       # This hack is so that the source file can tell whether it is being
15257       # built for inclusion in a dll (and should export symbols for example).
15258       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15259       ;;
15260
15261     hpux9* | hpux10* | hpux11*)
15262       lt_prog_compiler_wl_F77='-Wl,'
15263       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15264       # not for PA HP-UX.
15265       case "$host_cpu" in
15266       hppa*64*|ia64*)
15267         # +Z the default
15268         ;;
15269       *)
15270         lt_prog_compiler_pic_F77='+Z'
15271         ;;
15272       esac
15273       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15274       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15275       ;;
15276
15277     irix5* | irix6* | nonstopux*)
15278       lt_prog_compiler_wl_F77='-Wl,'
15279       # PIC (with -KPIC) is the default.
15280       lt_prog_compiler_static_F77='-non_shared'
15281       ;;
15282
15283     newsos6)
15284       lt_prog_compiler_pic_F77='-KPIC'
15285       lt_prog_compiler_static_F77='-Bstatic'
15286       ;;
15287
15288     linux*)
15289       case $CC in
15290       icc* | ecc*)
15291         lt_prog_compiler_wl_F77='-Wl,'
15292         lt_prog_compiler_pic_F77='-KPIC'
15293         lt_prog_compiler_static_F77='-static'
15294         ;;
15295       ccc*)
15296         lt_prog_compiler_wl_F77='-Wl,'
15297         # All Alpha code is PIC.
15298         lt_prog_compiler_static_F77='-non_shared'
15299         ;;
15300       esac
15301       ;;
15302
15303     osf3* | osf4* | osf5*)
15304       lt_prog_compiler_wl_F77='-Wl,'
15305       # All OSF/1 code is PIC.
15306       lt_prog_compiler_static_F77='-non_shared'
15307       ;;
15308
15309     sco3.2v5*)
15310       lt_prog_compiler_pic_F77='-Kpic'
15311       lt_prog_compiler_static_F77='-dn'
15312       ;;
15313
15314     solaris*)
15315       lt_prog_compiler_wl_F77='-Wl,'
15316       lt_prog_compiler_pic_F77='-KPIC'
15317       lt_prog_compiler_static_F77='-Bstatic'
15318       ;;
15319
15320     sunos4*)
15321       lt_prog_compiler_wl_F77='-Qoption ld '
15322       lt_prog_compiler_pic_F77='-PIC'
15323       lt_prog_compiler_static_F77='-Bstatic'
15324       ;;
15325
15326     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15327       lt_prog_compiler_wl_F77='-Wl,'
15328       lt_prog_compiler_pic_F77='-KPIC'
15329       lt_prog_compiler_static_F77='-Bstatic'
15330       ;;
15331
15332     sysv4*MP*)
15333       if test -d /usr/nec ;then
15334         lt_prog_compiler_pic_F77='-Kconform_pic'
15335         lt_prog_compiler_static_F77='-Bstatic'
15336       fi
15337       ;;
15338
15339     uts4*)
15340       lt_prog_compiler_pic_F77='-pic'
15341       lt_prog_compiler_static_F77='-Bstatic'
15342       ;;
15343
15344     *)
15345       lt_prog_compiler_can_build_shared_F77=no
15346       ;;
15347     esac
15348   fi
15349
15350 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15351 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15352
15353 #
15354 # Check to make sure the PIC flag actually works.
15355 #
15356 if test -n "$lt_prog_compiler_pic_F77"; then
15357
15358 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15359 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15360 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   lt_prog_compiler_pic_works_F77=no
15364   ac_outfile=conftest.$ac_objext
15365    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15366    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15367    # Insert the option either (1) after the last *FLAGS variable, or
15368    # (2) before a word containing "conftest.", or (3) at the end.
15369    # Note that $ac_compile itself does not contain backslashes and begins
15370    # with a dollar sign (not a hyphen), so the echo should work correctly.
15371    # The option is referenced via a variable to avoid confusing sed.
15372    lt_compile=`echo "$ac_compile" | $SED \
15373    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375    -e 's:$: $lt_compiler_flag:'`
15376    (eval echo "\"\$as_me:15376: $lt_compile\"" >&5)
15377    (eval "$lt_compile" 2>conftest.err)
15378    ac_status=$?
15379    cat conftest.err >&5
15380    echo "$as_me:15380: \$? = $ac_status" >&5
15381    if (exit $ac_status) && test -s "$ac_outfile"; then
15382      # The compiler can only warn and ignore the option if not recognized
15383      # So say no if there are warnings
15384      if test ! -s conftest.err; then
15385        lt_prog_compiler_pic_works_F77=yes
15386      fi
15387    fi
15388    $rm conftest*
15389
15390 fi
15391 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15392 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15393
15394 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15395     case $lt_prog_compiler_pic_F77 in
15396      "" | " "*) ;;
15397      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15398      esac
15399 else
15400     lt_prog_compiler_pic_F77=
15401      lt_prog_compiler_can_build_shared_F77=no
15402 fi
15403
15404 fi
15405 case "$host_os" in
15406   # For platforms which do not support PIC, -DPIC is meaningless:
15407   *djgpp*)
15408     lt_prog_compiler_pic_F77=
15409     ;;
15410   *)
15411     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15412     ;;
15413 esac
15414
15415 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15416 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15417 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   lt_cv_prog_compiler_c_o_F77=no
15421    $rm -r conftest 2>/dev/null
15422    mkdir conftest
15423    cd conftest
15424    mkdir out
15425    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15426
15427    lt_compiler_flag="-o out/conftest2.$ac_objext"
15428    # Insert the option either (1) after the last *FLAGS variable, or
15429    # (2) before a word containing "conftest.", or (3) at the end.
15430    # Note that $ac_compile itself does not contain backslashes and begins
15431    # with a dollar sign (not a hyphen), so the echo should work correctly.
15432    lt_compile=`echo "$ac_compile" | $SED \
15433    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15435    -e 's:$: $lt_compiler_flag:'`
15436    (eval echo "\"\$as_me:15436: $lt_compile\"" >&5)
15437    (eval "$lt_compile" 2>out/conftest.err)
15438    ac_status=$?
15439    cat out/conftest.err >&5
15440    echo "$as_me:15440: \$? = $ac_status" >&5
15441    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15442    then
15443      # The compiler can only warn and ignore the option if not recognized
15444      # So say no if there are warnings
15445      if test ! -s out/conftest.err; then
15446        lt_cv_prog_compiler_c_o_F77=yes
15447      fi
15448    fi
15449    chmod u+w .
15450    $rm conftest*
15451    # SGI C++ compiler will create directory out/ii_files/ for
15452    # template instantiation
15453    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15454    $rm out/* && rmdir out
15455    cd ..
15456    rmdir conftest
15457    $rm conftest*
15458
15459 fi
15460 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15461 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15462
15463
15464 hard_links="nottested"
15465 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15466   # do not overwrite the value of need_locks provided by the user
15467   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15468 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15469   hard_links=yes
15470   $rm conftest*
15471   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15472   touch conftest.a
15473   ln conftest.a conftest.b 2>&5 || hard_links=no
15474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15475   echo "$as_me:$LINENO: result: $hard_links" >&5
15476 echo "${ECHO_T}$hard_links" >&6
15477   if test "$hard_links" = no; then
15478     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15479 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15480     need_locks=warn
15481   fi
15482 else
15483   need_locks=no
15484 fi
15485
15486 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15487 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15488
15489   runpath_var=
15490   allow_undefined_flag_F77=
15491   enable_shared_with_static_runtimes_F77=no
15492   archive_cmds_F77=
15493   archive_expsym_cmds_F77=
15494   old_archive_From_new_cmds_F77=
15495   old_archive_from_expsyms_cmds_F77=
15496   export_dynamic_flag_spec_F77=
15497   whole_archive_flag_spec_F77=
15498   thread_safe_flag_spec_F77=
15499   hardcode_libdir_flag_spec_F77=
15500   hardcode_libdir_flag_spec_ld_F77=
15501   hardcode_libdir_separator_F77=
15502   hardcode_direct_F77=no
15503   hardcode_minus_L_F77=no
15504   hardcode_shlibpath_var_F77=unsupported
15505   link_all_deplibs_F77=unknown
15506   hardcode_automatic_F77=no
15507   module_cmds_F77=
15508   module_expsym_cmds_F77=
15509   always_export_symbols_F77=no
15510   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15511   # include_expsyms should be a list of space-separated symbols to be *always*
15512   # included in the symbol list
15513   include_expsyms_F77=
15514   # exclude_expsyms can be an extended regexp of symbols to exclude
15515   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15516   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15517   # as well as any symbol that contains `d'.
15518   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15519   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15520   # platforms (ab)use it in PIC code, but their linkers get confused if
15521   # the symbol is explicitly referenced.  Since portable code cannot
15522   # rely on this symbol name, it's probably fine to never include it in
15523   # preloaded symbol tables.
15524   extract_expsyms_cmds=
15525
15526   case $host_os in
15527   cygwin* | mingw* | pw32*)
15528     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15529     # When not using gcc, we currently assume that we are using
15530     # Microsoft Visual C++.
15531     if test "$GCC" != yes; then
15532       with_gnu_ld=no
15533     fi
15534     ;;
15535   openbsd*)
15536     with_gnu_ld=no
15537     ;;
15538   esac
15539
15540   ld_shlibs_F77=yes
15541   if test "$with_gnu_ld" = yes; then
15542     # If archive_cmds runs LD, not CC, wlarc should be empty
15543     wlarc='${wl}'
15544
15545     # See if GNU ld supports shared libraries.
15546     case $host_os in
15547     aix3* | aix4* | aix5*)
15548       # On AIX/PPC, the GNU linker is very broken
15549       if test "$host_cpu" != ia64; then
15550         ld_shlibs_F77=no
15551         cat <<EOF 1>&2
15552
15553 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15554 *** to be unable to reliably create shared libraries on AIX.
15555 *** Therefore, libtool is disabling shared libraries support.  If you
15556 *** really care for shared libraries, you may want to modify your PATH
15557 *** so that a non-GNU linker is found, and then restart.
15558
15559 EOF
15560       fi
15561       ;;
15562
15563     amigaos*)
15564       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)'
15565       hardcode_libdir_flag_spec_F77='-L$libdir'
15566       hardcode_minus_L_F77=yes
15567
15568       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15569       # that the semantics of dynamic libraries on AmigaOS, at least up
15570       # to version 4, is to share data among multiple programs linked
15571       # with the same dynamic library.  Since this doesn't match the
15572       # behavior of shared libraries on other platforms, we can't use
15573       # them.
15574       ld_shlibs_F77=no
15575       ;;
15576
15577     beos*)
15578       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15579         allow_undefined_flag_F77=unsupported
15580         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15581         # support --undefined.  This deserves some investigation.  FIXME
15582         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15583       else
15584         ld_shlibs_F77=no
15585       fi
15586       ;;
15587
15588     cygwin* | mingw* | pw32*)
15589       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15590       # as there is no search path for DLLs.
15591       hardcode_libdir_flag_spec_F77='-L$libdir'
15592       allow_undefined_flag_F77=unsupported
15593       always_export_symbols_F77=no
15594       enable_shared_with_static_runtimes_F77=yes
15595       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15596
15597       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15598         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15599         # If the export-symbols file already is a .def file (1st line
15600         # is EXPORTS), use it as is; otherwise, prepend...
15601         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15602           cp $export_symbols $output_objdir/$soname.def;
15603         else
15604           echo EXPORTS > $output_objdir/$soname.def;
15605           cat $export_symbols >> $output_objdir/$soname.def;
15606         fi~
15607         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15608       else
15609         ld_shlibs=no
15610       fi
15611       ;;
15612
15613     netbsd*)
15614       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15615         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15616         wlarc=
15617       else
15618         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15619         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15620       fi
15621       ;;
15622
15623     solaris* | sysv5*)
15624       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15625         ld_shlibs_F77=no
15626         cat <<EOF 1>&2
15627
15628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15629 *** create shared libraries on Solaris systems.  Therefore, libtool
15630 *** is disabling shared libraries support.  We urge you to upgrade GNU
15631 *** binutils to release 2.9.1 or newer.  Another option is to modify
15632 *** your PATH or compiler configuration so that the native linker is
15633 *** used, and then restart.
15634
15635 EOF
15636       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15637         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15639       else
15640         ld_shlibs_F77=no
15641       fi
15642       ;;
15643
15644     sunos4*)
15645       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15646       wlarc=
15647       hardcode_direct_F77=yes
15648       hardcode_shlibpath_var_F77=no
15649       ;;
15650
15651   linux*)
15652     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15653         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654         archive_cmds_F77="$tmp_archive_cmds"
15655       supports_anon_versioning=no
15656       case `$LD -v 2>/dev/null` in
15657         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15658         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15659         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15660         *\ 2.11.*) ;; # other 2.11 versions
15661         *) supports_anon_versioning=yes ;;
15662       esac
15663       if test $supports_anon_versioning = yes; then
15664         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15666 $echo "local: *; };" >> $output_objdir/$libname.ver~
15667         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15668       else
15669         archive_expsym_cmds_F77="$tmp_archive_cmds"
15670       fi
15671     else
15672       ld_shlibs_F77=no
15673     fi
15674     ;;
15675
15676     *)
15677       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15680       else
15681         ld_shlibs_F77=no
15682       fi
15683       ;;
15684     esac
15685
15686     if test "$ld_shlibs_F77" = yes; then
15687       runpath_var=LD_RUN_PATH
15688       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15689       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15690       # ancient GNU ld didn't support --whole-archive et. al.
15691       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15692         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15693       else
15694         whole_archive_flag_spec_F77=
15695       fi
15696     fi
15697   else
15698     # PORTME fill in a description of your system's linker (not GNU ld)
15699     case $host_os in
15700     aix3*)
15701       allow_undefined_flag_F77=unsupported
15702       always_export_symbols_F77=yes
15703       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'
15704       # Note: this linker hardcodes the directories in LIBPATH if there
15705       # are no directories specified by -L.
15706       hardcode_minus_L_F77=yes
15707       if test "$GCC" = yes && test -z "$link_static_flag"; then
15708         # Neither direct hardcoding nor static linking is supported with a
15709         # broken collect2.
15710         hardcode_direct_F77=unsupported
15711       fi
15712       ;;
15713
15714     aix4* | aix5*)
15715       if test "$host_cpu" = ia64; then
15716         # On IA64, the linker does run time linking by default, so we don't
15717         # have to do anything special.
15718         aix_use_runtimelinking=no
15719         exp_sym_flag='-Bexport'
15720         no_entry_flag=""
15721       else
15722         # If we're using GNU nm, then we don't want the "-C" option.
15723         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15724         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15725           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'
15726         else
15727           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'
15728         fi
15729         aix_use_runtimelinking=no
15730
15731         # Test if we are trying to use run time linking or normal
15732         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15733         # need to do runtime linking.
15734         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15735           for ld_flag in $LDFLAGS; do
15736           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15737             aix_use_runtimelinking=yes
15738             break
15739           fi
15740           done
15741         esac
15742
15743         exp_sym_flag='-bexport'
15744         no_entry_flag='-bnoentry'
15745       fi
15746
15747       # When large executables or shared objects are built, AIX ld can
15748       # have problems creating the table of contents.  If linking a library
15749       # or program results in "error TOC overflow" add -mminimal-toc to
15750       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15751       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15752
15753       archive_cmds_F77=''
15754       hardcode_direct_F77=yes
15755       hardcode_libdir_separator_F77=':'
15756       link_all_deplibs_F77=yes
15757
15758       if test "$GCC" = yes; then
15759         case $host_os in aix4.012|aix4.012.*)
15760         # We only want to do this on AIX 4.2 and lower, the check
15761         # below for broken collect2 doesn't work under 4.3+
15762           collect2name=`${CC} -print-prog-name=collect2`
15763           if test -f "$collect2name" && \
15764            strings "$collect2name" | grep resolve_lib_name >/dev/null
15765           then
15766           # We have reworked collect2
15767           hardcode_direct_F77=yes
15768           else
15769           # We have old collect2
15770           hardcode_direct_F77=unsupported
15771           # It fails to find uninstalled libraries when the uninstalled
15772           # path is not listed in the libpath.  Setting hardcode_minus_L
15773           # to unsupported forces relinking
15774           hardcode_minus_L_F77=yes
15775           hardcode_libdir_flag_spec_F77='-L$libdir'
15776           hardcode_libdir_separator_F77=
15777           fi
15778         esac
15779         shared_flag='-shared'
15780       else
15781         # not using gcc
15782         if test "$host_cpu" = ia64; then
15783         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784         # chokes on -Wl,-G. The following line is correct:
15785           shared_flag='-G'
15786         else
15787         if test "$aix_use_runtimelinking" = yes; then
15788             shared_flag='${wl}-G'
15789           else
15790             shared_flag='${wl}-bM:SRE'
15791         fi
15792         fi
15793       fi
15794
15795       # It seems that -bexpall does not export symbols beginning with
15796       # underscore (_), so it is better to generate a list of symbols to export.
15797       always_export_symbols_F77=yes
15798       if test "$aix_use_runtimelinking" = yes; then
15799         # Warning - without using the other runtime loading flags (-brtl),
15800         # -berok will link without error, but may produce a broken library.
15801         allow_undefined_flag_F77='-berok'
15802        # Determine the default libpath from the value encoded in an empty executable.
15803        cat >conftest.$ac_ext <<_ACEOF
15804       program main
15805
15806       end
15807 _ACEOF
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810   (eval $ac_link) 2>conftest.er1
15811   ac_status=$?
15812   grep -v '^ *+' conftest.er1 >conftest.err
15813   rm -f conftest.er1
15814   cat conftest.err >&5
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); } &&
15817          { ac_try='test -z "$ac_f77_werror_flag"
15818                          || test ! -s conftest.err'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; } &&
15824          { ac_try='test -s conftest$ac_exeext'
15825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826   (eval $ac_try) 2>&5
15827   ac_status=$?
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); }; }; then
15830
15831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15832 }'`
15833 # Check for a 64-bit object if we didn't find anything.
15834 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; }
15835 }'`; fi
15836 else
15837   echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 fi
15841 rm -f conftest.err conftest.$ac_objext \
15842       conftest$ac_exeext conftest.$ac_ext
15843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15844
15845        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15846         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"
15847        else
15848         if test "$host_cpu" = ia64; then
15849           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15850           allow_undefined_flag_F77="-z nodefs"
15851           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"
15852         else
15853          # Determine the default libpath from the value encoded in an empty executable.
15854          cat >conftest.$ac_ext <<_ACEOF
15855       program main
15856
15857       end
15858 _ACEOF
15859 rm -f conftest.$ac_objext conftest$ac_exeext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15861   (eval $ac_link) 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } &&
15868          { ac_try='test -z "$ac_f77_werror_flag"
15869                          || test ! -s conftest.err'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; } &&
15875          { ac_try='test -s conftest$ac_exeext'
15876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877   (eval $ac_try) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); }; }; then
15881
15882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15883 }'`
15884 # Check for a 64-bit object if we didn't find anything.
15885 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; }
15886 }'`; fi
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891 fi
15892 rm -f conftest.err conftest.$ac_objext \
15893       conftest$ac_exeext conftest.$ac_ext
15894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15895
15896          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15897           # Warning - without using the other run time loading flags,
15898           # -berok will link without error, but may produce a broken library.
15899           no_undefined_flag_F77=' ${wl}-bernotok'
15900           allow_undefined_flag_F77=' ${wl}-berok'
15901           # -bexpall does not export symbols beginning with underscore (_)
15902           always_export_symbols_F77=yes
15903           # Exported symbols can be pulled into shared objects from archives
15904           whole_archive_flag_spec_F77=' '
15905           archive_cmds_need_lc_F77=yes
15906           # This is similar to how AIX traditionally builds it's shared libraries.
15907           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'
15908         fi
15909       fi
15910       ;;
15911
15912     amigaos*)
15913       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)'
15914       hardcode_libdir_flag_spec_F77='-L$libdir'
15915       hardcode_minus_L_F77=yes
15916       # see comment about different semantics on the GNU ld section
15917       ld_shlibs_F77=no
15918       ;;
15919
15920     bsdi4*)
15921       export_dynamic_flag_spec_F77=-rdynamic
15922       ;;
15923
15924     cygwin* | mingw* | pw32*)
15925       # When not using gcc, we currently assume that we are using
15926       # Microsoft Visual C++.
15927       # hardcode_libdir_flag_spec is actually meaningless, as there is
15928       # no search path for DLLs.
15929       hardcode_libdir_flag_spec_F77=' '
15930       allow_undefined_flag_F77=unsupported
15931       # Tell ltmain to make .lib files, not .a files.
15932       libext=lib
15933       # Tell ltmain to make .dll files, not .so files.
15934       shrext_cmds=".dll"
15935       # FIXME: Setting linknames here is a bad hack.
15936       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15937       # The linker will automatically build a .lib file if we build a DLL.
15938       old_archive_From_new_cmds_F77='true'
15939       # FIXME: Should let the user specify the lib program.
15940       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15941       fix_srcfile_path='`cygpath -w "$srcfile"`'
15942       enable_shared_with_static_runtimes_F77=yes
15943       ;;
15944
15945     darwin* | rhapsody*)
15946     if test "$GXX" = yes ; then
15947       archive_cmds_need_lc_F77=no
15948       case "$host_os" in
15949       rhapsody* | darwin1.[012])
15950         allow_undefined_flag_F77='-undefined suppress'
15951         ;;
15952       *) # Darwin 1.3 on
15953       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15954         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15955       else
15956         case ${MACOSX_DEPLOYMENT_TARGET} in
15957           10.[012])
15958             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15959             ;;
15960           10.*)
15961             allow_undefined_flag_F77='-undefined dynamic_lookup'
15962             ;;
15963         esac
15964       fi
15965         ;;
15966       esac
15967         lt_int_apple_cc_single_mod=no
15968         output_verbose_link_cmd='echo'
15969         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15970           lt_int_apple_cc_single_mod=yes
15971         fi
15972         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15973           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15974         else
15975         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'
15976       fi
15977       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15978       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15979         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15980           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}'
15981         else
15982           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}'
15983         fi
15984           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}'
15985       hardcode_direct_F77=no
15986       hardcode_automatic_F77=yes
15987       hardcode_shlibpath_var_F77=unsupported
15988       whole_archive_flag_spec_F77='-all_load $convenience'
15989       link_all_deplibs_F77=yes
15990     else
15991       ld_shlibs_F77=no
15992     fi
15993       ;;
15994
15995     dgux*)
15996       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15997       hardcode_libdir_flag_spec_F77='-L$libdir'
15998       hardcode_shlibpath_var_F77=no
15999       ;;
16000
16001     freebsd1*)
16002       ld_shlibs_F77=no
16003       ;;
16004
16005     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16006     # support.  Future versions do this automatically, but an explicit c++rt0.o
16007     # does not break anything, and helps significantly (at the cost of a little
16008     # extra space).
16009     freebsd2.2*)
16010       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16011       hardcode_libdir_flag_spec_F77='-R$libdir'
16012       hardcode_direct_F77=yes
16013       hardcode_shlibpath_var_F77=no
16014       ;;
16015
16016     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16017     freebsd2*)
16018       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019       hardcode_direct_F77=yes
16020       hardcode_minus_L_F77=yes
16021       hardcode_shlibpath_var_F77=no
16022       ;;
16023
16024     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16025     freebsd* | kfreebsd*-gnu)
16026       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16027       hardcode_libdir_flag_spec_F77='-R$libdir'
16028       hardcode_direct_F77=yes
16029       hardcode_shlibpath_var_F77=no
16030       ;;
16031
16032     hpux9*)
16033       if test "$GCC" = yes; then
16034         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'
16035       else
16036         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'
16037       fi
16038       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16039       hardcode_libdir_separator_F77=:
16040       hardcode_direct_F77=yes
16041
16042       # hardcode_minus_L: Not really in the search PATH,
16043       # but as the default location of the library.
16044       hardcode_minus_L_F77=yes
16045       export_dynamic_flag_spec_F77='${wl}-E'
16046       ;;
16047
16048     hpux10* | hpux11*)
16049       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16050         case "$host_cpu" in
16051         hppa*64*|ia64*)
16052           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16053           ;;
16054         *)
16055           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16056           ;;
16057         esac
16058       else
16059         case "$host_cpu" in
16060         hppa*64*|ia64*)
16061           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16062           ;;
16063         *)
16064           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16065           ;;
16066         esac
16067       fi
16068       if test "$with_gnu_ld" = no; then
16069         case "$host_cpu" in
16070         hppa*64*)
16071           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16072           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16073           hardcode_libdir_separator_F77=:
16074           hardcode_direct_F77=no
16075           hardcode_shlibpath_var_F77=no
16076           ;;
16077         ia64*)
16078           hardcode_libdir_flag_spec_F77='-L$libdir'
16079           hardcode_direct_F77=no
16080           hardcode_shlibpath_var_F77=no
16081
16082           # hardcode_minus_L: Not really in the search PATH,
16083           # but as the default location of the library.
16084           hardcode_minus_L_F77=yes
16085           ;;
16086         *)
16087           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16088           hardcode_libdir_separator_F77=:
16089           hardcode_direct_F77=yes
16090           export_dynamic_flag_spec_F77='${wl}-E'
16091
16092           # hardcode_minus_L: Not really in the search PATH,
16093           # but as the default location of the library.
16094           hardcode_minus_L_F77=yes
16095           ;;
16096         esac
16097       fi
16098       ;;
16099
16100     irix5* | irix6* | nonstopux*)
16101       if test "$GCC" = yes; then
16102         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'
16103       else
16104         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'
16105         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16106       fi
16107       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16108       hardcode_libdir_separator_F77=:
16109       link_all_deplibs_F77=yes
16110       ;;
16111
16112     netbsd*)
16113       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16114         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16115       else
16116         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16117       fi
16118       hardcode_libdir_flag_spec_F77='-R$libdir'
16119       hardcode_direct_F77=yes
16120       hardcode_shlibpath_var_F77=no
16121       ;;
16122
16123     newsos6)
16124       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125       hardcode_direct_F77=yes
16126       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16127       hardcode_libdir_separator_F77=:
16128       hardcode_shlibpath_var_F77=no
16129       ;;
16130
16131     openbsd*)
16132       hardcode_direct_F77=yes
16133       hardcode_shlibpath_var_F77=no
16134       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16135         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16136         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16137         export_dynamic_flag_spec_F77='${wl}-E'
16138       else
16139        case $host_os in
16140          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16141            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16142            hardcode_libdir_flag_spec_F77='-R$libdir'
16143            ;;
16144          *)
16145            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16147            ;;
16148        esac
16149       fi
16150       ;;
16151
16152     os2*)
16153       hardcode_libdir_flag_spec_F77='-L$libdir'
16154       hardcode_minus_L_F77=yes
16155       allow_undefined_flag_F77=unsupported
16156       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'
16157       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16158       ;;
16159
16160     osf3*)
16161       if test "$GCC" = yes; then
16162         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16163         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'
16164       else
16165         allow_undefined_flag_F77=' -expect_unresolved \*'
16166         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'
16167       fi
16168       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16169       hardcode_libdir_separator_F77=:
16170       ;;
16171
16172     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16173       if test "$GCC" = yes; then
16174         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16175         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'
16176         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16177       else
16178         allow_undefined_flag_F77=' -expect_unresolved \*'
16179         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'
16180         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~
16181         $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'
16182
16183         # Both c and cxx compiler support -rpath directly
16184         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16185       fi
16186       hardcode_libdir_separator_F77=:
16187       ;;
16188
16189     sco3.2v5*)
16190       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191       hardcode_shlibpath_var_F77=no
16192       export_dynamic_flag_spec_F77='${wl}-Bexport'
16193       runpath_var=LD_RUN_PATH
16194       hardcode_runpath_var=yes
16195       ;;
16196
16197     solaris*)
16198       no_undefined_flag_F77=' -z text'
16199       if test "$GCC" = yes; then
16200         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16201         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16202           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16203       else
16204         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16207       fi
16208       hardcode_libdir_flag_spec_F77='-R$libdir'
16209       hardcode_shlibpath_var_F77=no
16210       case $host_os in
16211       solaris2.[0-5] | solaris2.[0-5].*) ;;
16212       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16213         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16214       esac
16215       link_all_deplibs_F77=yes
16216       ;;
16217
16218     sunos4*)
16219       if test "x$host_vendor" = xsequent; then
16220         # Use $CC to link under sequent, because it throws in some extra .o
16221         # files that make .init and .fini sections work.
16222         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16223       else
16224         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16225       fi
16226       hardcode_libdir_flag_spec_F77='-L$libdir'
16227       hardcode_direct_F77=yes
16228       hardcode_minus_L_F77=yes
16229       hardcode_shlibpath_var_F77=no
16230       ;;
16231
16232     sysv4)
16233       case $host_vendor in
16234         sni)
16235           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16236           hardcode_direct_F77=yes # is this really true???
16237         ;;
16238         siemens)
16239           ## LD is ld it makes a PLAMLIB
16240           ## CC just makes a GrossModule.
16241           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16242           reload_cmds_F77='$CC -r -o $output$reload_objs'
16243           hardcode_direct_F77=no
16244         ;;
16245         motorola)
16246           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16248         ;;
16249       esac
16250       runpath_var='LD_RUN_PATH'
16251       hardcode_shlibpath_var_F77=no
16252       ;;
16253
16254     sysv4.3*)
16255       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256       hardcode_shlibpath_var_F77=no
16257       export_dynamic_flag_spec_F77='-Bexport'
16258       ;;
16259
16260     sysv4*MP*)
16261       if test -d /usr/nec; then
16262         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16263         hardcode_shlibpath_var_F77=no
16264         runpath_var=LD_RUN_PATH
16265         hardcode_runpath_var=yes
16266         ld_shlibs_F77=yes
16267       fi
16268       ;;
16269
16270     sysv4.2uw2*)
16271       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16272       hardcode_direct_F77=yes
16273       hardcode_minus_L_F77=no
16274       hardcode_shlibpath_var_F77=no
16275       hardcode_runpath_var=yes
16276       runpath_var=LD_RUN_PATH
16277       ;;
16278
16279    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16280       no_undefined_flag_F77='${wl}-z ${wl}text'
16281       if test "$GCC" = yes; then
16282         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16283       else
16284         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16285       fi
16286       runpath_var='LD_RUN_PATH'
16287       hardcode_shlibpath_var_F77=no
16288       ;;
16289
16290     sysv5*)
16291       no_undefined_flag_F77=' -z text'
16292       # $CC -shared without GNU ld will not create a library from C++
16293       # object files and a static libstdc++, better avoid it by now
16294       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16296                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16297       hardcode_libdir_flag_spec_F77=
16298       hardcode_shlibpath_var_F77=no
16299       runpath_var='LD_RUN_PATH'
16300       ;;
16301
16302     uts4*)
16303       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16304       hardcode_libdir_flag_spec_F77='-L$libdir'
16305       hardcode_shlibpath_var_F77=no
16306       ;;
16307
16308     *)
16309       ld_shlibs_F77=no
16310       ;;
16311     esac
16312   fi
16313
16314 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16315 echo "${ECHO_T}$ld_shlibs_F77" >&6
16316 test "$ld_shlibs_F77" = no && can_build_shared=no
16317
16318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16319 if test "$GCC" = yes; then
16320   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16321 fi
16322
16323 #
16324 # Do we need to explicitly link libc?
16325 #
16326 case "x$archive_cmds_need_lc_F77" in
16327 x|xyes)
16328   # Assume -lc should be added
16329   archive_cmds_need_lc_F77=yes
16330
16331   if test "$enable_shared" = yes && test "$GCC" = yes; then
16332     case $archive_cmds_F77 in
16333     *'~'*)
16334       # FIXME: we may have to deal with multi-command sequences.
16335       ;;
16336     '$CC '*)
16337       # Test whether the compiler implicitly links with -lc since on some
16338       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16339       # to ld, don't add -lc before -lgcc.
16340       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16341 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16342       $rm conftest*
16343       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16344
16345       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346   (eval $ac_compile) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } 2>conftest.err; then
16350         soname=conftest
16351         lib=conftest
16352         libobjs=conftest.$ac_objext
16353         deplibs=
16354         wl=$lt_prog_compiler_wl_F77
16355         compiler_flags=-v
16356         linker_flags=-v
16357         verstring=
16358         output_objdir=.
16359         libname=conftest
16360         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16361         allow_undefined_flag_F77=
16362         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16363   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }
16367         then
16368           archive_cmds_need_lc_F77=no
16369         else
16370           archive_cmds_need_lc_F77=yes
16371         fi
16372         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16373       else
16374         cat conftest.err 1>&5
16375       fi
16376       $rm conftest*
16377       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16378 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16379       ;;
16380     esac
16381   fi
16382   ;;
16383 esac
16384
16385 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16386 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16387 library_names_spec=
16388 libname_spec='lib$name'
16389 soname_spec=
16390 shrext_cmds=".so"
16391 postinstall_cmds=
16392 postuninstall_cmds=
16393 finish_cmds=
16394 finish_eval=
16395 shlibpath_var=
16396 shlibpath_overrides_runpath=unknown
16397 version_type=none
16398 dynamic_linker="$host_os ld.so"
16399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16400 if test "$GCC" = yes; then
16401   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16402   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16403     # if the path contains ";" then we assume it to be the separator
16404     # otherwise default to the standard path separator (i.e. ":") - it is
16405     # assumed that no part of a normal pathname contains ";" but that should
16406     # okay in the real world where ";" in dirpaths is itself problematic.
16407     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16408   else
16409     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16410   fi
16411 else
16412   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16413 fi
16414 need_lib_prefix=unknown
16415 hardcode_into_libs=no
16416
16417 # when you set need_version to no, make sure it does not cause -set_version
16418 # flags to be left without arguments
16419 need_version=unknown
16420
16421 case $host_os in
16422 aix3*)
16423   version_type=linux
16424   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16425   shlibpath_var=LIBPATH
16426
16427   # AIX 3 has no versioning support, so we append a major version to the name.
16428   soname_spec='${libname}${release}${shared_ext}$major'
16429   ;;
16430
16431 aix4* | aix5*)
16432   version_type=linux
16433   need_lib_prefix=no
16434   need_version=no
16435   hardcode_into_libs=yes
16436   if test "$host_cpu" = ia64; then
16437     # AIX 5 supports IA64
16438     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16439     shlibpath_var=LD_LIBRARY_PATH
16440   else
16441     # With GCC up to 2.95.x, collect2 would create an import file
16442     # for dependence libraries.  The import file would start with
16443     # the line `#! .'.  This would cause the generated library to
16444     # depend on `.', always an invalid library.  This was fixed in
16445     # development snapshots of GCC prior to 3.0.
16446     case $host_os in
16447       aix4 | aix4.[01] | aix4.[01].*)
16448       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16449            echo ' yes '
16450            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16451         :
16452       else
16453         can_build_shared=no
16454       fi
16455       ;;
16456     esac
16457     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16458     # soname into executable. Probably we can add versioning support to
16459     # collect2, so additional links can be useful in future.
16460     if test "$aix_use_runtimelinking" = yes; then
16461       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16462       # instead of lib<name>.a to let people know that these are not
16463       # typical AIX shared libraries.
16464       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465     else
16466       # We preserve .a as extension for shared libraries through AIX4.2
16467       # and later when we are not doing run time linking.
16468       library_names_spec='${libname}${release}.a $libname.a'
16469       soname_spec='${libname}${release}${shared_ext}$major'
16470     fi
16471     shlibpath_var=LIBPATH
16472   fi
16473   ;;
16474
16475 amigaos*)
16476   library_names_spec='$libname.ixlibrary $libname.a'
16477   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16478   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'
16479   ;;
16480
16481 beos*)
16482   library_names_spec='${libname}${shared_ext}'
16483   dynamic_linker="$host_os ld.so"
16484   shlibpath_var=LIBRARY_PATH
16485   ;;
16486
16487 bsdi4*)
16488   version_type=linux
16489   need_version=no
16490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491   soname_spec='${libname}${release}${shared_ext}$major'
16492   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16493   shlibpath_var=LD_LIBRARY_PATH
16494   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16495   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16496   # the default ld.so.conf also contains /usr/contrib/lib and
16497   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16498   # libtool to hard-code these into programs
16499   ;;
16500
16501 cygwin* | mingw* | pw32*)
16502   version_type=windows
16503   shrext_cmds=".dll"
16504   need_version=no
16505   need_lib_prefix=no
16506
16507   case $GCC,$host_os in
16508   yes,cygwin* | yes,mingw* | yes,pw32*)
16509     library_names_spec='$libname.dll.a'
16510     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16511     postinstall_cmds='base_file=`basename \${file}`~
16512       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16513       dldir=$destdir/`dirname \$dlpath`~
16514       test -d \$dldir || mkdir -p \$dldir~
16515       $install_prog $dir/$dlname \$dldir/$dlname'
16516     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16517       dlpath=$dir/\$dldll~
16518        $rm \$dlpath'
16519     shlibpath_overrides_runpath=yes
16520
16521     case $host_os in
16522     cygwin*)
16523       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16524       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16525       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16526       ;;
16527     mingw*)
16528       # MinGW DLLs use traditional 'lib' prefix
16529       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16530       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16531       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16532         # It is most probably a Windows format PATH printed by
16533         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16534         # path with ; separators, and with drive letters. We can handle the
16535         # drive letters (cygwin fileutils understands them), so leave them,
16536         # especially as we might pass files found there to a mingw objdump,
16537         # which wouldn't understand a cygwinified path. Ahh.
16538         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16539       else
16540         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16541       fi
16542       ;;
16543     pw32*)
16544       # pw32 DLLs use 'pw' prefix rather than 'lib'
16545       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16546       ;;
16547     esac
16548     ;;
16549
16550   *)
16551     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16552     ;;
16553   esac
16554   dynamic_linker='Win32 ld.exe'
16555   # FIXME: first we should search . and the directory the executable is in
16556   shlibpath_var=PATH
16557   ;;
16558
16559 darwin* | rhapsody*)
16560   dynamic_linker="$host_os dyld"
16561   version_type=darwin
16562   need_lib_prefix=no
16563   need_version=no
16564   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16565   soname_spec='${libname}${release}${major}$shared_ext'
16566   shlibpath_overrides_runpath=yes
16567   shlibpath_var=DYLD_LIBRARY_PATH
16568   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16569   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16570   if test "$GCC" = yes; then
16571     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"`
16572   else
16573     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16574   fi
16575   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16576   ;;
16577
16578 dgux*)
16579   version_type=linux
16580   need_lib_prefix=no
16581   need_version=no
16582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16583   soname_spec='${libname}${release}${shared_ext}$major'
16584   shlibpath_var=LD_LIBRARY_PATH
16585   ;;
16586
16587 freebsd1*)
16588   dynamic_linker=no
16589   ;;
16590
16591 kfreebsd*-gnu)
16592   version_type=linux
16593   need_lib_prefix=no
16594   need_version=no
16595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596   soname_spec='${libname}${release}${shared_ext}$major'
16597   shlibpath_var=LD_LIBRARY_PATH
16598   shlibpath_overrides_runpath=no
16599   hardcode_into_libs=yes
16600   dynamic_linker='GNU ld.so'
16601   ;;
16602
16603 freebsd*)
16604   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16605   version_type=freebsd-$objformat
16606   case $version_type in
16607     freebsd-elf*)
16608       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16609       need_version=no
16610       need_lib_prefix=no
16611       ;;
16612     freebsd-*)
16613       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16614       need_version=yes
16615       ;;
16616   esac
16617   shlibpath_var=LD_LIBRARY_PATH
16618   case $host_os in
16619   freebsd2*)
16620     shlibpath_overrides_runpath=yes
16621     ;;
16622   freebsd3.01* | freebsdelf3.01*)
16623     shlibpath_overrides_runpath=yes
16624     hardcode_into_libs=yes
16625     ;;
16626   *) # from 3.2 on
16627     shlibpath_overrides_runpath=no
16628     hardcode_into_libs=yes
16629     ;;
16630   esac
16631   ;;
16632
16633 gnu*)
16634   version_type=linux
16635   need_lib_prefix=no
16636   need_version=no
16637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16638   soname_spec='${libname}${release}${shared_ext}$major'
16639   shlibpath_var=LD_LIBRARY_PATH
16640   hardcode_into_libs=yes
16641   ;;
16642
16643 hpux9* | hpux10* | hpux11*)
16644   # Give a soname corresponding to the major version so that dld.sl refuses to
16645   # link against other versions.
16646   version_type=sunos
16647   need_lib_prefix=no
16648   need_version=no
16649   case "$host_cpu" in
16650   ia64*)
16651     shrext_cmds='.so'
16652     hardcode_into_libs=yes
16653     dynamic_linker="$host_os dld.so"
16654     shlibpath_var=LD_LIBRARY_PATH
16655     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657     soname_spec='${libname}${release}${shared_ext}$major'
16658     if test "X$HPUX_IA64_MODE" = X32; then
16659       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16660     else
16661       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16662     fi
16663     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16664     ;;
16665    hppa*64*)
16666      shrext_cmds='.sl'
16667      hardcode_into_libs=yes
16668      dynamic_linker="$host_os dld.sl"
16669      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16670      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16671      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16672      soname_spec='${libname}${release}${shared_ext}$major'
16673      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16674      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16675      ;;
16676    *)
16677     shrext_cmds='.sl'
16678     dynamic_linker="$host_os dld.sl"
16679     shlibpath_var=SHLIB_PATH
16680     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682     soname_spec='${libname}${release}${shared_ext}$major'
16683     ;;
16684   esac
16685   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16686   postinstall_cmds='chmod 555 $lib'
16687   ;;
16688
16689 irix5* | irix6* | nonstopux*)
16690   case $host_os in
16691     nonstopux*) version_type=nonstopux ;;
16692     *)
16693         if test "$lt_cv_prog_gnu_ld" = yes; then
16694                 version_type=linux
16695         else
16696                 version_type=irix
16697         fi ;;
16698   esac
16699   need_lib_prefix=no
16700   need_version=no
16701   soname_spec='${libname}${release}${shared_ext}$major'
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16703   case $host_os in
16704   irix5* | nonstopux*)
16705     libsuff= shlibsuff=
16706     ;;
16707   *)
16708     case $LD in # libtool.m4 will add one of these switches to LD
16709     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16710       libsuff= shlibsuff= libmagic=32-bit;;
16711     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16712       libsuff=32 shlibsuff=N32 libmagic=N32;;
16713     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16714       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16715     *) libsuff= shlibsuff= libmagic=never-match;;
16716     esac
16717     ;;
16718   esac
16719   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16720   shlibpath_overrides_runpath=no
16721   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16722   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16723   hardcode_into_libs=yes
16724   ;;
16725
16726 # No shared lib support for Linux oldld, aout, or coff.
16727 linux*oldld* | linux*aout* | linux*coff*)
16728   dynamic_linker=no
16729   ;;
16730
16731 # This must be Linux ELF.
16732 linux*)
16733   version_type=linux
16734   need_lib_prefix=no
16735   need_version=no
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737   soname_spec='${libname}${release}${shared_ext}$major'
16738   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16739   shlibpath_var=LD_LIBRARY_PATH
16740   shlibpath_overrides_runpath=no
16741   # This implies no fast_install, which is unacceptable.
16742   # Some rework will be needed to allow for fast_install
16743   # before this can be enabled.
16744   hardcode_into_libs=yes
16745
16746   # find out which ABI we are using
16747   libsuff=
16748   case "$host_cpu" in
16749   x86_64*|s390x*|powerpc64*)
16750     echo '#line 16750 "configure"' > conftest.$ac_ext
16751     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16752   (eval $ac_compile) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; then
16756       case `/usr/bin/file conftest.$ac_objext` in
16757       *64-bit*)
16758         libsuff=64
16759         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16760         ;;
16761       esac
16762     fi
16763     rm -rf conftest*
16764     ;;
16765   esac
16766
16767   # Append ld.so.conf contents to the search path
16768   if test -f /etc/ld.so.conf; then
16769     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16770     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16771   fi
16772
16773   # We used to test for /lib/ld.so.1 and disable shared libraries on
16774   # powerpc, because MkLinux only supported shared libraries with the
16775   # GNU dynamic linker.  Since this was broken with cross compilers,
16776   # most powerpc-linux boxes support dynamic linking these days and
16777   # people can always --disable-shared, the test was removed, and we
16778   # assume the GNU/Linux dynamic linker is in use.
16779   dynamic_linker='GNU/Linux ld.so'
16780   ;;
16781
16782 knetbsd*-gnu)
16783   version_type=linux
16784   need_lib_prefix=no
16785   need_version=no
16786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16787   soname_spec='${libname}${release}${shared_ext}$major'
16788   shlibpath_var=LD_LIBRARY_PATH
16789   shlibpath_overrides_runpath=no
16790   hardcode_into_libs=yes
16791   dynamic_linker='GNU ld.so'
16792   ;;
16793
16794 netbsd*)
16795   version_type=sunos
16796   need_lib_prefix=no
16797   need_version=no
16798   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16800     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16801     dynamic_linker='NetBSD (a.out) ld.so'
16802   else
16803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16804     soname_spec='${libname}${release}${shared_ext}$major'
16805     dynamic_linker='NetBSD ld.elf_so'
16806   fi
16807   shlibpath_var=LD_LIBRARY_PATH
16808   shlibpath_overrides_runpath=yes
16809   hardcode_into_libs=yes
16810   ;;
16811
16812 newsos6)
16813   version_type=linux
16814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815   shlibpath_var=LD_LIBRARY_PATH
16816   shlibpath_overrides_runpath=yes
16817   ;;
16818
16819 nto-qnx*)
16820   version_type=linux
16821   need_lib_prefix=no
16822   need_version=no
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824   soname_spec='${libname}${release}${shared_ext}$major'
16825   shlibpath_var=LD_LIBRARY_PATH
16826   shlibpath_overrides_runpath=yes
16827   ;;
16828
16829 openbsd*)
16830   version_type=sunos
16831   need_lib_prefix=no
16832   need_version=yes
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16835   shlibpath_var=LD_LIBRARY_PATH
16836   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16837     case $host_os in
16838       openbsd2.[89] | openbsd2.[89].*)
16839         shlibpath_overrides_runpath=no
16840         ;;
16841       *)
16842         shlibpath_overrides_runpath=yes
16843         ;;
16844       esac
16845   else
16846     shlibpath_overrides_runpath=yes
16847   fi
16848   ;;
16849
16850 os2*)
16851   libname_spec='$name'
16852   shrext_cmds=".dll"
16853   need_lib_prefix=no
16854   library_names_spec='$libname${shared_ext} $libname.a'
16855   dynamic_linker='OS/2 ld.exe'
16856   shlibpath_var=LIBPATH
16857   ;;
16858
16859 osf3* | osf4* | osf5*)
16860   version_type=osf
16861   need_lib_prefix=no
16862   need_version=no
16863   soname_spec='${libname}${release}${shared_ext}$major'
16864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865   shlibpath_var=LD_LIBRARY_PATH
16866   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16867   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16868   ;;
16869
16870 sco3.2v5*)
16871   version_type=osf
16872   soname_spec='${libname}${release}${shared_ext}$major'
16873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874   shlibpath_var=LD_LIBRARY_PATH
16875   ;;
16876
16877 solaris*)
16878   version_type=linux
16879   need_lib_prefix=no
16880   need_version=no
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882   soname_spec='${libname}${release}${shared_ext}$major'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   shlibpath_overrides_runpath=yes
16885   hardcode_into_libs=yes
16886   # ldd complains unless libraries are executable
16887   postinstall_cmds='chmod +x $lib'
16888   ;;
16889
16890 sunos4*)
16891   version_type=sunos
16892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16894   shlibpath_var=LD_LIBRARY_PATH
16895   shlibpath_overrides_runpath=yes
16896   if test "$with_gnu_ld" = yes; then
16897     need_lib_prefix=no
16898   fi
16899   need_version=yes
16900   ;;
16901
16902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16903   version_type=linux
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905   soname_spec='${libname}${release}${shared_ext}$major'
16906   shlibpath_var=LD_LIBRARY_PATH
16907   case $host_vendor in
16908     sni)
16909       shlibpath_overrides_runpath=no
16910       need_lib_prefix=no
16911       export_dynamic_flag_spec='${wl}-Blargedynsym'
16912       runpath_var=LD_RUN_PATH
16913       ;;
16914     siemens)
16915       need_lib_prefix=no
16916       ;;
16917     motorola)
16918       need_lib_prefix=no
16919       need_version=no
16920       shlibpath_overrides_runpath=no
16921       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16922       ;;
16923   esac
16924   ;;
16925
16926 sysv4*MP*)
16927   if test -d /usr/nec ;then
16928     version_type=linux
16929     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16930     soname_spec='$libname${shared_ext}.$major'
16931     shlibpath_var=LD_LIBRARY_PATH
16932   fi
16933   ;;
16934
16935 uts4*)
16936   version_type=linux
16937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938   soname_spec='${libname}${release}${shared_ext}$major'
16939   shlibpath_var=LD_LIBRARY_PATH
16940   ;;
16941
16942 *)
16943   dynamic_linker=no
16944   ;;
16945 esac
16946 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16947 echo "${ECHO_T}$dynamic_linker" >&6
16948 test "$dynamic_linker" = no && can_build_shared=no
16949
16950 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16951 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16952 hardcode_action_F77=
16953 if test -n "$hardcode_libdir_flag_spec_F77" || \
16954    test -n "$runpath_var F77" || \
16955    test "X$hardcode_automatic_F77"="Xyes" ; then
16956
16957   # We can hardcode non-existant directories.
16958   if test "$hardcode_direct_F77" != no &&
16959      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16960      # have to relink, otherwise we might link with an installed library
16961      # when we should be linking with a yet-to-be-installed one
16962      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16963      test "$hardcode_minus_L_F77" != no; then
16964     # Linking always hardcodes the temporary library directory.
16965     hardcode_action_F77=relink
16966   else
16967     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16968     hardcode_action_F77=immediate
16969   fi
16970 else
16971   # We cannot hardcode anything, or else we can only hardcode existing
16972   # directories.
16973   hardcode_action_F77=unsupported
16974 fi
16975 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16976 echo "${ECHO_T}$hardcode_action_F77" >&6
16977
16978 if test "$hardcode_action_F77" = relink; then
16979   # Fast installation is not supported
16980   enable_fast_install=no
16981 elif test "$shlibpath_overrides_runpath" = yes ||
16982      test "$enable_shared" = no; then
16983   # Fast installation is not necessary
16984   enable_fast_install=needless
16985 fi
16986
16987 striplib=
16988 old_striplib=
16989 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16990 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16991 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16992   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16993   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16994   echo "$as_me:$LINENO: result: yes" >&5
16995 echo "${ECHO_T}yes" >&6
16996 else
16997 # FIXME - insert some real tests, host_os isn't really good enough
16998   case $host_os in
16999    darwin*)
17000        if test -n "$STRIP" ; then
17001          striplib="$STRIP -x"
17002          echo "$as_me:$LINENO: result: yes" >&5
17003 echo "${ECHO_T}yes" >&6
17004        else
17005   echo "$as_me:$LINENO: result: no" >&5
17006 echo "${ECHO_T}no" >&6
17007 fi
17008        ;;
17009    *)
17010   echo "$as_me:$LINENO: result: no" >&5
17011 echo "${ECHO_T}no" >&6
17012     ;;
17013   esac
17014 fi
17015
17016
17017
17018 # The else clause should only fire when bootstrapping the
17019 # libtool distribution, otherwise you forgot to ship ltmain.sh
17020 # with your package, and you will get complaints that there are
17021 # no rules to generate ltmain.sh.
17022 if test -f "$ltmain"; then
17023   # See if we are running on zsh, and set the options which allow our commands through
17024   # without removal of \ escapes.
17025   if test -n "${ZSH_VERSION+set}" ; then
17026     setopt NO_GLOB_SUBST
17027   fi
17028   # Now quote all the things that may contain metacharacters while being
17029   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17030   # variables and quote the copies for generation of the libtool script.
17031   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17032     SED SHELL STRIP \
17033     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17034     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17035     deplibs_check_method reload_flag reload_cmds need_locks \
17036     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17037     lt_cv_sys_global_symbol_to_c_name_address \
17038     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17039     old_postinstall_cmds old_postuninstall_cmds \
17040     compiler_F77 \
17041     CC_F77 \
17042     LD_F77 \
17043     lt_prog_compiler_wl_F77 \
17044     lt_prog_compiler_pic_F77 \
17045     lt_prog_compiler_static_F77 \
17046     lt_prog_compiler_no_builtin_flag_F77 \
17047     export_dynamic_flag_spec_F77 \
17048     thread_safe_flag_spec_F77 \
17049     whole_archive_flag_spec_F77 \
17050     enable_shared_with_static_runtimes_F77 \
17051     old_archive_cmds_F77 \
17052     old_archive_from_new_cmds_F77 \
17053     predep_objects_F77 \
17054     postdep_objects_F77 \
17055     predeps_F77 \
17056     postdeps_F77 \
17057     compiler_lib_search_path_F77 \
17058     archive_cmds_F77 \
17059     archive_expsym_cmds_F77 \
17060     postinstall_cmds_F77 \
17061     postuninstall_cmds_F77 \
17062     old_archive_from_expsyms_cmds_F77 \
17063     allow_undefined_flag_F77 \
17064     no_undefined_flag_F77 \
17065     export_symbols_cmds_F77 \
17066     hardcode_libdir_flag_spec_F77 \
17067     hardcode_libdir_flag_spec_ld_F77 \
17068     hardcode_libdir_separator_F77 \
17069     hardcode_automatic_F77 \
17070     module_cmds_F77 \
17071     module_expsym_cmds_F77 \
17072     lt_cv_prog_compiler_c_o_F77 \
17073     exclude_expsyms_F77 \
17074     include_expsyms_F77; do
17075
17076     case $var in
17077     old_archive_cmds_F77 | \
17078     old_archive_from_new_cmds_F77 | \
17079     archive_cmds_F77 | \
17080     archive_expsym_cmds_F77 | \
17081     module_cmds_F77 | \
17082     module_expsym_cmds_F77 | \
17083     old_archive_from_expsyms_cmds_F77 | \
17084     export_symbols_cmds_F77 | \
17085     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17086     postinstall_cmds | postuninstall_cmds | \
17087     old_postinstall_cmds | old_postuninstall_cmds | \
17088     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17089       # Double-quote double-evaled strings.
17090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17091       ;;
17092     *)
17093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17094       ;;
17095     esac
17096   done
17097
17098   case $lt_echo in
17099   *'\$0 --fallback-echo"')
17100     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17101     ;;
17102   esac
17103
17104 cfgfile="$ofile"
17105
17106   cat <<__EOF__ >> "$cfgfile"
17107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17108
17109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17110
17111 # Shell to use when invoking shell scripts.
17112 SHELL=$lt_SHELL
17113
17114 # Whether or not to build shared libraries.
17115 build_libtool_libs=$enable_shared
17116
17117 # Whether or not to build static libraries.
17118 build_old_libs=$enable_static
17119
17120 # Whether or not to add -lc for building shared libraries.
17121 build_libtool_need_lc=$archive_cmds_need_lc_F77
17122
17123 # Whether or not to disallow shared libs when runtime libs are static
17124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17125
17126 # Whether or not to optimize for fast installation.
17127 fast_install=$enable_fast_install
17128
17129 # The host system.
17130 host_alias=$host_alias
17131 host=$host
17132
17133 # An echo program that does not interpret backslashes.
17134 echo=$lt_echo
17135
17136 # The archiver.
17137 AR=$lt_AR
17138 AR_FLAGS=$lt_AR_FLAGS
17139
17140 # A C compiler.
17141 LTCC=$lt_LTCC
17142
17143 # A language-specific compiler.
17144 CC=$lt_compiler_F77
17145
17146 # Is the compiler the GNU C compiler?
17147 with_gcc=$GCC_F77
17148
17149 # An ERE matcher.
17150 EGREP=$lt_EGREP
17151
17152 # The linker used to build libraries.
17153 LD=$lt_LD_F77
17154
17155 # Whether we need hard or soft links.
17156 LN_S=$lt_LN_S
17157
17158 # A BSD-compatible nm program.
17159 NM=$lt_NM
17160
17161 # A symbol stripping program
17162 STRIP=$lt_STRIP
17163
17164 # Used to examine libraries when file_magic_cmd begins "file"
17165 MAGIC_CMD=$MAGIC_CMD
17166
17167 # Used on cygwin: DLL creation program.
17168 DLLTOOL="$DLLTOOL"
17169
17170 # Used on cygwin: object dumper.
17171 OBJDUMP="$OBJDUMP"
17172
17173 # Used on cygwin: assembler.
17174 AS="$AS"
17175
17176 # The name of the directory that contains temporary libtool files.
17177 objdir=$objdir
17178
17179 # How to create reloadable object files.
17180 reload_flag=$lt_reload_flag
17181 reload_cmds=$lt_reload_cmds
17182
17183 # How to pass a linker flag through the compiler.
17184 wl=$lt_lt_prog_compiler_wl_F77
17185
17186 # Object file suffix (normally "o").
17187 objext="$ac_objext"
17188
17189 # Old archive suffix (normally "a").
17190 libext="$libext"
17191
17192 # Shared library suffix (normally ".so").
17193 shrext_cmds='$shrext_cmds'
17194
17195 # Executable file suffix (normally "").
17196 exeext="$exeext"
17197
17198 # Additional compiler flags for building library objects.
17199 pic_flag=$lt_lt_prog_compiler_pic_F77
17200 pic_mode=$pic_mode
17201
17202 # What is the maximum length of a command?
17203 max_cmd_len=$lt_cv_sys_max_cmd_len
17204
17205 # Does compiler simultaneously support -c and -o options?
17206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17207
17208 # Must we lock files when doing compilation ?
17209 need_locks=$lt_need_locks
17210
17211 # Do we need the lib prefix for modules?
17212 need_lib_prefix=$need_lib_prefix
17213
17214 # Do we need a version for libraries?
17215 need_version=$need_version
17216
17217 # Whether dlopen is supported.
17218 dlopen_support=$enable_dlopen
17219
17220 # Whether dlopen of programs is supported.
17221 dlopen_self=$enable_dlopen_self
17222
17223 # Whether dlopen of statically linked programs is supported.
17224 dlopen_self_static=$enable_dlopen_self_static
17225
17226 # Compiler flag to prevent dynamic linking.
17227 link_static_flag=$lt_lt_prog_compiler_static_F77
17228
17229 # Compiler flag to turn off builtin functions.
17230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17231
17232 # Compiler flag to allow reflexive dlopens.
17233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17234
17235 # Compiler flag to generate shared objects directly from archives.
17236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17237
17238 # Compiler flag to generate thread-safe objects.
17239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17240
17241 # Library versioning type.
17242 version_type=$version_type
17243
17244 # Format of library name prefix.
17245 libname_spec=$lt_libname_spec
17246
17247 # List of archive names.  First name is the real one, the rest are links.
17248 # The last name is the one that the linker finds with -lNAME.
17249 library_names_spec=$lt_library_names_spec
17250
17251 # The coded name of the library, if different from the real name.
17252 soname_spec=$lt_soname_spec
17253
17254 # Commands used to build and install an old-style archive.
17255 RANLIB=$lt_RANLIB
17256 old_archive_cmds=$lt_old_archive_cmds_F77
17257 old_postinstall_cmds=$lt_old_postinstall_cmds
17258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17259
17260 # Create an old-style archive from a shared archive.
17261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17262
17263 # Create a temporary old-style archive to link instead of a shared archive.
17264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17265
17266 # Commands used to build and install a shared archive.
17267 archive_cmds=$lt_archive_cmds_F77
17268 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17269 postinstall_cmds=$lt_postinstall_cmds
17270 postuninstall_cmds=$lt_postuninstall_cmds
17271
17272 # Commands used to build a loadable module (assumed same as above if empty)
17273 module_cmds=$lt_module_cmds_F77
17274 module_expsym_cmds=$lt_module_expsym_cmds_F77
17275
17276 # Commands to strip libraries.
17277 old_striplib=$lt_old_striplib
17278 striplib=$lt_striplib
17279
17280 # Dependencies to place before the objects being linked to create a
17281 # shared library.
17282 predep_objects=$lt_predep_objects_F77
17283
17284 # Dependencies to place after the objects being linked to create a
17285 # shared library.
17286 postdep_objects=$lt_postdep_objects_F77
17287
17288 # Dependencies to place before the objects being linked to create a
17289 # shared library.
17290 predeps=$lt_predeps_F77
17291
17292 # Dependencies to place after the objects being linked to create a
17293 # shared library.
17294 postdeps=$lt_postdeps_F77
17295
17296 # The library search path used internally by the compiler when linking
17297 # a shared library.
17298 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17299
17300 # Method to check whether dependent libraries are shared objects.
17301 deplibs_check_method=$lt_deplibs_check_method
17302
17303 # Command to use when deplibs_check_method == file_magic.
17304 file_magic_cmd=$lt_file_magic_cmd
17305
17306 # Flag that allows shared libraries with undefined symbols to be built.
17307 allow_undefined_flag=$lt_allow_undefined_flag_F77
17308
17309 # Flag that forces no undefined symbols.
17310 no_undefined_flag=$lt_no_undefined_flag_F77
17311
17312 # Commands used to finish a libtool library installation in a directory.
17313 finish_cmds=$lt_finish_cmds
17314
17315 # Same as above, but a single script fragment to be evaled but not shown.
17316 finish_eval=$lt_finish_eval
17317
17318 # Take the output of nm and produce a listing of raw symbols and C names.
17319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17320
17321 # Transform the output of nm in a proper C declaration
17322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17323
17324 # Transform the output of nm in a C name address pair
17325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17326
17327 # This is the shared library runtime path variable.
17328 runpath_var=$runpath_var
17329
17330 # This is the shared library path variable.
17331 shlibpath_var=$shlibpath_var
17332
17333 # Is shlibpath searched before the hard-coded library search path?
17334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17335
17336 # How to hardcode a shared library path into an executable.
17337 hardcode_action=$hardcode_action_F77
17338
17339 # Whether we should hardcode library paths into libraries.
17340 hardcode_into_libs=$hardcode_into_libs
17341
17342 # Flag to hardcode \$libdir into a binary during linking.
17343 # This must work even if \$libdir does not exist.
17344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17345
17346 # If ld is used when linking, flag to hardcode \$libdir into
17347 # a binary during linking. This must work even if \$libdir does
17348 # not exist.
17349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17350
17351 # Whether we need a single -rpath flag with a separated argument.
17352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17353
17354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17355 # resulting binary.
17356 hardcode_direct=$hardcode_direct_F77
17357
17358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17359 # resulting binary.
17360 hardcode_minus_L=$hardcode_minus_L_F77
17361
17362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17363 # the resulting binary.
17364 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17365
17366 # Set to yes if building a shared library automatically hardcodes DIR into the library
17367 # and all subsequent libraries and executables linked against it.
17368 hardcode_automatic=$hardcode_automatic_F77
17369
17370 # Variables whose values should be saved in libtool wrapper scripts and
17371 # restored at relink time.
17372 variables_saved_for_relink="$variables_saved_for_relink"
17373
17374 # Whether libtool must link a program against all its dependency libraries.
17375 link_all_deplibs=$link_all_deplibs_F77
17376
17377 # Compile-time system search path for libraries
17378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17379
17380 # Run-time system search path for libraries
17381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17382
17383 # Fix the shell variable \$srcfile for the compiler.
17384 fix_srcfile_path="$fix_srcfile_path_F77"
17385
17386 # Set to yes if exported symbols are required.
17387 always_export_symbols=$always_export_symbols_F77
17388
17389 # The commands to list exported symbols.
17390 export_symbols_cmds=$lt_export_symbols_cmds_F77
17391
17392 # The commands to extract the exported symbol list from a shared archive.
17393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17394
17395 # Symbols that should not be listed in the preloaded symbols.
17396 exclude_expsyms=$lt_exclude_expsyms_F77
17397
17398 # Symbols that must always be exported.
17399 include_expsyms=$lt_include_expsyms_F77
17400
17401 # ### END LIBTOOL TAG CONFIG: $tagname
17402
17403 __EOF__
17404
17405
17406 else
17407   # If there is no Makefile yet, we rely on a make rule to execute
17408   # `config.status --recheck' to rerun these tests and create the
17409   # libtool script then.
17410   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17411   if test -f "$ltmain_in"; then
17412     test -f Makefile && make "$ltmain"
17413   fi
17414 fi
17415
17416
17417 ac_ext=c
17418 ac_cpp='$CPP $CPPFLAGS'
17419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17422
17423 CC="$lt_save_CC"
17424
17425         else
17426           tagname=""
17427         fi
17428         ;;
17429
17430       GCJ)
17431         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17432
17433
17434
17435 # Source file extension for Java test sources.
17436 ac_ext=java
17437
17438 # Object file extension for compiled Java test sources.
17439 objext=o
17440 objext_GCJ=$objext
17441
17442 # Code to be used in simple compile tests
17443 lt_simple_compile_test_code="class foo {}\n"
17444
17445 # Code to be used in simple link tests
17446 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17447
17448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17449
17450 # If no C compiler was specified, use CC.
17451 LTCC=${LTCC-"$CC"}
17452
17453 # Allow CC to be a program name with arguments.
17454 compiler=$CC
17455
17456
17457 # Allow CC to be a program name with arguments.
17458 lt_save_CC="$CC"
17459 CC=${GCJ-"gcj"}
17460 compiler=$CC
17461 compiler_GCJ=$CC
17462
17463 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17464 archive_cmds_need_lc_GCJ=no
17465
17466 ## CAVEAT EMPTOR:
17467 ## There is no encapsulation within the following macros, do not change
17468 ## the running order or otherwise move them around unless you know exactly
17469 ## what you are doing...
17470
17471 lt_prog_compiler_no_builtin_flag_GCJ=
17472
17473 if test "$GCC" = yes; then
17474   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17475
17476
17477 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17478 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17479 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   lt_cv_prog_compiler_rtti_exceptions=no
17483   ac_outfile=conftest.$ac_objext
17484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17485    lt_compiler_flag="-fno-rtti -fno-exceptions"
17486    # Insert the option either (1) after the last *FLAGS variable, or
17487    # (2) before a word containing "conftest.", or (3) at the end.
17488    # Note that $ac_compile itself does not contain backslashes and begins
17489    # with a dollar sign (not a hyphen), so the echo should work correctly.
17490    # The option is referenced via a variable to avoid confusing sed.
17491    lt_compile=`echo "$ac_compile" | $SED \
17492    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17494    -e 's:$: $lt_compiler_flag:'`
17495    (eval echo "\"\$as_me:17495: $lt_compile\"" >&5)
17496    (eval "$lt_compile" 2>conftest.err)
17497    ac_status=$?
17498    cat conftest.err >&5
17499    echo "$as_me:17499: \$? = $ac_status" >&5
17500    if (exit $ac_status) && test -s "$ac_outfile"; then
17501      # The compiler can only warn and ignore the option if not recognized
17502      # So say no if there are warnings
17503      if test ! -s conftest.err; then
17504        lt_cv_prog_compiler_rtti_exceptions=yes
17505      fi
17506    fi
17507    $rm conftest*
17508
17509 fi
17510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17512
17513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17514     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17515 else
17516     :
17517 fi
17518
17519 fi
17520
17521 lt_prog_compiler_wl_GCJ=
17522 lt_prog_compiler_pic_GCJ=
17523 lt_prog_compiler_static_GCJ=
17524
17525 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17527
17528   if test "$GCC" = yes; then
17529     lt_prog_compiler_wl_GCJ='-Wl,'
17530     lt_prog_compiler_static_GCJ='-static'
17531
17532     case $host_os in
17533       aix*)
17534       # All AIX code is PIC.
17535       if test "$host_cpu" = ia64; then
17536         # AIX 5 now supports IA64 processor
17537         lt_prog_compiler_static_GCJ='-Bstatic'
17538       fi
17539       ;;
17540
17541     amigaos*)
17542       # FIXME: we need at least 68020 code to build shared libraries, but
17543       # adding the `-m68020' flag to GCC prevents building anything better,
17544       # like `-m68040'.
17545       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17546       ;;
17547
17548     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17549       # PIC is the default for these OSes.
17550       ;;
17551
17552     mingw* | pw32* | os2*)
17553       # This hack is so that the source file can tell whether it is being
17554       # built for inclusion in a dll (and should export symbols for example).
17555       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17556       ;;
17557
17558     darwin* | rhapsody*)
17559       # PIC is the default on this platform
17560       # Common symbols not allowed in MH_DYLIB files
17561       lt_prog_compiler_pic_GCJ='-fno-common'
17562       ;;
17563
17564     msdosdjgpp*)
17565       # Just because we use GCC doesn't mean we suddenly get shared libraries
17566       # on systems that don't support them.
17567       lt_prog_compiler_can_build_shared_GCJ=no
17568       enable_shared=no
17569       ;;
17570
17571     sysv4*MP*)
17572       if test -d /usr/nec; then
17573         lt_prog_compiler_pic_GCJ=-Kconform_pic
17574       fi
17575       ;;
17576
17577     hpux*)
17578       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17579       # not for PA HP-UX.
17580       case "$host_cpu" in
17581       hppa*64*|ia64*)
17582         # +Z the default
17583         ;;
17584       *)
17585         lt_prog_compiler_pic_GCJ='-fPIC'
17586         ;;
17587       esac
17588       ;;
17589
17590     *)
17591       lt_prog_compiler_pic_GCJ='-fPIC'
17592       ;;
17593     esac
17594   else
17595     # PORTME Check for flag to pass linker flags through the system compiler.
17596     case $host_os in
17597     aix*)
17598       lt_prog_compiler_wl_GCJ='-Wl,'
17599       if test "$host_cpu" = ia64; then
17600         # AIX 5 now supports IA64 processor
17601         lt_prog_compiler_static_GCJ='-Bstatic'
17602       else
17603         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17604       fi
17605       ;;
17606
17607     mingw* | pw32* | os2*)
17608       # This hack is so that the source file can tell whether it is being
17609       # built for inclusion in a dll (and should export symbols for example).
17610       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17611       ;;
17612
17613     hpux9* | hpux10* | hpux11*)
17614       lt_prog_compiler_wl_GCJ='-Wl,'
17615       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17616       # not for PA HP-UX.
17617       case "$host_cpu" in
17618       hppa*64*|ia64*)
17619         # +Z the default
17620         ;;
17621       *)
17622         lt_prog_compiler_pic_GCJ='+Z'
17623         ;;
17624       esac
17625       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17626       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17627       ;;
17628
17629     irix5* | irix6* | nonstopux*)
17630       lt_prog_compiler_wl_GCJ='-Wl,'
17631       # PIC (with -KPIC) is the default.
17632       lt_prog_compiler_static_GCJ='-non_shared'
17633       ;;
17634
17635     newsos6)
17636       lt_prog_compiler_pic_GCJ='-KPIC'
17637       lt_prog_compiler_static_GCJ='-Bstatic'
17638       ;;
17639
17640     linux*)
17641       case $CC in
17642       icc* | ecc*)
17643         lt_prog_compiler_wl_GCJ='-Wl,'
17644         lt_prog_compiler_pic_GCJ='-KPIC'
17645         lt_prog_compiler_static_GCJ='-static'
17646         ;;
17647       ccc*)
17648         lt_prog_compiler_wl_GCJ='-Wl,'
17649         # All Alpha code is PIC.
17650         lt_prog_compiler_static_GCJ='-non_shared'
17651         ;;
17652       esac
17653       ;;
17654
17655     osf3* | osf4* | osf5*)
17656       lt_prog_compiler_wl_GCJ='-Wl,'
17657       # All OSF/1 code is PIC.
17658       lt_prog_compiler_static_GCJ='-non_shared'
17659       ;;
17660
17661     sco3.2v5*)
17662       lt_prog_compiler_pic_GCJ='-Kpic'
17663       lt_prog_compiler_static_GCJ='-dn'
17664       ;;
17665
17666     solaris*)
17667       lt_prog_compiler_wl_GCJ='-Wl,'
17668       lt_prog_compiler_pic_GCJ='-KPIC'
17669       lt_prog_compiler_static_GCJ='-Bstatic'
17670       ;;
17671
17672     sunos4*)
17673       lt_prog_compiler_wl_GCJ='-Qoption ld '
17674       lt_prog_compiler_pic_GCJ='-PIC'
17675       lt_prog_compiler_static_GCJ='-Bstatic'
17676       ;;
17677
17678     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17679       lt_prog_compiler_wl_GCJ='-Wl,'
17680       lt_prog_compiler_pic_GCJ='-KPIC'
17681       lt_prog_compiler_static_GCJ='-Bstatic'
17682       ;;
17683
17684     sysv4*MP*)
17685       if test -d /usr/nec ;then
17686         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17687         lt_prog_compiler_static_GCJ='-Bstatic'
17688       fi
17689       ;;
17690
17691     uts4*)
17692       lt_prog_compiler_pic_GCJ='-pic'
17693       lt_prog_compiler_static_GCJ='-Bstatic'
17694       ;;
17695
17696     *)
17697       lt_prog_compiler_can_build_shared_GCJ=no
17698       ;;
17699     esac
17700   fi
17701
17702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17703 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17704
17705 #
17706 # Check to make sure the PIC flag actually works.
17707 #
17708 if test -n "$lt_prog_compiler_pic_GCJ"; then
17709
17710 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17711 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17712 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   lt_prog_compiler_pic_works_GCJ=no
17716   ac_outfile=conftest.$ac_objext
17717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17718    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17719    # Insert the option either (1) after the last *FLAGS variable, or
17720    # (2) before a word containing "conftest.", or (3) at the end.
17721    # Note that $ac_compile itself does not contain backslashes and begins
17722    # with a dollar sign (not a hyphen), so the echo should work correctly.
17723    # The option is referenced via a variable to avoid confusing sed.
17724    lt_compile=`echo "$ac_compile" | $SED \
17725    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17727    -e 's:$: $lt_compiler_flag:'`
17728    (eval echo "\"\$as_me:17728: $lt_compile\"" >&5)
17729    (eval "$lt_compile" 2>conftest.err)
17730    ac_status=$?
17731    cat conftest.err >&5
17732    echo "$as_me:17732: \$? = $ac_status" >&5
17733    if (exit $ac_status) && test -s "$ac_outfile"; then
17734      # The compiler can only warn and ignore the option if not recognized
17735      # So say no if there are warnings
17736      if test ! -s conftest.err; then
17737        lt_prog_compiler_pic_works_GCJ=yes
17738      fi
17739    fi
17740    $rm conftest*
17741
17742 fi
17743 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17744 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17745
17746 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17747     case $lt_prog_compiler_pic_GCJ in
17748      "" | " "*) ;;
17749      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17750      esac
17751 else
17752     lt_prog_compiler_pic_GCJ=
17753      lt_prog_compiler_can_build_shared_GCJ=no
17754 fi
17755
17756 fi
17757 case "$host_os" in
17758   # For platforms which do not support PIC, -DPIC is meaningless:
17759   *djgpp*)
17760     lt_prog_compiler_pic_GCJ=
17761     ;;
17762   *)
17763     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17764     ;;
17765 esac
17766
17767 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17768 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17769 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772   lt_cv_prog_compiler_c_o_GCJ=no
17773    $rm -r conftest 2>/dev/null
17774    mkdir conftest
17775    cd conftest
17776    mkdir out
17777    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17778
17779    lt_compiler_flag="-o out/conftest2.$ac_objext"
17780    # Insert the option either (1) after the last *FLAGS variable, or
17781    # (2) before a word containing "conftest.", or (3) at the end.
17782    # Note that $ac_compile itself does not contain backslashes and begins
17783    # with a dollar sign (not a hyphen), so the echo should work correctly.
17784    lt_compile=`echo "$ac_compile" | $SED \
17785    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787    -e 's:$: $lt_compiler_flag:'`
17788    (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
17789    (eval "$lt_compile" 2>out/conftest.err)
17790    ac_status=$?
17791    cat out/conftest.err >&5
17792    echo "$as_me:17792: \$? = $ac_status" >&5
17793    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17794    then
17795      # The compiler can only warn and ignore the option if not recognized
17796      # So say no if there are warnings
17797      if test ! -s out/conftest.err; then
17798        lt_cv_prog_compiler_c_o_GCJ=yes
17799      fi
17800    fi
17801    chmod u+w .
17802    $rm conftest*
17803    # SGI C++ compiler will create directory out/ii_files/ for
17804    # template instantiation
17805    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17806    $rm out/* && rmdir out
17807    cd ..
17808    rmdir conftest
17809    $rm conftest*
17810
17811 fi
17812 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17814
17815
17816 hard_links="nottested"
17817 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17818   # do not overwrite the value of need_locks provided by the user
17819   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17820 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17821   hard_links=yes
17822   $rm conftest*
17823   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17824   touch conftest.a
17825   ln conftest.a conftest.b 2>&5 || hard_links=no
17826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17827   echo "$as_me:$LINENO: result: $hard_links" >&5
17828 echo "${ECHO_T}$hard_links" >&6
17829   if test "$hard_links" = no; then
17830     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17831 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17832     need_locks=warn
17833   fi
17834 else
17835   need_locks=no
17836 fi
17837
17838 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17840
17841   runpath_var=
17842   allow_undefined_flag_GCJ=
17843   enable_shared_with_static_runtimes_GCJ=no
17844   archive_cmds_GCJ=
17845   archive_expsym_cmds_GCJ=
17846   old_archive_From_new_cmds_GCJ=
17847   old_archive_from_expsyms_cmds_GCJ=
17848   export_dynamic_flag_spec_GCJ=
17849   whole_archive_flag_spec_GCJ=
17850   thread_safe_flag_spec_GCJ=
17851   hardcode_libdir_flag_spec_GCJ=
17852   hardcode_libdir_flag_spec_ld_GCJ=
17853   hardcode_libdir_separator_GCJ=
17854   hardcode_direct_GCJ=no
17855   hardcode_minus_L_GCJ=no
17856   hardcode_shlibpath_var_GCJ=unsupported
17857   link_all_deplibs_GCJ=unknown
17858   hardcode_automatic_GCJ=no
17859   module_cmds_GCJ=
17860   module_expsym_cmds_GCJ=
17861   always_export_symbols_GCJ=no
17862   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17863   # include_expsyms should be a list of space-separated symbols to be *always*
17864   # included in the symbol list
17865   include_expsyms_GCJ=
17866   # exclude_expsyms can be an extended regexp of symbols to exclude
17867   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17868   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17869   # as well as any symbol that contains `d'.
17870   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17871   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17872   # platforms (ab)use it in PIC code, but their linkers get confused if
17873   # the symbol is explicitly referenced.  Since portable code cannot
17874   # rely on this symbol name, it's probably fine to never include it in
17875   # preloaded symbol tables.
17876   extract_expsyms_cmds=
17877
17878   case $host_os in
17879   cygwin* | mingw* | pw32*)
17880     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17881     # When not using gcc, we currently assume that we are using
17882     # Microsoft Visual C++.
17883     if test "$GCC" != yes; then
17884       with_gnu_ld=no
17885     fi
17886     ;;
17887   openbsd*)
17888     with_gnu_ld=no
17889     ;;
17890   esac
17891
17892   ld_shlibs_GCJ=yes
17893   if test "$with_gnu_ld" = yes; then
17894     # If archive_cmds runs LD, not CC, wlarc should be empty
17895     wlarc='${wl}'
17896
17897     # See if GNU ld supports shared libraries.
17898     case $host_os in
17899     aix3* | aix4* | aix5*)
17900       # On AIX/PPC, the GNU linker is very broken
17901       if test "$host_cpu" != ia64; then
17902         ld_shlibs_GCJ=no
17903         cat <<EOF 1>&2
17904
17905 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17906 *** to be unable to reliably create shared libraries on AIX.
17907 *** Therefore, libtool is disabling shared libraries support.  If you
17908 *** really care for shared libraries, you may want to modify your PATH
17909 *** so that a non-GNU linker is found, and then restart.
17910
17911 EOF
17912       fi
17913       ;;
17914
17915     amigaos*)
17916       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)'
17917       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918       hardcode_minus_L_GCJ=yes
17919
17920       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17921       # that the semantics of dynamic libraries on AmigaOS, at least up
17922       # to version 4, is to share data among multiple programs linked
17923       # with the same dynamic library.  Since this doesn't match the
17924       # behavior of shared libraries on other platforms, we can't use
17925       # them.
17926       ld_shlibs_GCJ=no
17927       ;;
17928
17929     beos*)
17930       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17931         allow_undefined_flag_GCJ=unsupported
17932         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17933         # support --undefined.  This deserves some investigation.  FIXME
17934         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17935       else
17936         ld_shlibs_GCJ=no
17937       fi
17938       ;;
17939
17940     cygwin* | mingw* | pw32*)
17941       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17942       # as there is no search path for DLLs.
17943       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17944       allow_undefined_flag_GCJ=unsupported
17945       always_export_symbols_GCJ=no
17946       enable_shared_with_static_runtimes_GCJ=yes
17947       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17948
17949       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17950         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17951         # If the export-symbols file already is a .def file (1st line
17952         # is EXPORTS), use it as is; otherwise, prepend...
17953         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17954           cp $export_symbols $output_objdir/$soname.def;
17955         else
17956           echo EXPORTS > $output_objdir/$soname.def;
17957           cat $export_symbols >> $output_objdir/$soname.def;
17958         fi~
17959         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17960       else
17961         ld_shlibs=no
17962       fi
17963       ;;
17964
17965     netbsd*)
17966       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17967         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17968         wlarc=
17969       else
17970         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17971         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17972       fi
17973       ;;
17974
17975     solaris* | sysv5*)
17976       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17977         ld_shlibs_GCJ=no
17978         cat <<EOF 1>&2
17979
17980 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17981 *** create shared libraries on Solaris systems.  Therefore, libtool
17982 *** is disabling shared libraries support.  We urge you to upgrade GNU
17983 *** binutils to release 2.9.1 or newer.  Another option is to modify
17984 *** your PATH or compiler configuration so that the native linker is
17985 *** used, and then restart.
17986
17987 EOF
17988       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17989         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17991       else
17992         ld_shlibs_GCJ=no
17993       fi
17994       ;;
17995
17996     sunos4*)
17997       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17998       wlarc=
17999       hardcode_direct_GCJ=yes
18000       hardcode_shlibpath_var_GCJ=no
18001       ;;
18002
18003   linux*)
18004     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18005         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18006         archive_cmds_GCJ="$tmp_archive_cmds"
18007       supports_anon_versioning=no
18008       case `$LD -v 2>/dev/null` in
18009         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18010         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18011         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18012         *\ 2.11.*) ;; # other 2.11 versions
18013         *) supports_anon_versioning=yes ;;
18014       esac
18015       if test $supports_anon_versioning = yes; then
18016         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18018 $echo "local: *; };" >> $output_objdir/$libname.ver~
18019         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18020       else
18021         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18022       fi
18023     else
18024       ld_shlibs_GCJ=no
18025     fi
18026     ;;
18027
18028     *)
18029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18030         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18031         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18032       else
18033         ld_shlibs_GCJ=no
18034       fi
18035       ;;
18036     esac
18037
18038     if test "$ld_shlibs_GCJ" = yes; then
18039       runpath_var=LD_RUN_PATH
18040       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18041       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18042       # ancient GNU ld didn't support --whole-archive et. al.
18043       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18044         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18045       else
18046         whole_archive_flag_spec_GCJ=
18047       fi
18048     fi
18049   else
18050     # PORTME fill in a description of your system's linker (not GNU ld)
18051     case $host_os in
18052     aix3*)
18053       allow_undefined_flag_GCJ=unsupported
18054       always_export_symbols_GCJ=yes
18055       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'
18056       # Note: this linker hardcodes the directories in LIBPATH if there
18057       # are no directories specified by -L.
18058       hardcode_minus_L_GCJ=yes
18059       if test "$GCC" = yes && test -z "$link_static_flag"; then
18060         # Neither direct hardcoding nor static linking is supported with a
18061         # broken collect2.
18062         hardcode_direct_GCJ=unsupported
18063       fi
18064       ;;
18065
18066     aix4* | aix5*)
18067       if test "$host_cpu" = ia64; then
18068         # On IA64, the linker does run time linking by default, so we don't
18069         # have to do anything special.
18070         aix_use_runtimelinking=no
18071         exp_sym_flag='-Bexport'
18072         no_entry_flag=""
18073       else
18074         # If we're using GNU nm, then we don't want the "-C" option.
18075         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18076         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18077           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'
18078         else
18079           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'
18080         fi
18081         aix_use_runtimelinking=no
18082
18083         # Test if we are trying to use run time linking or normal
18084         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18085         # need to do runtime linking.
18086         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18087           for ld_flag in $LDFLAGS; do
18088           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18089             aix_use_runtimelinking=yes
18090             break
18091           fi
18092           done
18093         esac
18094
18095         exp_sym_flag='-bexport'
18096         no_entry_flag='-bnoentry'
18097       fi
18098
18099       # When large executables or shared objects are built, AIX ld can
18100       # have problems creating the table of contents.  If linking a library
18101       # or program results in "error TOC overflow" add -mminimal-toc to
18102       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18103       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18104
18105       archive_cmds_GCJ=''
18106       hardcode_direct_GCJ=yes
18107       hardcode_libdir_separator_GCJ=':'
18108       link_all_deplibs_GCJ=yes
18109
18110       if test "$GCC" = yes; then
18111         case $host_os in aix4.012|aix4.012.*)
18112         # We only want to do this on AIX 4.2 and lower, the check
18113         # below for broken collect2 doesn't work under 4.3+
18114           collect2name=`${CC} -print-prog-name=collect2`
18115           if test -f "$collect2name" && \
18116            strings "$collect2name" | grep resolve_lib_name >/dev/null
18117           then
18118           # We have reworked collect2
18119           hardcode_direct_GCJ=yes
18120           else
18121           # We have old collect2
18122           hardcode_direct_GCJ=unsupported
18123           # It fails to find uninstalled libraries when the uninstalled
18124           # path is not listed in the libpath.  Setting hardcode_minus_L
18125           # to unsupported forces relinking
18126           hardcode_minus_L_GCJ=yes
18127           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18128           hardcode_libdir_separator_GCJ=
18129           fi
18130         esac
18131         shared_flag='-shared'
18132       else
18133         # not using gcc
18134         if test "$host_cpu" = ia64; then
18135         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18136         # chokes on -Wl,-G. The following line is correct:
18137           shared_flag='-G'
18138         else
18139         if test "$aix_use_runtimelinking" = yes; then
18140             shared_flag='${wl}-G'
18141           else
18142             shared_flag='${wl}-bM:SRE'
18143         fi
18144         fi
18145       fi
18146
18147       # It seems that -bexpall does not export symbols beginning with
18148       # underscore (_), so it is better to generate a list of symbols to export.
18149       always_export_symbols_GCJ=yes
18150       if test "$aix_use_runtimelinking" = yes; then
18151         # Warning - without using the other runtime loading flags (-brtl),
18152         # -berok will link without error, but may produce a broken library.
18153         allow_undefined_flag_GCJ='-berok'
18154        # Determine the default libpath from the value encoded in an empty executable.
18155        cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h.  */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h.  */
18161
18162 int
18163 main ()
18164 {
18165
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172   (eval $ac_link) 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag"
18180                          || test ! -s conftest.err'
18181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182   (eval $ac_try) 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest$ac_exeext'
18187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188   (eval $ac_try) 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192
18193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18194 }'`
18195 # Check for a 64-bit object if we didn't find anything.
18196 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; }
18197 }'`; fi
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202 fi
18203 rm -f conftest.err conftest.$ac_objext \
18204       conftest$ac_exeext conftest.$ac_ext
18205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18206
18207        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18208         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"
18209        else
18210         if test "$host_cpu" = ia64; then
18211           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18212           allow_undefined_flag_GCJ="-z nodefs"
18213           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"
18214         else
18215          # Determine the default libpath from the value encoded in an empty executable.
18216          cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h.  */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h.  */
18222
18223 int
18224 main ()
18225 {
18226
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18233   (eval $ac_link) 2>conftest.er1
18234   ac_status=$?
18235   grep -v '^ *+' conftest.er1 >conftest.err
18236   rm -f conftest.er1
18237   cat conftest.err >&5
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } &&
18240          { ac_try='test -z "$ac_c_werror_flag"
18241                          || test ! -s conftest.err'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; } &&
18247          { ac_try='test -s conftest$ac_exeext'
18248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249   (eval $ac_try) 2>&5
18250   ac_status=$?
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); }; }; then
18253
18254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18255 }'`
18256 # Check for a 64-bit object if we didn't find anything.
18257 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; }
18258 }'`; fi
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263 fi
18264 rm -f conftest.err conftest.$ac_objext \
18265       conftest$ac_exeext conftest.$ac_ext
18266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18267
18268          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18269           # Warning - without using the other run time loading flags,
18270           # -berok will link without error, but may produce a broken library.
18271           no_undefined_flag_GCJ=' ${wl}-bernotok'
18272           allow_undefined_flag_GCJ=' ${wl}-berok'
18273           # -bexpall does not export symbols beginning with underscore (_)
18274           always_export_symbols_GCJ=yes
18275           # Exported symbols can be pulled into shared objects from archives
18276           whole_archive_flag_spec_GCJ=' '
18277           archive_cmds_need_lc_GCJ=yes
18278           # This is similar to how AIX traditionally builds it's shared libraries.
18279           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'
18280         fi
18281       fi
18282       ;;
18283
18284     amigaos*)
18285       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)'
18286       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18287       hardcode_minus_L_GCJ=yes
18288       # see comment about different semantics on the GNU ld section
18289       ld_shlibs_GCJ=no
18290       ;;
18291
18292     bsdi4*)
18293       export_dynamic_flag_spec_GCJ=-rdynamic
18294       ;;
18295
18296     cygwin* | mingw* | pw32*)
18297       # When not using gcc, we currently assume that we are using
18298       # Microsoft Visual C++.
18299       # hardcode_libdir_flag_spec is actually meaningless, as there is
18300       # no search path for DLLs.
18301       hardcode_libdir_flag_spec_GCJ=' '
18302       allow_undefined_flag_GCJ=unsupported
18303       # Tell ltmain to make .lib files, not .a files.
18304       libext=lib
18305       # Tell ltmain to make .dll files, not .so files.
18306       shrext_cmds=".dll"
18307       # FIXME: Setting linknames here is a bad hack.
18308       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18309       # The linker will automatically build a .lib file if we build a DLL.
18310       old_archive_From_new_cmds_GCJ='true'
18311       # FIXME: Should let the user specify the lib program.
18312       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18313       fix_srcfile_path='`cygpath -w "$srcfile"`'
18314       enable_shared_with_static_runtimes_GCJ=yes
18315       ;;
18316
18317     darwin* | rhapsody*)
18318     if test "$GXX" = yes ; then
18319       archive_cmds_need_lc_GCJ=no
18320       case "$host_os" in
18321       rhapsody* | darwin1.[012])
18322         allow_undefined_flag_GCJ='-undefined suppress'
18323         ;;
18324       *) # Darwin 1.3 on
18325       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18326         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18327       else
18328         case ${MACOSX_DEPLOYMENT_TARGET} in
18329           10.[012])
18330             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18331             ;;
18332           10.*)
18333             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18334             ;;
18335         esac
18336       fi
18337         ;;
18338       esac
18339         lt_int_apple_cc_single_mod=no
18340         output_verbose_link_cmd='echo'
18341         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18342           lt_int_apple_cc_single_mod=yes
18343         fi
18344         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18345           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18346         else
18347         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'
18348       fi
18349       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18350       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18351         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18352           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}'
18353         else
18354           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}'
18355         fi
18356           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}'
18357       hardcode_direct_GCJ=no
18358       hardcode_automatic_GCJ=yes
18359       hardcode_shlibpath_var_GCJ=unsupported
18360       whole_archive_flag_spec_GCJ='-all_load $convenience'
18361       link_all_deplibs_GCJ=yes
18362     else
18363       ld_shlibs_GCJ=no
18364     fi
18365       ;;
18366
18367     dgux*)
18368       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18369       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370       hardcode_shlibpath_var_GCJ=no
18371       ;;
18372
18373     freebsd1*)
18374       ld_shlibs_GCJ=no
18375       ;;
18376
18377     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18378     # support.  Future versions do this automatically, but an explicit c++rt0.o
18379     # does not break anything, and helps significantly (at the cost of a little
18380     # extra space).
18381     freebsd2.2*)
18382       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18383       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18384       hardcode_direct_GCJ=yes
18385       hardcode_shlibpath_var_GCJ=no
18386       ;;
18387
18388     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18389     freebsd2*)
18390       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18391       hardcode_direct_GCJ=yes
18392       hardcode_minus_L_GCJ=yes
18393       hardcode_shlibpath_var_GCJ=no
18394       ;;
18395
18396     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18397     freebsd* | kfreebsd*-gnu)
18398       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18399       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18400       hardcode_direct_GCJ=yes
18401       hardcode_shlibpath_var_GCJ=no
18402       ;;
18403
18404     hpux9*)
18405       if test "$GCC" = yes; then
18406         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'
18407       else
18408         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'
18409       fi
18410       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18411       hardcode_libdir_separator_GCJ=:
18412       hardcode_direct_GCJ=yes
18413
18414       # hardcode_minus_L: Not really in the search PATH,
18415       # but as the default location of the library.
18416       hardcode_minus_L_GCJ=yes
18417       export_dynamic_flag_spec_GCJ='${wl}-E'
18418       ;;
18419
18420     hpux10* | hpux11*)
18421       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18422         case "$host_cpu" in
18423         hppa*64*|ia64*)
18424           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18425           ;;
18426         *)
18427           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18428           ;;
18429         esac
18430       else
18431         case "$host_cpu" in
18432         hppa*64*|ia64*)
18433           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18434           ;;
18435         *)
18436           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18437           ;;
18438         esac
18439       fi
18440       if test "$with_gnu_ld" = no; then
18441         case "$host_cpu" in
18442         hppa*64*)
18443           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18444           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18445           hardcode_libdir_separator_GCJ=:
18446           hardcode_direct_GCJ=no
18447           hardcode_shlibpath_var_GCJ=no
18448           ;;
18449         ia64*)
18450           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18451           hardcode_direct_GCJ=no
18452           hardcode_shlibpath_var_GCJ=no
18453
18454           # hardcode_minus_L: Not really in the search PATH,
18455           # but as the default location of the library.
18456           hardcode_minus_L_GCJ=yes
18457           ;;
18458         *)
18459           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18460           hardcode_libdir_separator_GCJ=:
18461           hardcode_direct_GCJ=yes
18462           export_dynamic_flag_spec_GCJ='${wl}-E'
18463
18464           # hardcode_minus_L: Not really in the search PATH,
18465           # but as the default location of the library.
18466           hardcode_minus_L_GCJ=yes
18467           ;;
18468         esac
18469       fi
18470       ;;
18471
18472     irix5* | irix6* | nonstopux*)
18473       if test "$GCC" = yes; then
18474         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'
18475       else
18476         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'
18477         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18478       fi
18479       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18480       hardcode_libdir_separator_GCJ=:
18481       link_all_deplibs_GCJ=yes
18482       ;;
18483
18484     netbsd*)
18485       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18486         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18487       else
18488         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18489       fi
18490       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18491       hardcode_direct_GCJ=yes
18492       hardcode_shlibpath_var_GCJ=no
18493       ;;
18494
18495     newsos6)
18496       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497       hardcode_direct_GCJ=yes
18498       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18499       hardcode_libdir_separator_GCJ=:
18500       hardcode_shlibpath_var_GCJ=no
18501       ;;
18502
18503     openbsd*)
18504       hardcode_direct_GCJ=yes
18505       hardcode_shlibpath_var_GCJ=no
18506       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18507         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18508         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18509         export_dynamic_flag_spec_GCJ='${wl}-E'
18510       else
18511        case $host_os in
18512          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18513            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18514            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18515            ;;
18516          *)
18517            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18518            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18519            ;;
18520        esac
18521       fi
18522       ;;
18523
18524     os2*)
18525       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18526       hardcode_minus_L_GCJ=yes
18527       allow_undefined_flag_GCJ=unsupported
18528       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'
18529       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18530       ;;
18531
18532     osf3*)
18533       if test "$GCC" = yes; then
18534         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18535         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'
18536       else
18537         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18538         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'
18539       fi
18540       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18541       hardcode_libdir_separator_GCJ=:
18542       ;;
18543
18544     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18545       if test "$GCC" = yes; then
18546         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18547         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'
18548         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18549       else
18550         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18551         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'
18552         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~
18553         $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'
18554
18555         # Both c and cxx compiler support -rpath directly
18556         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18557       fi
18558       hardcode_libdir_separator_GCJ=:
18559       ;;
18560
18561     sco3.2v5*)
18562       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18563       hardcode_shlibpath_var_GCJ=no
18564       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18565       runpath_var=LD_RUN_PATH
18566       hardcode_runpath_var=yes
18567       ;;
18568
18569     solaris*)
18570       no_undefined_flag_GCJ=' -z text'
18571       if test "$GCC" = yes; then
18572         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18573         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18574           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18575       else
18576         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18577         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18578         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18579       fi
18580       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18581       hardcode_shlibpath_var_GCJ=no
18582       case $host_os in
18583       solaris2.[0-5] | solaris2.[0-5].*) ;;
18584       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18585         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18586       esac
18587       link_all_deplibs_GCJ=yes
18588       ;;
18589
18590     sunos4*)
18591       if test "x$host_vendor" = xsequent; then
18592         # Use $CC to link under sequent, because it throws in some extra .o
18593         # files that make .init and .fini sections work.
18594         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18595       else
18596         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18597       fi
18598       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18599       hardcode_direct_GCJ=yes
18600       hardcode_minus_L_GCJ=yes
18601       hardcode_shlibpath_var_GCJ=no
18602       ;;
18603
18604     sysv4)
18605       case $host_vendor in
18606         sni)
18607           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18608           hardcode_direct_GCJ=yes # is this really true???
18609         ;;
18610         siemens)
18611           ## LD is ld it makes a PLAMLIB
18612           ## CC just makes a GrossModule.
18613           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18614           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18615           hardcode_direct_GCJ=no
18616         ;;
18617         motorola)
18618           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18619           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18620         ;;
18621       esac
18622       runpath_var='LD_RUN_PATH'
18623       hardcode_shlibpath_var_GCJ=no
18624       ;;
18625
18626     sysv4.3*)
18627       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18628       hardcode_shlibpath_var_GCJ=no
18629       export_dynamic_flag_spec_GCJ='-Bexport'
18630       ;;
18631
18632     sysv4*MP*)
18633       if test -d /usr/nec; then
18634         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18635         hardcode_shlibpath_var_GCJ=no
18636         runpath_var=LD_RUN_PATH
18637         hardcode_runpath_var=yes
18638         ld_shlibs_GCJ=yes
18639       fi
18640       ;;
18641
18642     sysv4.2uw2*)
18643       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18644       hardcode_direct_GCJ=yes
18645       hardcode_minus_L_GCJ=no
18646       hardcode_shlibpath_var_GCJ=no
18647       hardcode_runpath_var=yes
18648       runpath_var=LD_RUN_PATH
18649       ;;
18650
18651    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18652       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18653       if test "$GCC" = yes; then
18654         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18655       else
18656         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18657       fi
18658       runpath_var='LD_RUN_PATH'
18659       hardcode_shlibpath_var_GCJ=no
18660       ;;
18661
18662     sysv5*)
18663       no_undefined_flag_GCJ=' -z text'
18664       # $CC -shared without GNU ld will not create a library from C++
18665       # object files and a static libstdc++, better avoid it by now
18666       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18667       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18668                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18669       hardcode_libdir_flag_spec_GCJ=
18670       hardcode_shlibpath_var_GCJ=no
18671       runpath_var='LD_RUN_PATH'
18672       ;;
18673
18674     uts4*)
18675       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18676       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18677       hardcode_shlibpath_var_GCJ=no
18678       ;;
18679
18680     *)
18681       ld_shlibs_GCJ=no
18682       ;;
18683     esac
18684   fi
18685
18686 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18687 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18688 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18689
18690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18691 if test "$GCC" = yes; then
18692   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18693 fi
18694
18695 #
18696 # Do we need to explicitly link libc?
18697 #
18698 case "x$archive_cmds_need_lc_GCJ" in
18699 x|xyes)
18700   # Assume -lc should be added
18701   archive_cmds_need_lc_GCJ=yes
18702
18703   if test "$enable_shared" = yes && test "$GCC" = yes; then
18704     case $archive_cmds_GCJ in
18705     *'~'*)
18706       # FIXME: we may have to deal with multi-command sequences.
18707       ;;
18708     '$CC '*)
18709       # Test whether the compiler implicitly links with -lc since on some
18710       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18711       # to ld, don't add -lc before -lgcc.
18712       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18713 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18714       $rm conftest*
18715       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18716
18717       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718   (eval $ac_compile) 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); } 2>conftest.err; then
18722         soname=conftest
18723         lib=conftest
18724         libobjs=conftest.$ac_objext
18725         deplibs=
18726         wl=$lt_prog_compiler_wl_GCJ
18727         compiler_flags=-v
18728         linker_flags=-v
18729         verstring=
18730         output_objdir=.
18731         libname=conftest
18732         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18733         allow_undefined_flag_GCJ=
18734         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18735   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }
18739         then
18740           archive_cmds_need_lc_GCJ=no
18741         else
18742           archive_cmds_need_lc_GCJ=yes
18743         fi
18744         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18745       else
18746         cat conftest.err 1>&5
18747       fi
18748       $rm conftest*
18749       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18750 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18751       ;;
18752     esac
18753   fi
18754   ;;
18755 esac
18756
18757 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18758 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18759 library_names_spec=
18760 libname_spec='lib$name'
18761 soname_spec=
18762 shrext_cmds=".so"
18763 postinstall_cmds=
18764 postuninstall_cmds=
18765 finish_cmds=
18766 finish_eval=
18767 shlibpath_var=
18768 shlibpath_overrides_runpath=unknown
18769 version_type=none
18770 dynamic_linker="$host_os ld.so"
18771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18772 if test "$GCC" = yes; then
18773   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18774   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18775     # if the path contains ";" then we assume it to be the separator
18776     # otherwise default to the standard path separator (i.e. ":") - it is
18777     # assumed that no part of a normal pathname contains ";" but that should
18778     # okay in the real world where ";" in dirpaths is itself problematic.
18779     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18780   else
18781     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18782   fi
18783 else
18784   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18785 fi
18786 need_lib_prefix=unknown
18787 hardcode_into_libs=no
18788
18789 # when you set need_version to no, make sure it does not cause -set_version
18790 # flags to be left without arguments
18791 need_version=unknown
18792
18793 case $host_os in
18794 aix3*)
18795   version_type=linux
18796   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18797   shlibpath_var=LIBPATH
18798
18799   # AIX 3 has no versioning support, so we append a major version to the name.
18800   soname_spec='${libname}${release}${shared_ext}$major'
18801   ;;
18802
18803 aix4* | aix5*)
18804   version_type=linux
18805   need_lib_prefix=no
18806   need_version=no
18807   hardcode_into_libs=yes
18808   if test "$host_cpu" = ia64; then
18809     # AIX 5 supports IA64
18810     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18811     shlibpath_var=LD_LIBRARY_PATH
18812   else
18813     # With GCC up to 2.95.x, collect2 would create an import file
18814     # for dependence libraries.  The import file would start with
18815     # the line `#! .'.  This would cause the generated library to
18816     # depend on `.', always an invalid library.  This was fixed in
18817     # development snapshots of GCC prior to 3.0.
18818     case $host_os in
18819       aix4 | aix4.[01] | aix4.[01].*)
18820       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18821            echo ' yes '
18822            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18823         :
18824       else
18825         can_build_shared=no
18826       fi
18827       ;;
18828     esac
18829     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18830     # soname into executable. Probably we can add versioning support to
18831     # collect2, so additional links can be useful in future.
18832     if test "$aix_use_runtimelinking" = yes; then
18833       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18834       # instead of lib<name>.a to let people know that these are not
18835       # typical AIX shared libraries.
18836       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837     else
18838       # We preserve .a as extension for shared libraries through AIX4.2
18839       # and later when we are not doing run time linking.
18840       library_names_spec='${libname}${release}.a $libname.a'
18841       soname_spec='${libname}${release}${shared_ext}$major'
18842     fi
18843     shlibpath_var=LIBPATH
18844   fi
18845   ;;
18846
18847 amigaos*)
18848   library_names_spec='$libname.ixlibrary $libname.a'
18849   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18850   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'
18851   ;;
18852
18853 beos*)
18854   library_names_spec='${libname}${shared_ext}'
18855   dynamic_linker="$host_os ld.so"
18856   shlibpath_var=LIBRARY_PATH
18857   ;;
18858
18859 bsdi4*)
18860   version_type=linux
18861   need_version=no
18862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863   soname_spec='${libname}${release}${shared_ext}$major'
18864   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18865   shlibpath_var=LD_LIBRARY_PATH
18866   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18867   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18868   # the default ld.so.conf also contains /usr/contrib/lib and
18869   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18870   # libtool to hard-code these into programs
18871   ;;
18872
18873 cygwin* | mingw* | pw32*)
18874   version_type=windows
18875   shrext_cmds=".dll"
18876   need_version=no
18877   need_lib_prefix=no
18878
18879   case $GCC,$host_os in
18880   yes,cygwin* | yes,mingw* | yes,pw32*)
18881     library_names_spec='$libname.dll.a'
18882     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18883     postinstall_cmds='base_file=`basename \${file}`~
18884       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18885       dldir=$destdir/`dirname \$dlpath`~
18886       test -d \$dldir || mkdir -p \$dldir~
18887       $install_prog $dir/$dlname \$dldir/$dlname'
18888     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18889       dlpath=$dir/\$dldll~
18890        $rm \$dlpath'
18891     shlibpath_overrides_runpath=yes
18892
18893     case $host_os in
18894     cygwin*)
18895       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18896       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18897       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18898       ;;
18899     mingw*)
18900       # MinGW DLLs use traditional 'lib' prefix
18901       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18902       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18903       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18904         # It is most probably a Windows format PATH printed by
18905         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18906         # path with ; separators, and with drive letters. We can handle the
18907         # drive letters (cygwin fileutils understands them), so leave them,
18908         # especially as we might pass files found there to a mingw objdump,
18909         # which wouldn't understand a cygwinified path. Ahh.
18910         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18911       else
18912         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18913       fi
18914       ;;
18915     pw32*)
18916       # pw32 DLLs use 'pw' prefix rather than 'lib'
18917       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18918       ;;
18919     esac
18920     ;;
18921
18922   *)
18923     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18924     ;;
18925   esac
18926   dynamic_linker='Win32 ld.exe'
18927   # FIXME: first we should search . and the directory the executable is in
18928   shlibpath_var=PATH
18929   ;;
18930
18931 darwin* | rhapsody*)
18932   dynamic_linker="$host_os dyld"
18933   version_type=darwin
18934   need_lib_prefix=no
18935   need_version=no
18936   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18937   soname_spec='${libname}${release}${major}$shared_ext'
18938   shlibpath_overrides_runpath=yes
18939   shlibpath_var=DYLD_LIBRARY_PATH
18940   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18941   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18942   if test "$GCC" = yes; then
18943     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"`
18944   else
18945     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18946   fi
18947   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18948   ;;
18949
18950 dgux*)
18951   version_type=linux
18952   need_lib_prefix=no
18953   need_version=no
18954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18955   soname_spec='${libname}${release}${shared_ext}$major'
18956   shlibpath_var=LD_LIBRARY_PATH
18957   ;;
18958
18959 freebsd1*)
18960   dynamic_linker=no
18961   ;;
18962
18963 kfreebsd*-gnu)
18964   version_type=linux
18965   need_lib_prefix=no
18966   need_version=no
18967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18968   soname_spec='${libname}${release}${shared_ext}$major'
18969   shlibpath_var=LD_LIBRARY_PATH
18970   shlibpath_overrides_runpath=no
18971   hardcode_into_libs=yes
18972   dynamic_linker='GNU ld.so'
18973   ;;
18974
18975 freebsd*)
18976   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18977   version_type=freebsd-$objformat
18978   case $version_type in
18979     freebsd-elf*)
18980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18981       need_version=no
18982       need_lib_prefix=no
18983       ;;
18984     freebsd-*)
18985       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18986       need_version=yes
18987       ;;
18988   esac
18989   shlibpath_var=LD_LIBRARY_PATH
18990   case $host_os in
18991   freebsd2*)
18992     shlibpath_overrides_runpath=yes
18993     ;;
18994   freebsd3.01* | freebsdelf3.01*)
18995     shlibpath_overrides_runpath=yes
18996     hardcode_into_libs=yes
18997     ;;
18998   *) # from 3.2 on
18999     shlibpath_overrides_runpath=no
19000     hardcode_into_libs=yes
19001     ;;
19002   esac
19003   ;;
19004
19005 gnu*)
19006   version_type=linux
19007   need_lib_prefix=no
19008   need_version=no
19009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19010   soname_spec='${libname}${release}${shared_ext}$major'
19011   shlibpath_var=LD_LIBRARY_PATH
19012   hardcode_into_libs=yes
19013   ;;
19014
19015 hpux9* | hpux10* | hpux11*)
19016   # Give a soname corresponding to the major version so that dld.sl refuses to
19017   # link against other versions.
19018   version_type=sunos
19019   need_lib_prefix=no
19020   need_version=no
19021   case "$host_cpu" in
19022   ia64*)
19023     shrext_cmds='.so'
19024     hardcode_into_libs=yes
19025     dynamic_linker="$host_os dld.so"
19026     shlibpath_var=LD_LIBRARY_PATH
19027     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029     soname_spec='${libname}${release}${shared_ext}$major'
19030     if test "X$HPUX_IA64_MODE" = X32; then
19031       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19032     else
19033       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19034     fi
19035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19036     ;;
19037    hppa*64*)
19038      shrext_cmds='.sl'
19039      hardcode_into_libs=yes
19040      dynamic_linker="$host_os dld.sl"
19041      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19042      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19043      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19044      soname_spec='${libname}${release}${shared_ext}$major'
19045      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19046      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19047      ;;
19048    *)
19049     shrext_cmds='.sl'
19050     dynamic_linker="$host_os dld.sl"
19051     shlibpath_var=SHLIB_PATH
19052     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054     soname_spec='${libname}${release}${shared_ext}$major'
19055     ;;
19056   esac
19057   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19058   postinstall_cmds='chmod 555 $lib'
19059   ;;
19060
19061 irix5* | irix6* | nonstopux*)
19062   case $host_os in
19063     nonstopux*) version_type=nonstopux ;;
19064     *)
19065         if test "$lt_cv_prog_gnu_ld" = yes; then
19066                 version_type=linux
19067         else
19068                 version_type=irix
19069         fi ;;
19070   esac
19071   need_lib_prefix=no
19072   need_version=no
19073   soname_spec='${libname}${release}${shared_ext}$major'
19074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19075   case $host_os in
19076   irix5* | nonstopux*)
19077     libsuff= shlibsuff=
19078     ;;
19079   *)
19080     case $LD in # libtool.m4 will add one of these switches to LD
19081     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19082       libsuff= shlibsuff= libmagic=32-bit;;
19083     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19084       libsuff=32 shlibsuff=N32 libmagic=N32;;
19085     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19086       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19087     *) libsuff= shlibsuff= libmagic=never-match;;
19088     esac
19089     ;;
19090   esac
19091   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19092   shlibpath_overrides_runpath=no
19093   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19094   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19095   hardcode_into_libs=yes
19096   ;;
19097
19098 # No shared lib support for Linux oldld, aout, or coff.
19099 linux*oldld* | linux*aout* | linux*coff*)
19100   dynamic_linker=no
19101   ;;
19102
19103 # This must be Linux ELF.
19104 linux*)
19105   version_type=linux
19106   need_lib_prefix=no
19107   need_version=no
19108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109   soname_spec='${libname}${release}${shared_ext}$major'
19110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19111   shlibpath_var=LD_LIBRARY_PATH
19112   shlibpath_overrides_runpath=no
19113   # This implies no fast_install, which is unacceptable.
19114   # Some rework will be needed to allow for fast_install
19115   # before this can be enabled.
19116   hardcode_into_libs=yes
19117
19118   # find out which ABI we are using
19119   libsuff=
19120   case "$host_cpu" in
19121   x86_64*|s390x*|powerpc64*)
19122     echo '#line 19122 "configure"' > conftest.$ac_ext
19123     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19124   (eval $ac_compile) 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; then
19128       case `/usr/bin/file conftest.$ac_objext` in
19129       *64-bit*)
19130         libsuff=64
19131         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19132         ;;
19133       esac
19134     fi
19135     rm -rf conftest*
19136     ;;
19137   esac
19138
19139   # Append ld.so.conf contents to the search path
19140   if test -f /etc/ld.so.conf; then
19141     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19142     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19143   fi
19144
19145   # We used to test for /lib/ld.so.1 and disable shared libraries on
19146   # powerpc, because MkLinux only supported shared libraries with the
19147   # GNU dynamic linker.  Since this was broken with cross compilers,
19148   # most powerpc-linux boxes support dynamic linking these days and
19149   # people can always --disable-shared, the test was removed, and we
19150   # assume the GNU/Linux dynamic linker is in use.
19151   dynamic_linker='GNU/Linux ld.so'
19152   ;;
19153
19154 knetbsd*-gnu)
19155   version_type=linux
19156   need_lib_prefix=no
19157   need_version=no
19158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19159   soname_spec='${libname}${release}${shared_ext}$major'
19160   shlibpath_var=LD_LIBRARY_PATH
19161   shlibpath_overrides_runpath=no
19162   hardcode_into_libs=yes
19163   dynamic_linker='GNU ld.so'
19164   ;;
19165
19166 netbsd*)
19167   version_type=sunos
19168   need_lib_prefix=no
19169   need_version=no
19170   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19172     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19173     dynamic_linker='NetBSD (a.out) ld.so'
19174   else
19175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19176     soname_spec='${libname}${release}${shared_ext}$major'
19177     dynamic_linker='NetBSD ld.elf_so'
19178   fi
19179   shlibpath_var=LD_LIBRARY_PATH
19180   shlibpath_overrides_runpath=yes
19181   hardcode_into_libs=yes
19182   ;;
19183
19184 newsos6)
19185   version_type=linux
19186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187   shlibpath_var=LD_LIBRARY_PATH
19188   shlibpath_overrides_runpath=yes
19189   ;;
19190
19191 nto-qnx*)
19192   version_type=linux
19193   need_lib_prefix=no
19194   need_version=no
19195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19196   soname_spec='${libname}${release}${shared_ext}$major'
19197   shlibpath_var=LD_LIBRARY_PATH
19198   shlibpath_overrides_runpath=yes
19199   ;;
19200
19201 openbsd*)
19202   version_type=sunos
19203   need_lib_prefix=no
19204   need_version=yes
19205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19207   shlibpath_var=LD_LIBRARY_PATH
19208   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19209     case $host_os in
19210       openbsd2.[89] | openbsd2.[89].*)
19211         shlibpath_overrides_runpath=no
19212         ;;
19213       *)
19214         shlibpath_overrides_runpath=yes
19215         ;;
19216       esac
19217   else
19218     shlibpath_overrides_runpath=yes
19219   fi
19220   ;;
19221
19222 os2*)
19223   libname_spec='$name'
19224   shrext_cmds=".dll"
19225   need_lib_prefix=no
19226   library_names_spec='$libname${shared_ext} $libname.a'
19227   dynamic_linker='OS/2 ld.exe'
19228   shlibpath_var=LIBPATH
19229   ;;
19230
19231 osf3* | osf4* | osf5*)
19232   version_type=osf
19233   need_lib_prefix=no
19234   need_version=no
19235   soname_spec='${libname}${release}${shared_ext}$major'
19236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237   shlibpath_var=LD_LIBRARY_PATH
19238   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19239   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19240   ;;
19241
19242 sco3.2v5*)
19243   version_type=osf
19244   soname_spec='${libname}${release}${shared_ext}$major'
19245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19246   shlibpath_var=LD_LIBRARY_PATH
19247   ;;
19248
19249 solaris*)
19250   version_type=linux
19251   need_lib_prefix=no
19252   need_version=no
19253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254   soname_spec='${libname}${release}${shared_ext}$major'
19255   shlibpath_var=LD_LIBRARY_PATH
19256   shlibpath_overrides_runpath=yes
19257   hardcode_into_libs=yes
19258   # ldd complains unless libraries are executable
19259   postinstall_cmds='chmod +x $lib'
19260   ;;
19261
19262 sunos4*)
19263   version_type=sunos
19264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19265   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19266   shlibpath_var=LD_LIBRARY_PATH
19267   shlibpath_overrides_runpath=yes
19268   if test "$with_gnu_ld" = yes; then
19269     need_lib_prefix=no
19270   fi
19271   need_version=yes
19272   ;;
19273
19274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19275   version_type=linux
19276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19277   soname_spec='${libname}${release}${shared_ext}$major'
19278   shlibpath_var=LD_LIBRARY_PATH
19279   case $host_vendor in
19280     sni)
19281       shlibpath_overrides_runpath=no
19282       need_lib_prefix=no
19283       export_dynamic_flag_spec='${wl}-Blargedynsym'
19284       runpath_var=LD_RUN_PATH
19285       ;;
19286     siemens)
19287       need_lib_prefix=no
19288       ;;
19289     motorola)
19290       need_lib_prefix=no
19291       need_version=no
19292       shlibpath_overrides_runpath=no
19293       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19294       ;;
19295   esac
19296   ;;
19297
19298 sysv4*MP*)
19299   if test -d /usr/nec ;then
19300     version_type=linux
19301     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19302     soname_spec='$libname${shared_ext}.$major'
19303     shlibpath_var=LD_LIBRARY_PATH
19304   fi
19305   ;;
19306
19307 uts4*)
19308   version_type=linux
19309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310   soname_spec='${libname}${release}${shared_ext}$major'
19311   shlibpath_var=LD_LIBRARY_PATH
19312   ;;
19313
19314 *)
19315   dynamic_linker=no
19316   ;;
19317 esac
19318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19319 echo "${ECHO_T}$dynamic_linker" >&6
19320 test "$dynamic_linker" = no && can_build_shared=no
19321
19322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19324 hardcode_action_GCJ=
19325 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19326    test -n "$runpath_var GCJ" || \
19327    test "X$hardcode_automatic_GCJ"="Xyes" ; then
19328
19329   # We can hardcode non-existant directories.
19330   if test "$hardcode_direct_GCJ" != no &&
19331      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19332      # have to relink, otherwise we might link with an installed library
19333      # when we should be linking with a yet-to-be-installed one
19334      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19335      test "$hardcode_minus_L_GCJ" != no; then
19336     # Linking always hardcodes the temporary library directory.
19337     hardcode_action_GCJ=relink
19338   else
19339     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19340     hardcode_action_GCJ=immediate
19341   fi
19342 else
19343   # We cannot hardcode anything, or else we can only hardcode existing
19344   # directories.
19345   hardcode_action_GCJ=unsupported
19346 fi
19347 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19348 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19349
19350 if test "$hardcode_action_GCJ" = relink; then
19351   # Fast installation is not supported
19352   enable_fast_install=no
19353 elif test "$shlibpath_overrides_runpath" = yes ||
19354      test "$enable_shared" = no; then
19355   # Fast installation is not necessary
19356   enable_fast_install=needless
19357 fi
19358
19359 striplib=
19360 old_striplib=
19361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19364   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19365   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19366   echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6
19368 else
19369 # FIXME - insert some real tests, host_os isn't really good enough
19370   case $host_os in
19371    darwin*)
19372        if test -n "$STRIP" ; then
19373          striplib="$STRIP -x"
19374          echo "$as_me:$LINENO: result: yes" >&5
19375 echo "${ECHO_T}yes" >&6
19376        else
19377   echo "$as_me:$LINENO: result: no" >&5
19378 echo "${ECHO_T}no" >&6
19379 fi
19380        ;;
19381    *)
19382   echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19384     ;;
19385   esac
19386 fi
19387
19388 if test "x$enable_dlopen" != xyes; then
19389   enable_dlopen=unknown
19390   enable_dlopen_self=unknown
19391   enable_dlopen_self_static=unknown
19392 else
19393   lt_cv_dlopen=no
19394   lt_cv_dlopen_libs=
19395
19396   case $host_os in
19397   beos*)
19398     lt_cv_dlopen="load_add_on"
19399     lt_cv_dlopen_libs=
19400     lt_cv_dlopen_self=yes
19401     ;;
19402
19403   mingw* | pw32*)
19404     lt_cv_dlopen="LoadLibrary"
19405     lt_cv_dlopen_libs=
19406    ;;
19407
19408   cygwin*)
19409     lt_cv_dlopen="dlopen"
19410     lt_cv_dlopen_libs=
19411    ;;
19412
19413   darwin*)
19414   # if libdl is installed we need to link against it
19415     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-ldl  $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 /* Override any gcc2 internal prototype to avoid an error.  */
19430 #ifdef __cplusplus
19431 extern "C"
19432 #endif
19433 /* We use char because int might match the return type of a gcc2
19434    builtin and then its argument prototype would still apply.  */
19435 char dlopen ();
19436 int
19437 main ()
19438 {
19439 dlopen ();
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446   (eval $ac_link) 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } &&
19453          { ac_try='test -z "$ac_c_werror_flag"
19454                          || test ! -s conftest.err'
19455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456   (eval $ac_try) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; } &&
19460          { ac_try='test -s conftest$ac_exeext'
19461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462   (eval $ac_try) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }; }; then
19466   ac_cv_lib_dl_dlopen=yes
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 ac_cv_lib_dl_dlopen=no
19472 fi
19473 rm -f conftest.err conftest.$ac_objext \
19474       conftest$ac_exeext conftest.$ac_ext
19475 LIBS=$ac_check_lib_save_LIBS
19476 fi
19477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19479 if test $ac_cv_lib_dl_dlopen = yes; then
19480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19481 else
19482
19483     lt_cv_dlopen="dyld"
19484     lt_cv_dlopen_libs=
19485     lt_cv_dlopen_self=yes
19486
19487 fi
19488
19489    ;;
19490
19491   *)
19492     echo "$as_me:$LINENO: checking for shl_load" >&5
19493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19494 if test "${ac_cv_func_shl_load+set}" = set; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497   cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h.  */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h.  */
19503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19505 #define shl_load innocuous_shl_load
19506
19507 /* System header to define __stub macros and hopefully few prototypes,
19508     which can conflict with char shl_load (); below.
19509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19510     <limits.h> exists even on freestanding compilers.  */
19511
19512 #ifdef __STDC__
19513 # include <limits.h>
19514 #else
19515 # include <assert.h>
19516 #endif
19517
19518 #undef shl_load
19519
19520 /* Override any gcc2 internal prototype to avoid an error.  */
19521 #ifdef __cplusplus
19522 extern "C"
19523 {
19524 #endif
19525 /* We use char because int might match the return type of a gcc2
19526    builtin and then its argument prototype would still apply.  */
19527 char shl_load ();
19528 /* The GNU C library defines this for functions which it implements
19529     to always fail with ENOSYS.  Some functions are actually named
19530     something starting with __ and the normal name is an alias.  */
19531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19532 choke me
19533 #else
19534 char (*f) () = shl_load;
19535 #endif
19536 #ifdef __cplusplus
19537 }
19538 #endif
19539
19540 int
19541 main ()
19542 {
19543 return f != shl_load;
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550   (eval $ac_link) 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } &&
19557          { ac_try='test -z "$ac_c_werror_flag"
19558                          || test ! -s conftest.err'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest$ac_exeext'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; }; then
19570   ac_cv_func_shl_load=yes
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_cv_func_shl_load=no
19576 fi
19577 rm -f conftest.err conftest.$ac_objext \
19578       conftest$ac_exeext conftest.$ac_ext
19579 fi
19580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19582 if test $ac_cv_func_shl_load = yes; then
19583   lt_cv_dlopen="shl_load"
19584 else
19585   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19586 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19587 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-ldld  $LIBS"
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598
19599 /* Override any gcc2 internal prototype to avoid an error.  */
19600 #ifdef __cplusplus
19601 extern "C"
19602 #endif
19603 /* We use char because int might match the return type of a gcc2
19604    builtin and then its argument prototype would still apply.  */
19605 char shl_load ();
19606 int
19607 main ()
19608 {
19609 shl_load ();
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19616   (eval $ac_link) 2>conftest.er1
19617   ac_status=$?
19618   grep -v '^ *+' conftest.er1 >conftest.err
19619   rm -f conftest.er1
19620   cat conftest.err >&5
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); } &&
19623          { ac_try='test -z "$ac_c_werror_flag"
19624                          || test ! -s conftest.err'
19625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626   (eval $ac_try) 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); }; } &&
19630          { ac_try='test -s conftest$ac_exeext'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; }; then
19636   ac_cv_lib_dld_shl_load=yes
19637 else
19638   echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ac_cv_lib_dld_shl_load=no
19642 fi
19643 rm -f conftest.err conftest.$ac_objext \
19644       conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19646 fi
19647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19649 if test $ac_cv_lib_dld_shl_load = yes; then
19650   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19651 else
19652   echo "$as_me:$LINENO: checking for dlopen" >&5
19653 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19654 if test "${ac_cv_func_dlopen+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h.  */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h.  */
19663 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19665 #define dlopen innocuous_dlopen
19666
19667 /* System header to define __stub macros and hopefully few prototypes,
19668     which can conflict with char dlopen (); below.
19669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19670     <limits.h> exists even on freestanding compilers.  */
19671
19672 #ifdef __STDC__
19673 # include <limits.h>
19674 #else
19675 # include <assert.h>
19676 #endif
19677
19678 #undef dlopen
19679
19680 /* Override any gcc2 internal prototype to avoid an error.  */
19681 #ifdef __cplusplus
19682 extern "C"
19683 {
19684 #endif
19685 /* We use char because int might match the return type of a gcc2
19686    builtin and then its argument prototype would still apply.  */
19687 char dlopen ();
19688 /* The GNU C library defines this for functions which it implements
19689     to always fail with ENOSYS.  Some functions are actually named
19690     something starting with __ and the normal name is an alias.  */
19691 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19692 choke me
19693 #else
19694 char (*f) () = dlopen;
19695 #endif
19696 #ifdef __cplusplus
19697 }
19698 #endif
19699
19700 int
19701 main ()
19702 {
19703 return f != dlopen;
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710   (eval $ac_link) 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_c_werror_flag"
19718                          || test ! -s conftest.err'
19719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; } &&
19724          { ac_try='test -s conftest$ac_exeext'
19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726   (eval $ac_try) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; }; then
19730   ac_cv_func_dlopen=yes
19731 else
19732   echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19734
19735 ac_cv_func_dlopen=no
19736 fi
19737 rm -f conftest.err conftest.$ac_objext \
19738       conftest$ac_exeext conftest.$ac_ext
19739 fi
19740 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19741 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19742 if test $ac_cv_func_dlopen = yes; then
19743   lt_cv_dlopen="dlopen"
19744 else
19745   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19748   echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750   ac_check_lib_save_LIBS=$LIBS
19751 LIBS="-ldl  $LIBS"
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758
19759 /* Override any gcc2 internal prototype to avoid an error.  */
19760 #ifdef __cplusplus
19761 extern "C"
19762 #endif
19763 /* We use char because int might match the return type of a gcc2
19764    builtin and then its argument prototype would still apply.  */
19765 char dlopen ();
19766 int
19767 main ()
19768 {
19769 dlopen ();
19770   ;
19771   return 0;
19772 }
19773 _ACEOF
19774 rm -f conftest.$ac_objext conftest$ac_exeext
19775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19776   (eval $ac_link) 2>conftest.er1
19777   ac_status=$?
19778   grep -v '^ *+' conftest.er1 >conftest.err
19779   rm -f conftest.er1
19780   cat conftest.err >&5
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } &&
19783          { ac_try='test -z "$ac_c_werror_flag"
19784                          || test ! -s conftest.err'
19785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786   (eval $ac_try) 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; } &&
19790          { ac_try='test -s conftest$ac_exeext'
19791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792   (eval $ac_try) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; }; then
19796   ac_cv_lib_dl_dlopen=yes
19797 else
19798   echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_lib_dl_dlopen=no
19802 fi
19803 rm -f conftest.err conftest.$ac_objext \
19804       conftest$ac_exeext conftest.$ac_ext
19805 LIBS=$ac_check_lib_save_LIBS
19806 fi
19807 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19809 if test $ac_cv_lib_dl_dlopen = yes; then
19810   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19811 else
19812   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19813 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19814 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19815   echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817   ac_check_lib_save_LIBS=$LIBS
19818 LIBS="-lsvld  $LIBS"
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825
19826 /* Override any gcc2 internal prototype to avoid an error.  */
19827 #ifdef __cplusplus
19828 extern "C"
19829 #endif
19830 /* We use char because int might match the return type of a gcc2
19831    builtin and then its argument prototype would still apply.  */
19832 char dlopen ();
19833 int
19834 main ()
19835 {
19836 dlopen ();
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19843   (eval $ac_link) 2>conftest.er1
19844   ac_status=$?
19845   grep -v '^ *+' conftest.er1 >conftest.err
19846   rm -f conftest.er1
19847   cat conftest.err >&5
19848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849   (exit $ac_status); } &&
19850          { ac_try='test -z "$ac_c_werror_flag"
19851                          || test ! -s conftest.err'
19852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853   (eval $ac_try) 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; } &&
19857          { ac_try='test -s conftest$ac_exeext'
19858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859   (eval $ac_try) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; }; then
19863   ac_cv_lib_svld_dlopen=yes
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 ac_cv_lib_svld_dlopen=no
19869 fi
19870 rm -f conftest.err conftest.$ac_objext \
19871       conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19873 fi
19874 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19875 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19876 if test $ac_cv_lib_svld_dlopen = yes; then
19877   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19878 else
19879   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19880 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   ac_check_lib_save_LIBS=$LIBS
19885 LIBS="-ldld  $LIBS"
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892
19893 /* Override any gcc2 internal prototype to avoid an error.  */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 /* We use char because int might match the return type of a gcc2
19898    builtin and then its argument prototype would still apply.  */
19899 char dld_link ();
19900 int
19901 main ()
19902 {
19903 dld_link ();
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910   (eval $ac_link) 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag"
19918                          || test ! -s conftest.err'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; } &&
19924          { ac_try='test -s conftest$ac_exeext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_lib_dld_dld_link=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_lib_dld_dld_link=no
19936 fi
19937 rm -f conftest.err conftest.$ac_objext \
19938       conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19940 fi
19941 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19942 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19943 if test $ac_cv_lib_dld_dld_link = yes; then
19944   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19945 fi
19946
19947
19948 fi
19949
19950
19951 fi
19952
19953
19954 fi
19955
19956
19957 fi
19958
19959
19960 fi
19961
19962     ;;
19963   esac
19964
19965   if test "x$lt_cv_dlopen" != xno; then
19966     enable_dlopen=yes
19967   else
19968     enable_dlopen=no
19969   fi
19970
19971   case $lt_cv_dlopen in
19972   dlopen)
19973     save_CPPFLAGS="$CPPFLAGS"
19974     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19975
19976     save_LDFLAGS="$LDFLAGS"
19977     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19978
19979     save_LIBS="$LIBS"
19980     LIBS="$lt_cv_dlopen_libs $LIBS"
19981
19982     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19983 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19984 if test "${lt_cv_dlopen_self+set}" = set; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987           if test "$cross_compiling" = yes; then :
19988   lt_cv_dlopen_self=cross
19989 else
19990   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19991   lt_status=$lt_dlunknown
19992   cat > conftest.$ac_ext <<EOF
19993 #line 19993 "configure"
19994 #include "confdefs.h"
19995
19996 #if HAVE_DLFCN_H
19997 #include <dlfcn.h>
19998 #endif
19999
20000 #include <stdio.h>
20001
20002 #ifdef RTLD_GLOBAL
20003 #  define LT_DLGLOBAL           RTLD_GLOBAL
20004 #else
20005 #  ifdef DL_GLOBAL
20006 #    define LT_DLGLOBAL         DL_GLOBAL
20007 #  else
20008 #    define LT_DLGLOBAL         0
20009 #  endif
20010 #endif
20011
20012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20013    find out it does not work in some platform. */
20014 #ifndef LT_DLLAZY_OR_NOW
20015 #  ifdef RTLD_LAZY
20016 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20017 #  else
20018 #    ifdef DL_LAZY
20019 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20020 #    else
20021 #      ifdef RTLD_NOW
20022 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20023 #      else
20024 #        ifdef DL_NOW
20025 #          define LT_DLLAZY_OR_NOW      DL_NOW
20026 #        else
20027 #          define LT_DLLAZY_OR_NOW      0
20028 #        endif
20029 #      endif
20030 #    endif
20031 #  endif
20032 #endif
20033
20034 #ifdef __cplusplus
20035 extern "C" void exit (int);
20036 #endif
20037
20038 void fnord() { int i=42;}
20039 int main ()
20040 {
20041   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20042   int status = $lt_dlunknown;
20043
20044   if (self)
20045     {
20046       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20047       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20048       /* dlclose (self); */
20049     }
20050
20051     exit (status);
20052 }
20053 EOF
20054   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20055   (eval $ac_link) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20059     (./conftest; exit; ) 2>/dev/null
20060     lt_status=$?
20061     case x$lt_status in
20062       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20063       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20064       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20065     esac
20066   else :
20067     # compilation failed
20068     lt_cv_dlopen_self=no
20069   fi
20070 fi
20071 rm -fr conftest*
20072
20073
20074 fi
20075 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20076 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20077
20078     if test "x$lt_cv_dlopen_self" = xyes; then
20079       LDFLAGS="$LDFLAGS $link_static_flag"
20080       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20081 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20082 if test "${lt_cv_dlopen_self_static+set}" = set; then
20083   echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085           if test "$cross_compiling" = yes; then :
20086   lt_cv_dlopen_self_static=cross
20087 else
20088   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20089   lt_status=$lt_dlunknown
20090   cat > conftest.$ac_ext <<EOF
20091 #line 20091 "configure"
20092 #include "confdefs.h"
20093
20094 #if HAVE_DLFCN_H
20095 #include <dlfcn.h>
20096 #endif
20097
20098 #include <stdio.h>
20099
20100 #ifdef RTLD_GLOBAL
20101 #  define LT_DLGLOBAL           RTLD_GLOBAL
20102 #else
20103 #  ifdef DL_GLOBAL
20104 #    define LT_DLGLOBAL         DL_GLOBAL
20105 #  else
20106 #    define LT_DLGLOBAL         0
20107 #  endif
20108 #endif
20109
20110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20111    find out it does not work in some platform. */
20112 #ifndef LT_DLLAZY_OR_NOW
20113 #  ifdef RTLD_LAZY
20114 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20115 #  else
20116 #    ifdef DL_LAZY
20117 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20118 #    else
20119 #      ifdef RTLD_NOW
20120 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20121 #      else
20122 #        ifdef DL_NOW
20123 #          define LT_DLLAZY_OR_NOW      DL_NOW
20124 #        else
20125 #          define LT_DLLAZY_OR_NOW      0
20126 #        endif
20127 #      endif
20128 #    endif
20129 #  endif
20130 #endif
20131
20132 #ifdef __cplusplus
20133 extern "C" void exit (int);
20134 #endif
20135
20136 void fnord() { int i=42;}
20137 int main ()
20138 {
20139   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20140   int status = $lt_dlunknown;
20141
20142   if (self)
20143     {
20144       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20145       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20146       /* dlclose (self); */
20147     }
20148
20149     exit (status);
20150 }
20151 EOF
20152   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153   (eval $ac_link) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20157     (./conftest; exit; ) 2>/dev/null
20158     lt_status=$?
20159     case x$lt_status in
20160       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20161       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20162       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20163     esac
20164   else :
20165     # compilation failed
20166     lt_cv_dlopen_self_static=no
20167   fi
20168 fi
20169 rm -fr conftest*
20170
20171
20172 fi
20173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20174 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20175     fi
20176
20177     CPPFLAGS="$save_CPPFLAGS"
20178     LDFLAGS="$save_LDFLAGS"
20179     LIBS="$save_LIBS"
20180     ;;
20181   esac
20182
20183   case $lt_cv_dlopen_self in
20184   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20185   *) enable_dlopen_self=unknown ;;
20186   esac
20187
20188   case $lt_cv_dlopen_self_static in
20189   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20190   *) enable_dlopen_self_static=unknown ;;
20191   esac
20192 fi
20193
20194
20195 # The else clause should only fire when bootstrapping the
20196 # libtool distribution, otherwise you forgot to ship ltmain.sh
20197 # with your package, and you will get complaints that there are
20198 # no rules to generate ltmain.sh.
20199 if test -f "$ltmain"; then
20200   # See if we are running on zsh, and set the options which allow our commands through
20201   # without removal of \ escapes.
20202   if test -n "${ZSH_VERSION+set}" ; then
20203     setopt NO_GLOB_SUBST
20204   fi
20205   # Now quote all the things that may contain metacharacters while being
20206   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20207   # variables and quote the copies for generation of the libtool script.
20208   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20209     SED SHELL STRIP \
20210     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20211     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20212     deplibs_check_method reload_flag reload_cmds need_locks \
20213     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20214     lt_cv_sys_global_symbol_to_c_name_address \
20215     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20216     old_postinstall_cmds old_postuninstall_cmds \
20217     compiler_GCJ \
20218     CC_GCJ \
20219     LD_GCJ \
20220     lt_prog_compiler_wl_GCJ \
20221     lt_prog_compiler_pic_GCJ \
20222     lt_prog_compiler_static_GCJ \
20223     lt_prog_compiler_no_builtin_flag_GCJ \
20224     export_dynamic_flag_spec_GCJ \
20225     thread_safe_flag_spec_GCJ \
20226     whole_archive_flag_spec_GCJ \
20227     enable_shared_with_static_runtimes_GCJ \
20228     old_archive_cmds_GCJ \
20229     old_archive_from_new_cmds_GCJ \
20230     predep_objects_GCJ \
20231     postdep_objects_GCJ \
20232     predeps_GCJ \
20233     postdeps_GCJ \
20234     compiler_lib_search_path_GCJ \
20235     archive_cmds_GCJ \
20236     archive_expsym_cmds_GCJ \
20237     postinstall_cmds_GCJ \
20238     postuninstall_cmds_GCJ \
20239     old_archive_from_expsyms_cmds_GCJ \
20240     allow_undefined_flag_GCJ \
20241     no_undefined_flag_GCJ \
20242     export_symbols_cmds_GCJ \
20243     hardcode_libdir_flag_spec_GCJ \
20244     hardcode_libdir_flag_spec_ld_GCJ \
20245     hardcode_libdir_separator_GCJ \
20246     hardcode_automatic_GCJ \
20247     module_cmds_GCJ \
20248     module_expsym_cmds_GCJ \
20249     lt_cv_prog_compiler_c_o_GCJ \
20250     exclude_expsyms_GCJ \
20251     include_expsyms_GCJ; do
20252
20253     case $var in
20254     old_archive_cmds_GCJ | \
20255     old_archive_from_new_cmds_GCJ | \
20256     archive_cmds_GCJ | \
20257     archive_expsym_cmds_GCJ | \
20258     module_cmds_GCJ | \
20259     module_expsym_cmds_GCJ | \
20260     old_archive_from_expsyms_cmds_GCJ | \
20261     export_symbols_cmds_GCJ | \
20262     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20263     postinstall_cmds | postuninstall_cmds | \
20264     old_postinstall_cmds | old_postuninstall_cmds | \
20265     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20266       # Double-quote double-evaled strings.
20267       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20268       ;;
20269     *)
20270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20271       ;;
20272     esac
20273   done
20274
20275   case $lt_echo in
20276   *'\$0 --fallback-echo"')
20277     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20278     ;;
20279   esac
20280
20281 cfgfile="$ofile"
20282
20283   cat <<__EOF__ >> "$cfgfile"
20284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20285
20286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20287
20288 # Shell to use when invoking shell scripts.
20289 SHELL=$lt_SHELL
20290
20291 # Whether or not to build shared libraries.
20292 build_libtool_libs=$enable_shared
20293
20294 # Whether or not to build static libraries.
20295 build_old_libs=$enable_static
20296
20297 # Whether or not to add -lc for building shared libraries.
20298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20299
20300 # Whether or not to disallow shared libs when runtime libs are static
20301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20302
20303 # Whether or not to optimize for fast installation.
20304 fast_install=$enable_fast_install
20305
20306 # The host system.
20307 host_alias=$host_alias
20308 host=$host
20309
20310 # An echo program that does not interpret backslashes.
20311 echo=$lt_echo
20312
20313 # The archiver.
20314 AR=$lt_AR
20315 AR_FLAGS=$lt_AR_FLAGS
20316
20317 # A C compiler.
20318 LTCC=$lt_LTCC
20319
20320 # A language-specific compiler.
20321 CC=$lt_compiler_GCJ
20322
20323 # Is the compiler the GNU C compiler?
20324 with_gcc=$GCC_GCJ
20325
20326 # An ERE matcher.
20327 EGREP=$lt_EGREP
20328
20329 # The linker used to build libraries.
20330 LD=$lt_LD_GCJ
20331
20332 # Whether we need hard or soft links.
20333 LN_S=$lt_LN_S
20334
20335 # A BSD-compatible nm program.
20336 NM=$lt_NM
20337
20338 # A symbol stripping program
20339 STRIP=$lt_STRIP
20340
20341 # Used to examine libraries when file_magic_cmd begins "file"
20342 MAGIC_CMD=$MAGIC_CMD
20343
20344 # Used on cygwin: DLL creation program.
20345 DLLTOOL="$DLLTOOL"
20346
20347 # Used on cygwin: object dumper.
20348 OBJDUMP="$OBJDUMP"
20349
20350 # Used on cygwin: assembler.
20351 AS="$AS"
20352
20353 # The name of the directory that contains temporary libtool files.
20354 objdir=$objdir
20355
20356 # How to create reloadable object files.
20357 reload_flag=$lt_reload_flag
20358 reload_cmds=$lt_reload_cmds
20359
20360 # How to pass a linker flag through the compiler.
20361 wl=$lt_lt_prog_compiler_wl_GCJ
20362
20363 # Object file suffix (normally "o").
20364 objext="$ac_objext"
20365
20366 # Old archive suffix (normally "a").
20367 libext="$libext"
20368
20369 # Shared library suffix (normally ".so").
20370 shrext_cmds='$shrext_cmds'
20371
20372 # Executable file suffix (normally "").
20373 exeext="$exeext"
20374
20375 # Additional compiler flags for building library objects.
20376 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20377 pic_mode=$pic_mode
20378
20379 # What is the maximum length of a command?
20380 max_cmd_len=$lt_cv_sys_max_cmd_len
20381
20382 # Does compiler simultaneously support -c and -o options?
20383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20384
20385 # Must we lock files when doing compilation ?
20386 need_locks=$lt_need_locks
20387
20388 # Do we need the lib prefix for modules?
20389 need_lib_prefix=$need_lib_prefix
20390
20391 # Do we need a version for libraries?
20392 need_version=$need_version
20393
20394 # Whether dlopen is supported.
20395 dlopen_support=$enable_dlopen
20396
20397 # Whether dlopen of programs is supported.
20398 dlopen_self=$enable_dlopen_self
20399
20400 # Whether dlopen of statically linked programs is supported.
20401 dlopen_self_static=$enable_dlopen_self_static
20402
20403 # Compiler flag to prevent dynamic linking.
20404 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20405
20406 # Compiler flag to turn off builtin functions.
20407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20408
20409 # Compiler flag to allow reflexive dlopens.
20410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20411
20412 # Compiler flag to generate shared objects directly from archives.
20413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20414
20415 # Compiler flag to generate thread-safe objects.
20416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20417
20418 # Library versioning type.
20419 version_type=$version_type
20420
20421 # Format of library name prefix.
20422 libname_spec=$lt_libname_spec
20423
20424 # List of archive names.  First name is the real one, the rest are links.
20425 # The last name is the one that the linker finds with -lNAME.
20426 library_names_spec=$lt_library_names_spec
20427
20428 # The coded name of the library, if different from the real name.
20429 soname_spec=$lt_soname_spec
20430
20431 # Commands used to build and install an old-style archive.
20432 RANLIB=$lt_RANLIB
20433 old_archive_cmds=$lt_old_archive_cmds_GCJ
20434 old_postinstall_cmds=$lt_old_postinstall_cmds
20435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20436
20437 # Create an old-style archive from a shared archive.
20438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20439
20440 # Create a temporary old-style archive to link instead of a shared archive.
20441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20442
20443 # Commands used to build and install a shared archive.
20444 archive_cmds=$lt_archive_cmds_GCJ
20445 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20446 postinstall_cmds=$lt_postinstall_cmds
20447 postuninstall_cmds=$lt_postuninstall_cmds
20448
20449 # Commands used to build a loadable module (assumed same as above if empty)
20450 module_cmds=$lt_module_cmds_GCJ
20451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20452
20453 # Commands to strip libraries.
20454 old_striplib=$lt_old_striplib
20455 striplib=$lt_striplib
20456
20457 # Dependencies to place before the objects being linked to create a
20458 # shared library.
20459 predep_objects=$lt_predep_objects_GCJ
20460
20461 # Dependencies to place after the objects being linked to create a
20462 # shared library.
20463 postdep_objects=$lt_postdep_objects_GCJ
20464
20465 # Dependencies to place before the objects being linked to create a
20466 # shared library.
20467 predeps=$lt_predeps_GCJ
20468
20469 # Dependencies to place after the objects being linked to create a
20470 # shared library.
20471 postdeps=$lt_postdeps_GCJ
20472
20473 # The library search path used internally by the compiler when linking
20474 # a shared library.
20475 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20476
20477 # Method to check whether dependent libraries are shared objects.
20478 deplibs_check_method=$lt_deplibs_check_method
20479
20480 # Command to use when deplibs_check_method == file_magic.
20481 file_magic_cmd=$lt_file_magic_cmd
20482
20483 # Flag that allows shared libraries with undefined symbols to be built.
20484 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20485
20486 # Flag that forces no undefined symbols.
20487 no_undefined_flag=$lt_no_undefined_flag_GCJ
20488
20489 # Commands used to finish a libtool library installation in a directory.
20490 finish_cmds=$lt_finish_cmds
20491
20492 # Same as above, but a single script fragment to be evaled but not shown.
20493 finish_eval=$lt_finish_eval
20494
20495 # Take the output of nm and produce a listing of raw symbols and C names.
20496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20497
20498 # Transform the output of nm in a proper C declaration
20499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20500
20501 # Transform the output of nm in a C name address pair
20502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20503
20504 # This is the shared library runtime path variable.
20505 runpath_var=$runpath_var
20506
20507 # This is the shared library path variable.
20508 shlibpath_var=$shlibpath_var
20509
20510 # Is shlibpath searched before the hard-coded library search path?
20511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20512
20513 # How to hardcode a shared library path into an executable.
20514 hardcode_action=$hardcode_action_GCJ
20515
20516 # Whether we should hardcode library paths into libraries.
20517 hardcode_into_libs=$hardcode_into_libs
20518
20519 # Flag to hardcode \$libdir into a binary during linking.
20520 # This must work even if \$libdir does not exist.
20521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20522
20523 # If ld is used when linking, flag to hardcode \$libdir into
20524 # a binary during linking. This must work even if \$libdir does
20525 # not exist.
20526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20527
20528 # Whether we need a single -rpath flag with a separated argument.
20529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20530
20531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20532 # resulting binary.
20533 hardcode_direct=$hardcode_direct_GCJ
20534
20535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20536 # resulting binary.
20537 hardcode_minus_L=$hardcode_minus_L_GCJ
20538
20539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20540 # the resulting binary.
20541 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20542
20543 # Set to yes if building a shared library automatically hardcodes DIR into the library
20544 # and all subsequent libraries and executables linked against it.
20545 hardcode_automatic=$hardcode_automatic_GCJ
20546
20547 # Variables whose values should be saved in libtool wrapper scripts and
20548 # restored at relink time.
20549 variables_saved_for_relink="$variables_saved_for_relink"
20550
20551 # Whether libtool must link a program against all its dependency libraries.
20552 link_all_deplibs=$link_all_deplibs_GCJ
20553
20554 # Compile-time system search path for libraries
20555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20556
20557 # Run-time system search path for libraries
20558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20559
20560 # Fix the shell variable \$srcfile for the compiler.
20561 fix_srcfile_path="$fix_srcfile_path_GCJ"
20562
20563 # Set to yes if exported symbols are required.
20564 always_export_symbols=$always_export_symbols_GCJ
20565
20566 # The commands to list exported symbols.
20567 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20568
20569 # The commands to extract the exported symbol list from a shared archive.
20570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20571
20572 # Symbols that should not be listed in the preloaded symbols.
20573 exclude_expsyms=$lt_exclude_expsyms_GCJ
20574
20575 # Symbols that must always be exported.
20576 include_expsyms=$lt_include_expsyms_GCJ
20577
20578 # ### END LIBTOOL TAG CONFIG: $tagname
20579
20580 __EOF__
20581
20582
20583 else
20584   # If there is no Makefile yet, we rely on a make rule to execute
20585   # `config.status --recheck' to rerun these tests and create the
20586   # libtool script then.
20587   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20588   if test -f "$ltmain_in"; then
20589     test -f Makefile && make "$ltmain"
20590   fi
20591 fi
20592
20593
20594 ac_ext=c
20595 ac_cpp='$CPP $CPPFLAGS'
20596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20599
20600 CC="$lt_save_CC"
20601
20602         else
20603           tagname=""
20604         fi
20605         ;;
20606
20607       RC)
20608
20609
20610
20611 # Source file extension for RC test sources.
20612 ac_ext=rc
20613
20614 # Object file extension for compiled RC test sources.
20615 objext=o
20616 objext_RC=$objext
20617
20618 # Code to be used in simple compile tests
20619 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20620
20621 # Code to be used in simple link tests
20622 lt_simple_link_test_code="$lt_simple_compile_test_code"
20623
20624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20625
20626 # If no C compiler was specified, use CC.
20627 LTCC=${LTCC-"$CC"}
20628
20629 # Allow CC to be a program name with arguments.
20630 compiler=$CC
20631
20632
20633 # Allow CC to be a program name with arguments.
20634 lt_save_CC="$CC"
20635 CC=${RC-"windres"}
20636 compiler=$CC
20637 compiler_RC=$CC
20638 lt_cv_prog_compiler_c_o_RC=yes
20639
20640 # The else clause should only fire when bootstrapping the
20641 # libtool distribution, otherwise you forgot to ship ltmain.sh
20642 # with your package, and you will get complaints that there are
20643 # no rules to generate ltmain.sh.
20644 if test -f "$ltmain"; then
20645   # See if we are running on zsh, and set the options which allow our commands through
20646   # without removal of \ escapes.
20647   if test -n "${ZSH_VERSION+set}" ; then
20648     setopt NO_GLOB_SUBST
20649   fi
20650   # Now quote all the things that may contain metacharacters while being
20651   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20652   # variables and quote the copies for generation of the libtool script.
20653   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20654     SED SHELL STRIP \
20655     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20656     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20657     deplibs_check_method reload_flag reload_cmds need_locks \
20658     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20659     lt_cv_sys_global_symbol_to_c_name_address \
20660     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20661     old_postinstall_cmds old_postuninstall_cmds \
20662     compiler_RC \
20663     CC_RC \
20664     LD_RC \
20665     lt_prog_compiler_wl_RC \
20666     lt_prog_compiler_pic_RC \
20667     lt_prog_compiler_static_RC \
20668     lt_prog_compiler_no_builtin_flag_RC \
20669     export_dynamic_flag_spec_RC \
20670     thread_safe_flag_spec_RC \
20671     whole_archive_flag_spec_RC \
20672     enable_shared_with_static_runtimes_RC \
20673     old_archive_cmds_RC \
20674     old_archive_from_new_cmds_RC \
20675     predep_objects_RC \
20676     postdep_objects_RC \
20677     predeps_RC \
20678     postdeps_RC \
20679     compiler_lib_search_path_RC \
20680     archive_cmds_RC \
20681     archive_expsym_cmds_RC \
20682     postinstall_cmds_RC \
20683     postuninstall_cmds_RC \
20684     old_archive_from_expsyms_cmds_RC \
20685     allow_undefined_flag_RC \
20686     no_undefined_flag_RC \
20687     export_symbols_cmds_RC \
20688     hardcode_libdir_flag_spec_RC \
20689     hardcode_libdir_flag_spec_ld_RC \
20690     hardcode_libdir_separator_RC \
20691     hardcode_automatic_RC \
20692     module_cmds_RC \
20693     module_expsym_cmds_RC \
20694     lt_cv_prog_compiler_c_o_RC \
20695     exclude_expsyms_RC \
20696     include_expsyms_RC; do
20697
20698     case $var in
20699     old_archive_cmds_RC | \
20700     old_archive_from_new_cmds_RC | \
20701     archive_cmds_RC | \
20702     archive_expsym_cmds_RC | \
20703     module_cmds_RC | \
20704     module_expsym_cmds_RC | \
20705     old_archive_from_expsyms_cmds_RC | \
20706     export_symbols_cmds_RC | \
20707     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20708     postinstall_cmds | postuninstall_cmds | \
20709     old_postinstall_cmds | old_postuninstall_cmds | \
20710     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20711       # Double-quote double-evaled strings.
20712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20713       ;;
20714     *)
20715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20716       ;;
20717     esac
20718   done
20719
20720   case $lt_echo in
20721   *'\$0 --fallback-echo"')
20722     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20723     ;;
20724   esac
20725
20726 cfgfile="$ofile"
20727
20728   cat <<__EOF__ >> "$cfgfile"
20729 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20730
20731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20732
20733 # Shell to use when invoking shell scripts.
20734 SHELL=$lt_SHELL
20735
20736 # Whether or not to build shared libraries.
20737 build_libtool_libs=$enable_shared
20738
20739 # Whether or not to build static libraries.
20740 build_old_libs=$enable_static
20741
20742 # Whether or not to add -lc for building shared libraries.
20743 build_libtool_need_lc=$archive_cmds_need_lc_RC
20744
20745 # Whether or not to disallow shared libs when runtime libs are static
20746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20747
20748 # Whether or not to optimize for fast installation.
20749 fast_install=$enable_fast_install
20750
20751 # The host system.
20752 host_alias=$host_alias
20753 host=$host
20754
20755 # An echo program that does not interpret backslashes.
20756 echo=$lt_echo
20757
20758 # The archiver.
20759 AR=$lt_AR
20760 AR_FLAGS=$lt_AR_FLAGS
20761
20762 # A C compiler.
20763 LTCC=$lt_LTCC
20764
20765 # A language-specific compiler.
20766 CC=$lt_compiler_RC
20767
20768 # Is the compiler the GNU C compiler?
20769 with_gcc=$GCC_RC
20770
20771 # An ERE matcher.
20772 EGREP=$lt_EGREP
20773
20774 # The linker used to build libraries.
20775 LD=$lt_LD_RC
20776
20777 # Whether we need hard or soft links.
20778 LN_S=$lt_LN_S
20779
20780 # A BSD-compatible nm program.
20781 NM=$lt_NM
20782
20783 # A symbol stripping program
20784 STRIP=$lt_STRIP
20785
20786 # Used to examine libraries when file_magic_cmd begins "file"
20787 MAGIC_CMD=$MAGIC_CMD
20788
20789 # Used on cygwin: DLL creation program.
20790 DLLTOOL="$DLLTOOL"
20791
20792 # Used on cygwin: object dumper.
20793 OBJDUMP="$OBJDUMP"
20794
20795 # Used on cygwin: assembler.
20796 AS="$AS"
20797
20798 # The name of the directory that contains temporary libtool files.
20799 objdir=$objdir
20800
20801 # How to create reloadable object files.
20802 reload_flag=$lt_reload_flag
20803 reload_cmds=$lt_reload_cmds
20804
20805 # How to pass a linker flag through the compiler.
20806 wl=$lt_lt_prog_compiler_wl_RC
20807
20808 # Object file suffix (normally "o").
20809 objext="$ac_objext"
20810
20811 # Old archive suffix (normally "a").
20812 libext="$libext"
20813
20814 # Shared library suffix (normally ".so").
20815 shrext_cmds='$shrext_cmds'
20816
20817 # Executable file suffix (normally "").
20818 exeext="$exeext"
20819
20820 # Additional compiler flags for building library objects.
20821 pic_flag=$lt_lt_prog_compiler_pic_RC
20822 pic_mode=$pic_mode
20823
20824 # What is the maximum length of a command?
20825 max_cmd_len=$lt_cv_sys_max_cmd_len
20826
20827 # Does compiler simultaneously support -c and -o options?
20828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20829
20830 # Must we lock files when doing compilation ?
20831 need_locks=$lt_need_locks
20832
20833 # Do we need the lib prefix for modules?
20834 need_lib_prefix=$need_lib_prefix
20835
20836 # Do we need a version for libraries?
20837 need_version=$need_version
20838
20839 # Whether dlopen is supported.
20840 dlopen_support=$enable_dlopen
20841
20842 # Whether dlopen of programs is supported.
20843 dlopen_self=$enable_dlopen_self
20844
20845 # Whether dlopen of statically linked programs is supported.
20846 dlopen_self_static=$enable_dlopen_self_static
20847
20848 # Compiler flag to prevent dynamic linking.
20849 link_static_flag=$lt_lt_prog_compiler_static_RC
20850
20851 # Compiler flag to turn off builtin functions.
20852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20853
20854 # Compiler flag to allow reflexive dlopens.
20855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20856
20857 # Compiler flag to generate shared objects directly from archives.
20858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20859
20860 # Compiler flag to generate thread-safe objects.
20861 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20862
20863 # Library versioning type.
20864 version_type=$version_type
20865
20866 # Format of library name prefix.
20867 libname_spec=$lt_libname_spec
20868
20869 # List of archive names.  First name is the real one, the rest are links.
20870 # The last name is the one that the linker finds with -lNAME.
20871 library_names_spec=$lt_library_names_spec
20872
20873 # The coded name of the library, if different from the real name.
20874 soname_spec=$lt_soname_spec
20875
20876 # Commands used to build and install an old-style archive.
20877 RANLIB=$lt_RANLIB
20878 old_archive_cmds=$lt_old_archive_cmds_RC
20879 old_postinstall_cmds=$lt_old_postinstall_cmds
20880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20881
20882 # Create an old-style archive from a shared archive.
20883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20884
20885 # Create a temporary old-style archive to link instead of a shared archive.
20886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20887
20888 # Commands used to build and install a shared archive.
20889 archive_cmds=$lt_archive_cmds_RC
20890 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20891 postinstall_cmds=$lt_postinstall_cmds
20892 postuninstall_cmds=$lt_postuninstall_cmds
20893
20894 # Commands used to build a loadable module (assumed same as above if empty)
20895 module_cmds=$lt_module_cmds_RC
20896 module_expsym_cmds=$lt_module_expsym_cmds_RC
20897
20898 # Commands to strip libraries.
20899 old_striplib=$lt_old_striplib
20900 striplib=$lt_striplib
20901
20902 # Dependencies to place before the objects being linked to create a
20903 # shared library.
20904 predep_objects=$lt_predep_objects_RC
20905
20906 # Dependencies to place after the objects being linked to create a
20907 # shared library.
20908 postdep_objects=$lt_postdep_objects_RC
20909
20910 # Dependencies to place before the objects being linked to create a
20911 # shared library.
20912 predeps=$lt_predeps_RC
20913
20914 # Dependencies to place after the objects being linked to create a
20915 # shared library.
20916 postdeps=$lt_postdeps_RC
20917
20918 # The library search path used internally by the compiler when linking
20919 # a shared library.
20920 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20921
20922 # Method to check whether dependent libraries are shared objects.
20923 deplibs_check_method=$lt_deplibs_check_method
20924
20925 # Command to use when deplibs_check_method == file_magic.
20926 file_magic_cmd=$lt_file_magic_cmd
20927
20928 # Flag that allows shared libraries with undefined symbols to be built.
20929 allow_undefined_flag=$lt_allow_undefined_flag_RC
20930
20931 # Flag that forces no undefined symbols.
20932 no_undefined_flag=$lt_no_undefined_flag_RC
20933
20934 # Commands used to finish a libtool library installation in a directory.
20935 finish_cmds=$lt_finish_cmds
20936
20937 # Same as above, but a single script fragment to be evaled but not shown.
20938 finish_eval=$lt_finish_eval
20939
20940 # Take the output of nm and produce a listing of raw symbols and C names.
20941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20942
20943 # Transform the output of nm in a proper C declaration
20944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20945
20946 # Transform the output of nm in a C name address pair
20947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20948
20949 # This is the shared library runtime path variable.
20950 runpath_var=$runpath_var
20951
20952 # This is the shared library path variable.
20953 shlibpath_var=$shlibpath_var
20954
20955 # Is shlibpath searched before the hard-coded library search path?
20956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20957
20958 # How to hardcode a shared library path into an executable.
20959 hardcode_action=$hardcode_action_RC
20960
20961 # Whether we should hardcode library paths into libraries.
20962 hardcode_into_libs=$hardcode_into_libs
20963
20964 # Flag to hardcode \$libdir into a binary during linking.
20965 # This must work even if \$libdir does not exist.
20966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20967
20968 # If ld is used when linking, flag to hardcode \$libdir into
20969 # a binary during linking. This must work even if \$libdir does
20970 # not exist.
20971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20972
20973 # Whether we need a single -rpath flag with a separated argument.
20974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20975
20976 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20977 # resulting binary.
20978 hardcode_direct=$hardcode_direct_RC
20979
20980 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20981 # resulting binary.
20982 hardcode_minus_L=$hardcode_minus_L_RC
20983
20984 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20985 # the resulting binary.
20986 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20987
20988 # Set to yes if building a shared library automatically hardcodes DIR into the library
20989 # and all subsequent libraries and executables linked against it.
20990 hardcode_automatic=$hardcode_automatic_RC
20991
20992 # Variables whose values should be saved in libtool wrapper scripts and
20993 # restored at relink time.
20994 variables_saved_for_relink="$variables_saved_for_relink"
20995
20996 # Whether libtool must link a program against all its dependency libraries.
20997 link_all_deplibs=$link_all_deplibs_RC
20998
20999 # Compile-time system search path for libraries
21000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21001
21002 # Run-time system search path for libraries
21003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21004
21005 # Fix the shell variable \$srcfile for the compiler.
21006 fix_srcfile_path="$fix_srcfile_path_RC"
21007
21008 # Set to yes if exported symbols are required.
21009 always_export_symbols=$always_export_symbols_RC
21010
21011 # The commands to list exported symbols.
21012 export_symbols_cmds=$lt_export_symbols_cmds_RC
21013
21014 # The commands to extract the exported symbol list from a shared archive.
21015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21016
21017 # Symbols that should not be listed in the preloaded symbols.
21018 exclude_expsyms=$lt_exclude_expsyms_RC
21019
21020 # Symbols that must always be exported.
21021 include_expsyms=$lt_include_expsyms_RC
21022
21023 # ### END LIBTOOL TAG CONFIG: $tagname
21024
21025 __EOF__
21026
21027
21028 else
21029   # If there is no Makefile yet, we rely on a make rule to execute
21030   # `config.status --recheck' to rerun these tests and create the
21031   # libtool script then.
21032   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21033   if test -f "$ltmain_in"; then
21034     test -f Makefile && make "$ltmain"
21035   fi
21036 fi
21037
21038
21039 ac_ext=c
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21044
21045 CC="$lt_save_CC"
21046
21047         ;;
21048
21049       *)
21050         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21051 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21052    { (exit 1); exit 1; }; }
21053         ;;
21054       esac
21055
21056       # Append the new tag name to the list of available tags.
21057       if test -n "$tagname" ; then
21058       available_tags="$available_tags $tagname"
21059     fi
21060     fi
21061   done
21062   IFS="$lt_save_ifs"
21063
21064   # Now substitute the updated list of available tags.
21065   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21066     mv "${ofile}T" "$ofile"
21067     chmod +x "$ofile"
21068   else
21069     rm -f "${ofile}T"
21070     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21071 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21072    { (exit 1); exit 1; }; }
21073   fi
21074 fi
21075
21076
21077
21078 # This can be used to rebuild libtool when needed
21079 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21080
21081 # Always use our own libtool.
21082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21083
21084 # Prevent multiple expansion
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106 # Checks for typedefs, structures, and compiler characteristics.
21107 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21108 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21109 if test "${ac_cv_c_const+set}" = set; then
21110   echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112   cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118
21119 int
21120 main ()
21121 {
21122 /* FIXME: Include the comments suggested by Paul. */
21123 #ifndef __cplusplus
21124   /* Ultrix mips cc rejects this.  */
21125   typedef int charset[2];
21126   const charset x;
21127   /* SunOS 4.1.1 cc rejects this.  */
21128   char const *const *ccp;
21129   char **p;
21130   /* NEC SVR4.0.2 mips cc rejects this.  */
21131   struct point {int x, y;};
21132   static struct point const zero = {0,0};
21133   /* AIX XL C 1.02.0.0 rejects this.
21134      It does not let you subtract one const X* pointer from another in
21135      an arm of an if-expression whose if-part is not a constant
21136      expression */
21137   const char *g = "string";
21138   ccp = &g + (g ? g-g : 0);
21139   /* HPUX 7.0 cc rejects these. */
21140   ++ccp;
21141   p = (char**) ccp;
21142   ccp = (char const *const *) p;
21143   { /* SCO 3.2v4 cc rejects this.  */
21144     char *t;
21145     char const *s = 0 ? (char *) 0 : (char const *) 0;
21146
21147     *t++ = 0;
21148   }
21149   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21150     int x[] = {25, 17};
21151     const int *foo = &x[0];
21152     ++foo;
21153   }
21154   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21155     typedef const int *iptr;
21156     iptr p = 0;
21157     ++p;
21158   }
21159   { /* AIX XL C 1.02.0.0 rejects this saying
21160        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21161     struct s { int j; const int *ap[3]; };
21162     struct s *b; b->j = 5;
21163   }
21164   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21165     const int foo = 10;
21166   }
21167 #endif
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175   (eval $ac_compile) 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } &&
21182          { ac_try='test -z "$ac_c_werror_flag"
21183                          || test ! -s conftest.err'
21184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185   (eval $ac_try) 2>&5
21186   ac_status=$?
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); }; } &&
21189          { ac_try='test -s conftest.$ac_objext'
21190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191   (eval $ac_try) 2>&5
21192   ac_status=$?
21193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194   (exit $ac_status); }; }; then
21195   ac_cv_c_const=yes
21196 else
21197   echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200 ac_cv_c_const=no
21201 fi
21202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21203 fi
21204 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21205 echo "${ECHO_T}$ac_cv_c_const" >&6
21206 if test $ac_cv_c_const = no; then
21207
21208 cat >>confdefs.h <<\_ACEOF
21209 #define const
21210 _ACEOF
21211
21212 fi
21213
21214 echo "$as_me:$LINENO: checking for size_t" >&5
21215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21216 if test "${ac_cv_type_size_t+set}" = set; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219   cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 $ac_includes_default
21226 int
21227 main ()
21228 {
21229 if ((size_t *) 0)
21230   return 0;
21231 if (sizeof (size_t))
21232   return 0;
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239   (eval $ac_compile) 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } &&
21246          { ac_try='test -z "$ac_c_werror_flag"
21247                          || test ! -s conftest.err'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; } &&
21253          { ac_try='test -s conftest.$ac_objext'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; }; then
21259   ac_cv_type_size_t=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_cv_type_size_t=no
21265 fi
21266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21267 fi
21268 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21269 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21270 if test $ac_cv_type_size_t = yes; then
21271   :
21272 else
21273
21274 cat >>confdefs.h <<_ACEOF
21275 #define size_t unsigned
21276 _ACEOF
21277
21278 fi
21279
21280
21281 # Checks for library functions.
21282
21283
21284
21285 for ac_func in strchr strdup strstr
21286 do
21287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21288 echo "$as_me:$LINENO: checking for $ac_func" >&5
21289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21290 if eval "test \"\${$as_ac_var+set}\" = set"; then
21291   echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293   cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21301 #define $ac_func innocuous_$ac_func
21302
21303 /* System header to define __stub macros and hopefully few prototypes,
21304     which can conflict with char $ac_func (); below.
21305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21306     <limits.h> exists even on freestanding compilers.  */
21307
21308 #ifdef __STDC__
21309 # include <limits.h>
21310 #else
21311 # include <assert.h>
21312 #endif
21313
21314 #undef $ac_func
21315
21316 /* Override any gcc2 internal prototype to avoid an error.  */
21317 #ifdef __cplusplus
21318 extern "C"
21319 {
21320 #endif
21321 /* We use char because int might match the return type of a gcc2
21322    builtin and then its argument prototype would still apply.  */
21323 char $ac_func ();
21324 /* The GNU C library defines this for functions which it implements
21325     to always fail with ENOSYS.  Some functions are actually named
21326     something starting with __ and the normal name is an alias.  */
21327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21328 choke me
21329 #else
21330 char (*f) () = $ac_func;
21331 #endif
21332 #ifdef __cplusplus
21333 }
21334 #endif
21335
21336 int
21337 main ()
21338 {
21339 return f != $ac_func;
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346   (eval $ac_link) 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } &&
21353          { ac_try='test -z "$ac_c_werror_flag"
21354                          || test ! -s conftest.err'
21355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356   (eval $ac_try) 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); }; } &&
21360          { ac_try='test -s conftest$ac_exeext'
21361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362   (eval $ac_try) 2>&5
21363   ac_status=$?
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); }; }; then
21366   eval "$as_ac_var=yes"
21367 else
21368   echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371 eval "$as_ac_var=no"
21372 fi
21373 rm -f conftest.err conftest.$ac_objext \
21374       conftest$ac_exeext conftest.$ac_ext
21375 fi
21376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21378 if test `eval echo '${'$as_ac_var'}'` = yes; then
21379   cat >>confdefs.h <<_ACEOF
21380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21381 _ACEOF
21382
21383 fi
21384 done
21385
21386 echo "$as_me:$LINENO: checking for time_t" >&5
21387 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
21388 if test "${ac_cv_type_time_t+set}" = set; then
21389   echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391   cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 $ac_includes_default
21398 int
21399 main ()
21400 {
21401 if ((time_t *) 0)
21402   return 0;
21403 if (sizeof (time_t))
21404   return 0;
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411   (eval $ac_compile) 2>conftest.er1
21412   ac_status=$?
21413   grep -v '^ *+' conftest.er1 >conftest.err
21414   rm -f conftest.er1
21415   cat conftest.err >&5
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } &&
21418          { ac_try='test -z "$ac_c_werror_flag"
21419                          || test ! -s conftest.err'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; } &&
21425          { ac_try='test -s conftest.$ac_objext'
21426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427   (eval $ac_try) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); }; }; then
21431   ac_cv_type_time_t=yes
21432 else
21433   echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436 ac_cv_type_time_t=no
21437 fi
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439 fi
21440 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
21441 echo "${ECHO_T}$ac_cv_type_time_t" >&6
21442
21443 echo "$as_me:$LINENO: checking size of time_t" >&5
21444 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
21445 if test "${ac_cv_sizeof_time_t+set}" = set; then
21446   echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448   if test "$ac_cv_type_time_t" = yes; then
21449   # The cast to unsigned long works around a bug in the HP C Compiler
21450   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21451   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21452   # This bug is HP SR number 8606223364.
21453   if test "$cross_compiling" = yes; then
21454   # Depending upon the size, compute the lo and hi bounds.
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461 $ac_includes_default
21462 int
21463 main ()
21464 {
21465 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
21466 test_array [0] = 0
21467
21468   ;
21469   return 0;
21470 }
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474   (eval $ac_compile) 2>conftest.er1
21475   ac_status=$?
21476   grep -v '^ *+' conftest.er1 >conftest.err
21477   rm -f conftest.er1
21478   cat conftest.err >&5
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); } &&
21481          { ac_try='test -z "$ac_c_werror_flag"
21482                          || test ! -s conftest.err'
21483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484   (eval $ac_try) 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; } &&
21488          { ac_try='test -s conftest.$ac_objext'
21489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490   (eval $ac_try) 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; }; then
21494   ac_lo=0 ac_mid=0
21495   while :; do
21496     cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 $ac_includes_default
21503 int
21504 main ()
21505 {
21506 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
21507 test_array [0] = 0
21508
21509   ;
21510   return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext
21514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21515   (eval $ac_compile) 2>conftest.er1
21516   ac_status=$?
21517   grep -v '^ *+' conftest.er1 >conftest.err
21518   rm -f conftest.er1
21519   cat conftest.err >&5
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); } &&
21522          { ac_try='test -z "$ac_c_werror_flag"
21523                          || test ! -s conftest.err'
21524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525   (eval $ac_try) 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); }; } &&
21529          { ac_try='test -s conftest.$ac_objext'
21530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531   (eval $ac_try) 2>&5
21532   ac_status=$?
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); }; }; then
21535   ac_hi=$ac_mid; break
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540 ac_lo=`expr $ac_mid + 1`
21541                     if test $ac_lo -le $ac_mid; then
21542                       ac_lo= ac_hi=
21543                       break
21544                     fi
21545                     ac_mid=`expr 2 '*' $ac_mid + 1`
21546 fi
21547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21548   done
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559 $ac_includes_default
21560 int
21561 main ()
21562 {
21563 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
21564 test_array [0] = 0
21565
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572   (eval $ac_compile) 2>conftest.er1
21573   ac_status=$?
21574   grep -v '^ *+' conftest.er1 >conftest.err
21575   rm -f conftest.er1
21576   cat conftest.err >&5
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); } &&
21579          { ac_try='test -z "$ac_c_werror_flag"
21580                          || test ! -s conftest.err'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; } &&
21586          { ac_try='test -s conftest.$ac_objext'
21587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588   (eval $ac_try) 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_hi=-1 ac_mid=-1
21593   while :; do
21594     cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 $ac_includes_default
21601 int
21602 main ()
21603 {
21604 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
21605 test_array [0] = 0
21606
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613   (eval $ac_compile) 2>conftest.er1
21614   ac_status=$?
21615   grep -v '^ *+' conftest.er1 >conftest.err
21616   rm -f conftest.er1
21617   cat conftest.err >&5
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } &&
21620          { ac_try='test -z "$ac_c_werror_flag"
21621                          || test ! -s conftest.err'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; } &&
21627          { ac_try='test -s conftest.$ac_objext'
21628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); }; }; then
21633   ac_lo=$ac_mid; break
21634 else
21635   echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638 ac_hi=`expr '(' $ac_mid ')' - 1`
21639                        if test $ac_mid -le $ac_hi; then
21640                          ac_lo= ac_hi=
21641                          break
21642                        fi
21643                        ac_mid=`expr 2 '*' $ac_mid`
21644 fi
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21646   done
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 ac_lo= ac_hi=
21652 fi
21653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21654 fi
21655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 # Binary search between lo and hi bounds.
21657 while test "x$ac_lo" != "x$ac_hi"; do
21658   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21659   cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 $ac_includes_default
21666 int
21667 main ()
21668 {
21669 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
21670 test_array [0] = 0
21671
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678   (eval $ac_compile) 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } &&
21685          { ac_try='test -z "$ac_c_werror_flag"
21686                          || test ! -s conftest.err'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; } &&
21692          { ac_try='test -s conftest.$ac_objext'
21693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694   (eval $ac_try) 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); }; }; then
21698   ac_hi=$ac_mid
21699 else
21700   echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_lo=`expr '(' $ac_mid ')' + 1`
21704 fi
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 done
21707 case $ac_lo in
21708 ?*) ac_cv_sizeof_time_t=$ac_lo;;
21709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
21710 See \`config.log' for more details." >&5
21711 echo "$as_me: error: cannot compute sizeof (time_t), 77
21712 See \`config.log' for more details." >&2;}
21713    { (exit 1); exit 1; }; } ;;
21714 esac
21715 else
21716   if test "$cross_compiling" = yes; then
21717   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21718 See \`config.log' for more details." >&5
21719 echo "$as_me: error: cannot run test program while cross compiling
21720 See \`config.log' for more details." >&2;}
21721    { (exit 1); exit 1; }; }
21722 else
21723   cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h.  */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h.  */
21729 $ac_includes_default
21730 long longval () { return (long) (sizeof (time_t)); }
21731 unsigned long ulongval () { return (long) (sizeof (time_t)); }
21732 #include <stdio.h>
21733 #include <stdlib.h>
21734 int
21735 main ()
21736 {
21737
21738   FILE *f = fopen ("conftest.val", "w");
21739   if (! f)
21740     exit (1);
21741   if (((long) (sizeof (time_t))) < 0)
21742     {
21743       long i = longval ();
21744       if (i != ((long) (sizeof (time_t))))
21745         exit (1);
21746       fprintf (f, "%ld\n", i);
21747     }
21748   else
21749     {
21750       unsigned long i = ulongval ();
21751       if (i != ((long) (sizeof (time_t))))
21752         exit (1);
21753       fprintf (f, "%lu\n", i);
21754     }
21755   exit (ferror (f) || fclose (f) != 0);
21756
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763   (eval $ac_link) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768   (eval $ac_try) 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; }; then
21772   ac_cv_sizeof_time_t=`cat conftest.val`
21773 else
21774   echo "$as_me: program exited with status $ac_status" >&5
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778 ( exit $ac_status )
21779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
21780 See \`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (time_t), 77
21782 See \`config.log' for more details." >&2;}
21783    { (exit 1); exit 1; }; }
21784 fi
21785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21786 fi
21787 fi
21788 rm -f conftest.val
21789 else
21790   ac_cv_sizeof_time_t=0
21791 fi
21792 fi
21793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
21794 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
21795 cat >>confdefs.h <<_ACEOF
21796 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
21797 _ACEOF
21798
21799
21800
21801 # checks for pthreads
21802
21803
21804
21805
21806 ac_ext=c
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21811
21812 acx_pthread_ok=no
21813
21814 # We used to check for pthread.h first, but this fails if pthread.h
21815 # requires special compiler flags (e.g. on True64 or Sequent).
21816 # It gets checked for in the link test anyway.
21817
21818 # First of all, check if the user has set any of the PTHREAD_LIBS,
21819 # etcetera environment variables, and if threads linking works using
21820 # them:
21821 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21822         save_CFLAGS="$CFLAGS"
21823         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21824         save_LIBS="$LIBS"
21825         LIBS="$PTHREAD_LIBS $LIBS"
21826         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21827 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21828         cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834
21835 /* Override any gcc2 internal prototype to avoid an error.  */
21836 #ifdef __cplusplus
21837 extern "C"
21838 #endif
21839 /* We use char because int might match the return type of a gcc2
21840    builtin and then its argument prototype would still apply.  */
21841 char pthread_join ();
21842 int
21843 main ()
21844 {
21845 pthread_join ();
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852   (eval $ac_link) 2>conftest.er1
21853   ac_status=$?
21854   grep -v '^ *+' conftest.er1 >conftest.err
21855   rm -f conftest.er1
21856   cat conftest.err >&5
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); } &&
21859          { ac_try='test -z "$ac_c_werror_flag"
21860                          || test ! -s conftest.err'
21861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862   (eval $ac_try) 2>&5
21863   ac_status=$?
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); }; } &&
21866          { ac_try='test -s conftest$ac_exeext'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; }; then
21872   acx_pthread_ok=yes
21873 else
21874   echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877 fi
21878 rm -f conftest.err conftest.$ac_objext \
21879       conftest$ac_exeext conftest.$ac_ext
21880         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21881 echo "${ECHO_T}$acx_pthread_ok" >&6
21882         if test x"$acx_pthread_ok" = xno; then
21883                 PTHREAD_LIBS=""
21884                 PTHREAD_CFLAGS=""
21885         fi
21886         LIBS="$save_LIBS"
21887         CFLAGS="$save_CFLAGS"
21888 fi
21889
21890 # We must check for the threads library under a number of different
21891 # names; the ordering is very important because some systems
21892 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21893 # libraries is broken (non-POSIX).
21894
21895 # Create a list of thread flags to try.  Items starting with a "-" are
21896 # C compiler flags, and other items are library names, except for "none"
21897 # which indicates that we try without any flags at all, and "pthread-config"
21898 # which is a program returning the flags for the Pth emulation library.
21899
21900 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21901
21902 # The ordering *is* (sometimes) important.  Some notes on the
21903 # individual items follow:
21904
21905 # pthreads: AIX (must check this before -lpthread)
21906 # none: in case threads are in libc; should be tried before -Kthread and
21907 #       other compiler flags to prevent continual compiler warnings
21908 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21909 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21910 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21911 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21912 # -pthreads: Solaris/gcc
21913 # -mthreads: Mingw32/gcc, Lynx/gcc
21914 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21915 #      doesn't hurt to check since this sometimes defines pthreads too;
21916 #      also defines -D_REENTRANT)
21917 #      ... -mt is also the pthreads flag for HP/aCC
21918 # pthread: Linux, etcetera
21919 # --thread-safe: KAI C++
21920 # pthread-config: use pthread-config program (for GNU Pth library)
21921
21922 case "${host_cpu}-${host_os}" in
21923         *solaris*)
21924
21925         # On Solaris (at least, for some versions), libc contains stubbed
21926         # (non-functional) versions of the pthreads routines, so link-based
21927         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
21928         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21929         # a function called by this macro, so we could check for that, but
21930         # who knows whether they'll stub that too in a future libc.)  So,
21931         # we'll just look for -pthreads and -lpthread first:
21932
21933         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21934         ;;
21935 esac
21936
21937 if test x"$acx_pthread_ok" = xno; then
21938 for flag in $acx_pthread_flags; do
21939
21940         case $flag in
21941                 none)
21942                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21943 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
21944                 ;;
21945
21946                 -*)
21947                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21948 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
21949                 PTHREAD_CFLAGS="$flag"
21950                 ;;
21951
21952                 pthread-config)
21953                 # Extract the first word of "pthread-config", so it can be a program name with args.
21954 set dummy pthread-config; ac_word=$2
21955 echo "$as_me:$LINENO: checking for $ac_word" >&5
21956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21957 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21958   echo $ECHO_N "(cached) $ECHO_C" >&6
21959 else
21960   if test -n "$acx_pthread_config"; then
21961   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21962 else
21963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21964 for as_dir in $PATH
21965 do
21966   IFS=$as_save_IFS
21967   test -z "$as_dir" && as_dir=.
21968   for ac_exec_ext in '' $ac_executable_extensions; do
21969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21970     ac_cv_prog_acx_pthread_config="yes"
21971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21972     break 2
21973   fi
21974 done
21975 done
21976
21977   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21978 fi
21979 fi
21980 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21981 if test -n "$acx_pthread_config"; then
21982   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21983 echo "${ECHO_T}$acx_pthread_config" >&6
21984 else
21985   echo "$as_me:$LINENO: result: no" >&5
21986 echo "${ECHO_T}no" >&6
21987 fi
21988
21989                 if test x"$acx_pthread_config" = xno; then continue; fi
21990                 PTHREAD_CFLAGS="`pthread-config --cflags`"
21991                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21992                 ;;
21993
21994                 *)
21995                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21996 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
21997                 PTHREAD_LIBS="-l$flag"
21998                 ;;
21999         esac
22000
22001         save_LIBS="$LIBS"
22002         save_CFLAGS="$CFLAGS"
22003         LIBS="$PTHREAD_LIBS $LIBS"
22004         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22005
22006         # Check for various functions.  We must include pthread.h,
22007         # since some functions may be macros.  (On the Sequent, we
22008         # need a special flag -Kthread to make this header compile.)
22009         # We check for pthread_join because it is in -lpthread on IRIX
22010         # while pthread_create is in libc.  We check for pthread_attr_init
22011         # due to DEC craziness with -lpthreads.  We check for
22012         # pthread_cleanup_push because it is one of the few pthread
22013         # functions on Solaris that doesn't have a non-functional libc stub.
22014         # We try pthread_create on general principles.
22015         cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021 #include <pthread.h>
22022 int
22023 main ()
22024 {
22025 pthread_t th; pthread_join(th, 0);
22026                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22027                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22034   (eval $ac_link) 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -z "$ac_c_werror_flag"
22042                          || test ! -s conftest.err'
22043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044   (eval $ac_try) 2>&5
22045   ac_status=$?
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); }; } &&
22048          { ac_try='test -s conftest$ac_exeext'
22049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050   (eval $ac_try) 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; }; then
22054   acx_pthread_ok=yes
22055 else
22056   echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059 fi
22060 rm -f conftest.err conftest.$ac_objext \
22061       conftest$ac_exeext conftest.$ac_ext
22062
22063         LIBS="$save_LIBS"
22064         CFLAGS="$save_CFLAGS"
22065
22066         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22067 echo "${ECHO_T}$acx_pthread_ok" >&6
22068         if test "x$acx_pthread_ok" = xyes; then
22069                 break;
22070         fi
22071
22072         PTHREAD_LIBS=""
22073         PTHREAD_CFLAGS=""
22074 done
22075 fi
22076
22077 # Various other checks:
22078 if test "x$acx_pthread_ok" = xyes; then
22079         save_LIBS="$LIBS"
22080         LIBS="$PTHREAD_LIBS $LIBS"
22081         save_CFLAGS="$CFLAGS"
22082         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22083
22084         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22085         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22086 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22087         attr_name=unknown
22088         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22089             cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h.  */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h.  */
22095 #include <pthread.h>
22096 int
22097 main ()
22098 {
22099 int attr=$attr; return attr;
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106   (eval $ac_link) 2>conftest.er1
22107   ac_status=$?
22108   grep -v '^ *+' conftest.er1 >conftest.err
22109   rm -f conftest.er1
22110   cat conftest.err >&5
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } &&
22113          { ac_try='test -z "$ac_c_werror_flag"
22114                          || test ! -s conftest.err'
22115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); }; } &&
22120          { ac_try='test -s conftest$ac_exeext'
22121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122   (eval $ac_try) 2>&5
22123   ac_status=$?
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); }; }; then
22126   attr_name=$attr; break
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131 fi
22132 rm -f conftest.err conftest.$ac_objext \
22133       conftest$ac_exeext conftest.$ac_ext
22134         done
22135         echo "$as_me:$LINENO: result: $attr_name" >&5
22136 echo "${ECHO_T}$attr_name" >&6
22137         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22138
22139 cat >>confdefs.h <<_ACEOF
22140 #define PTHREAD_CREATE_JOINABLE $attr_name
22141 _ACEOF
22142
22143         fi
22144
22145         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22146 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22147         flag=no
22148         case "${host_cpu}-${host_os}" in
22149                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22150                 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22151                 *solaris*)
22152                 if test "$GCC" = "yes"; then
22153                     flag="-D_REENTRANT"
22154                 else
22155                     flag="-mt -D_REENTRANT"
22156                 fi
22157                 ;;
22158         esac
22159         echo "$as_me:$LINENO: result: ${flag}" >&5
22160 echo "${ECHO_T}${flag}" >&6
22161         if test "x$flag" != xno; then
22162             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22163         fi
22164
22165         LIBS="$save_LIBS"
22166         CFLAGS="$save_CFLAGS"
22167
22168         # More AIX lossage: must compile with xlc_r or cc_r
22169         if test x"$GCC" != xyes; then
22170           for ac_prog in xlc_r cc_r
22171 do
22172   # Extract the first word of "$ac_prog", so it can be a program name with args.
22173 set dummy $ac_prog; ac_word=$2
22174 echo "$as_me:$LINENO: checking for $ac_word" >&5
22175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22176 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179   if test -n "$PTHREAD_CC"; then
22180   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22181 else
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183 for as_dir in $PATH
22184 do
22185   IFS=$as_save_IFS
22186   test -z "$as_dir" && as_dir=.
22187   for ac_exec_ext in '' $ac_executable_extensions; do
22188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22189     ac_cv_prog_PTHREAD_CC="$ac_prog"
22190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22191     break 2
22192   fi
22193 done
22194 done
22195
22196 fi
22197 fi
22198 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22199 if test -n "$PTHREAD_CC"; then
22200   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22201 echo "${ECHO_T}$PTHREAD_CC" >&6
22202 else
22203   echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22205 fi
22206
22207   test -n "$PTHREAD_CC" && break
22208 done
22209 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22210
22211         else
22212           PTHREAD_CC=$CC
22213         fi
22214 else
22215         PTHREAD_CC="$CC"
22216 fi
22217
22218
22219
22220
22221
22222 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22223 if test x"$acx_pthread_ok" = xyes; then
22224         enable_threads="pthread"
22225         :
22226 else
22227         acx_pthread_ok=no
22228         enable_threads="no"
22229 fi
22230 ac_ext=c
22231 ac_cpp='$CPP $CPPFLAGS'
22232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22235
22236
22237 if test $enable_threads != "pthread"; then
22238     { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22239 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22240    { (exit 1); exit 1; }; }
22241 else
22242
22243 cat >>confdefs.h <<\_ACEOF
22244 #define HAVE_PTHREAD 1
22245 _ACEOF
22246
22247     LIBS="$PTHREAD_LIBS $LIBS"
22248     CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22249     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22250 fi
22251
22252 # zlib settings
22253
22254 # Check whether --with-zlib or --without-zlib was given.
22255 if test "${with_zlib+set}" = set; then
22256   withval="$with_zlib"
22257
22258                 if test -d "$withval"; then
22259                         CPPFLAGS="${CPPFLAGS} -I$withval/include"
22260                         LDFLAGS="${LDFLAGS} -L$withval/lib"
22261                 fi
22262
22263
22264 fi;
22265 if test "${ac_cv_header_zlib_h+set}" = set; then
22266   echo "$as_me:$LINENO: checking for zlib.h" >&5
22267 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22268 if test "${ac_cv_header_zlib_h+set}" = set; then
22269   echo $ECHO_N "(cached) $ECHO_C" >&6
22270 fi
22271 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22272 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22273 else
22274   # Is the header compilable?
22275 echo "$as_me:$LINENO: checking zlib.h usability" >&5
22276 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22277 cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h.  */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h.  */
22283 $ac_includes_default
22284 #include <zlib.h>
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288   (eval $ac_compile) 2>conftest.er1
22289   ac_status=$?
22290   grep -v '^ *+' conftest.er1 >conftest.err
22291   rm -f conftest.er1
22292   cat conftest.err >&5
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); } &&
22295          { ac_try='test -z "$ac_c_werror_flag"
22296                          || test ! -s conftest.err'
22297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298   (eval $ac_try) 2>&5
22299   ac_status=$?
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); }; } &&
22302          { ac_try='test -s conftest.$ac_objext'
22303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304   (eval $ac_try) 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; }; then
22308   ac_header_compiler=yes
22309 else
22310   echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 ac_header_compiler=no
22314 fi
22315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22317 echo "${ECHO_T}$ac_header_compiler" >&6
22318
22319 # Is the header present?
22320 echo "$as_me:$LINENO: checking zlib.h presence" >&5
22321 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22322 cat >conftest.$ac_ext <<_ACEOF
22323 /* confdefs.h.  */
22324 _ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h.  */
22328 #include <zlib.h>
22329 _ACEOF
22330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22332   ac_status=$?
22333   grep -v '^ *+' conftest.er1 >conftest.err
22334   rm -f conftest.er1
22335   cat conftest.err >&5
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); } >/dev/null; then
22338   if test -s conftest.err; then
22339     ac_cpp_err=$ac_c_preproc_warn_flag
22340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22341   else
22342     ac_cpp_err=
22343   fi
22344 else
22345   ac_cpp_err=yes
22346 fi
22347 if test -z "$ac_cpp_err"; then
22348   ac_header_preproc=yes
22349 else
22350   echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353   ac_header_preproc=no
22354 fi
22355 rm -f conftest.err conftest.$ac_ext
22356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22357 echo "${ECHO_T}$ac_header_preproc" >&6
22358
22359 # So?  What about this header?
22360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22361   yes:no: )
22362     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22363 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22364     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22365 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22366     ac_header_preproc=yes
22367     ;;
22368   no:yes:* )
22369     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22370 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22371     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22372 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22373     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22374 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22375     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22376 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22377     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22378 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22379     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22380 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22381     (
22382       cat <<\_ASBOX
22383 ## ------------------------------------------------ ##
22384 ## Report this to mace-opensaml-users@internet2.edu ##
22385 ## ------------------------------------------------ ##
22386 _ASBOX
22387     ) |
22388       sed "s/^/$as_me: WARNING:     /" >&2
22389     ;;
22390 esac
22391 echo "$as_me:$LINENO: checking for zlib.h" >&5
22392 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22393 if test "${ac_cv_header_zlib_h+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   ac_cv_header_zlib_h=$ac_header_preproc
22397 fi
22398 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22399 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22400
22401 fi
22402 if test $ac_cv_header_zlib_h = yes; then
22403   :
22404 else
22405   { { echo "$as_me:$LINENO: error: unable to find zlib header files" >&5
22406 echo "$as_me: error: unable to find zlib header files" >&2;}
22407    { (exit 1); exit 1; }; }
22408 fi
22409
22410
22411
22412 echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
22413 echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6
22414 if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   ac_check_lib_save_LIBS=$LIBS
22418 LIBS="-lz  $LIBS"
22419 cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425
22426 /* Override any gcc2 internal prototype to avoid an error.  */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 /* We use char because int might match the return type of a gcc2
22431    builtin and then its argument prototype would still apply.  */
22432 char deflateInit2_ ();
22433 int
22434 main ()
22435 {
22436 deflateInit2_ ();
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443   (eval $ac_link) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"
22451                          || test ! -s conftest.err'
22452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453   (eval $ac_try) 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); }; } &&
22457          { ac_try='test -s conftest$ac_exeext'
22458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   ac_cv_lib_z_deflateInit2_=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ac_cv_lib_z_deflateInit2_=no
22469 fi
22470 rm -f conftest.err conftest.$ac_objext \
22471       conftest$ac_exeext conftest.$ac_ext
22472 LIBS=$ac_check_lib_save_LIBS
22473 fi
22474 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
22475 echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6
22476 if test $ac_cv_lib_z_deflateInit2_ = yes; then
22477   cat >>confdefs.h <<_ACEOF
22478 #define HAVE_LIBZ 1
22479 _ACEOF
22480
22481   LIBS="-lz $LIBS"
22482
22483 else
22484   { { echo "$as_me:$LINENO: error: unable to link with zlib library" >&5
22485 echo "$as_me: error: unable to link with zlib library" >&2;}
22486    { (exit 1); exit 1; }; }
22487 fi
22488
22489
22490 # OpenSSL settings
22491
22492 # Check whether --with-openssl or --without-openssl was given.
22493 if test "${with_openssl+set}" = set; then
22494   withval="$with_openssl"
22495   if test x_$with_openssl != x_/usr; then
22496         SSLFLAGS="-I${with_openssl}/include"
22497     fi
22498 fi;
22499
22500 if test "x$SSLFLAGS" = "x" ; then
22501     # Extract the first word of "pkg-config", so it can be a program name with args.
22502 set dummy pkg-config; ac_word=$2
22503 echo "$as_me:$LINENO: checking for $ac_word" >&5
22504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22505 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   case $PKG_CONFIG in
22509   [\\/]* | ?:[\\/]*)
22510   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22511   ;;
22512   *)
22513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22514 for as_dir in $PATH
22515 do
22516   IFS=$as_save_IFS
22517   test -z "$as_dir" && as_dir=.
22518   for ac_exec_ext in '' $ac_executable_extensions; do
22519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22520     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22522     break 2
22523   fi
22524 done
22525 done
22526
22527   ;;
22528 esac
22529 fi
22530 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22531
22532 if test -n "$PKG_CONFIG"; then
22533   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22534 echo "${ECHO_T}$PKG_CONFIG" >&6
22535 else
22536   echo "$as_me:$LINENO: result: no" >&5
22537 echo "${ECHO_T}no" >&6
22538 fi
22539
22540     if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22541         if pkg-config openssl ; then
22542             SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22543         else
22544             { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22545 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22546    { (exit 1); exit 1; }; }
22547         fi
22548     fi
22549 fi
22550
22551 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22552 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22553 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22554 echo "${ECHO_T}$SSLFLAGS" >&6
22555 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22556
22557 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22558   echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22559 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22560 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 fi
22563 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22564 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22565 else
22566   # Is the header compilable?
22567 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22568 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 $ac_includes_default
22576 #include <openssl/x509.h>
22577 _ACEOF
22578 rm -f conftest.$ac_objext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22580   (eval $ac_compile) 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } &&
22587          { ac_try='test -z "$ac_c_werror_flag"
22588                          || test ! -s conftest.err'
22589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590   (eval $ac_try) 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); }; } &&
22594          { ac_try='test -s conftest.$ac_objext'
22595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596   (eval $ac_try) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }; then
22600   ac_header_compiler=yes
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605 ac_header_compiler=no
22606 fi
22607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22609 echo "${ECHO_T}$ac_header_compiler" >&6
22610
22611 # Is the header present?
22612 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22613 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 #include <openssl/x509.h>
22621 _ACEOF
22622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22624   ac_status=$?
22625   grep -v '^ *+' conftest.er1 >conftest.err
22626   rm -f conftest.er1
22627   cat conftest.err >&5
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); } >/dev/null; then
22630   if test -s conftest.err; then
22631     ac_cpp_err=$ac_c_preproc_warn_flag
22632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22633   else
22634     ac_cpp_err=
22635   fi
22636 else
22637   ac_cpp_err=yes
22638 fi
22639 if test -z "$ac_cpp_err"; then
22640   ac_header_preproc=yes
22641 else
22642   echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645   ac_header_preproc=no
22646 fi
22647 rm -f conftest.err conftest.$ac_ext
22648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22649 echo "${ECHO_T}$ac_header_preproc" >&6
22650
22651 # So?  What about this header?
22652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22653   yes:no: )
22654     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22655 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22656     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22657 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22658     ac_header_preproc=yes
22659     ;;
22660   no:yes:* )
22661     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22662 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22663     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&5
22664 echo "$as_me: WARNING: openssl/x509.h:     check for missing prerequisite headers?" >&2;}
22665     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22666 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22667     { echo "$as_me:$LINENO: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&5
22668 echo "$as_me: WARNING: openssl/x509.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22669     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22670 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22671     { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22672 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22673     (
22674       cat <<\_ASBOX
22675 ## ------------------------------------------------ ##
22676 ## Report this to mace-opensaml-users@internet2.edu ##
22677 ## ------------------------------------------------ ##
22678 _ASBOX
22679     ) |
22680       sed "s/^/$as_me: WARNING:     /" >&2
22681     ;;
22682 esac
22683 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22684 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22685 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22686   echo $ECHO_N "(cached) $ECHO_C" >&6
22687 else
22688   ac_cv_header_openssl_x509_h=$ac_header_preproc
22689 fi
22690 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22691 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22692
22693 fi
22694 if test $ac_cv_header_openssl_x509_h = yes; then
22695   :
22696 else
22697   { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22698 echo "$as_me: error: unable to find openssl header files" >&2;}
22699    { (exit 1); exit 1; }; }
22700 fi
22701
22702
22703
22704 ac_ext=cc
22705 ac_cpp='$CXXCPP $CPPFLAGS'
22706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22709
22710
22711 # C++ requirements
22712 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22713 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22714 if test "${ac_cv_cxx_namespaces+set}" = set; then
22715   echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22717
22718
22719  ac_ext=cc
22720 ac_cpp='$CXXCPP $CPPFLAGS'
22721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22724
22725  cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h.  */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h.  */
22731 namespace Outer { namespace Inner { int i = 0; }}
22732 int
22733 main ()
22734 {
22735 using namespace Outer::Inner; return i;
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22742   (eval $ac_compile) 2>conftest.er1
22743   ac_status=$?
22744   grep -v '^ *+' conftest.er1 >conftest.err
22745   rm -f conftest.er1
22746   cat conftest.err >&5
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } &&
22749          { ac_try='test -z "$ac_cxx_werror_flag"
22750                          || test ! -s conftest.err'
22751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752   (eval $ac_try) 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; } &&
22756          { ac_try='test -s conftest.$ac_objext'
22757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758   (eval $ac_try) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); }; }; then
22762   ac_cv_cxx_namespaces=yes
22763 else
22764   echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 ac_cv_cxx_namespaces=no
22768 fi
22769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22770  ac_ext=cc
22771 ac_cpp='$CXXCPP $CPPFLAGS'
22772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22775
22776
22777 fi
22778 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22779 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22780 if test "$ac_cv_cxx_namespaces" = yes; then
22781
22782 cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_NAMESPACES 1
22784 _ACEOF
22785
22786 fi
22787
22788 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22789 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22790 if test "${ac_cv_cxx_have_stl+set}" = set; then
22791   echo $ECHO_N "(cached) $ECHO_C" >&6
22792 else
22793
22794
22795
22796  ac_ext=cc
22797 ac_cpp='$CXXCPP $CPPFLAGS'
22798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22801
22802  cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h.  */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h.  */
22808 #include <list>
22809 #include <deque>
22810 #ifdef HAVE_NAMESPACES
22811 using namespace std;
22812 #endif
22813 int
22814 main ()
22815 {
22816 list<int> x; x.push_back(5);
22817 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22818   ;
22819   return 0;
22820 }
22821 _ACEOF
22822 rm -f conftest.$ac_objext
22823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22824   (eval $ac_compile) 2>conftest.er1
22825   ac_status=$?
22826   grep -v '^ *+' conftest.er1 >conftest.err
22827   rm -f conftest.er1
22828   cat conftest.err >&5
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); } &&
22831          { ac_try='test -z "$ac_cxx_werror_flag"
22832                          || test ! -s conftest.err'
22833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834   (eval $ac_try) 2>&5
22835   ac_status=$?
22836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); }; } &&
22838          { ac_try='test -s conftest.$ac_objext'
22839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840   (eval $ac_try) 2>&5
22841   ac_status=$?
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); }; }; then
22844   ac_cv_cxx_have_stl=yes
22845 else
22846   echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849 ac_cv_cxx_have_stl=no
22850 fi
22851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22852  ac_ext=cc
22853 ac_cpp='$CXXCPP $CPPFLAGS'
22854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22857
22858
22859 fi
22860 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22861 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22862 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22863   { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22864 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22865    { (exit 1); exit 1; }; }
22866 fi
22867
22868 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22869 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22870 if test "${ac_cv_cxx_namespaces+set}" = set; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873
22874
22875  ac_ext=cc
22876 ac_cpp='$CXXCPP $CPPFLAGS'
22877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22880
22881  cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887 namespace Outer { namespace Inner { int i = 0; }}
22888 int
22889 main ()
22890 {
22891 using namespace Outer::Inner; return i;
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22898   (eval $ac_compile) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_cxx_werror_flag"
22906                          || test ! -s conftest.err'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; } &&
22912          { ac_try='test -s conftest.$ac_objext'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }; then
22918   ac_cv_cxx_namespaces=yes
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 ac_cv_cxx_namespaces=no
22924 fi
22925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22926  ac_ext=cc
22927 ac_cpp='$CXXCPP $CPPFLAGS'
22928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22931
22932
22933 fi
22934 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22935 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22936 if test "$ac_cv_cxx_namespaces" = yes; then
22937
22938 cat >>confdefs.h <<\_ACEOF
22939 #define HAVE_NAMESPACES 1
22940 _ACEOF
22941
22942 fi
22943
22944
22945 # log4shib settings (favor this version over the log4cpp code)
22946 # Extract the first word of "log4shib-config", so it can be a program name with args.
22947 set dummy log4shib-config; ac_word=$2
22948 echo "$as_me:$LINENO: checking for $ac_word" >&5
22949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22950 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   case $LOG4SHIB_CONFIG in
22954   [\\/]* | ?:[\\/]*)
22955   ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22956   ;;
22957   *)
22958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959 for as_dir in $PATH
22960 do
22961   IFS=$as_save_IFS
22962   test -z "$as_dir" && as_dir=.
22963   for ac_exec_ext in '' $ac_executable_extensions; do
22964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22965     ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22967     break 2
22968   fi
22969 done
22970 done
22971
22972   ;;
22973 esac
22974 fi
22975 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
22976
22977 if test -n "$LOG4SHIB_CONFIG"; then
22978   echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
22979 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
22980 else
22981   echo "$as_me:$LINENO: result: no" >&5
22982 echo "${ECHO_T}no" >&6
22983 fi
22984
22985
22986 # Check whether --with-log4shib or --without-log4shib was given.
22987 if test "${with_log4shib+set}" = set; then
22988   withval="$with_log4shib"
22989
22990     LOG4SHIB_CONFIG="${with_log4shib}"
22991     if ! test -f "${LOG4SHIB_CONFIG}" ; then
22992         LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
22993     fi
22994
22995 fi;
22996 if test -f "${LOG4SHIB_CONFIG}"; then
22997     LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
22998     CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
22999
23000 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23001   echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23002 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23003 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23004   echo $ECHO_N "(cached) $ECHO_C" >&6
23005 fi
23006 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23007 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23008 else
23009   # Is the header compilable?
23010 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23011 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23012 cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018 $ac_includes_default
23019 #include <log4shib/CategoryStream.hh>
23020 _ACEOF
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023   (eval $ac_compile) 2>conftest.er1
23024   ac_status=$?
23025   grep -v '^ *+' conftest.er1 >conftest.err
23026   rm -f conftest.er1
23027   cat conftest.err >&5
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } &&
23030          { ac_try='test -z "$ac_cxx_werror_flag"
23031                          || test ! -s conftest.err'
23032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); }; } &&
23037          { ac_try='test -s conftest.$ac_objext'
23038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039   (eval $ac_try) 2>&5
23040   ac_status=$?
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); }; }; then
23043   ac_header_compiler=yes
23044 else
23045   echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23047
23048 ac_header_compiler=no
23049 fi
23050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23052 echo "${ECHO_T}$ac_header_compiler" >&6
23053
23054 # Is the header present?
23055 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23056 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23057 cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063 #include <log4shib/CategoryStream.hh>
23064 _ACEOF
23065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23066   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } >/dev/null; then
23073   if test -s conftest.err; then
23074     ac_cpp_err=$ac_cxx_preproc_warn_flag
23075     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23076   else
23077     ac_cpp_err=
23078   fi
23079 else
23080   ac_cpp_err=yes
23081 fi
23082 if test -z "$ac_cpp_err"; then
23083   ac_header_preproc=yes
23084 else
23085   echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088   ac_header_preproc=no
23089 fi
23090 rm -f conftest.err conftest.$ac_ext
23091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23092 echo "${ECHO_T}$ac_header_preproc" >&6
23093
23094 # So?  What about this header?
23095 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23096   yes:no: )
23097     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23098 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23099     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23100 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23101     ac_header_preproc=yes
23102     ;;
23103   no:yes:* )
23104     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23105 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23106     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23107 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23108     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23109 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23110     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23111 echo "$as_me: WARNING: log4shib/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23112     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23113 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23114     { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23115 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23116     (
23117       cat <<\_ASBOX
23118 ## ------------------------------------------------ ##
23119 ## Report this to mace-opensaml-users@internet2.edu ##
23120 ## ------------------------------------------------ ##
23121 _ASBOX
23122     ) |
23123       sed "s/^/$as_me: WARNING:     /" >&2
23124     ;;
23125 esac
23126 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23127 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23128 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23129   echo $ECHO_N "(cached) $ECHO_C" >&6
23130 else
23131   ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23132 fi
23133 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23134 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23135
23136 fi
23137 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23138   :
23139 else
23140   { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23141 echo "$as_me: error: unable to find log4shib header files" >&2;}
23142    { (exit 1); exit 1; }; }
23143 fi
23144
23145
23146         cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 #include <log4shib/Category.hh>
23153 #include <log4shib/CategoryStream.hh>
23154 int
23155 main ()
23156 {
23157 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164   (eval $ac_link) 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } &&
23171          { ac_try='test -z "$ac_cxx_werror_flag"
23172                          || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest$ac_exeext'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; }; then
23184
23185 cat >>confdefs.h <<\_ACEOF
23186 #define OPENSAML_LOG4SHIB 1
23187 _ACEOF
23188
23189 else
23190   echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23192
23193 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23194 echo "$as_me: error: unable to link with log4shib" >&2;}
23195    { (exit 1); exit 1; }; }
23196 fi
23197 rm -f conftest.err conftest.$ac_objext \
23198       conftest$ac_exeext conftest.$ac_ext
23199 else
23200     { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23201 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23202     { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23203 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23204
23205         # log4cpp settings
23206         # Extract the first word of "log4cpp-config", so it can be a program name with args.
23207 set dummy log4cpp-config; ac_word=$2
23208 echo "$as_me:$LINENO: checking for $ac_word" >&5
23209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23210 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213   case $LOG4CPP_CONFIG in
23214   [\\/]* | ?:[\\/]*)
23215   ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23216   ;;
23217   *)
23218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23219 for as_dir in $PATH
23220 do
23221   IFS=$as_save_IFS
23222   test -z "$as_dir" && as_dir=.
23223   for ac_exec_ext in '' $ac_executable_extensions; do
23224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23225     ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23227     break 2
23228   fi
23229 done
23230 done
23231
23232   ;;
23233 esac
23234 fi
23235 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23236
23237 if test -n "$LOG4CPP_CONFIG"; then
23238   echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23239 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23240 else
23241   echo "$as_me:$LINENO: result: no" >&5
23242 echo "${ECHO_T}no" >&6
23243 fi
23244
23245
23246 # Check whether --with-log4cpp or --without-log4cpp was given.
23247 if test "${with_log4cpp+set}" = set; then
23248   withval="$with_log4cpp"
23249
23250             LOG4CPP_CONFIG="${with_log4cpp}"
23251             if ! test -f "${LOG4CPP_CONFIG}" ; then
23252                 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23253             fi
23254
23255 fi;
23256         if test -f "${LOG4CPP_CONFIG}"; then
23257                 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23258 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23259             LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23260             CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23261                 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23262   echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23263 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23264 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23265   echo $ECHO_N "(cached) $ECHO_C" >&6
23266 fi
23267 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23268 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23269 else
23270   # Is the header compilable?
23271 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23272 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23273 cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279 $ac_includes_default
23280 #include <log4cpp/CategoryStream.hh>
23281 _ACEOF
23282 rm -f conftest.$ac_objext
23283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23284   (eval $ac_compile) 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } &&
23291          { ac_try='test -z "$ac_cxx_werror_flag"
23292                          || test ! -s conftest.err'
23293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294   (eval $ac_try) 2>&5
23295   ac_status=$?
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); }; } &&
23298          { ac_try='test -s conftest.$ac_objext'
23299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300   (eval $ac_try) 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); }; }; then
23304   ac_header_compiler=yes
23305 else
23306   echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309 ac_header_compiler=no
23310 fi
23311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23313 echo "${ECHO_T}$ac_header_compiler" >&6
23314
23315 # Is the header present?
23316 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23317 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h.  */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h.  */
23324 #include <log4cpp/CategoryStream.hh>
23325 _ACEOF
23326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } >/dev/null; then
23334   if test -s conftest.err; then
23335     ac_cpp_err=$ac_cxx_preproc_warn_flag
23336     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23337   else
23338     ac_cpp_err=
23339   fi
23340 else
23341   ac_cpp_err=yes
23342 fi
23343 if test -z "$ac_cpp_err"; then
23344   ac_header_preproc=yes
23345 else
23346   echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349   ac_header_preproc=no
23350 fi
23351 rm -f conftest.err conftest.$ac_ext
23352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23353 echo "${ECHO_T}$ac_header_preproc" >&6
23354
23355 # So?  What about this header?
23356 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23357   yes:no: )
23358     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23359 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23360     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23361 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23362     ac_header_preproc=yes
23363     ;;
23364   no:yes:* )
23365     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23366 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23367     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&5
23368 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     check for missing prerequisite headers?" >&2;}
23369     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23370 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23371     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&5
23372 echo "$as_me: WARNING: log4cpp/CategoryStream.hh:     section \"Present But Cannot Be Compiled\"" >&2;}
23373     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23374 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23375     { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23376 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23377     (
23378       cat <<\_ASBOX
23379 ## ------------------------------------------------ ##
23380 ## Report this to mace-opensaml-users@internet2.edu ##
23381 ## ------------------------------------------------ ##
23382 _ASBOX
23383     ) |
23384       sed "s/^/$as_me: WARNING:     /" >&2
23385     ;;
23386 esac
23387 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23388 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23389 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392   ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23393 fi
23394 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23395 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23396
23397 fi
23398 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23399   :
23400 else
23401   { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23402 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23403    { (exit 1); exit 1; }; }
23404 fi
23405
23406
23407                 cat >conftest.$ac_ext <<_ACEOF
23408 /* confdefs.h.  */
23409 _ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h.  */
23413 #include <log4cpp/Category.hh>
23414 #include <log4cpp/CategoryStream.hh>
23415 int
23416 main ()
23417 {
23418 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23419   ;
23420   return 0;
23421 }
23422 _ACEOF
23423 rm -f conftest.$ac_objext conftest$ac_exeext
23424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23425   (eval $ac_link) 2>conftest.er1
23426   ac_status=$?
23427   grep -v '^ *+' conftest.er1 >conftest.err
23428   rm -f conftest.er1
23429   cat conftest.err >&5
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); } &&
23432          { ac_try='test -z "$ac_cxx_werror_flag"
23433                          || test ! -s conftest.err'
23434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435   (eval $ac_try) 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); }; } &&
23439          { ac_try='test -s conftest$ac_exeext'
23440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441   (eval $ac_try) 2>&5
23442   ac_status=$?
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); }; }; then
23445
23446 cat >>confdefs.h <<\_ACEOF
23447 #define OPENSAML_LOG4CPP 1
23448 _ACEOF
23449
23450 else
23451   echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23455 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23456    { (exit 1); exit 1; }; }
23457 fi
23458 rm -f conftest.err conftest.$ac_objext \
23459       conftest$ac_exeext conftest.$ac_ext
23460         else
23461             { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23462 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23463    { (exit 1); exit 1; }; }
23464         fi
23465 fi
23466
23467 # Xerces settings
23468
23469 # Check whether --with-xerces or --without-xerces was given.
23470 if test "${with_xerces+set}" = set; then
23471   withval="$with_xerces"
23472   if test x_$with_xerces != x_/usr; then
23473                 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23474                 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23475             fi
23476 fi;
23477 LIBS="-lxerces-c $LIBS"
23478 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23479   echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23480 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23481 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 fi
23484 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23485 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23486 else
23487   # Is the header compilable?
23488 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23489 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496 $ac_includes_default
23497 #include <xercesc/dom/DOM.hpp>
23498 _ACEOF
23499 rm -f conftest.$ac_objext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23501   (eval $ac_compile) 2>conftest.er1
23502   ac_status=$?
23503   grep -v '^ *+' conftest.er1 >conftest.err
23504   rm -f conftest.er1
23505   cat conftest.err >&5
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } &&
23508          { ac_try='test -z "$ac_cxx_werror_flag"
23509                          || test ! -s conftest.err'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; } &&
23515          { ac_try='test -s conftest.$ac_objext'
23516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517   (eval $ac_try) 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); }; }; then
23521   ac_header_compiler=yes
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526 ac_header_compiler=no
23527 fi
23528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23530 echo "${ECHO_T}$ac_header_compiler" >&6
23531
23532 # Is the header present?
23533 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23534 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23535 cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h.  */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h.  */
23541 #include <xercesc/dom/DOM.hpp>
23542 _ACEOF
23543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23545   ac_status=$?
23546   grep -v '^ *+' conftest.er1 >conftest.err
23547   rm -f conftest.er1
23548   cat conftest.err >&5
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } >/dev/null; then
23551   if test -s conftest.err; then
23552     ac_cpp_err=$ac_cxx_preproc_warn_flag
23553     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23554   else
23555     ac_cpp_err=
23556   fi
23557 else
23558   ac_cpp_err=yes
23559 fi
23560 if test -z "$ac_cpp_err"; then
23561   ac_header_preproc=yes
23562 else
23563   echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23565
23566   ac_header_preproc=no
23567 fi
23568 rm -f conftest.err conftest.$ac_ext
23569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23570 echo "${ECHO_T}$ac_header_preproc" >&6
23571
23572 # So?  What about this header?
23573 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23574   yes:no: )
23575     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23576 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23577     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23578 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23579     ac_header_preproc=yes
23580     ;;
23581   no:yes:* )
23582     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23583 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23584     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&5
23585 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     check for missing prerequisite headers?" >&2;}
23586     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23587 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23588     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23589 echo "$as_me: WARNING: xercesc/dom/DOM.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23590     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23591 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23592     { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23593 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23594     (
23595       cat <<\_ASBOX
23596 ## ------------------------------------------------ ##
23597 ## Report this to mace-opensaml-users@internet2.edu ##
23598 ## ------------------------------------------------ ##
23599 _ASBOX
23600     ) |
23601       sed "s/^/$as_me: WARNING:     /" >&2
23602     ;;
23603 esac
23604 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23605 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23606 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609   ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23610 fi
23611 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23612 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23613
23614 fi
23615 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23616   :
23617 else
23618   { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23619 echo "$as_me: error: unable to find xerces header files" >&2;}
23620    { (exit 1); exit 1; }; }
23621 fi
23622
23623
23624 echo "$as_me:$LINENO: checking Xerces version" >&5
23625 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23626 cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 #include <xercesc/util/XercesVersion.hpp>
23633 int
23634 main ()
23635 {
23636 #if  _XERCES_VERSION != 20600
23637 int i = 0;
23638 #else
23639 #error cannot use version 2.6.0
23640 #endif
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23647   ac_status=$?
23648   grep -v '^ *+' conftest.er1 >conftest.err
23649   rm -f conftest.er1
23650   cat conftest.err >&5
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); } >/dev/null; then
23653   if test -s conftest.err; then
23654     ac_cpp_err=$ac_cxx_preproc_warn_flag
23655     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23656   else
23657     ac_cpp_err=
23658   fi
23659 else
23660   ac_cpp_err=yes
23661 fi
23662 if test -z "$ac_cpp_err"; then
23663   echo "$as_me:$LINENO: result: OK" >&5
23664 echo "${ECHO_T}OK" >&6
23665 else
23666   echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23668
23669   { { 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
23670 See \`config.log' for more details." >&5
23671 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
23672 See \`config.log' for more details." >&2;}
23673    { (exit 1); exit 1; }; }
23674 fi
23675 rm -f conftest.err conftest.$ac_ext
23676 cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h.  */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h.  */
23682 #include <xercesc/util/PlatformUtils.hpp>
23683 int
23684 main ()
23685 {
23686 xercesc::XMLPlatformUtils::Initialize()
23687   ;
23688   return 0;
23689 }
23690 _ACEOF
23691 rm -f conftest.$ac_objext conftest$ac_exeext
23692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23693   (eval $ac_link) 2>conftest.er1
23694   ac_status=$?
23695   grep -v '^ *+' conftest.er1 >conftest.err
23696   rm -f conftest.er1
23697   cat conftest.err >&5
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } &&
23700          { ac_try='test -z "$ac_cxx_werror_flag"
23701                          || test ! -s conftest.err'
23702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703   (eval $ac_try) 2>&5
23704   ac_status=$?
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); }; } &&
23707          { ac_try='test -s conftest$ac_exeext'
23708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709   (eval $ac_try) 2>&5
23710   ac_status=$?
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); }; }; then
23713
23714 cat >>confdefs.h <<\_ACEOF
23715 #define HAVE_LIBXERCESC 1
23716 _ACEOF
23717
23718 else
23719   echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23721
23722 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23723 echo "$as_me: error: unable to link with Xerces" >&2;}
23724    { (exit 1); exit 1; }; }
23725 fi
23726 rm -f conftest.err conftest.$ac_objext \
23727       conftest$ac_exeext conftest.$ac_ext
23728
23729
23730 # XML-Security settings
23731
23732 # Check whether --with-xmlsec or --without-xmlsec was given.
23733 if test "${with_xmlsec+set}" = set; then
23734   withval="$with_xmlsec"
23735   if test x_$with_xmlsec != x_/usr; then
23736         LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
23737         CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
23738     fi
23739 fi;
23740 LIBS="-lxml-security-c $LIBS"
23741 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23742   echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23743 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23744 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23745   echo $ECHO_N "(cached) $ECHO_C" >&6
23746 fi
23747 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23748 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23749 else
23750   # Is the header compilable?
23751 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
23752 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
23753 cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h.  */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h.  */
23759 $ac_includes_default
23760 #include <xsec/utils/XSECPlatformUtils.hpp>
23761 _ACEOF
23762 rm -f conftest.$ac_objext
23763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23764   (eval $ac_compile) 2>conftest.er1
23765   ac_status=$?
23766   grep -v '^ *+' conftest.er1 >conftest.err
23767   rm -f conftest.er1
23768   cat conftest.err >&5
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } &&
23771          { ac_try='test -z "$ac_cxx_werror_flag"
23772                          || test ! -s conftest.err'
23773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774   (eval $ac_try) 2>&5
23775   ac_status=$?
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); }; } &&
23778          { ac_try='test -s conftest.$ac_objext'
23779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780   (eval $ac_try) 2>&5
23781   ac_status=$?
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); }; }; then
23784   ac_header_compiler=yes
23785 else
23786   echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23788
23789 ac_header_compiler=no
23790 fi
23791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23793 echo "${ECHO_T}$ac_header_compiler" >&6
23794
23795 # Is the header present?
23796 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
23797 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
23798 cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804 #include <xsec/utils/XSECPlatformUtils.hpp>
23805 _ACEOF
23806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23808   ac_status=$?
23809   grep -v '^ *+' conftest.er1 >conftest.err
23810   rm -f conftest.er1
23811   cat conftest.err >&5
23812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813   (exit $ac_status); } >/dev/null; then
23814   if test -s conftest.err; then
23815     ac_cpp_err=$ac_cxx_preproc_warn_flag
23816     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23817   else
23818     ac_cpp_err=
23819   fi
23820 else
23821   ac_cpp_err=yes
23822 fi
23823 if test -z "$ac_cpp_err"; then
23824   ac_header_preproc=yes
23825 else
23826   echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23828
23829   ac_header_preproc=no
23830 fi
23831 rm -f conftest.err conftest.$ac_ext
23832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23833 echo "${ECHO_T}$ac_header_preproc" >&6
23834
23835 # So?  What about this header?
23836 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23837   yes:no: )
23838     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23839 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23840     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
23841 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
23842     ac_header_preproc=yes
23843     ;;
23844   no:yes:* )
23845     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
23846 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
23847     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&5
23848 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     check for missing prerequisite headers?" >&2;}
23849     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
23850 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
23851     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&5
23852 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
23853     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
23854 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
23855     { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
23856 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
23857     (
23858       cat <<\_ASBOX
23859 ## ------------------------------------------------ ##
23860 ## Report this to mace-opensaml-users@internet2.edu ##
23861 ## ------------------------------------------------ ##
23862 _ASBOX
23863     ) |
23864       sed "s/^/$as_me: WARNING:     /" >&2
23865     ;;
23866 esac
23867 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23868 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23869 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23870   echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872   ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
23873 fi
23874 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23875 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23876
23877 fi
23878 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
23879   :
23880 else
23881   { { echo "$as_me:$LINENO: error: unable to find xmlsec header files" >&5
23882 echo "$as_me: error: unable to find xmlsec header files" >&2;}
23883    { (exit 1); exit 1; }; }
23884 fi
23885
23886
23887 echo "$as_me:$LINENO: checking XML-Security version" >&5
23888 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895 #include <xsec/utils/XSECPlatformUtils.hpp>
23896 int
23897 main ()
23898 {
23899 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
23900 int i = 0;
23901 #else
23902 #error need version 1.4.0 or later
23903 #endif
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } >/dev/null; then
23916   if test -s conftest.err; then
23917     ac_cpp_err=$ac_cxx_preproc_warn_flag
23918     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23919   else
23920     ac_cpp_err=
23921   fi
23922 else
23923   ac_cpp_err=yes
23924 fi
23925 if test -z "$ac_cpp_err"; then
23926   echo "$as_me:$LINENO: result: OK" >&5
23927 echo "${ECHO_T}OK" >&6
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932   { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
23933 See \`config.log' for more details." >&5
23934 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
23935 See \`config.log' for more details." >&2;}
23936    { (exit 1); exit 1; }; }
23937 fi
23938 rm -f conftest.err conftest.$ac_ext
23939 cat >conftest.$ac_ext <<_ACEOF
23940 /* confdefs.h.  */
23941 _ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h.  */
23945 #include <xsec/utils/XSECPlatformUtils.hpp>
23946 int
23947 main ()
23948 {
23949 XSECPlatformUtils::Initialise()
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956   (eval $ac_link) 2>conftest.er1
23957   ac_status=$?
23958   grep -v '^ *+' conftest.er1 >conftest.err
23959   rm -f conftest.er1
23960   cat conftest.err >&5
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); } &&
23963          { ac_try='test -z "$ac_cxx_werror_flag"
23964                          || test ! -s conftest.err'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; } &&
23970          { ac_try='test -s conftest$ac_exeext'
23971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972   (eval $ac_try) 2>&5
23973   ac_status=$?
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); }; }; then
23976
23977 cat >>confdefs.h <<\_ACEOF
23978 #define HAVE_LIBXSEC 1
23979 _ACEOF
23980
23981 else
23982   echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23984
23985 { { echo "$as_me:$LINENO: error: unable to link with XML-Security library" >&5
23986 echo "$as_me: error: unable to link with XML-Security library" >&2;}
23987    { (exit 1); exit 1; }; }
23988
23989 fi
23990 rm -f conftest.err conftest.$ac_objext \
23991       conftest$ac_exeext conftest.$ac_ext
23992
23993 # XML-Tooling settings
23994
23995 # Check whether --with-xmltooling or --without-xmltooling was given.
23996 if test "${with_xmltooling+set}" = set; then
23997   withval="$with_xmltooling"
23998   if test x_$with_xmltooling != x_/usr; then
23999         LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
24000         CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
24001         DX_INCLUDE="${with_xmltooling}/include"
24002     fi
24003 fi;
24004 LIBS="-lxmltooling $LIBS"
24005 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24006   echo "$as_me:$LINENO: checking for xmltooling/XMLToolingConfig.h" >&5
24007 echo $ECHO_N "checking for xmltooling/XMLToolingConfig.h... $ECHO_C" >&6
24008 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24009   echo $ECHO_N "(cached) $ECHO_C" >&6
24010 fi
24011 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_XMLToolingConfig_h" >&5
24012 echo "${ECHO_T}$ac_cv_header_xmltooling_XMLToolingConfig_h" >&6
24013 else
24014   # Is the header compilable?
24015 echo "$as_me:$LINENO: checking xmltooling/XMLToolingConfig.h usability" >&5
24016 echo $ECHO_N "checking xmltooling/XMLToolingConfig.h usability... $ECHO_C" >&6
24017 cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h.  */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h.  */
24023 $ac_includes_default
24024 #include <xmltooling/XMLToolingConfig.h>
24025 _ACEOF
24026 rm -f conftest.$ac_objext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24028   (eval $ac_compile) 2>conftest.er1
24029   ac_status=$?
24030   grep -v '^ *+' conftest.er1 >conftest.err
24031   rm -f conftest.er1
24032   cat conftest.err >&5
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); } &&
24035          { ac_try='test -z "$ac_cxx_werror_flag"
24036                          || test ! -s conftest.err'
24037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038   (eval $ac_try) 2>&5
24039   ac_status=$?
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); }; } &&
24042          { ac_try='test -s conftest.$ac_objext'
24043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044   (eval $ac_try) 2>&5
24045   ac_status=$?
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); }; }; then
24048   ac_header_compiler=yes
24049 else
24050   echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053 ac_header_compiler=no
24054 fi
24055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24057 echo "${ECHO_T}$ac_header_compiler" >&6
24058
24059 # Is the header present?
24060 echo "$as_me:$LINENO: checking xmltooling/XMLToolingConfig.h presence" >&5
24061 echo $ECHO_N "checking xmltooling/XMLToolingConfig.h presence... $ECHO_C" >&6
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068 #include <xmltooling/XMLToolingConfig.h>
24069 _ACEOF
24070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24072   ac_status=$?
24073   grep -v '^ *+' conftest.er1 >conftest.err
24074   rm -f conftest.er1
24075   cat conftest.err >&5
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); } >/dev/null; then
24078   if test -s conftest.err; then
24079     ac_cpp_err=$ac_cxx_preproc_warn_flag
24080     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24081   else
24082     ac_cpp_err=
24083   fi
24084 else
24085   ac_cpp_err=yes
24086 fi
24087 if test -z "$ac_cpp_err"; then
24088   ac_header_preproc=yes
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093   ac_header_preproc=no
24094 fi
24095 rm -f conftest.err conftest.$ac_ext
24096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24097 echo "${ECHO_T}$ac_header_preproc" >&6
24098
24099 # So?  What about this header?
24100 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24101   yes:no: )
24102     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
24103 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24104     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the compiler's result" >&5
24105 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the compiler's result" >&2;}
24106     ac_header_preproc=yes
24107     ;;
24108   no:yes:* )
24109     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: present but cannot be compiled" >&5
24110 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: present but cannot be compiled" >&2;}
24111     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h:     check for missing prerequisite headers?" >&5
24112 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h:     check for missing prerequisite headers?" >&2;}
24113     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: see the Autoconf documentation" >&5
24114 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: see the Autoconf documentation" >&2;}
24115     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h:     section \"Present But Cannot Be Compiled\"" >&5
24116 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24117     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the preprocessor's result" >&5
24118 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the preprocessor's result" >&2;}
24119     { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: in the future, the compiler will take precedence" >&5
24120 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: in the future, the compiler will take precedence" >&2;}
24121     (
24122       cat <<\_ASBOX
24123 ## ------------------------------------------------ ##
24124 ## Report this to mace-opensaml-users@internet2.edu ##
24125 ## ------------------------------------------------ ##
24126 _ASBOX
24127     ) |
24128       sed "s/^/$as_me: WARNING:     /" >&2
24129     ;;
24130 esac
24131 echo "$as_me:$LINENO: checking for xmltooling/XMLToolingConfig.h" >&5
24132 echo $ECHO_N "checking for xmltooling/XMLToolingConfig.h... $ECHO_C" >&6
24133 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136   ac_cv_header_xmltooling_XMLToolingConfig_h=$ac_header_preproc
24137 fi
24138 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_XMLToolingConfig_h" >&5
24139 echo "${ECHO_T}$ac_cv_header_xmltooling_XMLToolingConfig_h" >&6
24140
24141 fi
24142 if test $ac_cv_header_xmltooling_XMLToolingConfig_h = yes; then
24143   :
24144 else
24145   { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24146 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24147    { (exit 1); exit 1; }; }
24148 fi
24149
24150
24151 cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157 #include <xmltooling/XMLToolingConfig.h>
24158 int
24159 main ()
24160 {
24161 xmltooling::XMLToolingConfig::getConfig().init()
24162   ;
24163   return 0;
24164 }
24165 _ACEOF
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168   (eval $ac_link) 2>conftest.er1
24169   ac_status=$?
24170   grep -v '^ *+' conftest.er1 >conftest.err
24171   rm -f conftest.er1
24172   cat conftest.err >&5
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); } &&
24175          { ac_try='test -z "$ac_cxx_werror_flag"
24176                          || test ! -s conftest.err'
24177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178   (eval $ac_try) 2>&5
24179   ac_status=$?
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); }; } &&
24182          { ac_try='test -s conftest$ac_exeext'
24183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184   (eval $ac_try) 2>&5
24185   ac_status=$?
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); }; }; then
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_LIBXMLTOOLING 1
24191 _ACEOF
24192
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197 { { echo "$as_me:$LINENO: error: unable to link with xmltooling library" >&5
24198 echo "$as_me: error: unable to link with xmltooling library" >&2;}
24199    { (exit 1); exit 1; }; }
24200
24201 fi
24202 rm -f conftest.err conftest.$ac_objext \
24203       conftest$ac_exeext conftest.$ac_ext
24204
24205 # Check for unit test support
24206 CXXTEST="/usr/bin/cxxtestgen.pl"
24207 CXXTESTFLAGS=""
24208
24209 # Check whether --with-cxxtest or --without-cxxtest was given.
24210 if test "${with_cxxtest+set}" = set; then
24211   withval="$with_cxxtest"
24212   if test x_$with_cxxtest != x_/usr; then
24213                 CXXTEST="${with_cxxtest}/cxxtestgen.pl"
24214                 CXXTESTFLAGS="-I${with_cxxtest}"
24215             fi
24216 fi;
24217 if ! test -f "${CXXTEST}"; then
24218     { echo "$as_me:$LINENO: WARNING: cxxtestgen not found, won't build unit tests" >&5
24219 echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
24220 fi
24221
24222
24223
24224
24225
24226 if test -f ${CXXTEST}; then
24227   BUILD_UNITTEST_TRUE=
24228   BUILD_UNITTEST_FALSE='#'
24229 else
24230   BUILD_UNITTEST_TRUE='#'
24231   BUILD_UNITTEST_FALSE=
24232 fi
24233
24234
24235
24236 LIBTOOL="$LIBTOOL --silent"
24237
24238 # output makefiles
24239                                                             ac_config_files="$ac_config_files Makefile saml/Makefile samltest/Makefile samlsign/Makefile schemas/Makefile doc/Makefile"
24240 cat >confcache <<\_ACEOF
24241 # This file is a shell script that caches the results of configure
24242 # tests run on this system so they can be shared between configure
24243 # scripts and configure runs, see configure's option --config-cache.
24244 # It is not useful on other systems.  If it contains results you don't
24245 # want to keep, you may remove or edit it.
24246 #
24247 # config.status only pays attention to the cache file if you give it
24248 # the --recheck option to rerun configure.
24249 #
24250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24252 # following values.
24253
24254 _ACEOF
24255
24256 # The following way of writing the cache mishandles newlines in values,
24257 # but we know of no workaround that is simple, portable, and efficient.
24258 # So, don't put newlines in cache variables' values.
24259 # Ultrix sh set writes to stderr and can't be redirected directly,
24260 # and sets the high bit in the cache file unless we assign to the vars.
24261 {
24262   (set) 2>&1 |
24263     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24264     *ac_space=\ *)
24265       # `set' does not quote correctly, so add quotes (double-quote
24266       # substitution turns \\\\ into \\, and sed turns \\ into \).
24267       sed -n \
24268         "s/'/'\\\\''/g;
24269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24270       ;;
24271     *)
24272       # `set' quotes correctly as required by POSIX, so do not add quotes.
24273       sed -n \
24274         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24275       ;;
24276     esac;
24277 } |
24278   sed '
24279      t clear
24280      : clear
24281      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24282      t end
24283      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24284      : end' >>confcache
24285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24286   if test -w $cache_file; then
24287     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24288     cat confcache >$cache_file
24289   else
24290     echo "not updating unwritable cache $cache_file"
24291   fi
24292 fi
24293 rm -f confcache
24294
24295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24296 # Let make expand exec_prefix.
24297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24298
24299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24301 # trailing colons and then remove the whole line if VPATH becomes empty
24302 # (actually we leave an empty line to preserve line numbers).
24303 if test "x$srcdir" = x.; then
24304   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24305 s/:*\$(srcdir):*/:/;
24306 s/:*\${srcdir}:*/:/;
24307 s/:*@srcdir@:*/:/;
24308 s/^\([^=]*=[     ]*\):*/\1/;
24309 s/:*$//;
24310 s/^[^=]*=[       ]*$//;
24311 }'
24312 fi
24313
24314 DEFS=-DHAVE_CONFIG_H
24315
24316 ac_libobjs=
24317 ac_ltlibobjs=
24318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24319   # 1. Remove the extension, and $U if already installed.
24320   ac_i=`echo "$ac_i" |
24321          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24322   # 2. Add them.
24323   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24324   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24325 done
24326 LIBOBJS=$ac_libobjs
24327
24328 LTLIBOBJS=$ac_ltlibobjs
24329
24330
24331 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24332   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
24333 Usually this means the macro was only invoked conditionally." >&5
24334 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
24335 Usually this means the macro was only invoked conditionally." >&2;}
24336    { (exit 1); exit 1; }; }
24337 fi
24338 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24339   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
24340 Usually this means the macro was only invoked conditionally." >&5
24341 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
24342 Usually this means the macro was only invoked conditionally." >&2;}
24343    { (exit 1); exit 1; }; }
24344 fi
24345 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24346   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
24347 Usually this means the macro was only invoked conditionally." >&5
24348 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
24349 Usually this means the macro was only invoked conditionally." >&2;}
24350    { (exit 1); exit 1; }; }
24351 fi
24352 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24353   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
24354 Usually this means the macro was only invoked conditionally." >&5
24355 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
24356 Usually this means the macro was only invoked conditionally." >&2;}
24357    { (exit 1); exit 1; }; }
24358 fi
24359 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24360   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
24361 Usually this means the macro was only invoked conditionally." >&5
24362 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
24363 Usually this means the macro was only invoked conditionally." >&2;}
24364    { (exit 1); exit 1; }; }
24365 fi
24366 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24367   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
24368 Usually this means the macro was only invoked conditionally." >&5
24369 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
24370 Usually this means the macro was only invoked conditionally." >&2;}
24371    { (exit 1); exit 1; }; }
24372 fi
24373 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24374   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
24375 Usually this means the macro was only invoked conditionally." >&5
24376 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
24377 Usually this means the macro was only invoked conditionally." >&2;}
24378    { (exit 1); exit 1; }; }
24379 fi
24380 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24381   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
24382 Usually this means the macro was only invoked conditionally." >&5
24383 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
24384 Usually this means the macro was only invoked conditionally." >&2;}
24385    { (exit 1); exit 1; }; }
24386 fi
24387 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24388   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
24389 Usually this means the macro was only invoked conditionally." >&5
24390 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
24391 Usually this means the macro was only invoked conditionally." >&2;}
24392    { (exit 1); exit 1; }; }
24393 fi
24394 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24395   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
24396 Usually this means the macro was only invoked conditionally." >&5
24397 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
24398 Usually this means the macro was only invoked conditionally." >&2;}
24399    { (exit 1); exit 1; }; }
24400 fi
24401 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24402   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
24403 Usually this means the macro was only invoked conditionally." >&5
24404 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
24405 Usually this means the macro was only invoked conditionally." >&2;}
24406    { (exit 1); exit 1; }; }
24407 fi
24408 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24409   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
24410 Usually this means the macro was only invoked conditionally." >&5
24411 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
24412 Usually this means the macro was only invoked conditionally." >&2;}
24413    { (exit 1); exit 1; }; }
24414 fi
24415 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
24416   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
24417 Usually this means the macro was only invoked conditionally." >&5
24418 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
24419 Usually this means the macro was only invoked conditionally." >&2;}
24420    { (exit 1); exit 1; }; }
24421 fi
24422 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
24423   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
24424 Usually this means the macro was only invoked conditionally." >&5
24425 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
24426 Usually this means the macro was only invoked conditionally." >&2;}
24427    { (exit 1); exit 1; }; }
24428 fi
24429 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
24430   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
24431 Usually this means the macro was only invoked conditionally." >&5
24432 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
24433 Usually this means the macro was only invoked conditionally." >&2;}
24434    { (exit 1); exit 1; }; }
24435 fi
24436 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
24437   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
24438 Usually this means the macro was only invoked conditionally." >&5
24439 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
24440 Usually this means the macro was only invoked conditionally." >&2;}
24441    { (exit 1); exit 1; }; }
24442 fi
24443 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
24444   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
24445 Usually this means the macro was only invoked conditionally." >&5
24446 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
24447 Usually this means the macro was only invoked conditionally." >&2;}
24448    { (exit 1); exit 1; }; }
24449 fi
24450 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
24451   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
24452 Usually this means the macro was only invoked conditionally." >&5
24453 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
24454 Usually this means the macro was only invoked conditionally." >&2;}
24455    { (exit 1); exit 1; }; }
24456 fi
24457 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
24458   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
24459 Usually this means the macro was only invoked conditionally." >&5
24460 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
24461 Usually this means the macro was only invoked conditionally." >&2;}
24462    { (exit 1); exit 1; }; }
24463 fi
24464 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
24465   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
24466 Usually this means the macro was only invoked conditionally." >&5
24467 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
24468 Usually this means the macro was only invoked conditionally." >&2;}
24469    { (exit 1); exit 1; }; }
24470 fi
24471 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
24472   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
24473 Usually this means the macro was only invoked conditionally." >&5
24474 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
24475 Usually this means the macro was only invoked conditionally." >&2;}
24476    { (exit 1); exit 1; }; }
24477 fi
24478 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
24479   { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
24480 Usually this means the macro was only invoked conditionally." >&5
24481 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
24482 Usually this means the macro was only invoked conditionally." >&2;}
24483    { (exit 1); exit 1; }; }
24484 fi
24485 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24486   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24487 Usually this means the macro was only invoked conditionally." >&5
24488 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24489 Usually this means the macro was only invoked conditionally." >&2;}
24490    { (exit 1); exit 1; }; }
24491 fi
24492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24493   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24494 Usually this means the macro was only invoked conditionally." >&5
24495 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24496 Usually this means the macro was only invoked conditionally." >&2;}
24497    { (exit 1); exit 1; }; }
24498 fi
24499 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24500   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24501 Usually this means the macro was only invoked conditionally." >&5
24502 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24503 Usually this means the macro was only invoked conditionally." >&2;}
24504    { (exit 1); exit 1; }; }
24505 fi
24506 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
24507   { { echo "$as_me:$LINENO: error: conditional \"BUILD_UNITTEST\" was never defined.
24508 Usually this means the macro was only invoked conditionally." >&5
24509 echo "$as_me: error: conditional \"BUILD_UNITTEST\" was never defined.
24510 Usually this means the macro was only invoked conditionally." >&2;}
24511    { (exit 1); exit 1; }; }
24512 fi
24513
24514 : ${CONFIG_STATUS=./config.status}
24515 ac_clean_files_save=$ac_clean_files
24516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24517 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24518 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24519 cat >$CONFIG_STATUS <<_ACEOF
24520 #! $SHELL
24521 # Generated by $as_me.
24522 # Run this file to recreate the current configuration.
24523 # Compiler output produced by configure, useful for debugging
24524 # configure, is in config.log if it exists.
24525
24526 debug=false
24527 ac_cs_recheck=false
24528 ac_cs_silent=false
24529 SHELL=\${CONFIG_SHELL-$SHELL}
24530 _ACEOF
24531
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24533 ## --------------------- ##
24534 ## M4sh Initialization.  ##
24535 ## --------------------- ##
24536
24537 # Be Bourne compatible
24538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24539   emulate sh
24540   NULLCMD=:
24541   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24542   # is contrary to our usage.  Disable this feature.
24543   alias -g '${1+"$@"}'='"$@"'
24544 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24545   set -o posix
24546 fi
24547 DUALCASE=1; export DUALCASE # for MKS sh
24548
24549 # Support unset when possible.
24550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24551   as_unset=unset
24552 else
24553   as_unset=false
24554 fi
24555
24556
24557 # Work around bugs in pre-3.0 UWIN ksh.
24558 $as_unset ENV MAIL MAILPATH
24559 PS1='$ '
24560 PS2='> '
24561 PS4='+ '
24562
24563 # NLS nuisances.
24564 for as_var in \
24565   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24566   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24567   LC_TELEPHONE LC_TIME
24568 do
24569   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24570     eval $as_var=C; export $as_var
24571   else
24572     $as_unset $as_var
24573   fi
24574 done
24575
24576 # Required to use basename.
24577 if expr a : '\(a\)' >/dev/null 2>&1; then
24578   as_expr=expr
24579 else
24580   as_expr=false
24581 fi
24582
24583 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24584   as_basename=basename
24585 else
24586   as_basename=false
24587 fi
24588
24589
24590 # Name of the executable.
24591 as_me=`$as_basename "$0" ||
24592 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24593          X"$0" : 'X\(//\)$' \| \
24594          X"$0" : 'X\(/\)$' \| \
24595          .     : '\(.\)' 2>/dev/null ||
24596 echo X/"$0" |
24597     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24598           /^X\/\(\/\/\)$/{ s//\1/; q; }
24599           /^X\/\(\/\).*/{ s//\1/; q; }
24600           s/.*/./; q'`
24601
24602
24603 # PATH needs CR, and LINENO needs CR and PATH.
24604 # Avoid depending upon Character Ranges.
24605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24608 as_cr_digits='0123456789'
24609 as_cr_alnum=$as_cr_Letters$as_cr_digits
24610
24611 # The user is always right.
24612 if test "${PATH_SEPARATOR+set}" != set; then
24613   echo "#! /bin/sh" >conf$$.sh
24614   echo  "exit 0"   >>conf$$.sh
24615   chmod +x conf$$.sh
24616   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24617     PATH_SEPARATOR=';'
24618   else
24619     PATH_SEPARATOR=:
24620   fi
24621   rm -f conf$$.sh
24622 fi
24623
24624
24625   as_lineno_1=$LINENO
24626   as_lineno_2=$LINENO
24627   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24628   test "x$as_lineno_1" != "x$as_lineno_2" &&
24629   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24630   # Find who we are.  Look in the path if we contain no path at all
24631   # relative or not.
24632   case $0 in
24633     *[\\/]* ) as_myself=$0 ;;
24634     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24635 for as_dir in $PATH
24636 do
24637   IFS=$as_save_IFS
24638   test -z "$as_dir" && as_dir=.
24639   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24640 done
24641
24642        ;;
24643   esac
24644   # We did not find ourselves, most probably we were run as `sh COMMAND'
24645   # in which case we are not to be found in the path.
24646   if test "x$as_myself" = x; then
24647     as_myself=$0
24648   fi
24649   if test ! -f "$as_myself"; then
24650     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24651 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24652    { (exit 1); exit 1; }; }
24653   fi
24654   case $CONFIG_SHELL in
24655   '')
24656     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24657 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24658 do
24659   IFS=$as_save_IFS
24660   test -z "$as_dir" && as_dir=.
24661   for as_base in sh bash ksh sh5; do
24662          case $as_dir in
24663          /*)
24664            if ("$as_dir/$as_base" -c '
24665   as_lineno_1=$LINENO
24666   as_lineno_2=$LINENO
24667   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24668   test "x$as_lineno_1" != "x$as_lineno_2" &&
24669   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24670              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24671              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24672              CONFIG_SHELL=$as_dir/$as_base
24673              export CONFIG_SHELL
24674              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24675            fi;;
24676          esac
24677        done
24678 done
24679 ;;
24680   esac
24681
24682   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24683   # uniformly replaced by the line number.  The first 'sed' inserts a
24684   # line-number line before each line; the second 'sed' does the real
24685   # work.  The second script uses 'N' to pair each line-number line
24686   # with the numbered line, and appends trailing '-' during
24687   # substitution so that $LINENO is not a special case at line end.
24688   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24689   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24690   sed '=' <$as_myself |
24691     sed '
24692       N
24693       s,$,-,
24694       : loop
24695       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24696       t loop
24697       s,-$,,
24698       s,^['$as_cr_digits']*\n,,
24699     ' >$as_me.lineno &&
24700   chmod +x $as_me.lineno ||
24701     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24702 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24703    { (exit 1); exit 1; }; }
24704
24705   # Don't try to exec as it changes $[0], causing all sort of problems
24706   # (the dirname of $[0] is not the place where we might find the
24707   # original and so on.  Autoconf is especially sensible to this).
24708   . ./$as_me.lineno
24709   # Exit status is that of the last command.
24710   exit
24711 }
24712
24713
24714 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24715   *c*,-n*) ECHO_N= ECHO_C='
24716 ' ECHO_T='      ' ;;
24717   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24718   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24719 esac
24720
24721 if expr a : '\(a\)' >/dev/null 2>&1; then
24722   as_expr=expr
24723 else
24724   as_expr=false
24725 fi
24726
24727 rm -f conf$$ conf$$.exe conf$$.file
24728 echo >conf$$.file
24729 if ln -s conf$$.file conf$$ 2>/dev/null; then
24730   # We could just check for DJGPP; but this test a) works b) is more generic
24731   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24732   if test -f conf$$.exe; then
24733     # Don't use ln at all; we don't have any links
24734     as_ln_s='cp -p'
24735   else
24736     as_ln_s='ln -s'
24737   fi
24738 elif ln conf$$.file conf$$ 2>/dev/null; then
24739   as_ln_s=ln
24740 else
24741   as_ln_s='cp -p'
24742 fi
24743 rm -f conf$$ conf$$.exe conf$$.file
24744
24745 if mkdir -p . 2>/dev/null; then
24746   as_mkdir_p=:
24747 else
24748   test -d ./-p && rmdir ./-p
24749   as_mkdir_p=false
24750 fi
24751
24752 as_executable_p="test -f"
24753
24754 # Sed expression to map a string onto a valid CPP name.
24755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24756
24757 # Sed expression to map a string onto a valid variable name.
24758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24759
24760
24761 # IFS
24762 # We need space, tab and new line, in precisely that order.
24763 as_nl='
24764 '
24765 IFS="   $as_nl"
24766
24767 # CDPATH.
24768 $as_unset CDPATH
24769
24770 exec 6>&1
24771
24772 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24773 # report actual input values of CONFIG_FILES etc. instead of their
24774 # values after options handling.  Logging --version etc. is OK.
24775 exec 5>>config.log
24776 {
24777   echo
24778   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24779 ## Running $as_me. ##
24780 _ASBOX
24781 } >&5
24782 cat >&5 <<_CSEOF
24783
24784 This file was extended by opensaml $as_me 2.1, which was
24785 generated by GNU Autoconf 2.59.  Invocation command line was
24786
24787   CONFIG_FILES    = $CONFIG_FILES
24788   CONFIG_HEADERS  = $CONFIG_HEADERS
24789   CONFIG_LINKS    = $CONFIG_LINKS
24790   CONFIG_COMMANDS = $CONFIG_COMMANDS
24791   $ $0 $@
24792
24793 _CSEOF
24794 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24795 echo >&5
24796 _ACEOF
24797
24798 # Files that config.status was made for.
24799 if test -n "$ac_config_files"; then
24800   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24801 fi
24802
24803 if test -n "$ac_config_headers"; then
24804   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24805 fi
24806
24807 if test -n "$ac_config_links"; then
24808   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24809 fi
24810
24811 if test -n "$ac_config_commands"; then
24812   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24813 fi
24814
24815 cat >>$CONFIG_STATUS <<\_ACEOF
24816
24817 ac_cs_usage="\
24818 \`$as_me' instantiates files from templates according to the
24819 current configuration.
24820
24821 Usage: $0 [OPTIONS] [FILE]...
24822
24823   -h, --help       print this help, then exit
24824   -V, --version    print version number, then exit
24825   -q, --quiet      do not print progress messages
24826   -d, --debug      don't remove temporary files
24827       --recheck    update $as_me by reconfiguring in the same conditions
24828   --file=FILE[:TEMPLATE]
24829                    instantiate the configuration file FILE
24830   --header=FILE[:TEMPLATE]
24831                    instantiate the configuration header FILE
24832
24833 Configuration files:
24834 $config_files
24835
24836 Configuration headers:
24837 $config_headers
24838
24839 Configuration commands:
24840 $config_commands
24841
24842 Report bugs to <bug-autoconf@gnu.org>."
24843 _ACEOF
24844
24845 cat >>$CONFIG_STATUS <<_ACEOF
24846 ac_cs_version="\\
24847 opensaml config.status 2.1
24848 configured by $0, generated by GNU Autoconf 2.59,
24849   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24850
24851 Copyright (C) 2003 Free Software Foundation, Inc.
24852 This config.status script is free software; the Free Software Foundation
24853 gives unlimited permission to copy, distribute and modify it."
24854 srcdir=$srcdir
24855 INSTALL="$INSTALL"
24856 _ACEOF
24857
24858 cat >>$CONFIG_STATUS <<\_ACEOF
24859 # If no file are specified by the user, then we need to provide default
24860 # value.  By we need to know if files were specified by the user.
24861 ac_need_defaults=:
24862 while test $# != 0
24863 do
24864   case $1 in
24865   --*=*)
24866     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24867     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24868     ac_shift=:
24869     ;;
24870   -*)
24871     ac_option=$1
24872     ac_optarg=$2
24873     ac_shift=shift
24874     ;;
24875   *) # This is not an option, so the user has probably given explicit
24876      # arguments.
24877      ac_option=$1
24878      ac_need_defaults=false;;
24879   esac
24880
24881   case $ac_option in
24882   # Handling of the options.
24883 _ACEOF
24884 cat >>$CONFIG_STATUS <<\_ACEOF
24885   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24886     ac_cs_recheck=: ;;
24887   --version | --vers* | -V )
24888     echo "$ac_cs_version"; exit 0 ;;
24889   --he | --h)
24890     # Conflict between --help and --header
24891     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24892 Try \`$0 --help' for more information." >&5
24893 echo "$as_me: error: ambiguous option: $1
24894 Try \`$0 --help' for more information." >&2;}
24895    { (exit 1); exit 1; }; };;
24896   --help | --hel | -h )
24897     echo "$ac_cs_usage"; exit 0 ;;
24898   --debug | --d* | -d )
24899     debug=: ;;
24900   --file | --fil | --fi | --f )
24901     $ac_shift
24902     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24903     ac_need_defaults=false;;
24904   --header | --heade | --head | --hea )
24905     $ac_shift
24906     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24907     ac_need_defaults=false;;
24908   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24909   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24910     ac_cs_silent=: ;;
24911
24912   # This is an error.
24913   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24914 Try \`$0 --help' for more information." >&5
24915 echo "$as_me: error: unrecognized option: $1
24916 Try \`$0 --help' for more information." >&2;}
24917    { (exit 1); exit 1; }; } ;;
24918
24919   *) ac_config_targets="$ac_config_targets $1" ;;
24920
24921   esac
24922   shift
24923 done
24924
24925 ac_configure_extra_args=
24926
24927 if $ac_cs_silent; then
24928   exec 6>/dev/null
24929   ac_configure_extra_args="$ac_configure_extra_args --silent"
24930 fi
24931
24932 _ACEOF
24933 cat >>$CONFIG_STATUS <<_ACEOF
24934 if \$ac_cs_recheck; then
24935   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24936   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24937 fi
24938
24939 _ACEOF
24940
24941 cat >>$CONFIG_STATUS <<_ACEOF
24942 #
24943 # INIT-COMMANDS section.
24944 #
24945
24946 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24947
24948 _ACEOF
24949
24950
24951
24952 cat >>$CONFIG_STATUS <<\_ACEOF
24953 for ac_config_target in $ac_config_targets
24954 do
24955   case "$ac_config_target" in
24956   # Handling of arguments.
24957   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24958   "saml/Makefile" ) CONFIG_FILES="$CONFIG_FILES saml/Makefile" ;;
24959   "samltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samltest/Makefile" ;;
24960   "samlsign/Makefile" ) CONFIG_FILES="$CONFIG_FILES samlsign/Makefile" ;;
24961   "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
24962   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24963   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24964   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24965   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24967    { (exit 1); exit 1; }; };;
24968   esac
24969 done
24970
24971 # If the user did not use the arguments to specify the items to instantiate,
24972 # then the envvar interface is used.  Set only those that are not.
24973 # We use the long form for the default assignment because of an extremely
24974 # bizarre bug on SunOS 4.1.3.
24975 if $ac_need_defaults; then
24976   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24977   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24978   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24979 fi
24980
24981 # Have a temporary directory for convenience.  Make it in the build tree
24982 # simply because there is no reason to put it here, and in addition,
24983 # creating and moving files from /tmp can sometimes cause problems.
24984 # Create a temporary directory, and hook for its removal unless debugging.
24985 $debug ||
24986 {
24987   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24988   trap '{ (exit 1); exit 1; }' 1 2 13 15
24989 }
24990
24991 # Create a (secure) tmp directory for tmp files.
24992
24993 {
24994   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24995   test -n "$tmp" && test -d "$tmp"
24996 }  ||
24997 {
24998   tmp=./confstat$$-$RANDOM
24999   (umask 077 && mkdir $tmp)
25000 } ||
25001 {
25002    echo "$me: cannot create a temporary directory in ." >&2
25003    { (exit 1); exit 1; }
25004 }
25005
25006 _ACEOF
25007
25008 cat >>$CONFIG_STATUS <<_ACEOF
25009
25010 #
25011 # CONFIG_FILES section.
25012 #
25013
25014 # No need to generate the scripts if there are no CONFIG_FILES.
25015 # This happens for instance when ./config.status config.h
25016 if test -n "\$CONFIG_FILES"; then
25017   # Protect against being on the right side of a sed subst in config.status.
25018   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25019    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25020 s,@SHELL@,$SHELL,;t t
25021 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25022 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25023 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25024 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25025 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25026 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25027 s,@exec_prefix@,$exec_prefix,;t t
25028 s,@prefix@,$prefix,;t t
25029 s,@program_transform_name@,$program_transform_name,;t t
25030 s,@bindir@,$bindir,;t t
25031 s,@sbindir@,$sbindir,;t t
25032 s,@libexecdir@,$libexecdir,;t t
25033 s,@datadir@,$datadir,;t t
25034 s,@sysconfdir@,$sysconfdir,;t t
25035 s,@sharedstatedir@,$sharedstatedir,;t t
25036 s,@localstatedir@,$localstatedir,;t t
25037 s,@libdir@,$libdir,;t t
25038 s,@includedir@,$includedir,;t t
25039 s,@oldincludedir@,$oldincludedir,;t t
25040 s,@infodir@,$infodir,;t t
25041 s,@mandir@,$mandir,;t t
25042 s,@build_alias@,$build_alias,;t t
25043 s,@host_alias@,$host_alias,;t t
25044 s,@target_alias@,$target_alias,;t t
25045 s,@DEFS@,$DEFS,;t t
25046 s,@ECHO_C@,$ECHO_C,;t t
25047 s,@ECHO_N@,$ECHO_N,;t t
25048 s,@ECHO_T@,$ECHO_T,;t t
25049 s,@LIBS@,$LIBS,;t t
25050 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25051 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25052 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25053 s,@CYGPATH_W@,$CYGPATH_W,;t t
25054 s,@PACKAGE@,$PACKAGE,;t t
25055 s,@VERSION@,$VERSION,;t t
25056 s,@ACLOCAL@,$ACLOCAL,;t t
25057 s,@AUTOCONF@,$AUTOCONF,;t t
25058 s,@AUTOMAKE@,$AUTOMAKE,;t t
25059 s,@AUTOHEADER@,$AUTOHEADER,;t t
25060 s,@MAKEINFO@,$MAKEINFO,;t t
25061 s,@install_sh@,$install_sh,;t t
25062 s,@STRIP@,$STRIP,;t t
25063 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25064 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25065 s,@mkdir_p@,$mkdir_p,;t t
25066 s,@AWK@,$AWK,;t t
25067 s,@SET_MAKE@,$SET_MAKE,;t t
25068 s,@am__leading_dot@,$am__leading_dot,;t t
25069 s,@AMTAR@,$AMTAR,;t t
25070 s,@am__tar@,$am__tar,;t t
25071 s,@am__untar@,$am__untar,;t t
25072 s,@DX_PROJECT@,$DX_PROJECT,;t t
25073 s,@DX_CONFIG@,$DX_CONFIG,;t t
25074 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
25075 s,@DX_ENV@,$DX_ENV,;t t
25076 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
25077 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
25078 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
25079 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25080 s,@DX_PERL@,$DX_PERL,;t t
25081 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
25082 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25083 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
25084 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
25085 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
25086 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25087 s,@DX_DOT@,$DX_DOT,;t t
25088 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
25089 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25090 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
25091 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
25092 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
25093 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25094 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
25095 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
25096 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
25097 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25098 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
25099 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
25100 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
25101 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25102 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
25103 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
25104 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
25105 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25106 s,@DX_HHC@,$DX_HHC,;t t
25107 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
25108 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25109 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
25110 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
25111 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
25112 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25113 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
25114 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
25115 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
25116 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25117 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25118 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
25119 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
25120 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
25121 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25122 s,@DX_LATEX@,$DX_LATEX,;t t
25123 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
25124 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25125 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
25126 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
25127 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25128 s,@DX_DVIPS@,$DX_DVIPS,;t t
25129 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
25130 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25131 s,@DX_EGREP@,$DX_EGREP,;t t
25132 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
25133 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25134 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
25135 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
25136 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25137 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25138 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
25139 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
25140 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25141 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25142 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25143 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
25144 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
25145 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
25146 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
25147 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
25148 s,@CC@,$CC,;t t
25149 s,@CFLAGS@,$CFLAGS,;t t
25150 s,@LDFLAGS@,$LDFLAGS,;t t
25151 s,@CPPFLAGS@,$CPPFLAGS,;t t
25152 s,@ac_ct_CC@,$ac_ct_CC,;t t
25153 s,@EXEEXT@,$EXEEXT,;t t
25154 s,@OBJEXT@,$OBJEXT,;t t
25155 s,@DEPDIR@,$DEPDIR,;t t
25156 s,@am__include@,$am__include,;t t
25157 s,@am__quote@,$am__quote,;t t
25158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25161 s,@CCDEPMODE@,$CCDEPMODE,;t t
25162 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25163 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25164 s,@CXX@,$CXX,;t t
25165 s,@CXXFLAGS@,$CXXFLAGS,;t t
25166 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25167 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25168 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25169 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25170 s,@build@,$build,;t t
25171 s,@build_cpu@,$build_cpu,;t t
25172 s,@build_vendor@,$build_vendor,;t t
25173 s,@build_os@,$build_os,;t t
25174 s,@host@,$host,;t t
25175 s,@host_cpu@,$host_cpu,;t t
25176 s,@host_vendor@,$host_vendor,;t t
25177 s,@host_os@,$host_os,;t t
25178 s,@EGREP@,$EGREP,;t t
25179 s,@LN_S@,$LN_S,;t t
25180 s,@ECHO@,$ECHO,;t t
25181 s,@AR@,$AR,;t t
25182 s,@ac_ct_AR@,$ac_ct_AR,;t t
25183 s,@RANLIB@,$RANLIB,;t t
25184 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25185 s,@CPP@,$CPP,;t t
25186 s,@CXXCPP@,$CXXCPP,;t t
25187 s,@F77@,$F77,;t t
25188 s,@FFLAGS@,$FFLAGS,;t t
25189 s,@ac_ct_F77@,$ac_ct_F77,;t t
25190 s,@LIBTOOL@,$LIBTOOL,;t t
25191 s,@acx_pthread_config@,$acx_pthread_config,;t t
25192 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25193 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25194 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25195 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25196 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
25197 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
25198 s,@CXXTEST@,$CXXTEST,;t t
25199 s,@CXXTESTFLAGS@,$CXXTESTFLAGS,;t t
25200 s,@BUILD_UNITTEST_TRUE@,$BUILD_UNITTEST_TRUE,;t t
25201 s,@BUILD_UNITTEST_FALSE@,$BUILD_UNITTEST_FALSE,;t t
25202 s,@DX_INCLUDE@,$DX_INCLUDE,;t t
25203 s,@LIBOBJS@,$LIBOBJS,;t t
25204 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25205 CEOF
25206
25207 _ACEOF
25208
25209   cat >>$CONFIG_STATUS <<\_ACEOF
25210   # Split the substitutions into bite-sized pieces for seds with
25211   # small command number limits, like on Digital OSF/1 and HP-UX.
25212   ac_max_sed_lines=48
25213   ac_sed_frag=1 # Number of current file.
25214   ac_beg=1 # First line for current file.
25215   ac_end=$ac_max_sed_lines # Line after last line for current file.
25216   ac_more_lines=:
25217   ac_sed_cmds=
25218   while $ac_more_lines; do
25219     if test $ac_beg -gt 1; then
25220       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25221     else
25222       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25223     fi
25224     if test ! -s $tmp/subs.frag; then
25225       ac_more_lines=false
25226     else
25227       # The purpose of the label and of the branching condition is to
25228       # speed up the sed processing (if there are no `@' at all, there
25229       # is no need to browse any of the substitutions).
25230       # These are the two extra sed commands mentioned above.
25231       (echo ':t
25232   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25233       if test -z "$ac_sed_cmds"; then
25234         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25235       else
25236         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25237       fi
25238       ac_sed_frag=`expr $ac_sed_frag + 1`
25239       ac_beg=$ac_end
25240       ac_end=`expr $ac_end + $ac_max_sed_lines`
25241     fi
25242   done
25243   if test -z "$ac_sed_cmds"; then
25244     ac_sed_cmds=cat
25245   fi
25246 fi # test -n "$CONFIG_FILES"
25247
25248 _ACEOF
25249 cat >>$CONFIG_STATUS <<\_ACEOF
25250 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25251   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25252   case $ac_file in
25253   - | *:- | *:-:* ) # input from stdin
25254         cat >$tmp/stdin
25255         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25256         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25257   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25258         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25259   * )   ac_file_in=$ac_file.in ;;
25260   esac
25261
25262   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25263   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25265          X"$ac_file" : 'X\(//\)[^/]' \| \
25266          X"$ac_file" : 'X\(//\)$' \| \
25267          X"$ac_file" : 'X\(/\)' \| \
25268          .     : '\(.\)' 2>/dev/null ||
25269 echo X"$ac_file" |
25270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25271           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25272           /^X\(\/\/\)$/{ s//\1/; q; }
25273           /^X\(\/\).*/{ s//\1/; q; }
25274           s/.*/./; q'`
25275   { if $as_mkdir_p; then
25276     mkdir -p "$ac_dir"
25277   else
25278     as_dir="$ac_dir"
25279     as_dirs=
25280     while test ! -d "$as_dir"; do
25281       as_dirs="$as_dir $as_dirs"
25282       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25284          X"$as_dir" : 'X\(//\)[^/]' \| \
25285          X"$as_dir" : 'X\(//\)$' \| \
25286          X"$as_dir" : 'X\(/\)' \| \
25287          .     : '\(.\)' 2>/dev/null ||
25288 echo X"$as_dir" |
25289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25290           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25291           /^X\(\/\/\)$/{ s//\1/; q; }
25292           /^X\(\/\).*/{ s//\1/; q; }
25293           s/.*/./; q'`
25294     done
25295     test ! -n "$as_dirs" || mkdir $as_dirs
25296   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25297 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25298    { (exit 1); exit 1; }; }; }
25299
25300   ac_builddir=.
25301
25302 if test "$ac_dir" != .; then
25303   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25304   # A "../" for each directory in $ac_dir_suffix.
25305   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25306 else
25307   ac_dir_suffix= ac_top_builddir=
25308 fi
25309
25310 case $srcdir in
25311   .)  # No --srcdir option.  We are building in place.
25312     ac_srcdir=.
25313     if test -z "$ac_top_builddir"; then
25314        ac_top_srcdir=.
25315     else
25316        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25317     fi ;;
25318   [\\/]* | ?:[\\/]* )  # Absolute path.
25319     ac_srcdir=$srcdir$ac_dir_suffix;
25320     ac_top_srcdir=$srcdir ;;
25321   *) # Relative path.
25322     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25323     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25324 esac
25325
25326 # Do not use `cd foo && pwd` to compute absolute paths, because
25327 # the directories may not exist.
25328 case `pwd` in
25329 .) ac_abs_builddir="$ac_dir";;
25330 *)
25331   case "$ac_dir" in
25332   .) ac_abs_builddir=`pwd`;;
25333   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25334   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25335   esac;;
25336 esac
25337 case $ac_abs_builddir in
25338 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25339 *)
25340   case ${ac_top_builddir}. in
25341   .) ac_abs_top_builddir=$ac_abs_builddir;;
25342   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25343   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25344   esac;;
25345 esac
25346 case $ac_abs_builddir in
25347 .) ac_abs_srcdir=$ac_srcdir;;
25348 *)
25349   case $ac_srcdir in
25350   .) ac_abs_srcdir=$ac_abs_builddir;;
25351   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25352   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25353   esac;;
25354 esac
25355 case $ac_abs_builddir in
25356 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25357 *)
25358   case $ac_top_srcdir in
25359   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25360   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25361   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25362   esac;;
25363 esac
25364
25365
25366   case $INSTALL in
25367   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25368   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25369   esac
25370
25371   if test x"$ac_file" != x-; then
25372     { echo "$as_me:$LINENO: creating $ac_file" >&5
25373 echo "$as_me: creating $ac_file" >&6;}
25374     rm -f "$ac_file"
25375   fi
25376   # Let's still pretend it is `configure' which instantiates (i.e., don't
25377   # use $as_me), people would be surprised to read:
25378   #    /* config.h.  Generated by config.status.  */
25379   if test x"$ac_file" = x-; then
25380     configure_input=
25381   else
25382     configure_input="$ac_file.  "
25383   fi
25384   configure_input=$configure_input"Generated from `echo $ac_file_in |
25385                                      sed 's,.*/,,'` by configure."
25386
25387   # First look for the input files in the build tree, otherwise in the
25388   # src tree.
25389   ac_file_inputs=`IFS=:
25390     for f in $ac_file_in; do
25391       case $f in
25392       -) echo $tmp/stdin ;;
25393       [\\/$]*)
25394          # Absolute (can't be DOS-style, as IFS=:)
25395          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25396 echo "$as_me: error: cannot find input file: $f" >&2;}
25397    { (exit 1); exit 1; }; }
25398          echo "$f";;
25399       *) # Relative
25400          if test -f "$f"; then
25401            # Build tree
25402            echo "$f"
25403          elif test -f "$srcdir/$f"; then
25404            # Source tree
25405            echo "$srcdir/$f"
25406          else
25407            # /dev/null tree
25408            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25409 echo "$as_me: error: cannot find input file: $f" >&2;}
25410    { (exit 1); exit 1; }; }
25411          fi;;
25412       esac
25413     done` || { (exit 1); exit 1; }
25414 _ACEOF
25415 cat >>$CONFIG_STATUS <<_ACEOF
25416   sed "$ac_vpsub
25417 $extrasub
25418 _ACEOF
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25420 :t
25421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25422 s,@configure_input@,$configure_input,;t t
25423 s,@srcdir@,$ac_srcdir,;t t
25424 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25425 s,@top_srcdir@,$ac_top_srcdir,;t t
25426 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25427 s,@builddir@,$ac_builddir,;t t
25428 s,@abs_builddir@,$ac_abs_builddir,;t t
25429 s,@top_builddir@,$ac_top_builddir,;t t
25430 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25431 s,@INSTALL@,$ac_INSTALL,;t t
25432 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25433   rm -f $tmp/stdin
25434   if test x"$ac_file" != x-; then
25435     mv $tmp/out $ac_file
25436   else
25437     cat $tmp/out
25438     rm -f $tmp/out
25439   fi
25440
25441 done
25442 _ACEOF
25443 cat >>$CONFIG_STATUS <<\_ACEOF
25444
25445 #
25446 # CONFIG_HEADER section.
25447 #
25448
25449 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25450 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25451 #
25452 # ac_d sets the value in "#define NAME VALUE" lines.
25453 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25454 ac_dB='[         ].*$,\1#\2'
25455 ac_dC=' '
25456 ac_dD=',;t'
25457 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25458 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25459 ac_uB='$,\1#\2define\3'
25460 ac_uC=' '
25461 ac_uD=',;t'
25462
25463 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25464   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25465   case $ac_file in
25466   - | *:- | *:-:* ) # input from stdin
25467         cat >$tmp/stdin
25468         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25469         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25470   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25471         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25472   * )   ac_file_in=$ac_file.in ;;
25473   esac
25474
25475   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25476 echo "$as_me: creating $ac_file" >&6;}
25477
25478   # First look for the input files in the build tree, otherwise in the
25479   # src tree.
25480   ac_file_inputs=`IFS=:
25481     for f in $ac_file_in; do
25482       case $f in
25483       -) echo $tmp/stdin ;;
25484       [\\/$]*)
25485          # Absolute (can't be DOS-style, as IFS=:)
25486          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25487 echo "$as_me: error: cannot find input file: $f" >&2;}
25488    { (exit 1); exit 1; }; }
25489          # Do quote $f, to prevent DOS paths from being IFS'd.
25490          echo "$f";;
25491       *) # Relative
25492          if test -f "$f"; then
25493            # Build tree
25494            echo "$f"
25495          elif test -f "$srcdir/$f"; then
25496            # Source tree
25497            echo "$srcdir/$f"
25498          else
25499            # /dev/null tree
25500            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25501 echo "$as_me: error: cannot find input file: $f" >&2;}
25502    { (exit 1); exit 1; }; }
25503          fi;;
25504       esac
25505     done` || { (exit 1); exit 1; }
25506   # Remove the trailing spaces.
25507   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25508
25509 _ACEOF
25510
25511 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25512 # `conftest.undefs', that substitutes the proper values into
25513 # config.h.in to produce config.h.  The first handles `#define'
25514 # templates, and the second `#undef' templates.
25515 # And first: Protect against being on the right side of a sed subst in
25516 # config.status.  Protect against being in an unquoted here document
25517 # in config.status.
25518 rm -f conftest.defines conftest.undefs
25519 # Using a here document instead of a string reduces the quoting nightmare.
25520 # Putting comments in sed scripts is not portable.
25521 #
25522 # `end' is used to avoid that the second main sed command (meant for
25523 # 0-ary CPP macros) applies to n-ary macro definitions.
25524 # See the Autoconf documentation for `clear'.
25525 cat >confdef2sed.sed <<\_ACEOF
25526 s/[\\&,]/\\&/g
25527 s,[\\$`],\\&,g
25528 t clear
25529 : clear
25530 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25531 t end
25532 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25533 : end
25534 _ACEOF
25535 # If some macros were called several times there might be several times
25536 # the same #defines, which is useless.  Nevertheless, we may not want to
25537 # sort them, since we want the *last* AC-DEFINE to be honored.
25538 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25539 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25540 rm -f confdef2sed.sed
25541
25542 # This sed command replaces #undef with comments.  This is necessary, for
25543 # example, in the case of _POSIX_SOURCE, which is predefined and required
25544 # on some systems where configure will not decide to define it.
25545 cat >>conftest.undefs <<\_ACEOF
25546 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25547 _ACEOF
25548
25549 # Break up conftest.defines because some shells have a limit on the size
25550 # of here documents, and old seds have small limits too (100 cmds).
25551 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25552 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25553 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25554 echo '  :' >>$CONFIG_STATUS
25555 rm -f conftest.tail
25556 while grep . conftest.defines >/dev/null
25557 do
25558   # Write a limited-size here document to $tmp/defines.sed.
25559   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25560   # Speed up: don't consider the non `#define' lines.
25561   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25562   # Work around the forget-to-reset-the-flag bug.
25563   echo 't clr' >>$CONFIG_STATUS
25564   echo ': clr' >>$CONFIG_STATUS
25565   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25566   echo 'CEOF
25567   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25568   rm -f $tmp/in
25569   mv $tmp/out $tmp/in
25570 ' >>$CONFIG_STATUS
25571   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25572   rm -f conftest.defines
25573   mv conftest.tail conftest.defines
25574 done
25575 rm -f conftest.defines
25576 echo '  fi # grep' >>$CONFIG_STATUS
25577 echo >>$CONFIG_STATUS
25578
25579 # Break up conftest.undefs because some shells have a limit on the size
25580 # of here documents, and old seds have small limits too (100 cmds).
25581 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25582 rm -f conftest.tail
25583 while grep . conftest.undefs >/dev/null
25584 do
25585   # Write a limited-size here document to $tmp/undefs.sed.
25586   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25587   # Speed up: don't consider the non `#undef'
25588   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25589   # Work around the forget-to-reset-the-flag bug.
25590   echo 't clr' >>$CONFIG_STATUS
25591   echo ': clr' >>$CONFIG_STATUS
25592   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25593   echo 'CEOF
25594   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25595   rm -f $tmp/in
25596   mv $tmp/out $tmp/in
25597 ' >>$CONFIG_STATUS
25598   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25599   rm -f conftest.undefs
25600   mv conftest.tail conftest.undefs
25601 done
25602 rm -f conftest.undefs
25603
25604 cat >>$CONFIG_STATUS <<\_ACEOF
25605   # Let's still pretend it is `configure' which instantiates (i.e., don't
25606   # use $as_me), people would be surprised to read:
25607   #    /* config.h.  Generated by config.status.  */
25608   if test x"$ac_file" = x-; then
25609     echo "/* Generated by configure.  */" >$tmp/config.h
25610   else
25611     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25612   fi
25613   cat $tmp/in >>$tmp/config.h
25614   rm -f $tmp/in
25615   if test x"$ac_file" != x-; then
25616     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25617       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25618 echo "$as_me: $ac_file is unchanged" >&6;}
25619     else
25620       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25622          X"$ac_file" : 'X\(//\)[^/]' \| \
25623          X"$ac_file" : 'X\(//\)$' \| \
25624          X"$ac_file" : 'X\(/\)' \| \
25625          .     : '\(.\)' 2>/dev/null ||
25626 echo X"$ac_file" |
25627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25629           /^X\(\/\/\)$/{ s//\1/; q; }
25630           /^X\(\/\).*/{ s//\1/; q; }
25631           s/.*/./; q'`
25632       { if $as_mkdir_p; then
25633     mkdir -p "$ac_dir"
25634   else
25635     as_dir="$ac_dir"
25636     as_dirs=
25637     while test ! -d "$as_dir"; do
25638       as_dirs="$as_dir $as_dirs"
25639       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25641          X"$as_dir" : 'X\(//\)[^/]' \| \
25642          X"$as_dir" : 'X\(//\)$' \| \
25643          X"$as_dir" : 'X\(/\)' \| \
25644          .     : '\(.\)' 2>/dev/null ||
25645 echo X"$as_dir" |
25646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25648           /^X\(\/\/\)$/{ s//\1/; q; }
25649           /^X\(\/\).*/{ s//\1/; q; }
25650           s/.*/./; q'`
25651     done
25652     test ! -n "$as_dirs" || mkdir $as_dirs
25653   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25655    { (exit 1); exit 1; }; }; }
25656
25657       rm -f $ac_file
25658       mv $tmp/config.h $ac_file
25659     fi
25660   else
25661     cat $tmp/config.h
25662     rm -f $tmp/config.h
25663   fi
25664 # Compute $ac_file's index in $config_headers.
25665 _am_stamp_count=1
25666 for _am_header in $config_headers :; do
25667   case $_am_header in
25668     $ac_file | $ac_file:* )
25669       break ;;
25670     * )
25671       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25672   esac
25673 done
25674 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25675 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25676          X$ac_file : 'X\(//\)[^/]' \| \
25677          X$ac_file : 'X\(//\)$' \| \
25678          X$ac_file : 'X\(/\)' \| \
25679          .     : '\(.\)' 2>/dev/null ||
25680 echo X$ac_file |
25681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25683           /^X\(\/\/\)$/{ s//\1/; q; }
25684           /^X\(\/\).*/{ s//\1/; q; }
25685           s/.*/./; q'`/stamp-h$_am_stamp_count
25686 done
25687 _ACEOF
25688 cat >>$CONFIG_STATUS <<\_ACEOF
25689
25690 #
25691 # CONFIG_COMMANDS section.
25692 #
25693 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25694   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25695   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25696   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25697 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25698          X"$ac_dest" : 'X\(//\)[^/]' \| \
25699          X"$ac_dest" : 'X\(//\)$' \| \
25700          X"$ac_dest" : 'X\(/\)' \| \
25701          .     : '\(.\)' 2>/dev/null ||
25702 echo X"$ac_dest" |
25703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25705           /^X\(\/\/\)$/{ s//\1/; q; }
25706           /^X\(\/\).*/{ s//\1/; q; }
25707           s/.*/./; q'`
25708   { if $as_mkdir_p; then
25709     mkdir -p "$ac_dir"
25710   else
25711     as_dir="$ac_dir"
25712     as_dirs=
25713     while test ! -d "$as_dir"; do
25714       as_dirs="$as_dir $as_dirs"
25715       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25717          X"$as_dir" : 'X\(//\)[^/]' \| \
25718          X"$as_dir" : 'X\(//\)$' \| \
25719          X"$as_dir" : 'X\(/\)' \| \
25720          .     : '\(.\)' 2>/dev/null ||
25721 echo X"$as_dir" |
25722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25723           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25724           /^X\(\/\/\)$/{ s//\1/; q; }
25725           /^X\(\/\).*/{ s//\1/; q; }
25726           s/.*/./; q'`
25727     done
25728     test ! -n "$as_dirs" || mkdir $as_dirs
25729   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25731    { (exit 1); exit 1; }; }; }
25732
25733   ac_builddir=.
25734
25735 if test "$ac_dir" != .; then
25736   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25737   # A "../" for each directory in $ac_dir_suffix.
25738   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25739 else
25740   ac_dir_suffix= ac_top_builddir=
25741 fi
25742
25743 case $srcdir in
25744   .)  # No --srcdir option.  We are building in place.
25745     ac_srcdir=.
25746     if test -z "$ac_top_builddir"; then
25747        ac_top_srcdir=.
25748     else
25749        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25750     fi ;;
25751   [\\/]* | ?:[\\/]* )  # Absolute path.
25752     ac_srcdir=$srcdir$ac_dir_suffix;
25753     ac_top_srcdir=$srcdir ;;
25754   *) # Relative path.
25755     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25756     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25757 esac
25758
25759 # Do not use `cd foo && pwd` to compute absolute paths, because
25760 # the directories may not exist.
25761 case `pwd` in
25762 .) ac_abs_builddir="$ac_dir";;
25763 *)
25764   case "$ac_dir" in
25765   .) ac_abs_builddir=`pwd`;;
25766   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25767   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25768   esac;;
25769 esac
25770 case $ac_abs_builddir in
25771 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25772 *)
25773   case ${ac_top_builddir}. in
25774   .) ac_abs_top_builddir=$ac_abs_builddir;;
25775   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25776   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25777   esac;;
25778 esac
25779 case $ac_abs_builddir in
25780 .) ac_abs_srcdir=$ac_srcdir;;
25781 *)
25782   case $ac_srcdir in
25783   .) ac_abs_srcdir=$ac_abs_builddir;;
25784   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25785   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25786   esac;;
25787 esac
25788 case $ac_abs_builddir in
25789 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25790 *)
25791   case $ac_top_srcdir in
25792   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25793   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25794   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25795   esac;;
25796 esac
25797
25798
25799   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25800 echo "$as_me: executing $ac_dest commands" >&6;}
25801   case $ac_dest in
25802     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25803   # Strip MF so we end up with the name of the file.
25804   mf=`echo "$mf" | sed -e 's/:.*$//'`
25805   # Check whether this is an Automake generated Makefile or not.
25806   # We used to match only the files named `Makefile.in', but
25807   # some people rename them; so instead we look at the file content.
25808   # Grep'ing the first line is not enough: some people post-process
25809   # each Makefile.in and add a new line on top of each file to say so.
25810   # So let's grep whole file.
25811   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25812     dirpart=`(dirname "$mf") 2>/dev/null ||
25813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25814          X"$mf" : 'X\(//\)[^/]' \| \
25815          X"$mf" : 'X\(//\)$' \| \
25816          X"$mf" : 'X\(/\)' \| \
25817          .     : '\(.\)' 2>/dev/null ||
25818 echo X"$mf" |
25819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25820           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25821           /^X\(\/\/\)$/{ s//\1/; q; }
25822           /^X\(\/\).*/{ s//\1/; q; }
25823           s/.*/./; q'`
25824   else
25825     continue
25826   fi
25827   # Extract the definition of DEPDIR, am__include, and am__quote
25828   # from the Makefile without running `make'.
25829   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25830   test -z "$DEPDIR" && continue
25831   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25832   test -z "am__include" && continue
25833   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25834   # When using ansi2knr, U may be empty or an underscore; expand it
25835   U=`sed -n 's/^U = //p' < "$mf"`
25836   # Find all dependency output files, they are included files with
25837   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25838   # simplest approach to changing $(DEPDIR) to its actual value in the
25839   # expansion.
25840   for file in `sed -n "
25841     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25842        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25843     # Make sure the directory exists.
25844     test -f "$dirpart/$file" && continue
25845     fdir=`(dirname "$file") 2>/dev/null ||
25846 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25847          X"$file" : 'X\(//\)[^/]' \| \
25848          X"$file" : 'X\(//\)$' \| \
25849          X"$file" : 'X\(/\)' \| \
25850          .     : '\(.\)' 2>/dev/null ||
25851 echo X"$file" |
25852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25853           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25854           /^X\(\/\/\)$/{ s//\1/; q; }
25855           /^X\(\/\).*/{ s//\1/; q; }
25856           s/.*/./; q'`
25857     { if $as_mkdir_p; then
25858     mkdir -p $dirpart/$fdir
25859   else
25860     as_dir=$dirpart/$fdir
25861     as_dirs=
25862     while test ! -d "$as_dir"; do
25863       as_dirs="$as_dir $as_dirs"
25864       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25866          X"$as_dir" : 'X\(//\)[^/]' \| \
25867          X"$as_dir" : 'X\(//\)$' \| \
25868          X"$as_dir" : 'X\(/\)' \| \
25869          .     : '\(.\)' 2>/dev/null ||
25870 echo X"$as_dir" |
25871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25873           /^X\(\/\/\)$/{ s//\1/; q; }
25874           /^X\(\/\).*/{ s//\1/; q; }
25875           s/.*/./; q'`
25876     done
25877     test ! -n "$as_dirs" || mkdir $as_dirs
25878   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25879 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25880    { (exit 1); exit 1; }; }; }
25881
25882     # echo "creating $dirpart/$file"
25883     echo '# dummy' > "$dirpart/$file"
25884   done
25885 done
25886  ;;
25887   esac
25888 done
25889 _ACEOF
25890
25891 cat >>$CONFIG_STATUS <<\_ACEOF
25892
25893 { (exit 0); exit 0; }
25894 _ACEOF
25895 chmod +x $CONFIG_STATUS
25896 ac_clean_files=$ac_clean_files_save
25897
25898
25899 # configure is writing to config.log, and then calls config.status.
25900 # config.status does its own redirection, appending to config.log.
25901 # Unfortunately, on DOS this fails, as config.log is still kept open
25902 # by configure, so config.status won't be able to write to it; its
25903 # output is simply discarded.  So we exec the FD to /dev/null,
25904 # effectively closing config.log, so it can be properly (re)opened and
25905 # appended to by config.status.  When coming back to configure, we
25906 # need to make the FD available again.
25907 if test "$no_create" != yes; then
25908   ac_cs_success=:
25909   ac_config_status_args=
25910   test "$silent" = yes &&
25911     ac_config_status_args="$ac_config_status_args --quiet"
25912   exec 5>/dev/null
25913   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25914   exec 5>>config.log
25915   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25916   # would make configure fail if this is the last instruction.
25917   $ac_cs_success || { (exit 1); exit 1; }
25918 fi
25919